1 /*
2  * Qualcomm Atheros OUI and vendor specific assignments
3  * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
4  * Copyright (c) 2018-2019, 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 /**
23  * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
24  */
25 enum qca_radiotap_vendor_ids {
26 	QCA_RADIOTAP_VID_WLANTEST = 0,
27 };
28 
29 /**
30  * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
31  *
32  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
33  *
34  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
35  *
36  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
37  *	internal BSS-selection. This command uses
38  *	@QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
39  *	for the current connection (i.e., changes policy set by the nl80211
40  *	Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
41  *	included to indicate which BSS to use in case roaming is disabled.
42  *
43  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
44  *	ranges to avoid to reduce issues due to interference or internal
45  *	co-existence information in the driver. These frequencies aim to
46  *	minimize the traffic but not to totally avoid the traffic. That said
47  *	for a P2P use case, these frequencies are allowed for the P2P
48  *	discovery/negotiation but avoid the group to get formed on these
49  *	frequencies. The event data structure is defined in
50  *	struct qca_avoid_freq_list.
51  *
52  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
53  *	for DFS offloading.
54  *
55  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
56  *	NAN Request/Response and NAN Indication messages. These messages are
57  *	interpreted between the framework and the firmware component. While
58  *	sending the command from userspace to the driver, payload is not
59  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
60  *	is used when receiving vendor events in userspace from the driver.
61  *
62  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
63  *	used to configure PMK to the driver even when not connected. This can
64  *	be used to request offloading of key management operations. Only used
65  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
66  *
67  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
68  *	NL80211_CMD_ROAM event with optional attributes including information
69  *	from offloaded key management operation. Uses
70  *	enum qca_wlan_vendor_attr_roam_auth attributes. Only used
71  *	if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
72  *
73  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
74  *	invoke the ACS function in device and pass selected channels to
75  *	hostapd.
76  *
77  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
78  *	supported by the driver. enum qca_wlan_vendor_features defines
79  *	the possible features.
80  *
81  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
82  *	which supports DFS offloading, to indicate a channel availability check
83  *	start.
84  *
85  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
86  *	which supports DFS offloading, to indicate a channel availability check
87  *	completion.
88  *
89  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
90  *	which supports DFS offloading, to indicate that the channel availability
91  *	check aborted, no change to the channel status.
92  *
93  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
94  *	driver, which supports DFS offloading, to indicate that the
95  *	Non-Occupancy Period for this channel is over, channel becomes usable.
96  *
97  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
98  *	which supports DFS offloading, to indicate a radar pattern has been
99  *	detected. The channel is now unusable.
100  *
101  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver.
102  *	Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info.
103  *
104  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap
105  *	based on enum wifi_logger_supported_features. Attributes defined in
106  *	enum qca_wlan_vendor_attr_get_logger_features.
107  *
108  * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular
109  *	logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the
110  *	attribute for this command. Attributes defined in
111  *	enum qca_wlan_vendor_attr_wifi_logger_start.
112  *
113  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS
114  *	capabilities of the driver, parameters includes the attributes defined
115  *	in enum qca_wlan_vendor_attr_tdls_get_capabilities.
116  *
117  * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload
118  *	sending of certain periodic IP packet to firmware, attributes defined in
119  *	enum qca_wlan_vendor_attr_offloaded_packets.
120  *
121  * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI
122  *	monitoring, defines min and max RSSI which are configured for RSSI
123  *	monitoring. Also used to notify the RSSI breach and provides the BSSID
124  *	and RSSI value that was breached. Attributes defined in
125  *	enum qca_wlan_vendor_attr_rssi_monitoring.
126  *
127  * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN
128  *	Data Path (NDP) related operations, attributes defined in
129  *	enum qca_wlan_vendor_attr_ndp_params.
130  *
131  * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable
132  *	Neighbour Discovery offload, attributes defined in
133  *	enum qca_wlan_vendor_attr_nd_offload.
134  *
135  * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various
136  *	configuration parameter for BPF packet filter, attributes defined in
137  *	enum qca_wlan_vendor_attr_packet_filter.
138  *
139  * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware
140  *	maximum supported size, attributes defined in
141  *	enum qca_wlan_vendor_drv_info.
142  *
143  * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various
144  *	data about wake reasons and datapath IP statistics, attributes defined
145  *	in enum qca_wlan_vendor_attr_wake_stats.
146  *
147  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration
148  *	for IEEE 802.11 communicating outside the context of a basic service
149  *	set, called OCB command. Uses the attributes defines in
150  *	enum qca_wlan_vendor_attr_ocb_set_config.
151  *
152  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB
153  *	UTC time. Use the attributes defines in
154  *	enum qca_wlan_vendor_attr_ocb_set_utc_time.
155  *
156  * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start
157  *	sending OCB timing advert frames. Uses the attributes defines in
158  *	enum qca_wlan_vendor_attr_ocb_start_timing_advert.
159  *
160  * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop
161  *	OCB timing advert. Uses the attributes defines in
162  *	enum qca_wlan_vendor_attr_ocb_stop_timing_advert.
163  *
164  * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF
165  *	timer value. Uses the attributes defines in
166  *	enum qca_wlan_vendor_attr_ocb_get_tsf_resp.
167  *
168  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the
169  *	link properties of the respective interface. As an event, is used
170  *	to notify the connected station's status. The attributes for this
171  *	command are defined in enum qca_wlan_vendor_attr_link_properties.
172  *
173  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
174  *	start the P2P Listen offload function in device and pass the listen
175  *	channel, period, interval, count, device types, and vendor specific
176  *	information elements to the device driver and firmware.
177  *	Uses the attributes defines in
178  *	enum qca_wlan_vendor_attr_p2p_listen_offload.
179  *
180  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
181  *	indicate stop request/response of the P2P Listen offload function in
182  *	device. As an event, it indicates either the feature stopped after it
183  *	was already running or feature has actually failed to start. Uses the
184  *	attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
185  *
186  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
187  *	beaconing, this sub command provides the driver, the frequencies on the
188  *	5 GHz band to check for any radar activity. Driver selects one channel
189  *	from this priority list provided through
190  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
191  *	to check for radar activity on it. If no radar activity is detected
192  *	during the channel availability check period, driver internally switches
193  *	to the selected frequency of operation. If the frequency is zero, driver
194  *	internally selects a channel. The status of this conditional switch is
195  *	indicated through an event using the same sub command through
196  *	@QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
197  *	listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
198  *
199  * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
200  *	attributes defined in enum qca_wlan_gpio_attr.
201  *
202  * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
203  *	This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
204  *	capabilities are to be fetched and other
205  *	enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
206  *	requested capabilities.
207  *
208  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
209  *	enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
210  *	command and event.
211  *
212  * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
213  *	indoor location features. Capabilities are reported in
214  *	QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
215  *
216  * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
217  *	(fine timing measurement) session with one or more peers.
218  *	Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
219  *	peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
220  *	On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
221  *	events will be reported, followed by
222  *	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
223  *	end of session.
224  *	Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
225  *
226  * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
227  *	A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
228  *	status code indicating session was aborted.
229  *
230  * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
231  *	results for one peer. Results are reported in
232  *	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
233  *
234  * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
235  *	FTM session is finished, either successfully or aborted by
236  *	request.
237  *
238  * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
239  *	mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
240  *	to enable or disable the responder. LCI/LCR reports can be
241  *	configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
242  *	QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
243  *	times to update the LCI/LCR reports.
244  *
245  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
246  *	arrival) measurement with a single peer. Specify peer MAC address in
247  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
248  *	QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
249  *	scan results cache and use the frequency from there).
250  *	Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
251  *	Measurement result is reported in
252  *	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
253  *
254  * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
255  *	peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
256  *
257  * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
258  *	the AOA measurement result.
259  *	Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
260  *	success/failure status is reported in
261  *	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
262  *	Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
263  *	The antenna array(s) used in the measurement are reported in
264  *	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
265  *
266  * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
267  *	data as per the given parameters.
268  *
269  * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
270  *	specific chain.
271  *
272  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
273  *	configuration for a DMG RF sector. Specify sector index in
274  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
275  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
276  *	to return sector information for in
277  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
278  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
279  *	exact time where information was captured in
280  *	QCA_WLAN_VENDOR_ATTR_TSF.
281  *
282  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
283  *	configuration for a DMG RF sector. Specify sector index in
284  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
285  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
286  *	for one or more DMG RF modules in
287  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
288  *
289  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
290  *	DMG RF sector for a station. This is the sector that the HW
291  *	will use to communicate with the station. Specify the MAC address
292  *	of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
293  *	needed for unassociated	station). Specify sector type to return in
294  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
295  *	sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
296  *	Also return the exact time where the information was captured
297  *	in QCA_WLAN_VENDOR_ATTR_TSF.
298  *
299  * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
300  *	selected DMG RF sector for a station. This is the sector that
301  *	the HW will use to communicate with the station.
302  *	Specify the MAC address of associated station/AP/PCP in
303  *	QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
304  *	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
305  *	in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
306  *	The selected sector will be locked such that it will not be
307  *	modified like it normally does (for example when station
308  *	moves around). To unlock the selected sector for a station
309  *	pass the special value 0xFFFF in the sector index. To unlock
310  *	all connected stations also pass a broadcast MAC address.
311  *
312  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
313  *	in the host driver. The different TDLS configurations are defined
314  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
315  *
316  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE
317  *	capabilities. The response uses the attributes defined in
318  *	enum qca_wlan_vendor_attr_get_he_capabilities.
319  *
320  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
321  *	started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
322  *	carries the scan cookie of the corresponding scan request. The scan
323  *	cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
324  *
325  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
326  *	Absorption Rate (SAR) power limits. A critical regulation for
327  *	FCC compliance, OEMs require methods to set SAR limits on TX
328  *	power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
329  *	attributes are used with this command.
330  *
331  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
332  *	host driver for offloading the implementation of Auto Channel Selection
333  *	(ACS) to an external user space entity. This interface is used as the
334  *	event from the host driver to the user space entity and also as the
335  *	request from the user space entity to the host driver. The event from
336  *	the host driver is used by the user space entity as an indication to
337  *	start the ACS functionality. The attributes used by this event are
338  *	represented by the enum qca_wlan_vendor_attr_external_acs_event.
339  *	User space entity uses the same interface to inform the host driver with
340  *	selected channels after the ACS operation using the attributes defined
341  *	by enum qca_wlan_vendor_attr_external_acs_channels.
342  *
343  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
344  *	requisite information leading to a power save failure. The information
345  *	carried as part of this event is represented by the
346  *	enum qca_attr_chip_power_save_failure attributes.
347  *
348  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
349  *	collection. Uses attributes defined in enum qca_attr_nud_stats_set.
350  *
351  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
352  *	statistics are represented by the enum qca_attr_nud_stats_get
353  *	attributes.
354  *
355  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
356  *	the BSS transition status, whether accept or reject, for a list of
357  *	candidate BSSIDs provided by the userspace. This uses the vendor
358  *	attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
359  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
360  *	the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
361  *	array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
362  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
363  *	the driver shall specify array of
364  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
365  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
366  *	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
367  *
368  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
369  *	specific QCA module. The trace levels are represented by
370  *	enum qca_attr_trace_level attributes.
371  *
372  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
373  *	Protocol antenna limit in different modes. See enum
374  *	qca_wlan_vendor_attr_brp_ant_limit_mode.
375  *
376  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
377  *	parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
378  *	This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
379  *	identifying the operation in success case. In failure cases an
380  *	error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
381  *	describing the reason for the failure is returned.
382  *
383  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
384  *	a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
385  *	@QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
386  *	be stopped.
387  *
388  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
389  *	specific interface. This can be used to modify some of the low level
390  *	scan parameters (off channel dwell time, home channel time) in the
391  *	driver/firmware. These parameters are maintained within the host driver.
392  *	This command is valid only when the interface is in the connected state.
393  *	These scan parameters shall be reset by the driver/firmware once
394  *	disconnected. The attributes used with this command are defined in
395  *	enum qca_wlan_vendor_attr_active_tos.
396  *
397  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
398  *	driver has detected an internal failure. This event carries the
399  *	information indicating the reason that triggered this detection. The
400  *	attributes for this command are defined in
401  *	enum qca_wlan_vendor_attr_hang.
402  *
403  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
404  *	of spectral parameters used. The spectral scan parameters are specified
405  *	by enum qca_wlan_vendor_attr_spectral_scan.
406  *
407  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
408  *	for spectral scan functionality. The debug stats are specified by
409  *	enum qca_wlan_vendor_attr_spectral_diag_stats.
410  *
411  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
412  *	scan system capabilities. The capabilities are specified
413  *	by enum qca_wlan_vendor_attr_spectral_cap.
414  *
415  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
416  *	status of spectral scan. The status values are specified
417  *	by enum qca_wlan_vendor_attr_spectral_scan_status.
418  *
419  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
420  *	peer pending packets. Specify the peer MAC address in
421  *	QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
422  *	in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
423  *	in enum qca_wlan_vendor_attr_flush_pending.
424  *
425  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
426  *	RF Operating Parameter (RROP) information. The attributes for this
427  *	information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
428  *	intended for use by external Auto Channel Selection applications.
429  *
430  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
431  *	(SAR) power limits. This is a companion to the command
432  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
433  *	settings currently in use. The attributes returned by this command are
434  *	defined by enum qca_vendor_attr_sar_limits.
435  *
436  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of
437  *	the WLAN hardware MAC. Also, provides the WLAN netdev interface
438  *	information attached to the respective MAC.
439  *	This works both as a query (user space asks the current mode) or event
440  *	interface (driver advertising the current mode to the user space).
441  *	Driver does not trigger this event for temporary hardware mode changes.
442  *	Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion,
443  *	channel change, etc.) are updated with this event. Attributes for this
444  *	interface are defined in enum qca_wlan_vendor_attr_mac.
445  *
446  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
447  *	per peer per TID. Attributes for this command are define in
448  *	enum qca_wlan_set_qdepth_thresh_attr.
449  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
450  *	guide for WLAN driver. Request to suspend of driver and FW if the
451  *	temperature is higher than the suspend threshold; resume action is
452  *	requested to driver if the temperature is lower than the resume
453  *	threshold. In user poll mode, request temperature data by user. For test
454  *	purpose, getting thermal shutdown configuration parameters is needed.
455  *	Attributes for this interface are defined in
456  *	enum qca_wlan_vendor_attr_thermal_cmd.
457  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
458  *	driver. Thermal temperature and indication of resume completion are
459  *	reported as thermal events. The attributes for this command are defined
460  *	in enum qca_wlan_vendor_attr_thermal_event.
461  *
462  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
463  *	test configuration. Attributes for this command are defined in
464  *	enum qca_wlan_vendor_attr_wifi_test_config.
465  *
466  * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an
467  *	RX filter to receive frames from stations that are active on the
468  *	operating channel, but not associated with the local device (e.g., STAs
469  *	associated with other APs). Filtering is done based on a list of BSSIDs
470  *	and STA MAC addresses added by the user. This command is also used to
471  *	fetch the statistics of unassociated stations. The attributes used with
472  *	this command are defined in enum qca_wlan_vendor_attr_bss_filter.
473  *
474  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
475  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
476  *	carried a payload which was a binary blob of data. The command was not
477  *	extendable to send more information. The newer version carries the
478  *	legacy blob encapsulated within an attribute and can be extended with
479  *	additional vendor attributes that can enhance the NAN command interface.
480  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered
481  *	or stopped within driver/firmware in order to initiate roaming. The
482  *	attributes used with this event are defined in enum
483  *	qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events
484  *	in few cases, e.g., if the host processor is sleeping when this event
485  *	is generated in firmware.
486  *
487  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
488  *	configure parameters per peer to capture Channel Frequency Response
489  *	(CFR) and enable Periodic CFR capture. The attributes for this command
490  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr.
491  *
492  * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes
493  *	in throughput dynamically. The driver estimates the throughput based on
494  *	number of packets being transmitted/received per second and indicates
495  *	the changes in throughput to user space. Userspace tools can use this
496  *	information to configure kernel's TCP parameters in order to achieve
497  *	peak throughput. Optionally, the driver will also send guidance on
498  *	modifications to kernel's TCP parameters which can be referred by
499  *	userspace tools. The attributes used with this event are defined in enum
500  *	qca_wlan_vendor_attr_throughput_change.
501  *
502  * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set
503  *	priorities among different types of traffic during coex scenarios.
504  *	Current supported prioritization is among WLAN/BT/ZIGBEE with different
505  *	profiles mentioned in enum qca_coex_config_profiles. The associated
506  *	attributes used with this command are defined in enum
507  *	qca_vendor_attr_coex_config.
508  *
509  *	Based on the config provided, FW will boost the weight and prioritize
510  *	the traffic for that subsystem (WLAN/BT/Zigbee).
511  *
512  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query
513  *	the supported AKM suite selectorss from the driver. It returns the list
514  *	of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES.
515  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware
516  *	state from the driver. It returns the firmware state in the attribute
517  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
518  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
519  *	is used by the driver to flush per-peer cached statistics to user space
520  *	application. This interface is used as an event from the driver to
521  *	user space application. Attributes for this event are specified in
522  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
523  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
524  *	sent in the event.
525  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
526  *	improve the success rate of Zigbee joining network.
527  *	Due to PTA master limitation, Zigbee joining network success rate is
528  *	low while WLAN is working. The WLAN driver needs to configure some
529  *	parameters including Zigbee state and specific WLAN periods to enhance
530  *	PTA master. All these parameters are delivered by the attributes
531  *	defined in enum qca_mpta_helper_vendor_attr.
532  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
533  *	implement Beacon frame reporting feature.
534  *
535  *	Userspace can request the driver/firmware to periodically report
536  *	received Beacon frames whose BSSID is same as the current connected
537  *	BSS's MAC address.
538  *
539  *	In case the STA seamlessly (without sending disconnect indication to
540  *	userspace) roams to a different BSS, Beacon frame reporting will be
541  *	automatically enabled for the Beacon frames whose BSSID is same as the
542  *	MAC address of the new BSS. Beacon reporting will be stopped when the
543  *	STA is disconnected (when the disconnect indication is sent to
544  *	userspace) and need to be explicitly enabled by userspace for next
545  *	connection.
546  *
547  *	When a Beacon frame matching configured conditions is received, and if
548  *	userspace has requested to send asynchronous beacon reports, the
549  *	driver/firmware will encapsulate the details of the Beacon frame in an
550  *	event and send it to userspace along with updating the BSS information
551  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
552  *	scan cache with the information from the received Beacon frame but will
553  *	not send any active report to userspace.
554  *
555  *	The userspace can request the driver/firmware to stop reporting Beacon
556  *	frames. If the driver/firmware is not able to receive Beacon frames due
557  *	to other Wi-Fi operations such as off-channel activities, etc., the
558  *	driver/firmware will send a pause event to userspace and stop reporting
559  *	Beacon frames. Whether the beacon reporting will be automatically
560  *	resumed or not by the driver/firmware later will be reported to
561  *	userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
562  *	flag. The beacon reporting shall be resumed for all the cases except
563  *	either when userspace sets
564  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command
565  *	which triggered the current beacon reporting or during any disconnection
566  *	case as indicated by setting
567  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
568  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
569  *	driver.
570  *
571  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
572  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
573  *	flag not set, the next first
574  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
575  *	shall be considered as un-pause event.
576  *
577  *	All the attributes used with this command are defined in
578  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
579  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have
580  *	interop issues with the DUT. This sub command is used to transfer the
581  *	AP info between the driver and user space. This works both as a command
582  *	and an event. As a command, it configures the stored list of APs from
583  *	user space to firmware; as an event, it indicates the AP info detected
584  *	by the firmware to user space for persistent storage. The attributes
585  *	defined in enum qca_vendor_attr_interop_issues_ap are used to deliver
586  *	the parameters.
587  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
588  *	binary blobs from application/service to firmware. The attributes
589  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to deliver
590  *	the parameters.
591  */
592 enum qca_nl80211_vendor_subcmds {
593 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
594 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
595 	/* subcmds 2..8 not yet allocated */
596 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
597 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
598 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY =  11,
599 	QCA_NL80211_VENDOR_SUBCMD_NAN =  12,
600 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
601 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
602 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
603 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
604 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
605 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
606 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
607 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
608 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
609 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
610 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
611 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
612 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
613 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
614 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
615 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
616 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
617 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
618 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
619 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
620 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
621 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
622 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
623 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
624 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
625 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
626 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
627 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
628 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
629 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
630 	/* 43..49 - reserved for QCA */
631 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
632 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
633 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
634 	/* 53 - reserved - was used by QCA, but not in use anymore */
635 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
636 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
637 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
638 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
639 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
640 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
641 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
642 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
643 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
644 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
645 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
646 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
647 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
648 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
649 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
650 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
651 	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
652 	QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
653 	QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
654 	QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
655 	/* Wi-Fi configuration subcommands */
656 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
657 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
658 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
659 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
660 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
661 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
662 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
663 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
664 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
665 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
666 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
667 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
668 	/* 86-90 - reserved for QCA */
669 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
670 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
671 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
672 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
673 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
674 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
675 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
676 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
677 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
678 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
679 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
680 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
681 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
682 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
683 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
684 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
685 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
686 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
687 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
688 	/* 110..114 - reserved for QCA */
689 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
690 	/* 116..117 - reserved for QCA */
691 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
692 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
693 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
694 	/* 121 - reserved for QCA */
695 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
696 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
697 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
698 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
699 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
700 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
701 	/* FTM/indoor location subcommands */
702 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
703 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
704 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
705 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
706 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
707 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
708 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
709 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
710 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
711 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
712 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
713 	/* DMG low level RF sector operations */
714 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
715 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
716 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
717 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
718 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
719 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
720 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
721 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
722 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
723 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
724 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
725 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
726 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
727 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
728 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
729 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
730 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
731 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
732 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
733 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
734 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
735 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
736 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
737 	/* Flush peer pending data */
738 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
739 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
740 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
741 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
742 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
743 	/* Thermal shutdown commands to protect wifi chip */
744 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
745 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
746 	/* Wi-Fi test configuration subcommand */
747 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
748 	/* Frame filter operations for other BSSs/unassociated STAs */
749 	QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170,
750 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
751 	QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172,
752 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
753 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
754 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
755 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176,
756 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
757 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
758 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
759 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
760 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
761 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
762 };
763 
764 enum qca_wlan_vendor_attr {
765 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
766 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
767 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
768 	/* Used only when driver sends vendor events to the userspace under the
769 	 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends
770 	 * commands to the driver.
771 	 */
772 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
773 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
774 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
775 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
776 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
777 	/* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
778 	 * by enum qca_roaming_policy.
779 	 */
780 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
781 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
782 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
783 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
784 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
785 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
786 	/* Unsigned 32-bit value. */
787 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
788 	/* Unsigned 32-bit value */
789 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
790 	/* Unsigned 32-bit value */
791 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
792 	/* Unsigned 32-bit value from enum qca_set_band. */
793 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
794 	/* Dummy (NOP) attribute for 64 bit padding */
795 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
796 	/* Unique FTM session cookie (Unsigned 64 bit). Specified in
797 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
798 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
799 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
800 	 */
801 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
802 	/* Indoor location capabilities, returned by
803 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
804 	 * see enum qca_wlan_vendor_attr_loc_capa.
805 	 */
806 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
807 	/* Array of nested attributes containing information about each peer
808 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
809 	 * for supported attributes for each peer.
810 	 */
811 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
812 	/* Array of nested attributes containing measurement results for
813 	 * one or more peers, reported by the
814 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
815 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
816 	 * attributes.
817 	 */
818 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
819 	/* Flag attribute for enabling or disabling responder functionality. */
820 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
821 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
822 	 * command to specify the LCI report that will be sent by
823 	 * the responder during a measurement exchange. The format is
824 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
825 	 */
826 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
827 	/* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
828 	 * command to specify the location civic report that will
829 	 * be sent by the responder during a measurement exchange.
830 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
831 	 */
832 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
833 	/* Session/measurement completion status code,
834 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
835 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
836 	 * see enum qca_vendor_attr_loc_session_status.
837 	 */
838 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
839 	/* Initial dialog token used by responder (0 if not specified),
840 	 * unsigned 8 bit value.
841 	 */
842 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
843 	/* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
844 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
845 	 * AOA measurements are needed as part of an FTM session.
846 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
847 	 * enum qca_wlan_vendor_attr_aoa_type.
848 	 */
849 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
850 	/* A bit mask (unsigned 32 bit value) of antenna arrays used
851 	 * by indoor location measurements. Refers to the antenna
852 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
853 	 */
854 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
855 	/* AOA measurement data. Its contents depends on the AOA measurement
856 	 * type and antenna array mask:
857 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
858 	 * phase of the strongest CIR path for each antenna in the measured
859 	 * array(s).
860 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
861 	 * values, phase and amplitude of the strongest CIR path for each
862 	 * antenna in the measured array(s).
863 	 */
864 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
865 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
866 	 * to specify the chain number (unsigned 32 bit value) to inquire
867 	 * the corresponding antenna RSSI value
868 	 */
869 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
870 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
871 	 * to report the specific antenna RSSI value (unsigned 32 bit value)
872 	 */
873 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
874 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
875 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
876 	/* TSF timer value, unsigned 64 bit value.
877 	 * May be returned by various commands.
878 	 */
879 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
880 	/* DMG RF sector index, unsigned 16 bit number. Valid values are
881 	 * 0..127 for sector indices or 65535 as special value used to
882 	 * unlock sector selection in
883 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
884 	 */
885 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
886 	/* DMG RF sector type, unsigned 8 bit value. One of the values
887 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
888 	 */
889 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
890 	/* Bitmask of DMG RF modules for which information is requested. Each
891 	 * bit corresponds to an RF module with the same index as the bit
892 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
893 	 * all DMG chips currently have up to 8 RF modules.
894 	 */
895 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
896 	/* Array of nested attributes where each entry is DMG RF sector
897 	 * configuration for a single RF module.
898 	 * Attributes for each entry are taken from enum
899 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
900 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
901 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
902 	 */
903 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
904 	/* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
905 	 * to report frame aggregation statistics to userspace.
906 	 */
907 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
908 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
909 	/* Unsigned 8-bit value representing MBO transition reason code as
910 	 * provided by the AP used by subcommand
911 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
912 	 * specified by the userspace in the request to the driver.
913 	 */
914 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
915 	/* Array of nested attributes, BSSID and status code, used by subcommand
916 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
917 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
918 	 * The userspace space specifies the list/array of candidate BSSIDs in
919 	 * the order of preference in the request. The driver specifies the
920 	 * status code, for each BSSID in the list, in the response. The
921 	 * acceptable candidates are listed in the order preferred by the
922 	 * driver.
923 	 */
924 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
925 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
926 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
927 	 */
928 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
929 	/* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
930 	 * to define the number of antennas to use for BRP.
931 	 * different purpose in each ANT_LIMIT_MODE:
932 	 * DISABLE - ignored
933 	 * EFFECTIVE - upper limit to number of antennas to be used
934 	 * FORCE - exact number of antennas to be used
935 	 * unsigned 8 bit value
936 	 */
937 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
938 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
939 	 * to report the corresponding antenna index to the chain RSSI value
940 	 */
941 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
942 	/* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report
943 	 * the specific antenna EVM value (unsigned 32 bit value). With a
944 	 * determinate group of antennas, the driver specifies the EVM value
945 	 * for each antenna ID, and application extract them in user space.
946 	 */
947 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
948 	/*
949 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
950 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
951 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
952 	 */
953 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
954 
955 	/* keep last */
956 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
957 	QCA_WLAN_VENDOR_ATTR_MAX	= QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
958 };
959 
960 enum qca_roaming_policy {
961 	QCA_ROAMING_NOT_ALLOWED,
962 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
963 };
964 
965 /**
966  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
967  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
968  *
969  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
970  * reasons.
971  *
972  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached
973  * the configured threshold.
974  *
975  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
976  * beacon misses from the then connected AP.
977  *
978  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
979  * by the connected AP.
980  *
981  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better
982  * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor.
983  *
984  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
985  * or environment being very noisy or congested.
986  *
987  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
988  * from the user (user space).
989  *
990  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from
991  * the connected AP.
992  *
993  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
994  * breaching out the configured threshold.
995  */
996 enum qca_roam_reason {
997 	QCA_ROAM_REASON_UNKNOWN,
998 	QCA_ROAM_REASON_PER,
999 	QCA_ROAM_REASON_BEACON_MISS,
1000 	QCA_ROAM_REASON_POOR_RSSI,
1001 	QCA_ROAM_REASON_BETTER_RSSI,
1002 	QCA_ROAM_REASON_CONGESTION,
1003 	QCA_ROAM_REASON_USER_TRIGGER,
1004 	QCA_ROAM_REASON_BTM,
1005 	QCA_ROAM_REASON_BSS_LOAD,
1006 };
1007 
1008 enum qca_wlan_vendor_attr_roam_auth {
1009 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
1010 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
1011 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
1012 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
1013 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
1014 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
1015 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
1016 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
1017 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
1018 	/* Indicates the status of re-association requested by user space for
1019 	 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
1020 	 * Type u16.
1021 	 * Represents the status code from AP. Use
1022 	 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
1023 	 * real status code for failures.
1024 	 */
1025 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
1026 	/* This attribute indicates that the old association was maintained when
1027 	 * a re-association is requested by user space and that re-association
1028 	 * attempt fails (i.e., cannot connect to the requested BSS, but can
1029 	 * remain associated with the BSS with which the association was in
1030 	 * place when being requested to roam). Used along with
1031 	 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
1032 	 * re-association status. Type flag.
1033 	 * This attribute is applicable only for re-association failure cases.
1034 	 */
1035 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
1036 	/* This attribute specifies the PMK if one was newly generated during
1037 	 * FILS roaming. This is added to the PMKSA cache and is used in
1038 	 * subsequent connections with PMKSA caching.
1039 	 */
1040 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11,
1041 	/* This attribute specifies the PMKID used/generated for the current
1042 	 * FILS roam. This is used in subsequent connections with PMKSA caching.
1043 	 */
1044 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12,
1045 	/* A 16-bit unsigned value specifying the next sequence number to use
1046 	 * in ERP message in the currently associated realm. This is used in
1047 	 * doing subsequent ERP based connections in the same realm.
1048 	 */
1049 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13,
1050 	/* A 16-bit unsigned value representing the reasons for the roaming.
1051 	 * Defined by enum qca_roam_reason.
1052 	 */
1053 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14,
1054 
1055 	/* keep last */
1056 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
1057 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
1058 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
1059 };
1060 
1061 enum qca_wlan_vendor_attr_p2p_listen_offload {
1062 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
1063 	/* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
1064 	 * of the social channels.
1065 	 */
1066 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
1067 	/* A 32-bit unsigned value; the P2P listen offload period (ms).
1068 	 */
1069 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
1070 	/* A 32-bit unsigned value; the P2P listen interval duration (ms).
1071 	 */
1072 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
1073 	/* A 32-bit unsigned value; number of interval times the firmware needs
1074 	 * to run the offloaded P2P listen operation before it stops.
1075 	 */
1076 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
1077 	/* An array of arbitrary binary data with one or more 8-byte values.
1078 	 * The device types include both primary and secondary device types.
1079 	 */
1080 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
1081 	/* An array of unsigned 8-bit characters; vendor information elements.
1082 	 */
1083 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
1084 	/* A 32-bit unsigned value; a control flag to indicate whether listen
1085 	 * results need to be flushed to wpa_supplicant.
1086 	 */
1087 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
1088 	/* A 8-bit unsigned value; reason code for P2P listen offload stop
1089 	 * event.
1090 	 */
1091 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
1092 	/* keep last */
1093 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
1094 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
1095 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
1096 };
1097 
1098 enum qca_wlan_vendor_attr_acs_offload {
1099 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
1100 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
1101 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
1102 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
1103 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
1104 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
1105 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
1106 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
1107 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
1108 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
1109 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
1110 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
1111 	/* keep last */
1112 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
1113 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
1114 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
1115 };
1116 
1117 enum qca_wlan_vendor_acs_hw_mode {
1118 	QCA_ACS_MODE_IEEE80211B,
1119 	QCA_ACS_MODE_IEEE80211G,
1120 	QCA_ACS_MODE_IEEE80211A,
1121 	QCA_ACS_MODE_IEEE80211AD,
1122 	QCA_ACS_MODE_IEEE80211ANY,
1123 };
1124 
1125 /**
1126  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
1127  *
1128  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
1129  *	management offload, a mechanism where the station's firmware
1130  *	does the exchange with the AP to establish the temporal keys
1131  *	after roaming, rather than having the user space wpa_supplicant do it.
1132  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
1133  *	band selection based on channel selection results.
1134  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
1135  *	simultaneous off-channel operations.
1136  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
1137  *	Listen offload; a mechanism where the station's firmware takes care of
1138  *	responding to incoming Probe Request frames received from other P2P
1139  *	Devices whilst in Listen state, rather than having the user space
1140  *	wpa_supplicant do it. Information from received P2P requests are
1141  *	forwarded from firmware to host whenever the host processor wakes up.
1142  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
1143  *	specific features.
1144  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
1145  *	features.
1146  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
1147  *	specific features only. If a Device sets this bit but not the
1148  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
1149  *	this Device may not support all OCE AP functionalities but can support
1150  *	only OCE STA-CFON functionalities.
1151  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
1152  *	managed regulatory.
1153  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
1154  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
1155  */
1156 enum qca_wlan_vendor_features {
1157 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD	= 0,
1158 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY     = 1,
1159 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
1160 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD	= 3,
1161 	QCA_WLAN_VENDOR_FEATURE_OCE_STA                 = 4,
1162 	QCA_WLAN_VENDOR_FEATURE_OCE_AP                  = 5,
1163 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON            = 6,
1164 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
1165 	QCA_WLAN_VENDOR_FEATURE_TWT 			= 8,
1166 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
1167 };
1168 
1169 /**
1170  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
1171  *
1172  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
1173  *	the offloaded data.
1174  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
1175  *	data.
1176  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
1177  *	indication.
1178  */
1179 enum qca_wlan_vendor_attr_data_offload_ind {
1180 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
1181 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
1182 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
1183 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
1184 
1185 	/* keep last */
1186 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
1187 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
1188 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
1189 };
1190 
1191 /**
1192  * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set
1193  *	OCB config
1194  *
1195  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the
1196  *	configuration
1197  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule
1198  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels
1199  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be
1200  *	scheduled
1201  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel
1202  *	information
1203  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL
1204  *	active state configuration
1205  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as
1206  *	OCB_CONFIG_FLAG_80211_FRAME_MODE
1207  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to
1208  *	use in the case that a packet is sent without a TX control header
1209  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the
1210  *	last TA received that the local time set by TA is synchronous to other
1211  *	communicating OCB STAs.
1212  */
1213 enum qca_wlan_vendor_attr_ocb_set_config {
1214 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0,
1215 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1,
1216 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2,
1217 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3,
1218 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4,
1219 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5,
1220 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6,
1221 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7,
1222 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8,
1223 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9,
1224 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST,
1225 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX =
1226 	QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1
1227 };
1228 
1229 /**
1230  * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set
1231  *	UTC time
1232  *
1233  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of
1234  *	10 bytes
1235  * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of
1236  *	5 bytes
1237  */
1238 enum qca_wlan_vendor_attr_ocb_set_utc_time {
1239 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0,
1240 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1,
1241 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2,
1242 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST,
1243 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX =
1244 	QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1
1245 };
1246 
1247 /**
1248  * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes
1249  *	to start sending timing advert frames
1250  *
1251  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency
1252  *	on which to send the frames
1253  * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times
1254  *	the frame is sent in 5 seconds
1255  */
1256 enum qca_wlan_vendor_attr_ocb_start_timing_advert {
1257 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0,
1258 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1,
1259 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2,
1260 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST,
1261 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX =
1262 	QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1
1263 };
1264 
1265 /**
1266  * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes
1267  *	to stop timing advert
1268  *
1269  * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel
1270  *	frequency on which to stop the timing advert
1271  */
1272 enum qca_wlan_vendor_attr_ocb_stop_timing_advert {
1273 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0,
1274 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1,
1275 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST,
1276 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX =
1277 	QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1
1278 };
1279 
1280 /**
1281  * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to
1282  *	get TSF timer value
1283  *
1284  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the
1285  *	timer
1286  * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer
1287  */
1288 enum qca_wlan_vendor_attr_ocb_get_tsf_resp {
1289 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0,
1290 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1,
1291 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2,
1292 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST,
1293 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX =
1294 	QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1
1295 };
1296 
1297 enum qca_vendor_attr_get_preferred_freq_list {
1298 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
1299 	/* A 32-unsigned value; the interface type/mode for which the preferred
1300 	 * frequency list is requested (see enum qca_iface_type for possible
1301 	 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
1302 	 * kernel and in the kernel response back to user-space.
1303 	 */
1304 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
1305 	/* An array of 32-unsigned values; values are frequency (MHz); sent
1306 	 * from kernel space to user space.
1307 	 */
1308 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
1309 	/* An array of nested values as per enum qca_wlan_vendor_attr_pcl
1310 	 * attribute. Each element contains frequency (MHz), weight, and flag
1311 	 * bit mask indicating how the frequency should be used in P2P
1312 	 * negotiation; sent from kernel space to user space.
1313 	 */
1314 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
1315 	/* keep last */
1316 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
1317 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
1318 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
1319 };
1320 
1321 enum qca_vendor_attr_probable_oper_channel {
1322 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
1323 	/* 32-bit unsigned value; indicates the connection/iface type likely to
1324 	 * come on this channel (see enum qca_iface_type).
1325 	 */
1326 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
1327 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
1328 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
1329 	/* keep last */
1330 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
1331 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
1332 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
1333 };
1334 
1335 enum qca_iface_type {
1336 	QCA_IFACE_TYPE_STA,
1337 	QCA_IFACE_TYPE_AP,
1338 	QCA_IFACE_TYPE_P2P_CLIENT,
1339 	QCA_IFACE_TYPE_P2P_GO,
1340 	QCA_IFACE_TYPE_IBSS,
1341 	QCA_IFACE_TYPE_TDLS,
1342 };
1343 
1344 enum qca_set_band {
1345 	QCA_SETBAND_AUTO,
1346 	QCA_SETBAND_5G,
1347 	QCA_SETBAND_2G,
1348 };
1349 
1350 /**
1351  * enum qca_access_policy - Access control policy
1352  *
1353  * Access control policy is applied on the configured IE
1354  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
1355  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
1356  *
1357  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
1358  *	the specific configuration (IE) set, i.e., allow all the
1359  *	connections which do not match the configuration.
1360  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
1361  *	the specific configuration (IE) set, i.e., deny all the
1362  *	connections which do not match the configuration.
1363  */
1364 enum qca_access_policy {
1365 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
1366 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
1367 };
1368 
1369 /**
1370  * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
1371  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
1372  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
1373  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
1374  *	SOC timer value at TSF capture
1375  */
1376 enum qca_vendor_attr_tsf_cmd {
1377 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
1378 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
1379 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
1380 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
1381 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
1382 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
1383 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
1384 };
1385 
1386 /**
1387  * enum qca_tsf_operation: TSF driver commands
1388  * @QCA_TSF_CAPTURE: Initiate TSF Capture
1389  * @QCA_TSF_GET: Get TSF capture value
1390  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
1391  */
1392 enum qca_tsf_cmd {
1393 	QCA_TSF_CAPTURE,
1394 	QCA_TSF_GET,
1395 	QCA_TSF_SYNC_GET,
1396 };
1397 
1398 /**
1399  * enum qca_vendor_attr_wisa_cmd
1400  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
1401  * WISA setup vendor commands
1402  */
1403 enum qca_vendor_attr_wisa_cmd {
1404 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
1405 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
1406 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
1407 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
1408 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
1409 };
1410 
1411 /* IEEE 802.11 Vendor Specific elements */
1412 
1413 /**
1414  * enum qca_vendor_element_id - QCA Vendor Specific element types
1415  *
1416  * These values are used to identify QCA Vendor Specific elements. The
1417  * payload of the element starts with the three octet OUI (OUI_QCA) and
1418  * is followed by a single octet type which is defined by this enum.
1419  *
1420  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
1421  *	This element can be used to specify preference order for supported
1422  *	channels. The channels in this list are in preference order (the first
1423  *	one has the highest preference) and are described as a pair of
1424  *	(global) Operating Class and Channel Number (each one octet) fields.
1425  *
1426  *	This extends the standard P2P functionality by providing option to have
1427  *	more than one preferred operating channel. When this element is present,
1428  *	it replaces the preference indicated in the Operating Channel attribute.
1429  *	For supporting other implementations, the Operating Channel attribute is
1430  *	expected to be used with the highest preference channel. Similarly, all
1431  *	the channels included in this Preferred channel list element are
1432  *	expected to be included in the Channel List attribute.
1433  *
1434  *	This vendor element may be included in GO Negotiation Request, P2P
1435  *	Invitation Request, and Provision Discovery Request frames.
1436  *
1437  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
1438  *	This element can be used for pre-standard publication testing of HE
1439  *	before P802.11ax draft assigns the element ID. The payload of this
1440  *	vendor specific element is defined by the latest P802.11ax draft.
1441  *	Please note that the draft is still work in progress and this element
1442  *	payload is subject to change.
1443  *
1444  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
1445  *	This element can be used for pre-standard publication testing of HE
1446  *	before P802.11ax draft assigns the element ID. The payload of this
1447  *	vendor specific element is defined by the latest P802.11ax draft.
1448  *	Please note that the draft is still work in progress and this element
1449  *	payload is subject to change.
1450  *
1451  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
1452  *	element).
1453  *	This element can be used for pre-standard publication testing of HE
1454  *	before P802.11ax draft assigns the element ID extension. The payload of
1455  *	this vendor specific element is defined by the latest P802.11ax draft
1456  *	(not including the Element ID Extension field). Please note that the
1457  *	draft is still work in progress and this element payload is subject to
1458  *	change.
1459  *
1460  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
1461  *	This element can be used for pre-standard publication testing of HE
1462  *	before P802.11ax draft assigns the element ID extension. The payload of
1463  *	this vendor specific element is defined by the latest P802.11ax draft
1464  *	(not including the Element ID Extension field). Please note that the
1465  *	draft is still work in progress and this element payload is subject to
1466  *	change.
1467  *
1468  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
1469  *	This element can be used for pre-standard publication testing of HE
1470  *	before P802.11ax draft assigns the element ID extension. The payload of
1471  *	this vendor specific element is defined by the latest P802.11ax draft
1472  *	(not including the Element ID Extension field). Please note that the
1473  *	draft is still work in progress and this element payload is subject to
1474  *	change.
1475  */
1476 enum qca_vendor_element_id {
1477 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
1478 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
1479 	QCA_VENDOR_ELEM_HE_OPER = 2,
1480 	QCA_VENDOR_ELEM_RAPS = 3,
1481 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
1482 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
1483 };
1484 
1485 /**
1486  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
1487  *
1488  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
1489  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
1490  *	with frequencies to be scanned (in MHz)
1491  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
1492  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
1493  *	rates to be included
1494  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
1495  *	at non CCK rate in 2GHz band
1496  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
1497  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
1498  *	driver for the specific scan request
1499  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
1500  *	request decoded as in enum scan_status
1501  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
1502  *	scan flag is set
1503  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
1504  *	randomisation
1505  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
1506  *	specific BSSID to scan for.
1507  */
1508 enum qca_wlan_vendor_attr_scan {
1509 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
1510 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
1511 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
1512 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
1513 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
1514 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
1515 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
1516 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
1517 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
1518 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
1519 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
1520 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
1521 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
1522 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
1523 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
1524 };
1525 
1526 /**
1527  * enum scan_status - Specifies the valid values the vendor scan attribute
1528  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
1529  *
1530  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
1531  *	new scan results
1532  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
1533  */
1534 enum scan_status {
1535 	VENDOR_SCAN_STATUS_NEW_RESULTS,
1536 	VENDOR_SCAN_STATUS_ABORTED,
1537 	VENDOR_SCAN_STATUS_MAX,
1538 };
1539 
1540 /**
1541  * enum qca_vendor_attr_ota_test - Specifies the values for vendor
1542  *                       command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
1543  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
1544  */
1545 enum qca_vendor_attr_ota_test {
1546 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
1547 	/* 8-bit unsigned value to indicate if OTA test is enabled */
1548 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
1549 	/* keep last */
1550 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
1551 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
1552 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
1553 };
1554 
1555 /**
1556  * enum qca_vendor_attr_txpower_scale - vendor sub commands index
1557  *
1558  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
1559  */
1560 enum qca_vendor_attr_txpower_scale {
1561 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
1562 	/* 8-bit unsigned value to indicate the scaling of tx power */
1563 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
1564 	/* keep last */
1565 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
1566 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
1567 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
1568 };
1569 
1570 /**
1571  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
1572  *
1573  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
1574  */
1575 enum qca_vendor_attr_txpower_decr_db {
1576 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
1577 	/* 8-bit unsigned value to indicate the reduction of TX power in dB for
1578 	 * a virtual interface.
1579 	 */
1580 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
1581 	/* keep last */
1582 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
1583 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
1584 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
1585 };
1586 
1587 /* Attributes for data used by
1588  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
1589  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
1590  */
1591 enum qca_wlan_vendor_attr_config {
1592 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
1593 	/* Unsigned 32-bit value to set the DTIM period.
1594 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
1595 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
1596 	 * DTIM beacons.
1597 	 */
1598 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
1599 	/* Unsigned 32-bit value to set the wifi_iface stats averaging factor
1600 	 * used to calculate statistics like average the TSF offset or average
1601 	 * number of frame leaked.
1602 	 * For instance, upon Beacon frame reception:
1603 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
1604 	 * For instance, when evaluating leaky APs:
1605 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
1606 	 */
1607 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
1608 	/* Unsigned 32-bit value to configure guard time, i.e., when
1609 	 * implementing IEEE power management based on frame control PM bit, how
1610 	 * long the driver waits before shutting down the radio and after
1611 	 * receiving an ACK frame for a Data frame with PM bit set.
1612 	 */
1613 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
1614 	/* Unsigned 32-bit value to change the FTM capability dynamically */
1615 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
1616 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
1617 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
1618 	/* Unsigned 32-bit value to configure the number of continuous
1619 	 * Beacon Miss which shall be used by the firmware to penalize
1620 	 * the RSSI.
1621 	 */
1622 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
1623 	/* Unsigned 8-bit value to configure the channel avoidance indication
1624 	 * behavior. Firmware to send only one indication and ignore duplicate
1625 	 * indications when set to avoid multiple Apps wakeups.
1626 	 */
1627 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
1628 	/* 8-bit unsigned value to configure the maximum TX MPDU for
1629 	 * aggregation.
1630 	 */
1631 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
1632 	/* 8-bit unsigned value to configure the maximum RX MPDU for
1633 	 * aggregation.
1634 	 */
1635 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
1636 	/* 8-bit unsigned value to configure the Non aggregrate/11g sw
1637 	 * retry threshold (0 disable, 31 max).
1638 	 */
1639 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
1640 	/* 8-bit unsigned value to configure the aggregrate sw
1641 	 * retry threshold (0 disable, 31 max).
1642 	 */
1643 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
1644 	/* 8-bit unsigned value to configure the MGMT frame
1645 	 * retry threshold (0 disable, 31 max).
1646 	 */
1647 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
1648 	/* 8-bit unsigned value to configure the CTRL frame
1649 	 * retry threshold (0 disable, 31 max).
1650 	 */
1651 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
1652 	/* 8-bit unsigned value to configure the propagation delay for
1653 	 * 2G/5G band (0~63, units in us)
1654 	 */
1655 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
1656 	/* Unsigned 32-bit value to configure the number of unicast TX fail
1657 	 * packet count. The peer is disconnected once this threshold is
1658 	 * reached.
1659 	 */
1660 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
1661 	/* Attribute used to set scan default IEs to the driver.
1662 	 *
1663 	 * These IEs can be used by scan operations that will be initiated by
1664 	 * the driver/firmware.
1665 	 *
1666 	 * For further scan requests coming to the driver, these IEs should be
1667 	 * merged with the IEs received along with scan request coming to the
1668 	 * driver. If a particular IE is present in the scan default IEs but not
1669 	 * present in the scan request, then that IE should be added to the IEs
1670 	 * sent in the Probe Request frames for that scan request.
1671 	 */
1672 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
1673 	/* Unsigned 32-bit attribute for generic commands */
1674 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
1675 	/* Unsigned 32-bit value attribute for generic commands */
1676 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
1677 	/* Unsigned 32-bit data attribute for generic command response */
1678 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
1679 	/* Unsigned 32-bit length attribute for
1680 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1681 	 */
1682 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
1683 	/* Unsigned 32-bit flags attribute for
1684 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
1685 	 */
1686 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
1687 	/* Unsigned 32-bit, defining the access policy.
1688 	 * See enum qca_access_policy. Used with
1689 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
1690 	 */
1691 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
1692 	/* Sets the list of full set of IEs for which a specific access policy
1693 	 * has to be applied. Used along with
1694 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
1695 	 * Zero length payload can be used to clear this access constraint.
1696 	 */
1697 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
1698 	/* Unsigned 32-bit, specifies the interface index (netdev) for which the
1699 	 * corresponding configurations are applied. If the interface index is
1700 	 * not specified, the configurations are attributed to the respective
1701 	 * wiphy.
1702 	 */
1703 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
1704 	/* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
1705 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
1706 	/* 8-bit unsigned value to configure the driver and below layers to
1707 	 * ignore the assoc disallowed set by APs while connecting
1708 	 * 1-Ignore, 0-Don't ignore
1709 	 */
1710 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
1711 	/* 32-bit unsigned value to trigger antenna diversity features:
1712 	 * 1-Enable, 0-Disable
1713 	 */
1714 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
1715 	/* 32-bit unsigned value to configure specific chain antenna */
1716 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
1717 	/* 32-bit unsigned value to trigger cycle selftest
1718 	 * 1-Enable, 0-Disable
1719 	 */
1720 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
1721 	/* 32-bit unsigned to configure the cycle time of selftest
1722 	 * the unit is micro-second
1723 	 */
1724 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
1725 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
1726 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
1727 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
1728 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
1729 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
1730 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
1731 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
1732 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
1733 	/* 6-byte MAC address to point out the specific peer */
1734 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
1735 	/* 32-bit unsigned value to set window size for specific peer */
1736 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
1737 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
1738 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
1739 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
1740 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
1741 	/* 32-bit unsigned value to configure 5 or 10 MHz channel width for
1742 	 * station device while in disconnect state. The attribute use the
1743 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
1744 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
1745 	 * 10 MHz channel width, the station will not connect to a BSS using 20
1746 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
1747 	 * clear this constraint.
1748 	 */
1749 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
1750 	/* 32-bit unsigned value to configure the propagation absolute delay
1751 	 * for 2G/5G band (units in us)
1752 	 */
1753 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
1754 	/* 32-bit unsigned value to set probe period */
1755 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
1756 	/* 32-bit unsigned value to set stay period */
1757 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
1758 	/* 32-bit unsigned value to set snr diff */
1759 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
1760 	/* 32-bit unsigned value to set probe dwell time */
1761 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
1762 	/* 32-bit unsigned value to set mgmt snr weight */
1763 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
1764 	/* 32-bit unsigned value to set data snr weight */
1765 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
1766 	/* 32-bit unsigned value to set ack snr weight */
1767 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
1768 	/* 32-bit unsigned value to configure the listen interval.
1769 	 * This is in units of beacon intervals. This configuration alters
1770 	 * the negotiated listen interval with the AP during the connection.
1771 	 * It is highly recommended to configure a value less than or equal to
1772 	 * the one negotiated during the association. Configuring any greater
1773 	 * value can have adverse effects (frame loss, AP disassociating STA,
1774 	 * etc.).
1775 	 */
1776 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
1777 	/*
1778 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
1779 	 * disable operations that would cause the AP/GO to leave its operating
1780 	 * channel.
1781 	 *
1782 	 * This will restrict the scans to the AP/GO operating channel and the
1783 	 * channels of the other band, if DBS is supported.A STA/CLI interface
1784 	 * brought up after this setting is enabled, will be restricted to
1785 	 * connecting to devices only on the AP/GO interface's operating channel
1786 	 * or on the other band in DBS case. P2P supported channel list is
1787 	 * modified, to only include AP interface's operating-channel and the
1788 	 * channels of the other band if DBS is supported.
1789 	 *
1790 	 * These restrictions are only applicable as long as the AP/GO interface
1791 	 * is alive. If the AP/GO interface is brought down then this
1792 	 * setting/restriction is forgotten.
1793 	 *
1794 	 * If this variable is set on an AP/GO interface while a multi-channel
1795 	 * concurrent session is active, it has no effect on the operation of
1796 	 * the current interfaces, other than restricting the scan to the AP/GO
1797 	 * operating channel and the other band channels if DBS is supported.
1798 	 * However, if the STA is brought down and restarted then the new STA
1799 	 * connection will either be formed on the AP/GO channel or on the
1800 	 * other band in a DBS case. This is because of the scan being
1801 	 * restricted on these channels as mentioned above.
1802 	 *
1803 	 * 1-Restrict / 0-Don't restrict offchannel operations.
1804 	 */
1805 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
1806 	/*
1807 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
1808 	 * on an interface.
1809 	 * 1 - Enable, 0 - Disable.
1810 	 */
1811 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
1812 
1813 	/*
1814 	 * 8 bit unsigned value to globally enable/disable scan
1815 	 * 1 - Enable, 0 - Disable.
1816 	 */
1817 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
1818 
1819 	/* 8-bit unsigned value to set the total beacon miss count
1820 	 * This parameter will set the total beacon miss count.
1821 	 */
1822 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
1823 
1824 	/* Unsigned 32-bit value to configure the number of continuous
1825 	 * Beacon Miss which shall be used by the firmware to penalize
1826 	 * the RSSI for BTC.
1827 	 */
1828 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
1829 
1830 	/* 8-bit unsigned value to configure the driver and below layers to
1831 	 * enable/disable all FILS features.
1832 	 * 0-enable, 1-disable
1833 	 */
1834 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
1835 
1836 	/* 16-bit unsigned value to configure the level of WLAN latency
1837 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
1838 	 */
1839 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
1840 
1841 	/* 8-bit unsigned value indicating the driver to use the RSNE as-is from
1842 	 * the connect interface. Exclusively used for the scenarios where the
1843 	 * device is used as a test bed device with special functionality and
1844 	 * not recommended for production. This helps driver to not validate the
1845 	 * RSNE passed from user space and thus allow arbitrary IE data to be
1846 	 * used for testing purposes.
1847 	 * 1-enable, 0-disable.
1848 	 * Applications set/reset this configuration. If not reset, this
1849 	 * parameter remains in use until the driver is unloaded.
1850 	 */
1851 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
1852 
1853 	/* 8-bit unsigned value to trigger green Tx power saving.
1854 	 * 1-Enable, 0-Disable
1855 	 */
1856 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
1857 
1858 	/* Attribute to configure disconnect IEs to the driver.
1859 	 * This carries an array of unsigned 8-bit characters.
1860 	 *
1861 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
1862 	 * frame.
1863 	 * These IEs are expected to be considered only for the next
1864 	 * immediate disconnection (disassoc/deauth frame) originated by
1865 	 * the DUT, irrespective of the entity (user space/driver/firmware)
1866 	 * triggering the disconnection.
1867 	 * The host drivers are not expected to use the IEs set through
1868 	 * this interface for further disconnections after the first immediate
1869 	 * disconnection initiated post the configuration.
1870 	 * If the IEs are also updated through cfg80211 interface (after the
1871 	 * enhancement to cfg80211_disconnect), host driver is expected to
1872 	 * take the union of IEs from both of these interfaces and send in
1873 	 * further disassoc/deauth frames.
1874 	 */
1875 	QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
1876 
1877 	/* 8-bit unsigned value for ELNA bypass.
1878 	 * 1-Enable, 0-Disable
1879 	 */
1880 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
1881 
1882 	/* keep last */
1883 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
1884 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
1885 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
1886 };
1887 
1888 /**
1889  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
1890  */
1891 enum qca_wlan_vendor_attr_sap_config {
1892 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
1893 	/* 1 - reserved for QCA */
1894 	/* List of frequencies on which AP is expected to operate.
1895 	 * This is irrespective of ACS configuration. This list is a priority
1896 	 * based one and is looked for before the AP is created to ensure the
1897 	 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
1898 	 * the system.
1899 	 */
1900 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
1901 
1902 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
1903 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
1904 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
1905 };
1906 
1907 /**
1908  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
1909  *					conditional channel switch
1910  */
1911 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
1912 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
1913 	/* Priority based frequency list (an array of u32 values in host byte
1914 	 * order)
1915 	 */
1916 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
1917 	/* Status of the conditional switch (u32).
1918 	 * 0: Success, Non-zero: Failure
1919 	 */
1920 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
1921 
1922 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
1923 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
1924 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
1925 };
1926 
1927 /**
1928  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
1929  */
1930 enum qca_wlan_gpio_attr {
1931 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
1932 	/* Unsigned 32-bit attribute for GPIO command */
1933 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
1934 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
1935 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
1936 	/* Unsigned 32-bit attribute for GPIO value to configure */
1937 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
1938 	/* Unsigned 32-bit attribute for GPIO pull type */
1939 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
1940 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
1941 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
1942 
1943 	/* keep last */
1944 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
1945 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
1946 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
1947 };
1948 
1949 /**
1950  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
1951  * MSDUQ depth threshold per peer per tid in the target
1952  *
1953  * Associated Vendor Command:
1954  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
1955  */
1956 enum qca_wlan_set_qdepth_thresh_attr {
1957 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
1958 	/* 6-byte MAC address */
1959 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
1960 	/* Unsigned 32-bit attribute for holding the TID */
1961 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
1962 	/* Unsigned 32-bit attribute for holding the update mask
1963 	 * bit 0 - Update high priority msdu qdepth threshold
1964 	 * bit 1 - Update low priority msdu qdepth threshold
1965 	 * bit 2 - Update UDP msdu qdepth threshold
1966 	 * bit 3 - Update Non UDP msdu qdepth threshold
1967 	 * rest of bits are reserved
1968 	 */
1969 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
1970 	/* Unsigned 32-bit attribute for holding the threshold value */
1971 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
1972 
1973 	/* keep last */
1974 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
1975 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
1976 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
1977 };
1978 
1979 /**
1980  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
1981  */
1982 enum qca_wlan_vendor_attr_get_hw_capability {
1983 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
1984 	/* Antenna isolation
1985 	 * An attribute used in the response.
1986 	 * The content of this attribute is encoded in a byte array. Each byte
1987 	 * value is an antenna isolation value. The array length is the number
1988 	 * of antennas.
1989 	 */
1990 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
1991 	/* Request HW capability
1992 	 * An attribute used in the request.
1993 	 * The content of this attribute is a u32 array for one or more of
1994 	 * hardware capabilities (attribute IDs) that are being requested. Each
1995 	 * u32 value has a value from this
1996 	 * enum qca_wlan_vendor_attr_get_hw_capability
1997 	 * identifying which capabilities are requested.
1998 	 */
1999 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
2000 
2001 	/* keep last */
2002 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
2003 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
2004 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
2005 };
2006 
2007 /**
2008  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
2009  *    offload which is an extension for LL_STATS.
2010  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
2011  *    If MAC counters do not exceed the threshold, FW will report monitored
2012  *    link layer counters periodically as this setting. The first report is
2013  *    always triggered by this timer.
2014  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
2015  *    For each MAC layer counter, FW holds two copies. One is the current value.
2016  *    The other is the last report. Once a current counter's increment is larger
2017  *    than the threshold, FW will indicate that counter to host even if the
2018  *    monitoring timer does not expire.
2019  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
2020  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
2021  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
2022  *    failure code.
2023  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
2024  *    1: TX packet discarded
2025  *    2: No ACK
2026  *    3: Postpone
2027  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
2028  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
2029  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
2030  *    Threshold for all monitored parameters. If per counter dedicated threshold
2031  *    is not enabled, this threshold will take effect.
2032  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
2033  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
2034  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
2035  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
2036  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
2037  *    Bit0: TX counter unit in MSDU
2038  *    Bit1: TX counter unit in MPDU
2039  *    Bit2: TX counter unit in PPDU
2040  *    Bit3: TX counter unit in byte
2041  *    Bit4: Dropped MSDUs
2042  *    Bit5: Dropped Bytes
2043  *    Bit6: MPDU retry counter
2044  *    Bit7: MPDU failure counter
2045  *    Bit8: PPDU failure counter
2046  *    Bit9: MPDU aggregation counter
2047  *    Bit10: MCS counter for ACKed MPDUs
2048  *    Bit11: MCS counter for Failed MPDUs
2049  *    Bit12: TX Delay counter
2050  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
2051  *    Bit0: MAC RX counter unit in MPDU
2052  *    Bit1: MAC RX counter unit in byte
2053  *    Bit2: PHY RX counter unit in PPDU
2054  *    Bit3: PHY RX counter unit in byte
2055  *    Bit4: Disorder counter
2056  *    Bit5: Retry counter
2057  *    Bit6: Duplication counter
2058  *    Bit7: Discard counter
2059  *    Bit8: MPDU aggregation size counter
2060  *    Bit9: MCS counter
2061  *    Bit10: Peer STA power state change (wake to sleep) counter
2062  *    Bit11: Peer STA power save counter, total time in PS mode
2063  *    Bit12: Probe request counter
2064  *    Bit13: Other management frames counter
2065  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
2066  *    Bit0: Idle time
2067  *    Bit1: TX time
2068  *    Bit2: time RX in current bss
2069  *    Bit3: Out of current bss time
2070  *    Bit4: Wireless medium busy time
2071  *    Bit5: RX in bad condition time
2072  *    Bit6: TX in bad condition time
2073  *    Bit7: time wlan card not available
2074  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
2075  *    Bit0: Per channel SNR counter
2076  *    Bit1: Per channel noise floor counter
2077  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
2078  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
2079  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
2080  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
2081  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
2082  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
2083  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
2084  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
2085  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
2086  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
2087  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
2088  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
2089  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
2090  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
2091  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
2092  *    aggregation stats buffer length
2093  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
2094  *    buffer for ACKed MPDUs.
2095  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
2096  *    buffer for failed MPDUs.
2097  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
2098  *    length of delay stats array.
2099  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
2100  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
2101  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
2102  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
2103  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
2104  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
2105  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
2106  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
2107  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
2108  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
2109  *    flagged as retransmissions
2110  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
2111  *    flagged as duplicated
2112  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
2113  *    packets discarded
2114  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
2115  *    stats buffer.
2116  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
2117  *    stats buffer.
2118  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
2119  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
2120  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
2121  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
2122  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
2123  *    requests received
2124  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
2125  *    frames received
2126  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
2127  *    there is no TX, nor RX, nor interference.
2128  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
2129  *    transmitting packets.
2130  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
2131  *    for receiving.
2132  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
2133  *    interference detected.
2134  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
2135  *    receiving packets with errors.
2136  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
2137  *    TX no-ACK.
2138  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
2139  *    the chip is unable to work in normal conditions.
2140  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
2141  *    receiving packets in current BSS.
2142  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
2143  *    receiving packets not in current BSS.
2144  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
2145  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
2146  *    This is a container for per antenna signal stats.
2147  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
2148  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
2149  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
2150  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
2151  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64
2152  *    Absolute timestamp from 1970/1/1, unit in ms. After receiving the
2153  *    message, user layer APP could call gettimeofday to get another
2154  *    timestamp and calculate transfer delay for the message.
2155  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32
2156  *    Real period for this measurement, unit in us.
2157  */
2158 enum qca_wlan_vendor_attr_ll_stats_ext {
2159 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
2160 
2161 	/* Attributes for configurations */
2162 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
2163 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
2164 
2165 	/* Peer STA power state change */
2166 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
2167 
2168 	/* TX failure event */
2169 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
2170 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
2171 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
2172 
2173 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
2174 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
2175 
2176 	/* MAC counters */
2177 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
2178 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
2179 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
2180 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
2181 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
2182 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
2183 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
2184 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
2185 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
2186 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
2187 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
2188 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
2189 
2190 	/* Sub-attributes for PEER_AC_TX */
2191 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
2192 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
2193 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
2194 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
2195 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
2196 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
2197 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
2198 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
2199 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
2200 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
2201 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
2202 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
2203 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
2204 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
2205 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
2206 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
2207 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
2208 
2209 	/* Sub-attributes for PEER_AC_RX */
2210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
2211 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
2212 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
2213 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
2214 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
2215 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
2216 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
2217 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
2218 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
2219 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
2220 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
2221 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
2222 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
2223 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
2224 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
2225 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
2226 
2227 	/* Sub-attributes for CCA_BSS */
2228 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
2229 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
2230 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
2231 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
2232 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
2233 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
2234 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
2235 
2236 	/* sub-attribute for BSS_RX_TIME */
2237 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
2238 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
2239 
2240 	/* Sub-attributes for PEER_SIGNAL */
2241 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
2242 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
2243 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
2244 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
2245 
2246 	/* Sub-attributes for IFACE_BSS */
2247 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
2248 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
2249 
2250 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME,
2251 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME,
2252 
2253 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
2254 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
2255 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
2256 };
2257 
2258 /* Attributes for FTM commands and events */
2259 
2260 /**
2261  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
2262  *
2263  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
2264  *	enum qca_wlan_vendor_attr_loc_capa_flags.
2265  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
2266  *	of measurement sessions that can run concurrently.
2267  *	Default is one session (no session concurrency).
2268  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
2269  *	peers that are supported in running sessions. For example,
2270  *	if the value is 8 and maximum number of sessions is 2, you can
2271  *	have one session with 8 unique peers, or 2 sessions with 4 unique
2272  *	peers each, and so on.
2273  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
2274  *	of bursts per peer, as an exponent (2^value). Default is 0,
2275  *	meaning no multi-burst support.
2276  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
2277  *	of measurement exchanges allowed in a single burst.
2278  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
2279  *	types. A bit mask (unsigned 32 bit value), each bit corresponds
2280  *	to an AOA type as defined by enum qca_vendor_attr_aoa_type.
2281  */
2282 enum qca_wlan_vendor_attr_loc_capa {
2283 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
2284 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
2285 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
2286 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
2287 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
2288 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
2289 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
2290 	/* keep last */
2291 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
2292 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
2293 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
2294 };
2295 
2296 /**
2297  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
2298  *
2299  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
2300  *	can be configured as an FTM responder (for example, an AP that
2301  *	services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
2302  *	will be supported if set.
2303  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
2304  *	can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
2305  *	will be supported if set.
2306  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
2307  *	supports immediate (ASAP) response.
2308  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
2309  *	AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
2310  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
2311  *	requesting AOA measurements as part of an FTM session.
2312  */
2313 enum qca_wlan_vendor_attr_loc_capa_flags {
2314 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
2315 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
2316 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
2317 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
2318 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
2319 };
2320 
2321 /**
2322  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
2323  *	a single peer in a measurement session.
2324  *
2325  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
2326  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
2327  *	to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
2328  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
2329  *	FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
2330  *	9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
2331  *	list of supported attributes.
2332  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
2333  *	secure measurement.
2334  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
2335  *	measurement every <value> bursts. If 0 or not specified,
2336  *	AOA measurements will be disabled for this peer.
2337  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
2338  *	the measurement frames are exchanged. Optional; if not
2339  *	specified, try to locate the peer in the kernel scan
2340  *	results cache and use frequency from there.
2341  */
2342 enum qca_wlan_vendor_attr_ftm_peer_info {
2343 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
2344 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
2345 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
2346 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
2347 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
2348 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
2349 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
2350 	/* keep last */
2351 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
2352 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
2353 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
2354 };
2355 
2356 /**
2357  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
2358  *	per-peer
2359  *
2360  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
2361  *	immediate (ASAP) response from peer.
2362  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
2363  *	LCI report from peer. The LCI report includes the absolute
2364  *	location of the peer in "official" coordinates (similar to GPS).
2365  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
2366  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
2367  *	Location civic report from peer. The LCR includes the location
2368  *	of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
2369  *	11.24.6.7 for more information.
2370  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
2371  *	request a secure measurement.
2372  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
2373  */
2374 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
2375 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP	= 1 << 0,
2376 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI	= 1 << 1,
2377 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR	= 1 << 2,
2378 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE	= 1 << 3,
2379 };
2380 
2381 /**
2382  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
2383  *
2384  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
2385  *	to perform in a single burst.
2386  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
2387  *	perform, specified as an exponent (2^value).
2388  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
2389  *	instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
2390  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
2391  *	as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
2392  *	be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
2393  */
2394 enum qca_wlan_vendor_attr_ftm_meas_param {
2395 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
2396 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
2397 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
2398 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
2399 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
2400 	/* keep last */
2401 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
2402 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
2403 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
2404 };
2405 
2406 /**
2407  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
2408  *
2409  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
2410  *	 peer.
2411  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
2412  *	request for this peer.
2413  *	See enum qca_wlan_vendor_attr_ftm_peer_result_status.
2414  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
2415  *	to measurement results for this peer.
2416  *	See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
2417  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
2418  *	request failed and peer requested not to send an additional request
2419  *	for this number of seconds.
2420  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
2421  *	from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2422  *	9.4.2.22.10.
2423  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
2424  *	received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
2425  *	9.4.2.22.13.
2426  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
2427  *	overridden some measurement request parameters. See
2428  *	enum qca_wlan_vendor_attr_ftm_meas_param.
2429  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
2430  *	for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
2431  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
2432  *	results. Each entry is a nested attribute defined
2433  *	by enum qca_wlan_vendor_attr_ftm_meas.
2434  */
2435 enum qca_wlan_vendor_attr_ftm_peer_result {
2436 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
2437 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
2438 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
2439 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
2440 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
2441 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
2442 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
2443 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
2444 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
2445 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
2446 	/* keep last */
2447 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
2448 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
2449 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
2450 };
2451 
2452 /**
2453  * enum qca_wlan_vendor_attr_ftm_peer_result_status
2454  *
2455  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
2456  *	will be provided. Peer may have overridden some measurement parameters,
2457  *	in which case overridden parameters will be report by
2458  *	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
2459  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
2460  *	of performing the measurement request. No more results will be sent
2461  *	for this peer in this session.
2462  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
2463  *	failed, and requested not to send an additional request for number
2464  *	of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
2465  *	attribute.
2466  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
2467  *	failed. Request was not sent over the air.
2468  */
2469 enum qca_wlan_vendor_attr_ftm_peer_result_status {
2470 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
2471 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
2472 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
2473 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
2474 };
2475 
2476 /**
2477  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
2478  *  for measurement result, per-peer
2479  *
2480  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
2481  *	measurement completed for this peer. No more results will be reported
2482  *	for this peer in this session.
2483  */
2484 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
2485 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
2486 };
2487 
2488 /**
2489  * enum qca_vendor_attr_loc_session_status: Session completion status code
2490  *
2491  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
2492  *	successfully.
2493  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
2494  *	by request.
2495  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
2496  *	was invalid and was not started.
2497  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
2498  *	and did not complete normally (for example out of resources).
2499  */
2500 enum qca_vendor_attr_loc_session_status {
2501 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
2502 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
2503 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
2504 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
2505 };
2506 
2507 /**
2508  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
2509  *
2510  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
2511  *	recorded by responder, in picoseconds.
2512  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2513  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
2514  *	initiator, in picoseconds.
2515  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2516  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
2517  *	initiator, in picoseconds.
2518  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2519  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
2520  *	responder, in picoseconds.
2521  *	See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
2522  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
2523  *	during this measurement exchange. Optional and will be provided if
2524  *	the hardware can measure it.
2525  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
2526  *	responder. Not always provided.
2527  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2528  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
2529  *	responder. Not always provided.
2530  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2531  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
2532  *	initiator. Not always provided.
2533  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2534  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
2535  *	initiator. Not always provided.
2536  *	See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
2537  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
2538  */
2539 enum qca_wlan_vendor_attr_ftm_meas {
2540 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
2541 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
2542 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
2543 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
2544 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
2545 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
2546 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
2547 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
2548 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
2549 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
2550 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
2551 	/* keep last */
2552 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
2553 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
2554 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
2555 };
2556 
2557 /**
2558  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
2559  *
2560  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
2561  *	CIR (channel impulse response) path for each antenna.
2562  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
2563  *	of the strongest CIR path for each antenna.
2564  */
2565 enum qca_wlan_vendor_attr_aoa_type {
2566 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
2567 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
2568 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
2569 };
2570 
2571 /**
2572  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
2573  * validate encryption engine
2574  *
2575  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
2576  *	This will be included if the request is for decryption; if not included,
2577  *	the request is treated as a request for encryption by default.
2578  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
2579  *	indicating the key cipher suite. Takes same values as
2580  *	NL80211_ATTR_KEY_CIPHER.
2581  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
2582  *	Key Id to be used for encryption
2583  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
2584  *	Key (TK) to be used for encryption/decryption
2585  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
2586  *	Packet number to be specified for encryption/decryption
2587  *	6 bytes for TKIP/CCMP/GCMP.
2588  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
2589  *	representing the 802.11 packet (header + payload + FCS) that
2590  *	needs to be encrypted/decrypted.
2591  *	Encrypted/decrypted response from the driver will also be sent
2592  *	to userspace with the same attribute.
2593  */
2594 enum qca_wlan_vendor_attr_encryption_test {
2595 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
2596 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
2597 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
2598 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
2599 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
2600 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
2601 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
2602 
2603 	/* keep last */
2604 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
2605 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
2606 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
2607 };
2608 
2609 /**
2610  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
2611  * sector for DMG RF sector operations.
2612  *
2613  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
2614  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
2615  */
2616 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
2617 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
2618 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
2619 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
2620 };
2621 
2622 /**
2623  * enum qca_wlan_vendor_attr_fw_state - State of firmware
2624  *
2625  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
2626  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
2627  */
2628 enum qca_wlan_vendor_attr_fw_state {
2629 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
2630 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
2631 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
2632 };
2633 
2634 /**
2635  * BRP antenna limit mode
2636  *
2637  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
2638  *	antenna limit, BRP will be performed as usual.
2639  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
2640  *	antennas limit. the hardware may use less antennas than the
2641  *	maximum limit.
2642  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
2643  *	use exactly the specified number of antennas for BRP.
2644  */
2645 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
2646 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
2647 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
2648 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
2649 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
2650 };
2651 
2652 /**
2653  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
2654  * DMG RF sector configuration for a single RF module.
2655  * The values are defined in a compact way which closely matches
2656  * the way it is stored in HW registers.
2657  * The configuration provides values for 32 antennas and 8 distribution
2658  * amplifiers, and together describes the characteristics of the RF
2659  * sector - such as a beam in some direction with some gain.
2660  *
2661  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
2662  *	of RF module for this configuration.
2663  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
2664  *	amplifier gain index. Unsigned 32 bit number containing
2665  *	bits for all 32 antennas.
2666  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
2667  *	amplifier gain index. Unsigned 32 bit number containing
2668  *	bits for all 32 antennas.
2669  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
2670  *	amplifier gain index. Unsigned 32 bit number containing
2671  *	bits for all 32 antennas.
2672  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
2673  *	for first 16 antennas, 2 bits per antenna.
2674  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
2675  *	for last 16 antennas, 2 bits per antenna.
2676  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
2677  *	DTYPE values (3 bits) for each distribution amplifier, followed
2678  *	by X16 switch bits for each distribution amplifier. There are
2679  *	total of 8 distribution amplifiers.
2680  */
2681 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
2682 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
2683 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
2684 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
2685 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
2686 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
2687 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
2688 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
2689 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
2690 
2691 	/* keep last */
2692 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
2693 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
2694 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
2695 };
2696 
2697 enum qca_wlan_vendor_attr_ll_stats_set {
2698 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2699 	/* Unsigned 32-bit value */
2700 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2701 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2702 	/* keep last */
2703 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2704 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2705 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2706 };
2707 
2708 enum qca_wlan_vendor_attr_ll_stats_clr {
2709 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2710 	/* Unsigned 32bit bitmap for clearing statistics
2711 	 * All radio statistics                     0x00000001
2712 	 * cca_busy_time (within radio statistics)  0x00000002
2713 	 * All channel stats (within radio statistics) 0x00000004
2714 	 * All scan statistics (within radio statistics) 0x00000008
2715 	 * All interface statistics                     0x00000010
2716 	 * All tx rate statistics (within interface statistics) 0x00000020
2717 	 * All ac statistics (with in interface statistics) 0x00000040
2718 	 * All contention (min, max, avg) statistics (within ac statisctics)
2719 	 * 0x00000080.
2720 	 */
2721 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2722 	/* Unsigned 8 bit value: Request to stop statistics collection */
2723 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2724 
2725 	/* Unsigned 32 bit bitmap: Response from the driver
2726 	 * for the cleared statistics
2727 	 */
2728 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2729 	/* Unsigned 8 bit value: Response from driver/firmware
2730 	 * for the stop request
2731 	 */
2732 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2733 	/* keep last */
2734 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2735 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2736 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2737 };
2738 
2739 enum qca_wlan_vendor_attr_ll_stats_get {
2740 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2741 	/* Unsigned 32 bit value provided by the caller issuing the GET stats
2742 	 * command. When reporting the stats results, the driver uses the same
2743 	 * value to indicate which GET request the results correspond to.
2744 	 */
2745 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2746 	/* Unsigned 32 bit value - bit mask to identify what statistics are
2747 	 * requested for retrieval.
2748 	 * Radio Statistics 0x00000001
2749 	 * Interface Statistics 0x00000020
2750 	 * All Peer Statistics 0x00000040
2751 	 * Peer Statistics     0x00000080
2752 	 */
2753 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2754 	/* keep last */
2755 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2756 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2757 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2758 };
2759 
2760 enum qca_wlan_vendor_attr_ll_stats_results {
2761 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2762 	/* Unsigned 32bit value. Used by the driver; must match the request id
2763 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2764 	 */
2765 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2766 
2767 	/* Unsigned 32 bit value */
2768 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2769 	/* Unsigned 32 bit value */
2770 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2771 	/* Unsigned 32 bit value */
2772 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2773 	/* Unsigned 32 bit value */
2774 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2775 	/* Signed 32 bit value */
2776 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2777 	/* Signed 32 bit value */
2778 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2779 	/* Signed 32 bit value */
2780 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2781 
2782 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2783 	 * nested within the interface stats.
2784 	 */
2785 
2786 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2787 	 * Type = enum wifi_interface_mode.
2788 	 */
2789 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2790 	/* Interface MAC address. An array of 6 Unsigned int8 */
2791 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2792 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2793 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2794 	 */
2795 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2796 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2797 	 */
2798 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2799 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2800 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2801 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2802 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2803 	/* BSSID. An array of 6 unsigned 8 bit values */
2804 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2805 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2806 	 * values.
2807 	 */
2808 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2809 	/* Country string for this association. An array of 3 unsigned 8 bit
2810 	 * values.
2811 	 */
2812 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2813 
2814 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2815 	 * be nested within the interface stats.
2816 	 */
2817 
2818 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2819 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2820 	/* Unsigned int 32 value corresponding to respective AC */
2821 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2822 	/* Unsigned int 32 value corresponding to respective AC */
2823 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2824 	/* Unsigned int 32 value corresponding to respective AC */
2825 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2826 	/* Unsigned int 32 value corresponding to respective AC */
2827 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2828 	/* Unsigned int 32 value corresponding to respective AC */
2829 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2830 	/* Unsigned int 32 value corresponding to respective AC */
2831 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2832 	/* Unsigned int 32 value corresponding to respective AC */
2833 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2834 	/* Unsigned int 32 value corresponding to respective AC */
2835 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2836 	/* Unsigned int 32 value corresponding to respective AC  */
2837 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2838 	/* Unsigned int 32 values corresponding to respective AC */
2839 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2840 	/* Unsigned int 32 values corresponding to respective AC */
2841 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2842 	/* Unsigned int 32 values corresponding to respective AC */
2843 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2844 	/* Unsigned int 32 values corresponding to respective AC */
2845 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2846 	/* Unsigned int 32 values corresponding to respective AC */
2847 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2848 	/* Unsigned 32 bit value. Number of peers */
2849 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2850 
2851 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2852 	 * nested within the interface stats.
2853 	 */
2854 
2855 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2856 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2857 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2858 	 * 8 bit values.
2859 	 */
2860 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2861 	/* Unsigned int 32 bit value representing capabilities corresponding
2862 	 * to respective peer.
2863 	 */
2864 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2865 	/* Unsigned 32 bit value. Number of rates */
2866 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2867 
2868 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2869 	 * are nested within the rate stat.
2870 	 */
2871 
2872 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2873 
2874 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2875 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2876 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2877 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2878 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2879 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2880 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2881 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2882 	 */
2883 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2884 
2885 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2886 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2887 
2888 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2889 	 * nested within the peer info stats.
2890 	 */
2891 
2892 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2893 	 * packets, i.e., with ACK received corresponding to the respective
2894 	 * rate.
2895 	 */
2896 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2897 	/* Unsigned int 32 bit value. Number of received data packets
2898 	 * corresponding to the respective rate.
2899 	 */
2900 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2901 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2902 	 * received corresponding to the respective rate.
2903 	 */
2904 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2905 	/* Unsigned int 32 bit value. Total number of data packet retries for
2906 	 * the respective rate.
2907 	 */
2908 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2909 	/* Unsigned int 32 bit value. Total number of short data packet retries
2910 	 * for the respective rate.
2911 	 */
2912 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2913 	/* Unsigned int 32 bit value. Total number of long data packet retries
2914 	 * for the respective rate.
2915 	 */
2916 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2917 
2918 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2919 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2920 	 * accruing over time.
2921 	 */
2922 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2923 	/* Unsigned 32 bit value. Total number of msecs the radio is
2924 	 * transmitting accruing over time.
2925 	 */
2926 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2927 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2928 	 * receive accruing over time.
2929 	 */
2930 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2931 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2932 	 * to all scan accruing over time.
2933 	 */
2934 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2935 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2936 	 * to NAN accruing over time.
2937 	 */
2938 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2939 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2940 	 * to GSCAN accruing over time.
2941 	 */
2942 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2943 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2944 	 * to roam scan accruing over time.
2945 	 */
2946 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2947 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2948 	 * to PNO scan accruing over time.
2949 	 */
2950 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2951 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2952 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2953 	 */
2954 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2955 	/* Unsigned 32 bit value. Number of channels. */
2956 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2957 
2958 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2959 	 * be nested within the channel stats.
2960 	 */
2961 
2962 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2963 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2964 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2965 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2966 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2967 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2968 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2969 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2970 
2971 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2972 	 * nested within the radio stats.
2973 	 */
2974 
2975 	/* Unsigned int 32 bit value representing total number of msecs the
2976 	 * radio is awake on that channel accruing over time, corresponding to
2977 	 * the respective channel.
2978 	 */
2979 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2980 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2981 	 * register is busy accruing over time corresponding to the respective
2982 	 * channel.
2983 	 */
2984 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2985 
2986 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2987 
2988 	/* Signifies the nested list of channel attributes
2989 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
2990 	 */
2991 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2992 
2993 	/* Signifies the nested list of peer info attributes
2994 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2995 	 */
2996 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2997 
2998 	/* Signifies the nested list of rate info attributes
2999 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
3000 	 */
3001 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
3002 
3003 	/* Signifies the nested list of wmm info attributes
3004 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
3005 	 */
3006 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
3007 
3008 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
3009 	 * that more stats, e.g., peers or radio, are to follow in the next
3010 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
3011 	 * Otherwise, it is set to 0.
3012 	 */
3013 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
3014 
3015 	/* Unsigned 64 bit value */
3016 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
3017 
3018 	/* Unsigned 32 bit value */
3019 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
3020 
3021 	/* Unsigned 32 bit value */
3022 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
3023 
3024 	/* Unsigned 32 bit value */
3025 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
3026 
3027 	/* Unsigned 32 bit value */
3028 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
3029 
3030 	/* Unsigned 32 bit value */
3031 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
3032 
3033 	/* Number of msecs the radio spent in transmitting for each power level
3034 	 */
3035 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
3036 
3037 	/* Unsigned 32 bit value */
3038 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
3039 	/* Unsigned 32 bit value */
3040 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
3041 	/* Unsigned 32 bit value */
3042 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
3043 	/* Unsigned 32 bit value */
3044 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
3045 
3046 	/* Unsigned int 32 value.
3047 	 * Pending MSDUs corresponding to respective AC.
3048 	 */
3049 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
3050 
3051 	/* keep last */
3052 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
3053 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
3054 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
3055 };
3056 
3057 enum qca_wlan_vendor_attr_ll_stats_type {
3058 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
3059 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
3060 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
3061 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
3062 
3063 	/* keep last */
3064 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
3065 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
3066 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
3067 };
3068 
3069 /**
3070  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
3071  * TDLS configuration to the host driver.
3072  *
3073  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
3074  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
3075  *	represents the different TDLS trigger modes.
3076  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
3077  *      which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
3078  *      of packets shall meet the criteria for implicit TDLS setup.
3079  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
3080  *      within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
3081  *      to initiate a TDLS setup.
3082  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
3083  *      a TDLS Discovery to the peer.
3084  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
3085  *      discovery attempts to know the TDLS capability of the peer. A peer is
3086  *      marked as TDLS not capable if there is no response for all the attempts.
3087  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
3088  *      within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
3089  *      number of TX / RX frames meet the criteria for TDLS teardown.
3090  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
3091  *      of Tx/Rx packets within a duration
3092  *      QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
3093  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
3094  *	corresponding to the RSSI of the peer below which a TDLS setup is
3095  *	triggered.
3096  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
3097  *	corresponding to the RSSI of the peer above which a TDLS teardown is
3098  *	triggered.
3099  */
3100 enum qca_wlan_vendor_attr_tdls_configuration {
3101 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
3102 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
3103 
3104 	/* Attributes configuring the TDLS Implicit Trigger */
3105 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
3106 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
3107 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
3108 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
3109 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
3110 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
3111 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
3112 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
3113 
3114 	/* keep last */
3115 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
3116 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
3117 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
3118 };
3119 
3120 /**
3121  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
3122  *	the driver
3123  *
3124  * The following are the different values for
3125  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
3126  *
3127  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
3128  *	the TDLS connection to a respective peer comes from the user space.
3129  *	wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
3130  *	TDLS_DISCOVER to do this.
3131  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
3132  *	setup/teardown to the eligible peer once the configured criteria
3133  *	(such as TX/RX threshold, RSSI) is met. The attributes
3134  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
3135  *	the different configuration criteria for the TDLS trigger from the
3136  *	host driver.
3137  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
3138  *	the TDLS setup / teardown through the implicit mode only to the
3139  *	configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
3140  *	configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
3141  *	External mode works on top of the implicit mode. Thus the host driver
3142  *	is expected to configure in TDLS Implicit mode too to operate in
3143  *	External mode.
3144  *	Configuring External mode alone without	Implicit mode is invalid.
3145  *
3146  * All the above implementations work as expected only when the host driver
3147  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
3148  * that the TDLS message exchange is not internal to the host driver, but
3149  * depends on wpa_supplicant to do the message exchange.
3150  */
3151 enum qca_wlan_vendor_tdls_trigger_mode {
3152 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
3153 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
3154 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
3155 };
3156 
3157 /**
3158  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
3159  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
3160  *	that is hard-coded in the Board Data File (BDF).
3161  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
3162  *	that is hard-coded in the Board Data File (BDF).
3163  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
3164  *	that is hard-coded in the Board Data File (BDF).
3165  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
3166  *	that is hard-coded in the Board Data File (BDF).
3167  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
3168  *	that is hard-coded in the Board Data File (BDF).
3169  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
3170  *	source of SAR power limits, thereby disabling the SAR power
3171  *	limit feature.
3172  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
3173  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
3174  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
3175  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
3176  *
3177  * This enumerates the valid set of values that may be supplied for
3178  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
3179  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
3180  * the response to an instance of the
3181  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
3182  */
3183 enum qca_vendor_attr_sar_limits_selections {
3184 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
3185 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
3186 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
3187 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
3188 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
3189 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
3190 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
3191 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
3192 };
3193 
3194 /**
3195  * enum qca_vendor_attr_sar_limits_spec_modulations -
3196  *	SAR limits specification modulation
3197  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
3198  *	CCK modulation
3199  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
3200  *	OFDM modulation
3201  *
3202  * This enumerates the valid set of values that may be supplied for
3203  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
3204  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
3205  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
3206  * command or in the response to an instance of the
3207  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
3208  */
3209 enum qca_vendor_attr_sar_limits_spec_modulations {
3210 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
3211 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
3212 };
3213 
3214 /**
3215  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
3216  *
3217  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
3218  *	select which SAR power limit table should be used. Valid
3219  *	values are enumerated in enum
3220  *	%qca_vendor_attr_sar_limits_selections. The existing SAR
3221  *	power limit selection is unchanged if this attribute is not
3222  *	present.
3223  *
3224  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
3225  *	which specifies the number of SAR power limit specifications
3226  *	which will follow.
3227  *
3228  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
3229  *	limit specifications. The number of specifications is
3230  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
3231  *	specification contains a set of
3232  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
3233  *	specification is uniquely identified by the attributes
3234  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
3235  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
3236  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
3237  *	contains as a payload the attribute
3238  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT,
3239  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
3240  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
3241  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
3242  *	needed based upon the value of
3243  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
3244  *
3245  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
3246  *	indicate for which band this specification applies. Valid
3247  *	values are enumerated in enum %nl80211_band (although not all
3248  *	bands may be supported by a given device). If the attribute is
3249  *	not supplied then the specification will be applied to all
3250  *	supported bands.
3251  *
3252  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
3253  *	to indicate for which antenna chain this specification
3254  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
3255  *	attribute is not supplied then the specification will be
3256  *	applied to all chains.
3257  *
3258  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
3259  *	value to indicate for which modulation scheme this
3260  *	specification applies. Valid values are enumerated in enum
3261  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
3262  *	is not supplied then the specification will be applied to all
3263  *	modulation schemes.
3264  *
3265  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
3266  *	value to specify the actual power limit value in units of 0.5
3267  *	dBm (i.e., a value of 11 represents 5.5 dBm).
3268  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3269  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
3270  *
3271  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
3272  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
3273  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
3274  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
3275  *
3276  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
3277  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
3278  */
3279 enum qca_vendor_attr_sar_limits {
3280 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
3281 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
3282 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
3283 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
3284 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
3285 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
3286 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
3287 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
3288 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
3289 
3290 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
3291 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
3292 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
3293 };
3294 
3295 /**
3296  * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
3297  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
3298  *
3299  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute
3300  *	should be set to any U8 value to indicate that the driver version
3301  *	should be returned. When enabled in this manner, in a response this
3302  *	attribute will contain a string representation of the driver version.
3303  *
3304  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute
3305  *	should be set to any U8 value to indicate that the firmware version
3306  *	should be returned. When enabled in this manner, in a response this
3307  *	attribute will contain a string representation of the firmware version.
3308  *
3309  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute
3310  *	should be set to any U32 value to indicate that the current radio
3311  *	index should be returned. When enabled in this manner, in a response
3312  *	this attribute will contain a U32 radio index value.
3313  *
3314  */
3315 enum qca_wlan_vendor_attr_get_wifi_info {
3316 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3317 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
3318 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
3319 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
3320 
3321 	/* keep last */
3322 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3323 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
3324 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3325 };
3326 
3327 /*
3328  * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
3329  * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
3330  */
3331 enum qca_wlan_vendor_attr_wifi_logger_start {
3332 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
3333 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
3334 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
3335 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
3336 
3337 	/* keep last */
3338 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
3339 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
3340 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
3341 };
3342 
3343 enum qca_wlan_vendor_attr_logger_results {
3344 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3345 
3346 	/* Unsigned 32-bit value; must match the request Id supplied by
3347 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3348 	 */
3349 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3350 
3351 	/* Unsigned 32-bit value; used to indicate the size of memory
3352 	 * dump to be allocated.
3353 	 */
3354 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3355 
3356 	/* keep last */
3357 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3358 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3359 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3360 };
3361 
3362 enum qca_wlan_vendor_attr_roaming_config_params {
3363 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3364 
3365 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3366 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3367 
3368 	/* Attributes for wifi_set_ssid_white_list */
3369 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3370 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3371 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3372 
3373 	/* Attributes for set_roam_params */
3374 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3375 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3376 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3377 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3378 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3379 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3380 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3381 
3382 	/* Attribute for set_lazy_roam */
3383 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3384 
3385 	/* Attribute for set_lazy_roam with preferences */
3386 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3387 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3388 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3389 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3390 
3391 	/* Attribute for set_blacklist bssid params */
3392 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3393 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3394 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3395 	/* Flag attribute indicates this BSSID blacklist as a hint */
3396 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3397 
3398 	/* keep last */
3399 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3400 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3401 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3402 };
3403 
3404 /*
3405  * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
3406  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3407  */
3408 enum qca_wlan_vendor_attr_roam_subcmd {
3409 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0,
3410 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1,
3411 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
3412 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3,
3413 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4,
3414 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5,
3415 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6,
3416 
3417 	/* keep last */
3418 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST,
3419 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX =
3420 	QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1,
3421 };
3422 
3423 enum qca_wlan_vendor_attr_gscan_config_params {
3424 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
3425 
3426 	/* Unsigned 32-bit value */
3427 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
3428 
3429 	/* Attributes for data used by
3430 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
3431 	 */
3432 	/* Unsigned 32-bit value */
3433 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
3434 	= 2,
3435 	/* Unsigned 32-bit value */
3436 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
3437 	= 3,
3438 
3439 	/* Attributes for input params used by
3440 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
3441 	 */
3442 
3443 	/* Unsigned 32-bit value; channel frequency */
3444 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
3445 	/* Unsigned 32-bit value; dwell time in ms. */
3446 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
3447 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
3448 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
3449 	/* Unsigned 8-bit value; channel class */
3450 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
3451 
3452 	/* Unsigned 8-bit value; bucket index, 0 based */
3453 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
3454 	/* Unsigned 8-bit value; band. */
3455 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
3456 	/* Unsigned 32-bit value; desired period, in ms. */
3457 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
3458 	/* Unsigned 8-bit value; report events semantics. */
3459 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
3460 	/* Unsigned 32-bit value. Followed by a nested array of
3461 	 * GSCAN_CHANNEL_SPEC_* attributes.
3462 	 */
3463 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
3464 
3465 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
3466 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3467 	 */
3468 	QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
3469 
3470 	/* Unsigned 32-bit value; base timer period in ms. */
3471 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
3472 	/* Unsigned 32-bit value; number of APs to store in each scan in the
3473 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
3474 	 */
3475 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
3476 	/* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
3477 	 * up AP.
3478 	 */
3479 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
3480 	= 16,
3481 
3482 	/* Unsigned 8-bit value; number of scan bucket specs; followed by a
3483 	 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
3484 	 * of the array is determined by NUM_BUCKETS.
3485 	 */
3486 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
3487 
3488 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
3489 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
3490 	 */
3491 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
3492 
3493 	/* Unsigned 8-bit value */
3494 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
3495 	= 19,
3496 	/* Unsigned 32-bit value; maximum number of results to be returned. */
3497 	QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
3498 	= 20,
3499 
3500 	/* An array of 6 x unsigned 8-bit value */
3501 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
3502 	/* Signed 32-bit value */
3503 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
3504 	/* Signed 32-bit value */
3505 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
3506 	/* Unsigned 32-bit value */
3507 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
3508 
3509 	/* Number of hotlist APs as unsigned 32-bit value, followed by a nested
3510 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
3511 	 * array is determined by NUM_AP.
3512 	 */
3513 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
3514 
3515 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
3516 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
3517 	 */
3518 	QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
3519 
3520 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
3521 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
3522 	= 27,
3523 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
3524 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
3525 	= 28,
3526 	/* Unsigned 32-bit value; number of APs breaching threshold. */
3527 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
3528 	/* Unsigned 32-bit value; number of APs. Followed by an array of
3529 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
3530 	 */
3531 	QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
3532 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
3533 	QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
3534 	= 31,
3535 	/* Unsigned 32-bit value. If max_period is non zero or different than
3536 	 * period, then this bucket is an exponential backoff bucket.
3537 	 */
3538 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
3539 	/* Unsigned 32-bit value. */
3540 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
3541 	/* Unsigned 32-bit value. For exponential back off bucket, number of
3542 	 * scans to perform for a given period.
3543 	 */
3544 	QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
3545 	/* Unsigned 8-bit value; in number of scans, wake up AP after these
3546 	 * many scans.
3547 	 */
3548 	QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
3549 	= 35,
3550 
3551 	/* Attributes for data used by
3552 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
3553 	 */
3554 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
3555 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
3556 	= 36,
3557 	/* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
3558 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
3559 	 * size of the array is determined by NUM_SSID.
3560 	 */
3561 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
3562 	/* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
3563 	 * attributes.
3564 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
3565 	 */
3566 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
3567 
3568 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3569 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
3570 	/* Unsigned 8-bit value */
3571 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
3572 	/* Signed 32-bit value */
3573 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
3574 	/* Signed 32-bit value */
3575 	QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
3576 	/* Unsigned 32-bit value; a bitmask with additional gscan config flag.
3577 	 */
3578 	QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
3579 
3580 	/* keep last */
3581 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
3582 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
3583 	QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
3584 };
3585 
3586 enum qca_wlan_vendor_attr_gscan_results {
3587 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
3588 
3589 	/* Unsigned 32-bit value; must match the request Id supplied by
3590 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3591 	 */
3592 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
3593 
3594 	/* Unsigned 32-bit value; used to indicate the status response from
3595 	 * firmware/driver for the vendor sub-command.
3596 	 */
3597 	QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
3598 
3599 	/* GSCAN Valid Channels attributes */
3600 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
3601 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
3602 	/* An array of NUM_CHANNELS x unsigned 32-bit value integers
3603 	 * representing channel numbers.
3604 	 */
3605 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
3606 
3607 	/* GSCAN Capabilities attributes */
3608 	/* Unsigned 32-bit value */
3609 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
3610 	/* Unsigned 32-bit value */
3611 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
3612 	/* Unsigned 32-bit value */
3613 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
3614 	= 7,
3615 	/* Unsigned 32-bit value */
3616 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
3617 	= 8,
3618 	/* Signed 32-bit value */
3619 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
3620 	= 9,
3621 	/* Unsigned 32-bit value */
3622 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
3623 	/* Unsigned 32-bit value */
3624 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
3625 	= 11,
3626 	/* Unsigned 32-bit value */
3627 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
3628 	= 12,
3629 
3630 	/* GSCAN Attributes used with
3631 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
3632 	 */
3633 
3634 	/* Unsigned 32-bit value */
3635 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
3636 
3637 	/* GSCAN attributes used with
3638 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
3639 	 */
3640 
3641 	/* An array of NUM_RESULTS_AVAILABLE x
3642 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
3643 	 */
3644 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
3645 
3646 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
3647 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
3648 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
3649 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
3650 	/* An array of 6 x unsigned 8-bit value */
3651 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
3652 	/* Unsigned 32-bit value; channel frequency in MHz */
3653 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
3654 	/* Signed 32-bit value */
3655 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
3656 	/* Unsigned 32-bit value */
3657 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
3658 	/* Unsigned 32-bit value */
3659 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
3660 	/* Unsigned 16-bit value */
3661 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
3662 	/* Unsigned 16-bit value */
3663 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
3664 	/* Unsigned 32-bit value; size of the IE DATA blob */
3665 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
3666 	/* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
3667 	 * information elements found in the beacon; this data should be a
3668 	 * packed list of wifi_information_element objects, one after the
3669 	 * other.
3670 	 */
3671 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
3672 
3673 	/* Unsigned 8-bit value; set by driver to indicate more scan results are
3674 	 * available.
3675 	 */
3676 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
3677 
3678 	/* GSCAN attributes for
3679 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
3680 	 */
3681 	/* Unsigned 8-bit value */
3682 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
3683 	/* Unsigned 32-bit value */
3684 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
3685 
3686 	/* GSCAN attributes for
3687 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
3688 	 */
3689 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3690 	 * to indicate number of results.
3691 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3692 	 * list of results.
3693 	 */
3694 
3695 	/* GSCAN attributes for
3696 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
3697 	 */
3698 	/* An array of 6 x unsigned 8-bit value */
3699 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
3700 	/* Unsigned 32-bit value */
3701 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
3702 	= 30,
3703 	/* Unsigned 32-bit value. */
3704 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
3705 	= 31,
3706 	/* A nested array of signed 32-bit RSSI values. Size of the array is
3707 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
3708 	 */
3709 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
3710 	= 32,
3711 
3712 	/* GSCAN attributes used with
3713 	 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
3714 	 */
3715 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3716 	 * to indicate number of gscan cached results returned.
3717 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
3718 	 *  the list of gscan cached results.
3719 	 */
3720 
3721 	/* An array of NUM_RESULTS_AVAILABLE x
3722 	 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
3723 	 */
3724 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
3725 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
3726 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
3727 	/* Unsigned 32-bit value; a bitmask w/additional information about scan.
3728 	 */
3729 	QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
3730 	/* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
3731 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
3732 	 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
3733 	 * list of wifi scan results returned for each cached result block.
3734 	 */
3735 
3736 	/* GSCAN attributes for
3737 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
3738 	 */
3739 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
3740 	 * number of results.
3741 	 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3742 	 * list of wifi scan results returned for each
3743 	 * wifi_passpoint_match_result block.
3744 	 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
3745 	 */
3746 
3747 	/* GSCAN attributes for
3748 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
3749 	 */
3750 	/* Unsigned 32-bit value */
3751 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
3752 	= 36,
3753 	/* A nested array of
3754 	 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
3755 	 * attributes. Array size =
3756 	 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
3757 	 */
3758 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
3759 
3760 	/* Unsigned 32-bit value; network block id for the matched network */
3761 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
3762 	/* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
3763 	 * list of wifi scan results returned for each
3764 	 * wifi_passpoint_match_result block.
3765 	 */
3766 	/* Unsigned 32-bit value */
3767 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
3768 	/* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
3769 	 * ANQP data in the information_element format.
3770 	 */
3771 	QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
3772 
3773 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3774 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
3775 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3776 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
3777 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3778 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
3779 	= 43,
3780 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
3781 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
3782 	= 44,
3783 
3784 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
3785 
3786 	/* Unsigned 32-bit value; a GSCAN Capabilities attribute.
3787 	 * This is used to limit the maximum number of BSSIDs while sending
3788 	 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with attributes
3789 	 * QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID and
3790 	 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID.
3791 	 */
3792 	QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
3793 
3794 	/* keep last */
3795 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
3796 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
3797 	QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
3798 };
3799 
3800 enum qca_wlan_vendor_attr_pno_config_params {
3801 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3802 	/* Attributes for data used by
3803 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3804 	 */
3805 	/* Unsigned 32-bit value */
3806 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3807 	/* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3808 	 * attributes. Array size =
3809 	 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3810 	 */
3811 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3812 
3813 	/* Unsigned 32-bit value */
3814 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3815 	/* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
3816 	 * realm, 0 if unspecified.
3817 	 */
3818 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3819 	/* An array of 16 x unsigned 32-bit value; roaming consortium ids to
3820 	 * match, 0 if unspecified.
3821 	 */
3822 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3823 	/* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
3824 	 * unspecified.
3825 	 */
3826 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3827 
3828 	/* Attributes for data used by
3829 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3830 	 */
3831 	/* Unsigned 32-bit value */
3832 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3833 	/* Array of nested
3834 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3835 	 * attributes. Array size =
3836 	 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
3837 	 */
3838 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3839 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
3840 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3841 	/* Signed 8-bit value; threshold for considering this SSID as found,
3842 	 * required granularity for this threshold is 4 dBm to 8 dBm.
3843 	 */
3844 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
3845 	= 10,
3846 	/* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
3847 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3848 	/* Unsigned 8-bit value; auth bit field for matching WPA IE */
3849 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3850 	/* Unsigned 8-bit to indicate ePNO type;
3851 	 * It takes values from qca_wlan_epno_type
3852 	 */
3853 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3854 
3855 	/* Nested attribute to send the channel list */
3856 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3857 
3858 	/* Unsigned 32-bit value; indicates the interval between PNO scan
3859 	 * cycles in msec.
3860 	 */
3861 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3862 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3863 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3864 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3865 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3866 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3867 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3868 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3869 	/* Unsigned 32-bit value, representing the PNO Request ID */
3870 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3871 
3872 	/* keep last */
3873 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3874 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3875 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3876 };
3877 
3878 /**
3879  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
3880  * the ACS has to be triggered. These values are used by
3881  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
3882  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
3883  */
3884 enum qca_wlan_vendor_acs_select_reason {
3885 	/* Represents the reason that the ACS triggered during the AP start */
3886 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
3887 	/* Represents the reason that DFS found with the current channel */
3888 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
3889 	/* Represents the reason that LTE co-exist in the current band. */
3890 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
3891 };
3892 
3893 /**
3894  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
3895  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
3896  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
3897  * external ACS policies to select the channels w.r.t. the PCL weights.
3898  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
3899  * their PCL weights.)
3900  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
3901  * select a channel with non-zero PCL weight.
3902  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
3903  * channel with non-zero PCL weight.
3904  *
3905  */
3906 enum qca_wlan_vendor_attr_external_acs_policy {
3907 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
3908 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
3909 };
3910 
3911 /**
3912  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3913  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3914  */
3915 enum qca_wlan_vendor_channel_prop_flags {
3916 	/* Bits 0, 1, 2, and 3 are reserved */
3917 
3918 	/* Turbo channel */
3919 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3920 	/* CCK channel */
3921 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3922 	/* OFDM channel */
3923 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3924 	/* 2.4 GHz spectrum channel. */
3925 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3926 	/* 5 GHz spectrum channel */
3927 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3928 	/* Only passive scan allowed */
3929 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3930 	/* Dynamic CCK-OFDM channel */
3931 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3932 	/* GFSK channel (FHSS PHY) */
3933 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3934 	/* Radar found on channel */
3935 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3936 	/* 11a static turbo channel only */
3937 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3938 	/* Half rate channel */
3939 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3940 	/* Quarter rate channel */
3941 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3942 	/* HT 20 channel */
3943 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3944 	/* HT 40 with extension channel above */
3945 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3946 	/* HT 40 with extension channel below */
3947 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3948 	/* HT 40 intolerant */
3949 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3950 	/* VHT 20 channel */
3951 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3952 	/* VHT 40 with extension channel above */
3953 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3954 	/* VHT 40 with extension channel below */
3955 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3956 	/* VHT 80 channel */
3957 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3958 	/* HT 40 intolerant mark bit for ACS use */
3959 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3960 	/* Channel temporarily blocked due to noise */
3961 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3962 	/* VHT 160 channel */
3963 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3964 	/* VHT 80+80 channel */
3965 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3966 	/* HE 20 channel */
3967 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3968 	/* HE 40 with extension channel above */
3969 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3970 	/* HE 40 with extension channel below */
3971 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3972 	/* HE 40 intolerant */
3973 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1 << 31,
3974 };
3975 
3976 /**
3977  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3978  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3979  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3980  */
3981 enum qca_wlan_vendor_channel_prop_flags_2 {
3982 	/* HE 40 intolerant mark bit for ACS use */
3983 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3984 	/* HE 80 channel */
3985 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3986 	/* HE 160 channel */
3987 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3988 	/* HE 80+80 channel */
3989 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3990 };
3991 
3992 /**
3993  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3994  * each channel. This is used by
3995  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3996  */
3997 enum qca_wlan_vendor_channel_prop_flags_ext {
3998 	/* Radar found on channel */
3999 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
4000 	/* DFS required on channel */
4001 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
4002 	/* DFS required on channel for 2nd band of 80+80 */
4003 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
4004 	/* If channel has been checked for DFS */
4005 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
4006 	/* Excluded in 802.11d */
4007 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
4008 	/* Channel Switch Announcement received on this channel */
4009 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
4010 	/* Ad-hoc is not allowed */
4011 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
4012 	/* Station only channel */
4013 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
4014 	/* DFS radar history for slave device (STA mode) */
4015 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
4016 	/* DFS CAC valid for slave device (STA mode) */
4017 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
4018 };
4019 
4020 /**
4021  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
4022  * information. These attributes are sent as part of
4023  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
4024  * attributes correspond to a single channel.
4025  */
4026 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
4027 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
4028 
4029 	/* A bitmask (u32) with flags specified in
4030 	 * enum qca_wlan_vendor_channel_prop_flags.
4031 	 */
4032 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
4033 	/* A bitmask (u32) with flags specified in
4034 	 * enum qca_wlan_vendor_channel_prop_flags_ext.
4035 	 */
4036 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
4037 	/* frequency in MHz (u32) */
4038 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
4039 	/* maximum regulatory transmission power (u32) */
4040 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
4041 	/* maximum transmission power (u32) */
4042 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
4043 	/* minimum transmission power (u32) */
4044 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
4045 	/* regulatory class id (u8) */
4046 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
4047 	/* maximum antenna gain in (u8) */
4048 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
4049 	/* VHT segment 0 (u8) */
4050 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
4051 	/* VHT segment 1 (u8) */
4052 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
4053 	/* A bitmask (u32) with flags specified in
4054 	 * enum qca_wlan_vendor_channel_prop_flags_2.
4055 	 */
4056 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
4057 
4058 	/* keep last */
4059 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
4060 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
4061 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
4062 };
4063 
4064 /**
4065  * qca_wlan_vendor_attr_pcl: Represents attributes for
4066  * preferred channel list (PCL). These attributes are sent as part of
4067  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
4068  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
4069  */
4070 enum qca_wlan_vendor_attr_pcl {
4071 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
4072 
4073 	/* Channel number (u8) */
4074 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
4075 	/* Channel weightage (u8) */
4076 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
4077 	/* Channel frequency (u32) in MHz */
4078 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
4079 	/* Channel flags (u32)
4080 	 * bit 0 set: channel to be used for GO role,
4081 	 * bit 1 set: channel to be used on CLI role,
4082 	 * bit 2 set: channel must be considered for operating channel
4083 	 *                 selection & peer chosen operating channel should be
4084 	 *                 one of the channels with this flag set,
4085 	 * bit 3 set: channel should be excluded in GO negotiation
4086 	 */
4087 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
4088 };
4089 
4090 /**
4091  * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
4092  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
4093  * host driver.
4094  */
4095 enum qca_wlan_vendor_attr_external_acs_event {
4096 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
4097 
4098 	/* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
4099 	 * This helps ACS module to understand why ACS needs to be started.
4100 	 */
4101 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
4102 	/* Flag attribute to indicate if driver supports spectral scanning */
4103 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
4104 	/* Flag attribute to indicate if 11ac is offloaded to firmware */
4105 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
4106 	/* Flag attribute to indicate if driver provides additional channel
4107 	 * capability as part of scan operation
4108 	 */
4109 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
4110 	/* Flag attribute to indicate interface status is UP */
4111 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
4112 	/* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
4113 	 * values.
4114 	 */
4115 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
4116 	/* Channel width (u8). It takes one of enum nl80211_chan_width values.
4117 	 * This is the upper bound of channel width. ACS logic should try to get
4118 	 * a channel with the specified width and if not found, look for lower
4119 	 * values.
4120 	 */
4121 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
4122 	/* This (u8) will hold values of one of enum nl80211_bands */
4123 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
4124 	/* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
4125 	 * values
4126 	 */
4127 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
4128 	/* Array of (u32) supported frequency list among which ACS should choose
4129 	 * best frequency.
4130 	 */
4131 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
4132 	/* Preferred channel list by the driver which will have array of nested
4133 	 * values as per enum qca_wlan_vendor_attr_pcl attribute.
4134 	 */
4135 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
4136 	/* Array of nested attribute for each channel. It takes attr as defined
4137 	 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
4138 	 */
4139 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
4140 	/* External ACS policy such as PCL mandatory, PCL preferred, etc.
4141 	 * It uses values defined in enum
4142 	 * qca_wlan_vendor_attr_external_acs_policy.
4143 	 */
4144 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
4145 	/* Reference RF Operating Parameter (RROP) availability information
4146 	 * (u16). It uses values defined in enum
4147 	 * qca_wlan_vendor_attr_rropavail_info.
4148 	 */
4149 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
4150 
4151 	/* keep last */
4152 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
4153 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
4154 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
4155 };
4156 
4157 /**
4158  * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
4159  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
4160  * in priority order as decided after ACS operation in userspace.
4161  */
4162 enum qca_wlan_vendor_attr_external_acs_channels {
4163 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
4164 
4165 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
4166 	 */
4167 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
4168 
4169 	/* Array of nested values for each channel with following attributes:
4170 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
4171 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
4172 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
4173 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
4174 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
4175 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
4176 	 */
4177 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
4178 	/* This (u8) will hold values of one of enum nl80211_bands */
4179 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
4180 	/* Primary channel (u8) */
4181 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
4182 	/* Secondary channel (u8) used for HT 40 MHz channels */
4183 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
4184 	/* VHT seg0 channel (u8) */
4185 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
4186 	/* VHT seg1 channel (u8) */
4187 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
4188 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
4189 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
4190 
4191 	/* keep last */
4192 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
4193 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
4194 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
4195 };
4196 
4197 enum qca_chip_power_save_failure_reason {
4198 	/* Indicates if the reason for the failure is due to a protocol
4199 	 * layer/module.
4200 	 */
4201 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
4202 	/* Indicates if the reason for the failure is due to a hardware issue.
4203 	 */
4204 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
4205 };
4206 
4207 /**
4208  * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
4209  * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
4210  * information leading to the power save failure.
4211  */
4212 enum qca_attr_chip_power_save_failure {
4213 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
4214 	/* Reason to cause the power save failure.
4215 	 * These reasons are represented by
4216 	 * enum qca_chip_power_save_failure_reason.
4217 	 */
4218 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
4219 
4220 	/* keep last */
4221 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
4222 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
4223 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
4224 };
4225 
4226 /**
4227  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4228  * data types for which the stats have to get collected.
4229  */
4230 enum qca_wlan_vendor_nud_stats_data_pkt_flags {
4231 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0,
4232 	QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1,
4233 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2,
4234 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3,
4235 	QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4,
4236 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4237 	 * to represent the stats of respective data type.
4238 	 */
4239 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5,
4240 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6,
4241 	QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7,
4242 };
4243 
4244 enum qca_wlan_vendor_nud_stats_set_data_pkt_info {
4245 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0,
4246 	/* Represents the data packet type to be monitored (u32).
4247 	 * Host driver tracks the stats corresponding to each data frame
4248 	 * represented by these flags.
4249 	 * These data packets are represented by
4250 	 * enum qca_wlan_vendor_nud_stats_data_pkt_flags
4251 	 */
4252 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1,
4253 	/* Name corresponding to the DNS frame for which the respective DNS
4254 	 * stats have to get monitored (string). Max string length 255.
4255 	 */
4256 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2,
4257 	/* source port on which the respective proto stats have to get
4258 	 * collected (u32).
4259 	 */
4260 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3,
4261 	/* destination port on which the respective proto stats have to get
4262 	 * collected (u32).
4263 	 */
4264 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4,
4265 	/* IPv4 address for which the destined data packets have to be
4266 	 * monitored. (in network byte order), u32.
4267 	 */
4268 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5,
4269 	/* IPv6 address for which the destined data packets have to be
4270 	 * monitored. (in network byte order), 16 bytes array.
4271 	 */
4272 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6,
4273 
4274 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST,
4275 	QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX =
4276 		QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1,
4277 };
4278 
4279 /**
4280  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
4281  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
4282  * information to start/stop the NUD statistics collection.
4283  */
4284 enum qca_attr_nud_stats_set {
4285 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
4286 
4287 	/* Flag to start/stop the NUD statistics collection.
4288 	 * Start - If included, Stop - If not included
4289 	 */
4290 	QCA_ATTR_NUD_STATS_SET_START = 1,
4291 	/* IPv4 address of the default gateway (in network byte order), u32 */
4292 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
4293 	/* Represents the list of data packet types to be monitored.
4294 	 * Host driver tracks the stats corresponding to each data frame
4295 	 * represented by these flags.
4296 	 * These data packets are represented by
4297 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info
4298 	 */
4299 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
4300 
4301 	/* keep last */
4302 	QCA_ATTR_NUD_STATS_SET_LAST,
4303 	QCA_ATTR_NUD_STATS_SET_MAX =
4304 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
4305 };
4306 
4307 enum qca_attr_nud_data_stats {
4308 	QCA_ATTR_NUD_DATA_STATS_INVALID = 0,
4309 	/* Data packet type for which the stats are collected (u32).
4310 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4311 	 */
4312 	QCA_ATTR_NUD_STATS_PKT_TYPE = 1,
4313 	/* Name corresponding to the DNS frame for which the respective DNS
4314 	 * stats are monitored (string). Max string length 255.
4315 	 */
4316 	QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2,
4317 	/* source port on which the respective proto stats are collected (u32).
4318 	 */
4319 	QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3,
4320 	/* destination port on which the respective proto stats are collected
4321 	 * (u32).
4322 	 */
4323 	QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4,
4324 	/* IPv4 address for which the destined data packets have to be
4325 	 * monitored. (in network byte order), u32.
4326 	 */
4327 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5,
4328 	/* IPv6 address for which the destined data packets have to be
4329 	 * monitored. (in network byte order), 16 bytes array.
4330 	 */
4331 	QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6,
4332 	/* Data packet Request count received from netdev (u32). */
4333 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4334 	/* Data packet Request count sent to lower MAC from upper MAC (u32). */
4335 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4336 	/* Data packet Request count received by lower MAC from upper MAC
4337 	 * (u32)
4338 	 */
4339 	QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4340 	/* Data packet Request count successfully transmitted by the device
4341 	 * (u32)
4342 	 */
4343 	QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4344 	/* Data packet Response count received by lower MAC (u32) */
4345 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4346 	/* Data packet Response count received by upper MAC (u32) */
4347 	QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4348 	/* Data packet Response count delivered to netdev (u32) */
4349 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4350 	/* Data Packet Response count that are dropped out of order (u32) */
4351 	QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4352 
4353 	/* keep last */
4354 	QCA_ATTR_NUD_DATA_STATS_LAST,
4355 	QCA_ATTR_NUD_DATA_STATS_MAX =
4356 		QCA_ATTR_NUD_DATA_STATS_LAST - 1,
4357 };
4358 
4359 /**
4360  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4361  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4362  * NUD statistics collected when queried.
4363  */
4364 enum qca_attr_nud_stats_get {
4365 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4366 	/* ARP Request count from netdev (u32) */
4367 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4368 	/* ARP Request count sent to lower MAC from upper MAC (u32) */
4369 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4370 	/* ARP Request count received by lower MAC from upper MAC (u32) */
4371 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4372 	/* ARP Request count successfully transmitted by the device (u32) */
4373 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4374 	/* ARP Response count received by lower MAC (u32) */
4375 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4376 	/* ARP Response count received by upper MAC (u32) */
4377 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4378 	/* ARP Response count delivered to netdev (u32) */
4379 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4380 	/* ARP Response count dropped due to out of order reception (u32) */
4381 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4382 	/* Flag indicating if the station's link to the AP is active.
4383 	 * Active Link - If included, Inactive link - If not included
4384 	 */
4385 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4386 	/* Flag indicating if there is any duplicate address detected (DAD).
4387 	 * Yes - If detected, No - If not detected.
4388 	 */
4389 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4390 	/* List of Data packet types for which the stats are requested.
4391 	 * This list does not carry ARP stats as they are done by the
4392 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4393 	 */
4394 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4395 
4396 	/* keep last */
4397 	QCA_ATTR_NUD_STATS_GET_LAST,
4398 	QCA_ATTR_NUD_STATS_GET_MAX =
4399 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4400 };
4401 
4402 enum qca_wlan_btm_candidate_status {
4403 	QCA_STATUS_ACCEPT = 0,
4404 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4405 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4406 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4407 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4408 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4409 	QCA_STATUS_REJECT_UNKNOWN = 6,
4410 };
4411 
4412 enum qca_wlan_vendor_attr_btm_candidate_info {
4413 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4414 
4415 	/* 6-byte MAC address representing the BSSID of transition candidate */
4416 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4417 	/* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4418 	 * returned by the driver. It says whether the BSSID provided in
4419 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4420 	 * the driver, if not it specifies the reason for rejection.
4421 	 * Note that the user-space can overwrite the transition reject reason
4422 	 * codes provided by driver based on more information.
4423 	 */
4424 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4425 
4426 	/* keep last */
4427 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4428 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4429 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4430 };
4431 
4432 enum qca_attr_trace_level {
4433 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4434 	/*
4435 	 * Nested array of the following attributes:
4436 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4437 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4438 	 */
4439 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4440 	/*
4441 	 * Specific QCA host driver module. Please refer to the QCA host
4442 	 * driver implementation to get the specific module ID.
4443 	 */
4444 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4445 	/* Different trace level masks represented in the QCA host driver. */
4446 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4447 
4448 	/* keep last */
4449 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4450 	QCA_ATTR_TRACE_LEVEL_MAX =
4451 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4452 };
4453 
4454 /**
4455  * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities
4456  */
4457 enum qca_wlan_vendor_attr_get_he_capabilities {
4458 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0,
4459 	/* Whether HE capabilities is supported
4460 	 * (u8 attribute: 0 = not supported, 1 = supported)
4461 	 */
4462 	QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1,
4463 	/* HE PHY capabilities, array of 3 u32 values  */
4464 	QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2,
4465 	/* HE MAC capabilities (u32 attribute) */
4466 	QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3,
4467 	/* HE MCS map (u32 attribute) */
4468 	QCA_WLAN_VENDOR_ATTR_HE_MCS = 4,
4469 	/* Number of SS (u32 attribute) */
4470 	QCA_WLAN_VENDOR_ATTR_NUM_SS = 5,
4471 	/* RU count (u32 attribute) */
4472 	QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6,
4473 	/* PPE threshold data, array of 8 u32 values */
4474 	QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7,
4475 
4476 	/* keep last */
4477 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST,
4478 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX =
4479 	QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1,
4480 };
4481 
4482 /**
4483  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
4484  */
4485 enum qca_wlan_vendor_attr_spectral_scan {
4486 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
4487 	/* Number of times the chip enters spectral scan mode before
4488 	 * deactivating spectral scans. When set to 0, chip will enter spectral
4489 	 * scan mode continuously. u32 attribute.
4490 	 */
4491 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
4492 	/* Spectral scan period. Period increment resolution is 256*Tclk,
4493 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
4494 	 */
4495 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
4496 	/* Spectral scan priority. u32 attribute. */
4497 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
4498 	/* Number of FFT data points to compute. u32 attribute. */
4499 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
4500 	/* Enable targeted gain change before starting the spectral scan FFT.
4501 	 * u32 attribute.
4502 	 */
4503 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
4504 	/* Restart a queued spectral scan. u32 attribute. */
4505 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
4506 	/* Noise floor reference number for the calculation of bin power.
4507 	 * u32 attribute.
4508 	 */
4509 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
4510 	/* Disallow spectral scan triggers after TX/RX packets by setting
4511 	 * this delay value to roughly SIFS time period or greater.
4512 	 * u32 attribute.
4513 	 */
4514 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
4515 	/* Number of strong bins (inclusive) per sub-channel, below
4516 	 * which a signal is declared a narrow band tone. u32 attribute.
4517 	 */
4518 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
4519 	/* Specify the threshold over which a bin is declared strong (for
4520 	 * scan bandwidth analysis). u32 attribute.
4521 	 */
4522 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
4523 	/* Spectral scan report mode. u32 attribute. */
4524 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
4525 	/* RSSI report mode, if the ADC RSSI is below
4526 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
4527 	 * then FFTs will not trigger, but timestamps and summaries get
4528 	 * reported. u32 attribute.
4529 	 */
4530 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
4531 	/* ADC RSSI must be greater than or equal to this threshold (signed dB)
4532 	 * to ensure spectral scan reporting with normal error code.
4533 	 * u32 attribute.
4534 	 */
4535 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
4536 	/* Format of frequency bin magnitude for spectral scan triggered FFTs:
4537 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
4538 	 * u32 attribute.
4539 	 */
4540 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
4541 	/* Format of FFT report to software for spectral scan triggered FFTs.
4542 	 * 0: No FFT report (only spectral scan summary report)
4543 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
4544 	 * report
4545 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
4546 	 * bins (in-band) per FFT + spectral scan summary report
4547 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
4548 	 * bins (all) per FFT + spectral scan summary report
4549 	 * u32 attribute.
4550 	 */
4551 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
4552 	/* Number of LSBs to shift out in order to scale the FFT bins.
4553 	 * u32 attribute.
4554 	 */
4555 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
4556 	/* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
4557 	 * in dBm power. u32 attribute.
4558 	 */
4559 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
4560 	/* Per chain enable mask to select input ADC for search FFT.
4561 	 * u32 attribute.
4562 	 */
4563 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
4564 	/* An unsigned 64-bit integer provided by host driver to identify the
4565 	 * spectral scan request. This attribute is included in the scan
4566 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
4567 	 * and used as an attribute in
4568 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
4569 	 * specific scan to be stopped.
4570 	 */
4571 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
4572 	/* Skip interval for FFT reports. u32 attribute */
4573 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
4574 	/* Set to report only one set of FFT results.
4575 	 * u32 attribute.
4576 	 */
4577 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
4578 	/* Debug level for spectral module in driver.
4579 	 * 0 : Verbosity level 0
4580 	 * 1 : Verbosity level 1
4581 	 * 2 : Verbosity level 2
4582 	 * 3 : Matched filterID display
4583 	 * 4 : One time dump of FFT report
4584 	 * u32 attribute.
4585 	 */
4586 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
4587 	/* Type of spectral scan request. u32 attribute.
4588 	 * It uses values defined in enum
4589 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
4590 	 */
4591 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
4592 	/* This specifies the frequency span over which spectral
4593 	 * scan would be carried out. Its value depends on the
4594 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
4595 	 * the relation is as follows.
4596 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
4597 	 *    Not applicable. Spectral scan would happen in the
4598 	 *    operating span.
4599 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
4600 	 *    Center frequency (in MHz) of the span of interest or
4601 	 *    for convenience, center frequency (in MHz) of any channel
4602 	 *    in the span of interest. If agile spectral scan is initiated
4603 	 *    without setting a valid frequency it returns the error code
4604 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
4605 	 * u32 attribute.
4606 	 */
4607 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
4608 	/* Spectral scan mode. u32 attribute.
4609 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
4610 	 * If this attribute is not present, it is assumed to be
4611 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
4612 	 */
4613 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
4614 	/* Spectral scan error code. u32 attribute.
4615 	 * It uses values defined in enum
4616 	 * qca_wlan_vendor_spectral_scan_error_code.
4617 	 * This attribute is included only in failure scenarios.
4618 	 */
4619 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
4620 	/* 8-bit unsigned value to enable/disable debug of the
4621 	 * Spectral DMA ring.
4622 	 * 1-enable, 0-disable
4623 	 */
4624 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
4625 	/* 8-bit unsigned value to enable/disable debug of the
4626 	 * Spectral DMA buffers.
4627 	 * 1-enable, 0-disable
4628 	 */
4629 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
4630 
4631 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
4632 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
4633 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
4634 };
4635 
4636 /**
4637  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
4638  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
4639  */
4640 enum qca_wlan_vendor_attr_spectral_diag_stats {
4641 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
4642 	/* Number of spectral TLV signature mismatches.
4643 	 * u64 attribute.
4644 	 */
4645 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
4646 	/* Number of spectral phyerror events with insufficient length when
4647 	 * parsing for secondary 80 search FFT report. u64 attribute.
4648 	 */
4649 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
4650 	/* Number of spectral phyerror events without secondary 80
4651 	 * search FFT report. u64 attribute.
4652 	 */
4653 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
4654 	/* Number of spectral phyerror events with vht operation segment 1 id
4655 	 * mismatches in search fft report. u64 attribute.
4656 	 */
4657 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
4658 	/* Number of spectral phyerror events with vht operation segment 2 id
4659 	 * mismatches in search fft report. u64 attribute.
4660 	 */
4661 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
4662 
4663 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
4664 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
4665 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
4666 };
4667 
4668 /**
4669  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
4670  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
4671  */
4672 enum qca_wlan_vendor_attr_spectral_cap {
4673 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
4674 	/* Flag attribute to indicate phydiag capability */
4675 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
4676 	/* Flag attribute to indicate radar detection capability */
4677 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
4678 	/* Flag attribute to indicate spectral capability */
4679 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
4680 	/* Flag attribute to indicate advanced spectral capability */
4681 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
4682 	/* Spectral hardware generation. u32 attribute.
4683 	 * It uses values defined in enum
4684 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
4685 	 */
4686 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
4687 	/* Spectral bin scaling formula ID. u16 attribute.
4688 	 * It uses values defined in enum
4689 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
4690 	 */
4691 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
4692 	/* Spectral bin scaling param - low level offset.
4693 	 * s16 attribute.
4694 	 */
4695 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
4696 	/* Spectral bin scaling param - high level offset.
4697 	 * s16 attribute.
4698 	 */
4699 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
4700 	/* Spectral bin scaling param - RSSI threshold.
4701 	 * s16 attribute.
4702 	 */
4703 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
4704 	/* Spectral bin scaling param - default AGC max gain.
4705 	 * u8 attribute.
4706 	 */
4707 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
4708 	/* Flag attribute to indicate agile spectral scan capability */
4709 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
4710 
4711 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
4712 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
4713 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
4714 };
4715 
4716 /**
4717  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
4718  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
4719  */
4720 enum qca_wlan_vendor_attr_spectral_scan_status {
4721 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
4722 	/* Flag attribute to indicate whether spectral scan is enabled */
4723 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
4724 	/* Flag attribute to indicate whether spectral scan is in progress*/
4725 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
4726 	/* Spectral scan mode. u32 attribute.
4727 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
4728 	 * If this attribute is not present, normal mode
4729 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
4730 	 * requested.
4731 	 */
4732 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
4733 
4734 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
4735 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
4736 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
4737 };
4738 
4739 /**
4740  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
4741  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
4742  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
4743  * spectral scan request types.
4744  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
4745  * set the spectral parameters and start scan.
4746  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
4747  * only set the spectral parameters.
4748  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
4749  * only start the spectral scan.
4750  */
4751 enum qca_wlan_vendor_attr_spectral_scan_request_type {
4752 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
4753 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
4754 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
4755 };
4756 
4757 /**
4758  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
4759  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
4760  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
4761  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
4762  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
4763  * spectral scan modes.
4764  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
4765  * spectral scan in the current operating span.
4766  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
4767  * spectral scan in the configured agile span.
4768  */
4769 enum qca_wlan_vendor_spectral_scan_mode {
4770 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
4771 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
4772 };
4773 
4774 /**
4775  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
4776  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
4777  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
4778  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
4779  * of a parameter is not supported.
4780  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
4781  * mode is not supported.
4782  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
4783  * has invalid value.
4784  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
4785  * is not initialized.
4786  */
4787 enum qca_wlan_vendor_spectral_scan_error_code {
4788 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
4789 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
4790 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
4791 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
4792 };
4793 
4794 /**
4795  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
4796  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
4797  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
4798  * spectral hardware generation.
4799  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
4800  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
4801  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
4802  */
4803 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
4804 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
4805 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
4806 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
4807 };
4808 
4809 enum qca_wlan_vendor_tos {
4810 	QCA_WLAN_VENDOR_TOS_BK = 0,
4811 	QCA_WLAN_VENDOR_TOS_BE = 1,
4812 	QCA_WLAN_VENDOR_TOS_VI = 2,
4813 	QCA_WLAN_VENDOR_TOS_VO = 3,
4814 };
4815 
4816 /**
4817  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
4818  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
4819  */
4820 enum qca_wlan_vendor_attr_active_tos {
4821 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
4822 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
4823 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
4824 	/* Flag attribute representing the start (attribute included) or stop
4825 	 * (attribute not included) of the respective TOS.
4826 	 */
4827 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
4828 };
4829 
4830 enum qca_wlan_vendor_hang_reason {
4831 	/* Unspecified reason */
4832 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
4833 	/* No Map for the MAC entry for the received frame */
4834 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
4835 	/* Peer deletion timeout happened */
4836 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
4837 	/* Peer unmap timeout */
4838 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
4839 	/* Scan request timed out */
4840 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
4841 	/* Consecutive Scan attempt failures */
4842 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
4843 	/* Unable to get the message buffer */
4844 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
4845 	/* Current command processing is timedout */
4846 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
4847 	/* Timeout for an ACK from FW for suspend request */
4848 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
4849 	/* Timeout for an ACK from FW for resume request */
4850 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
4851 	/* Transmission timeout for consecutive data frames */
4852 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
4853 	/* Timeout for the TX completion status of data frame */
4854 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
4855 	/* DXE failure for TX/RX, DXE resource unavailability */
4856 	QCA_WLAN_HANG_DXE_FAILURE = 12,
4857 	/* WMI pending commands exceed the maximum count */
4858 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
4859 };
4860 
4861 /**
4862  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
4863  * QCA_NL80211_VENDOR_SUBCMD_HANG.
4864  */
4865 enum qca_wlan_vendor_attr_hang {
4866 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
4867 	/* Reason for the hang - u32 attribute with a value from enum
4868 	 * qca_wlan_vendor_hang_reason.
4869 	 */
4870 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
4871 
4872 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
4873 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
4874 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
4875 };
4876 
4877 /**
4878  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
4879  * flushing pending traffic in firmware.
4880  *
4881  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
4882  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
4883  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
4884  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
4885  * flush packets with access category.
4886  */
4887 enum qca_wlan_vendor_attr_flush_pending {
4888 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
4889 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
4890 	QCA_WLAN_VENDOR_ATTR_AC = 2,
4891 
4892 	/* keep last */
4893 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
4894 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
4895 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
4896 };
4897 
4898 /**
4899  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
4900  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
4901  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
4902  * Spectral bin scaling formula ID.
4903  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
4904  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
4905  * and RSSI threshold based formula.
4906  */
4907 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
4908 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
4909 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
4910 };
4911 
4912 /**
4913  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
4914  * RF Operating Parameter (RROP) information is available, and if so, at which
4915  * point in the application-driver interaction sequence it can be retrieved by
4916  * the application from the driver. This point may vary by architecture and
4917  * other factors. This is a u16 value.
4918  */
4919 enum qca_wlan_vendor_attr_rropavail_info {
4920 	/* RROP information is unavailable. */
4921 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
4922 	/* RROP information is available and the application can retrieve the
4923 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
4924 	 * event from the driver.
4925 	 */
4926 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
4927 	/* RROP information is available only after a vendor specific scan
4928 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
4929 	 * successfully completed. The application can retrieve the information
4930 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
4931 	 * the driver.
4932 	 */
4933 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
4934 };
4935 
4936 /**
4937  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
4938  * Representative RF Operating Parameter (RROP) information. It is sent for the
4939  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
4940  * intended for use by external Auto Channel Selection applications. It provides
4941  * guidance values for some RF parameters that are used by the system during
4942  * operation. These values could vary by channel, band, radio, and so on.
4943  */
4944 enum qca_wlan_vendor_attr_rrop_info {
4945 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
4946 
4947 	/* Representative Tx Power List (RTPL) which has an array of nested
4948 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
4949 	 */
4950 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
4951 
4952 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
4953 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
4954 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
4955 };
4956 
4957 /**
4958  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
4959  * entry instances in the Representative Tx Power List (RTPL). It provides
4960  * simplified power values intended for helping external Auto channel Selection
4961  * applications compare potential Tx power performance between channels, other
4962  * operating conditions remaining identical. These values are not necessarily
4963  * the actual Tx power values that will be used by the system. They are also not
4964  * necessarily the max or average values that will be used. Instead, they are
4965  * relative, summarized keys for algorithmic use computed by the driver or
4966  * underlying firmware considering a number of vendor specific factors.
4967  */
4968 enum qca_wlan_vendor_attr_rtplinst {
4969 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
4970 
4971 	/* Primary channel number (u8) */
4972 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
4973 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
4974 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
4975 	/* Representative Tx power in dBm (s32) with emphasis on range. */
4976 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
4977 
4978 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
4979 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
4980 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
4981 };
4982 
4983 /**
4984  * enum qca_wlan_vendor_attr_config_latency_level - Level for
4985  * wlan latency module.
4986  *
4987  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
4988  * power saving which would causing data exchange out of service, this
4989  * would be a big impact on latency. For latency sensitive applications over
4990  * Wi-Fi are intolerant to such operations and thus would configure them
4991  * to meet their respective needs. It is well understood by such applications
4992  * that altering the default behavior would degrade the Wi-Fi functionality
4993  * w.r.t the above pointed WLAN operations.
4994  *
4995  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
4996  *	Default WLAN operation level which throughput orientated.
4997  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
4998  *	Use moderate level to improve latency by limit scan duration.
4999  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
5000  *	Use low latency level to benifit application like concurrent
5001  *	downloading or video streaming via constraint scan/adaptive PS.
5002  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
5003  *	Use ultra low latency level to benefit for gaming/voice
5004  *	application via constraint scan/roaming/adaptive PS.
5005  */
5006 enum qca_wlan_vendor_attr_config_latency_level {
5007 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
5008 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
5009 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
5010 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
5011 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
5012 
5013 	/* keep last */
5014 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
5015 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
5016 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
5017 };
5018 
5019 /**
5020  * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command
5021  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
5022  */
5023 enum qca_wlan_vendor_attr_mac {
5024 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
5025 
5026 	/* MAC mode info list which has an array of nested values as
5027 	 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info.
5028 	 */
5029 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
5030 
5031 	/* keep last */
5032 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
5033 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
5034 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
5035 };
5036 
5037 /**
5038  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
5039  *	Wi-Fi netdev interface on a respective MAC.
5040  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
5041  */
5042 enum qca_wlan_vendor_attr_mac_iface_info {
5043 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
5044 	/* Wi-Fi netdev's interface index (u32) */
5045 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
5046 	/* Associated frequency in MHz of the connected Wi-Fi interface (u32) */
5047 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
5048 
5049 	/* keep last */
5050 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
5051 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
5052 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
5053 };
5054 
5055 /**
5056  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
5057  *	Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
5058  *	vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
5059  */
5060 enum qca_wlan_vendor_attr_mac_info {
5061 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
5062 	/* Hardware MAC ID associated for the MAC (u32) */
5063 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
5064 	/* Band supported by the MAC at a given point.
5065 	 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum
5066 	 * nl80211_band.
5067 	 */
5068 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
5069 	/* Refers to list of WLAN netdev interfaces associated with this MAC.
5070 	 * Represented by enum qca_wlan_vendor_attr_mac_iface_info.
5071 	 */
5072 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
5073 
5074 	/* keep last */
5075 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
5076 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
5077 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
5078 };
5079 
5080 /**
5081  * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command
5082  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET.
5083  */
5084 enum qca_wlan_vendor_attr_get_logger_features {
5085 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
5086 	/* Unsigned 32-bit enum value of wifi_logger_supported_features */
5087 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
5088 	/* keep last */
5089 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
5090 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
5091 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
5092 };
5093 
5094 /**
5095  * enum wifi_logger_supported_features - Values for supported logger features
5096  */
5097 enum wifi_logger_supported_features {
5098 	WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)),
5099 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)),
5100 	WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)),
5101 	WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)),
5102 	WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)),
5103 	WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)),
5104 	WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)),
5105 	WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)),
5106 	WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)),
5107 };
5108 
5109 /**
5110  * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
5111  * capabilities features
5112  */
5113 enum qca_wlan_tdls_caps_features_supported {
5114 	WIFI_TDLS_SUPPORT = (1 << (0)),
5115 	WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
5116 	WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2))
5117 };
5118 
5119 /**
5120  * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command
5121  * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES.
5122  */
5123 enum qca_wlan_vendor_attr_tdls_get_capabilities {
5124 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
5125 	/* Indicates the max concurrent sessions */
5126 	/* Unsigned 32-bit value */
5127 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS,
5128 	/* Indicates the support for features */
5129 	/* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported
5130 	 */
5131 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED,
5132 
5133 	/* keep last */
5134 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
5135 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
5136 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
5137 };
5138 
5139 /**
5140  * enum qca_wlan_offloaded_packets_sending_control - Offload packets control
5141  * command used as value for the attribute
5142  * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL.
5143  */
5144 enum qca_wlan_offloaded_packets_sending_control {
5145 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0,
5146 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_START,
5147 	QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP
5148 };
5149 
5150 /**
5151  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5152  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5153  */
5154 enum qca_wlan_vendor_attr_offloaded_packets {
5155 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5156 	/* Takes valid value from the enum
5157 	 * qca_wlan_offloaded_packets_sending_control
5158 	 * Unsigned 32-bit value
5159 	 */
5160 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5161 	/* Unsigned 32-bit value */
5162 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5163 	/* array of u8 len: Max packet size */
5164 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5165 	/* 6-byte MAC address used to represent source MAC address */
5166 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5167 	/* 6-byte MAC address used to represent destination MAC address */
5168 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5169 	/* Unsigned 32-bit value, in milli seconds */
5170 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5171 	/* This optional unsigned 16-bit attribute is used for specifying
5172 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5173 	 */
5174 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5175 
5176 	/* keep last */
5177 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5178 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5179 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5180 };
5181 
5182 /**
5183  * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values
5184  * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL.
5185  */
5186 enum qca_wlan_rssi_monitoring_control {
5187 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5188 	QCA_WLAN_RSSI_MONITORING_START,
5189 	QCA_WLAN_RSSI_MONITORING_STOP,
5190 };
5191 
5192 /**
5193  * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command
5194  * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI.
5195  */
5196 enum qca_wlan_vendor_attr_rssi_monitoring {
5197 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5198 	/* Takes valid value from the enum
5199 	 * qca_wlan_rssi_monitoring_control
5200 	 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control
5201 	 */
5202 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5203 	/* Unsigned 32-bit value */
5204 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5205 	/* Signed 8-bit value in dBm */
5206 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5207 	/* Signed 8-bit value in dBm */
5208 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5209 	/* attributes to be used/received in callback */
5210 	/* 6-byte MAC address used to represent current BSSID MAC address */
5211 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5212 	/* Signed 8-bit value indicating the current RSSI */
5213 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5214 	/* keep last */
5215 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5216 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5217 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5218 };
5219 
5220 /**
5221  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5222  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5223  */
5224 enum qca_wlan_vendor_attr_ndp_params {
5225 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5226 	/* Unsigned 32-bit value
5227 	 * enum of sub commands values in qca_wlan_ndp_sub_cmd
5228 	 */
5229 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD,
5230 	/* Unsigned 16-bit value */
5231 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID,
5232 	/* NL attributes for data used NDP SUB cmds */
5233 	/* Unsigned 32-bit value indicating a service info */
5234 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID,
5235 	/* Unsigned 32-bit value; channel frequency in MHz */
5236 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL,
5237 	/* Interface Discovery MAC address. An array of 6 Unsigned int8 */
5238 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR,
5239 	/* Interface name on which NDP is being created */
5240 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR,
5241 	/* Unsigned 32-bit value for security */
5242 	/* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */
5243 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY,
5244 	/* Unsigned 32-bit value for QoS */
5245 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS,
5246 	/* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */
5247 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO,
5248 	/* Unsigned 32-bit value for NDP instance Id */
5249 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID,
5250 	/* Array of instance Ids */
5251 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY,
5252 	/* Unsigned 32-bit value for initiator/responder NDP response code
5253 	 * accept/reject
5254 	 */
5255 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE,
5256 	/* NDI MAC address. An array of 6 Unsigned int8 */
5257 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR,
5258 	/* Unsigned 32-bit value errors types returned by driver
5259 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
5260 	 * NanStatusType includes these values.
5261 	 */
5262 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE,
5263 	/* Unsigned 32-bit value error values returned by driver
5264 	 * The nan_i.h in AOSP project platform/hardware/qcom/wlan
5265 	 * NanInternalStatusType includes these values.
5266 	 */
5267 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE,
5268 	/* Unsigned 32-bit value for Channel setup configuration
5269 	 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy
5270 	 * NanDataPathChannelCfg includes these values.
5271 	 */
5272 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG,
5273 	/* Unsigned 32-bit value for Cipher Suite Shared Key Type */
5274 	QCA_WLAN_VENDOR_ATTR_NDP_CSID,
5275 	/* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */
5276 	QCA_WLAN_VENDOR_ATTR_NDP_PMK,
5277 	/* Security Context Identifier that contains the PMKID
5278 	 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes
5279 	 */
5280 	QCA_WLAN_VENDOR_ATTR_NDP_SCID,
5281 	/* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */
5282 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE,
5283 	/* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */
5284 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME,
5285 	/* Unsigned 32-bit bitmap indicating schedule update
5286 	 * BIT_0: NSS Update
5287 	 * BIT_1: Channel list update
5288 	 */
5289 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON,
5290 	/* Unsigned 32-bit value for NSS */
5291 	QCA_WLAN_VENDOR_ATTR_NDP_NSS,
5292 	/* Unsigned 32-bit value for NUMBER NDP CHANNEL */
5293 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS,
5294 	/* Unsigned 32-bit value for CHANNEL BANDWIDTH
5295 	 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz
5296 	 */
5297 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH,
5298 	/* Array of channel/band width */
5299 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO,
5300 	/* IPv6 address used by NDP (in network byte order), 16 bytes array.
5301 	 * This attribute is used and optional for ndp request, ndp response,
5302 	 * ndp indication, and ndp confirm.
5303 	 */
5304 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5305 	/* Unsigned 16-bit value indicating transport port used by NDP.
5306 	 * This attribute is used and optional for ndp response, ndp indication,
5307 	 * and ndp confirm.
5308 	 */
5309 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5310 	/* Unsigned 8-bit value indicating protocol used by NDP and assigned by
5311 	 * the Internet Assigned Numbers Authority (IANA) as per:
5312 	 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5313 	 * This attribute is used and optional for ndp response, ndp indication,
5314 	 * and ndp confirm.
5315 	 */
5316 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5317 	/* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE.
5318 	 * 1:support 0:not support
5319 	 */
5320 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
5321 
5322 	/* keep last */
5323 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5324 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5325 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5326 };
5327 
5328 enum qca_wlan_ndp_sub_cmd {
5329 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5330 	/* Command to create a NAN data path interface */
5331 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5332 	/* Command to delete a NAN data path interface */
5333 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5334 	/* Command to initiate a NAN data path session */
5335 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5336 	/* Command to notify if the NAN data path session was sent */
5337 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5338 	/* Command to respond to NAN data path session */
5339 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5340 	/* Command to notify on the responder about the response */
5341 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5342 	/* Command to initiate a NAN data path end */
5343 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5344 	/* Command to notify the if end request was sent */
5345 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5346 	/* Command to notify the peer about the end request */
5347 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5348 	/* Command to confirm the NAN data path session is complete */
5349 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5350 	/* Command to indicate the peer about the end request being received */
5351 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5352 	/* Command to indicate the peer of schedule update */
5353 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5354 };
5355 
5356 /**
5357  * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command
5358  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD.
5359  */
5360 enum qca_wlan_vendor_attr_nd_offload {
5361 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
5362 	/* Flag to set Neighbour Discovery offload */
5363 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
5364 	/* Keep last */
5365 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
5366 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
5367 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
5368 };
5369 
5370 /**
5371  * enum packet_filter_sub_cmd - Packet filter sub commands
5372  */
5373 enum packet_filter_sub_cmd {
5374 	/**
5375 	 * Write packet filter program and/or data. The driver/firmware should
5376 	 * disable APF before writing into local buffer and re-enable APF after
5377 	 * writing is done.
5378 	 */
5379 	QCA_WLAN_SET_PACKET_FILTER = 1,
5380 	/* Get packet filter feature capabilities from driver */
5381 	QCA_WLAN_GET_PACKET_FILTER = 2,
5382 	/**
5383 	 * Write packet filter program and/or data. User space will send the
5384 	 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command
5385 	 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key
5386 	 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over
5387 	 * enable/disable is given to user space with this command. Also,
5388 	 * user space sends the length of program portion in the buffer within
5389 	 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH.
5390 	 */
5391 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
5392 	/* Read packet filter program and/or data */
5393 	QCA_WLAN_READ_PACKET_FILTER = 4,
5394 	/* Enable APF feature */
5395 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5396 	/* Disable APF feature */
5397 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5398 };
5399 
5400 /**
5401  * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by
5402  * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER.
5403  */
5404 enum qca_wlan_vendor_attr_packet_filter {
5405 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5406 	/* Unsigned 32-bit enum passed using packet_filter_sub_cmd */
5407 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD,
5408 	/* Unsigned 32-bit value indicating the packet filter version */
5409 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5410 	/* Unsigned 32-bit value indicating the packet filter id */
5411 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5412 	/**
5413 	 * Unsigned 32-bit value indicating the packet filter size including
5414 	 * program + data.
5415 	 */
5416 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5417 	/* Unsigned 32-bit value indicating the packet filter current offset */
5418 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5419 	/* Program and/or data in bytes */
5420 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5421 	/* Unsigned 32-bit value of the length of the program section in packet
5422 	 * filter buffer.
5423 	 */
5424 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7,
5425 
5426 	/* keep last */
5427 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5428 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5429 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5430 };
5431 
5432 /**
5433  * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command
5434  * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE.
5435  */
5436 enum qca_wlan_vendor_drv_info {
5437 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
5438 	/* Maximum Message size info between firmware & HOST
5439 	 * Unsigned 32-bit value
5440 	 */
5441 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
5442 	/* keep last */
5443 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
5444 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
5445 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
5446 };
5447 
5448 /**
5449  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5450  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5451  */
5452 enum qca_wlan_vendor_attr_wake_stats {
5453 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5454 	/* Unsigned 32-bit value indicating the total count of wake event */
5455 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
5456 	/* Array of individual wake count, each index representing wake reason
5457 	 */
5458 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
5459 	/* Unsigned 32-bit value representing wake count array */
5460 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
5461 	/* Unsigned 32-bit total wake count value of driver/fw */
5462 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
5463 	/* Array of wake stats of driver/fw */
5464 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
5465 	/* Unsigned 32-bit total wake count value of driver/fw */
5466 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
5467 	/* Unsigned 32-bit total wake count value of packets received */
5468 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
5469 	/* Unsigned 32-bit wake count value unicast packets received */
5470 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
5471 	/* Unsigned 32-bit wake count value multicast packets received */
5472 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
5473 	/* Unsigned 32-bit wake count value broadcast packets received */
5474 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
5475 	/* Unsigned 32-bit wake count value of ICMP packets */
5476 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
5477 	/* Unsigned 32-bit wake count value of ICMP6 packets */
5478 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
5479 	/* Unsigned 32-bit value ICMP6 router advertisement */
5480 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
5481 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
5482 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
5483 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
5484 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
5485 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5486 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
5487 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5488 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
5489 	/* Unsigned 32-bit wake count value of receive side multicast */
5490 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
5491 	/* Unsigned 32-bit wake count value of a given RSSI breach */
5492 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
5493 	/* Unsigned 32-bit wake count value of low RSSI */
5494 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
5495 	/* Unsigned 32-bit value GSCAN count */
5496 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
5497 	/* Unsigned 32-bit value PNO complete count */
5498 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
5499 	/* Unsigned 32-bit value PNO match count */
5500 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
5501 	/* keep last */
5502 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
5503 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
5504 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
5505 };
5506 
5507 /**
5508  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5509  * cmd value. Used for NL attributes for data used by
5510  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5511  */
5512 enum qca_wlan_vendor_attr_thermal_cmd {
5513 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
5514 	/* The value of command, driver will implement different operations
5515 	 * according to this value. It uses values defined in
5516 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5517 	 * u32 attribute.
5518 	 */
5519 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
5520 
5521 	/* keep last */
5522 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
5523 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
5524 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
5525 };
5526 
5527 /**
5528  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5529  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5530  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5531  * thermal command types sent to driver.
5532  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5533  * get thermal shutdown configuration parameters for display. Parameters
5534  * responded from driver are defined in
5535  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5536  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5537  * get temperature. Host should respond with a temperature data. It is defined
5538  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5539  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5540  * suspend action.
5541  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5542  * resume action.
5543  */
5544 enum qca_wlan_vendor_attr_thermal_cmd_type {
5545 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
5546 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
5547 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
5548 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
5549 };
5550 
5551 /**
5552  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5553  * to get chip temperature by user.
5554  * enum values are used for NL attributes for data used by
5555  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5556  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5557  */
5558 enum qca_wlan_vendor_attr_thermal_get_temperature {
5559 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
5560 	/* Temperature value (degree Celsius) from driver.
5561 	 * u32 attribute.
5562 	 */
5563 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
5564 
5565 	/* keep last */
5566 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
5567 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
5568 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
5569 };
5570 
5571 /**
5572  * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes
5573  * to get configuration parameters of thermal shutdown feature. Enum values are
5574  * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data
5575  * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5576  */
5577 enum qca_wlan_vendor_attr_get_thermal_params_rsp {
5578 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0,
5579 	/* Indicate if the thermal shutdown feature is enabled.
5580 	 * NLA_FLAG attribute.
5581 	 */
5582 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN,
5583 	/* Indicate if the auto mode is enabled.
5584 	 * Enable: Driver triggers the suspend/resume action.
5585 	 * Disable: User space triggers the suspend/resume action.
5586 	 * NLA_FLAG attribute.
5587 	 */
5588 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN,
5589 	/* Thermal resume threshold (degree Celsius). Issue the resume command
5590 	 * if the temperature value is lower than this threshold.
5591 	 * u16 attribute.
5592 	 */
5593 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH,
5594 	/* Thermal warning threshold (degree Celsius). FW reports temperature
5595 	 * to driver if it's higher than this threshold.
5596 	 * u16 attribute.
5597 	 */
5598 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH,
5599 	/* Thermal suspend threshold (degree Celsius). Issue the suspend command
5600 	 * if the temperature value is higher than this threshold.
5601 	 * u16 attribute.
5602 	 */
5603 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH,
5604 	/* FW reports temperature data periodically at this interval (ms).
5605 	 * u16 attribute.
5606 	 */
5607 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE,
5608 
5609 	/* keep last */
5610 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST,
5611 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX =
5612 	QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1,
5613 };
5614 
5615 /**
5616  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5617  * report thermal events from driver to user space.
5618  * enum values are used for NL attributes for data used by
5619  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5620  */
5621 enum qca_wlan_vendor_attr_thermal_event {
5622 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
5623 	/* Temperature value (degree Celsius) from driver.
5624 	 * u32 attribute.
5625 	 */
5626 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
5627 	/* Indication of resume completion from power save mode.
5628 	 * NLA_FLAG attribute.
5629 	 */
5630 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
5631 
5632 	/* keep last */
5633 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
5634 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
5635 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
5636 };
5637 
5638 /**
5639  * enum he_fragmentation_val - HE fragmentation support values
5640  * Indicates level of dynamic fragmentation that is supported by
5641  * a STA as a recipient.
5642  * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2
5643  * (HE MAC Capabilities Information field) and are used in HE Capabilities
5644  * element to advertise the support. These values are validated in the driver
5645  * to check the device capability and advertised in the HE Capabilities
5646  * element. These values are used to configure testbed device to allow the
5647  * advertised hardware capabilities to be downgraded for testing purposes.
5648  *
5649  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
5650  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
5651  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
5652  *	within an A-MPDU that is not an S-MPDU.
5653  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
5654  *	contained within an MPDU or S-MPDU and support for up to one dynamic
5655  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
5656  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
5657  *	MPDU or S-MPDU.
5658  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
5659  *	contained within an MPDU or S-MPDU and support for multiple dynamic
5660  *	fragments for each MSDU and for each A-MSDU if supported by the
5661  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
5662  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
5663  */
5664 enum he_fragmentation_val {
5665 	HE_FRAG_DISABLE,
5666 	HE_FRAG_LEVEL1,
5667 	HE_FRAG_LEVEL2,
5668 	HE_FRAG_LEVEL3,
5669 };
5670 
5671 /**
5672  * enum he_mcs_config - HE MCS support configuration
5673  *
5674  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
5675  * These values are used in driver to configure the HE MCS map to advertise
5676  * Tx/Rx MCS map in HE capability and these values are applied for all the
5677  * streams supported by the device. To configure MCS for different bandwidths,
5678  * vendor command needs to be sent using this attribute with appropriate value.
5679  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
5680  * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11
5681  * send this command using HE MCS config attribute with value HE_160_MCS0_11.
5682  * These values are used to configure testbed device to allow the advertised
5683  * hardware capabilities to be downgraded for testing purposes. The enum values
5684  * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and
5685  * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map.
5686  * These values are validated in the driver before setting the MCS map and
5687  * driver returns error if the input is other than these enum values.
5688  *
5689  * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7
5690  * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9
5691  * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11
5692  * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7
5693  * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9
5694  * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11
5695  * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7
5696  * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9
5697  * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11
5698  */
5699 enum he_mcs_config {
5700 	HE_80_MCS0_7 = 0,
5701 	HE_80_MCS0_9 = 1,
5702 	HE_80_MCS0_11 = 2,
5703 	HE_160_MCS0_7 = 4,
5704 	HE_160_MCS0_9 = 5,
5705 	HE_160_MCS0_11 = 6,
5706 	HE_80P80_MCS0_7 = 8,
5707 	HE_80P80_MCS0_9 = 9,
5708 	HE_80P80_MCS0_11 = 10,
5709 };
5710 
5711 /**
5712  * enum qca_wlan_ba_session_config - BA session configuration
5713  *
5714  * Indicates the configuration values for BA session configuration attribute.
5715  *
5716  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
5717  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
5718  */
5719 enum qca_wlan_ba_session_config {
5720 	QCA_WLAN_ADD_BA = 1,
5721 	QCA_WLAN_DELETE_BA = 2,
5722 };
5723 
5724 /**
5725  * enum qca_wlan_ac_type - Access category type
5726  *
5727  * Indicates the access category type value.
5728  *
5729  * @QCA_WLAN_AC_BE: BE access category
5730  * @QCA_WLAN_AC_BK: BK access category
5731  * @QCA_WLAN_AC_VI: VI access category
5732  * @QCA_WLAN_AC_VO: VO access category
5733  * @QCA_WLAN_AC_ALL: All ACs
5734  */
5735 enum qca_wlan_ac_type {
5736 	QCA_WLAN_AC_BE = 0,
5737 	QCA_WLAN_AC_BK = 1,
5738 	QCA_WLAN_AC_VI = 2,
5739 	QCA_WLAN_AC_VO = 3,
5740 	QCA_WLAN_AC_ALL = 4,
5741 };
5742 
5743 /**
5744  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
5745  *
5746  * Indicates the HE LTF configuration value.
5747  *
5748  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF,
5749  * based on the GI setting
5750  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
5751  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
5752  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
5753  */
5754 enum qca_wlan_he_ltf_cfg {
5755 	QCA_WLAN_HE_LTF_AUTO = 0,
5756 	QCA_WLAN_HE_LTF_1X = 1,
5757 	QCA_WLAN_HE_LTF_2X = 2,
5758 	QCA_WLAN_HE_LTF_4X = 3,
5759 };
5760 
5761 /**
5762  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
5763  *
5764  * Indicates the HE trigger frame MAC padding duration value.
5765  *
5766  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
5767  * process the trigger frame.
5768  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
5769  * trigger frame.
5770  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
5771  * trigger frame.
5772  */
5773 enum qca_wlan_he_mac_padding_dur {
5774 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
5775 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
5776 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
5777 };
5778 
5779 /**
5780  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
5781  *
5782  * Indicates the HE Operating mode control channel width setting value.
5783  *
5784  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
5785  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
5786  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
5787  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
5788  */
5789 enum qca_wlan_he_om_ctrl_ch_bw {
5790 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
5791 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
5792 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
5793 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
5794 };
5795 
5796 /**
5797  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
5798  * HE operating mode control transmit request. These attributes are
5799  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
5800  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
5801  *
5802  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
5803  * indicates the maximum number of spatial streams, NSS, that the STA
5804  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
5805  * and is set to NSS - 1.
5806  *
5807  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
5808  * indicates the operating channel width supported by the STA for both
5809  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
5810  *
5811  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
5812  * indicates the all trigger based UL MU operations by the STA.
5813  * 0 - UL MU operations are enabled by the STA.
5814  * 1 - All triggered UL MU transmissions are suspended by the STA.
5815  *
5816  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
5817  * indicates the maximum number of space-time streams, NSTS, that
5818  * the STA supports in transmission and is set to NSTS - 1.
5819  *
5820  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
5821  * combined with the UL MU Disable subfield and the recipient's setting
5822  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
5823  * capabilities to determine which HE TB PPDUs are possible by the
5824  * STA to transmit.
5825  * 0 - UL MU data operations are enabled by the STA.
5826  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
5827  * bit is not set, else UL MU Tx is suspended.
5828  *
5829  */
5830 enum qca_wlan_vendor_attr_he_omi_tx {
5831 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
5832 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
5833 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
5834 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
5835 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
5836 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
5837 
5838 	/* keep last */
5839 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
5840 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
5841 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
5842 };
5843 
5844 /* Attributes for data used by
5845  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
5846  */
5847 enum qca_wlan_vendor_attr_wifi_test_config {
5848 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
5849 	/* 8-bit unsigned value to configure the driver to enable/disable
5850 	 * WMM feature. This attribute is used to configure testbed device.
5851 	 * 1-enable, 0-disable
5852 	 */
5853 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
5854 
5855 	/* 8-bit unsigned value to configure the driver to accept/reject
5856 	 * the addba request from peer. This attribute is used to configure
5857 	 * the testbed device.
5858 	 * 1-accept addba, 0-reject addba
5859 	 */
5860 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
5861 
5862 	/* 8-bit unsigned value to configure the driver to send or not to
5863 	 * send the addba request to peer.
5864 	 * This attribute is used to configure the testbed device.
5865 	 * 1-send addba, 0-do not send addba
5866 	 */
5867 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
5868 
5869 	/* 8-bit unsigned value to indicate the HE fragmentation support.
5870 	 * Uses enum he_fragmentation_val values.
5871 	 * This attribute is used to configure the testbed device to
5872 	 * allow the advertised hardware capabilities to be downgraded
5873 	 * for testing purposes.
5874 	 */
5875 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
5876 
5877 	/* 8-bit unsigned value to indicate the HE MCS support.
5878 	 * Uses enum he_mcs_config values.
5879 	 * This attribute is used to configure the testbed device to
5880 	 * allow the advertised hardware capabilities to be downgraded
5881 	 * for testing purposes.
5882 	 */
5883 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
5884 
5885 	/* 8-bit unsigned value to configure the driver to allow or not to
5886 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
5887 	 * This attribute is used to configure the testbed device.
5888 	 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP.
5889 	 */
5890 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
5891 
5892 	/* 8-bit unsigned value to configure the driver to add a
5893 	 * new BA session or delete the existing BA session for
5894 	 * given TID. ADDBA command uses the buffer size and TID
5895 	 * configuration if user specifies the values else default
5896 	 * value for buffer size is used for all TIDs if the TID
5897 	 * also not specified. For DEL_BA command TID value is
5898 	 * required to process the command.
5899 	 * Uses enum qca_wlan_ba_session_config values.
5900 	 * This attribute is used to configure the testbed device.
5901 	 */
5902 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
5903 
5904 	/* 16-bit unsigned value to configure the buffer size in addba
5905 	 * request and response frames.
5906 	 * This attribute is used to configure the testbed device.
5907 	 * The range of the value is 0 to 256.
5908 	 */
5909 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
5910 
5911 	/* 8-bit unsigned value to configure the buffer size in addba
5912 	 * request and response frames.
5913 	 * This attribute is used to configure the testbed device.
5914 	 */
5915 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
5916 
5917 	/* 8-bit unsigned value to configure the no ack policy.
5918 	 * To configure no ack policy, access category value is
5919 	 * required to process the command.
5920 	 * This attribute is used to configure the testbed device.
5921 	 * 1 - enable no ack, 0 - disable no ack.
5922 	 */
5923 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
5924 
5925 	/* 8-bit unsigned value to configure the AC for no ack policy
5926 	 * This attribute is used to configure the testbed device.
5927 	 * Uses the enum qca_wlan_ac_type values.
5928 	 */
5929 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
5930 
5931 	/* 8-bit unsigned value to configure the HE LTF
5932 	 * This attribute is used to configure the testbed device.
5933 	 * Uses the enum qca_wlan_he_ltf_cfg values.
5934 	 */
5935 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
5936 
5937 	/* 8-bit unsigned value to configure the tx beamformee.
5938 	 * This attribute is used to configure the testbed device.
5939 	 * 1-enable, 0-disable.
5940 	 */
5941 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
5942 
5943 	/* 8-bit unsigned value to configure the tx beamformee number
5944 	 * of space-time streams.
5945 	 * This attribute is used to configure the testbed device.
5946 	 * The range of the value is 0 to 8.
5947 	 */
5948 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
5949 
5950 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
5951 	 * This attribute is used to configure the testbed device.
5952 	 * Uses the enum qca_wlan_ac_type values.
5953 	 */
5954 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
5955 
5956 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
5957 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
5958 	 * is required to process the command.
5959 	 * This attribute is used to configure the testbed device.
5960 	 */
5961 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
5962 
5963 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
5964 	 * given AC.
5965 	 * To configure MU EDCA ECW min value, MU EDCA access category value
5966 	 * is required to process the command.
5967 	 * This attribute is used to configure the testbed device.
5968 	 */
5969 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
5970 
5971 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
5972 	 * given AC.
5973 	 * To configure MU EDCA ECW max value, MU EDCA access category value
5974 	 * is required to process the command.
5975 	 * This attribute is used to configure the testbed device.
5976 	 */
5977 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
5978 
5979 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
5980 	 * To configure MU EDCA timer value, MU EDCA access category value
5981 	 * is required to process the command.
5982 	 * This attribute is used to configure the testbed device.
5983 	 */
5984 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
5985 
5986 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
5987 	 * duration.
5988 	 * This attribute is used to configure the testbed device.
5989 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
5990 	 */
5991 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
5992 
5993 	/* 8-bit unsigned value to override the MU EDCA params to defaults
5994 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
5995 	 * the default values else use the MU EDCA params from AP beacon.
5996 	 * This attribute is used to configure the testbed device.
5997 	 * 1-enable, 0-disable.
5998 	 */
5999 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
6000 
6001 	/* 8-bit unsigned value to configure the support for receiving
6002 	 * an MPDU that contains an operating mode control subfield.
6003 	 * This attribute is used to configure the testbed device.
6004 	 * 1-enable, 0-disable.
6005 	 */
6006 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
6007 
6008 	/* Nested attribute values required to setup the TWT session.
6009 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
6010 	 * information to set up the session. It contains broadcast flags,
6011 	 * set_up flags, trigger value, flow type, flow ID, wake interval
6012 	 * exponent, protection, target wake time, wake duration, wake interval
6013 	 * mantissa. These nested attributes are used to setup a host triggered
6014 	 * TWT session.
6015 	 */
6016 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
6017 
6018 	/* This nested attribute is used to terminate the current TWT session.
6019 	 * It does not currently carry any attributes.
6020 	 */
6021 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
6022 
6023 	/* This nested attribute is used to suspend the current TWT session.
6024 	 * It does not currently carry any attributes.
6025 	 */
6026 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
6027 
6028 	/* Nested attribute values to indicate the request for resume.
6029 	 * This attribute is used to resume the TWT session.
6030 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
6031 	 * parameters required to resume the TWT session.
6032 	 */
6033 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
6034 
6035 	/* 8-bit unsigned value to set the HE operating mode control
6036 	 * (OM CTRL) Channel Width subfield.
6037 	 * The Channel Width subfield indicates the operating channel width
6038 	 * supported by the STA for both reception and transmission.
6039 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
6040 	 * This setting is cleared with the
6041 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6042 	 * flag attribute to reset defaults.
6043 	 * This attribute is used to configure the testbed device.
6044 	 */
6045 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
6046 
6047 	/* 8-bit unsigned value to configure the number of spatial
6048 	 * streams in HE operating mode control field.
6049 	 * This setting is cleared with the
6050 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6051 	 * flag attribute to reset defaults.
6052 	 * This attribute is used to configure the testbed device.
6053 	 */
6054 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
6055 
6056 	/* Flag attribute to configure the UL MU disable bit in
6057 	 * HE operating mode control field.
6058 	 * This setting is cleared with the
6059 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
6060 	 * flag attribute to reset defaults.
6061 	 * This attribute is used to configure the testbed device.
6062 	 */
6063 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
6064 
6065 	/* Flag attribute to clear the previously set HE operating mode
6066 	 * control field configuration.
6067 	 * This attribute is used to configure the testbed device to reset
6068 	 * defaults to clear any previously set HE operating mode control
6069 	 * field configuration.
6070 	 */
6071 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
6072 
6073 	/* 8-bit unsigned value to configure HE single user PPDU
6074 	 * transmission. By default this setting is disabled and it
6075 	 * is disabled in the reset defaults of the device configuration.
6076 	 * This attribute is used to configure the testbed device.
6077 	 * 1-enable, 0-disable
6078 	 */
6079 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
6080 
6081 	/* 8-bit unsigned value to configure action frame transmission
6082 	 * in HE trigger based PPDU transmission.
6083 	 * By default this setting is disabled and it is disabled in
6084 	 * the reset defaults of the device configuration.
6085 	 * This attribute is used to configure the testbed device.
6086 	 * 1-enable, 0-disable
6087 	 */
6088 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
6089 
6090 	/* Nested attribute to indicate HE operating mode control field
6091 	 * transmission. It contains operating mode control field Nss,
6092 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
6093 	 * These nested attributes are used to send HE operating mode control
6094 	 * with configured values.
6095 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
6096 	 * This attribute is used to configure the testbed device.
6097 	 */
6098 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
6099 
6100 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
6101 	 * support for the reception of a frame that carries an HE variant
6102 	 * HT Control field.
6103 	 * This attribute is used to configure the testbed device.
6104 	 * 1-enable, 0-disable
6105 	 */
6106 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
6107 
6108 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
6109 	 * This attribute is used to configure the testbed device.
6110 	 * 1-enable, 0-disable
6111 	 */
6112 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
6113 
6114 	/* 8-bit unsigned value to configure HE testbed defaults.
6115 	 * This attribute is used to configure the testbed device.
6116 	 * 1-set the device HE capabilities to testbed defaults.
6117 	 * 0-reset the device HE capabilities to supported config.
6118 	 */
6119 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
6120 
6121 	/* 8-bit unsigned value to configure TWT request support.
6122 	 * This attribute is used to configure the testbed device.
6123 	 * 1-enable, 0-disable.
6124 	 */
6125 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
6126 
6127 	/* keep last */
6128 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
6129 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
6130 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
6131 };
6132 
6133 /**
6134  * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command
6135  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6136  * The user can add/delete the filter by specifying the BSSID/STA MAC address in
6137  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in
6138  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in
6139  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the
6140  * statistics of an unassociated station by specifying the MAC address in
6141  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in
6142  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in
6143  * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get
6144  * the statistics of all unassociated stations by specifying the Broadcast MAC
6145  * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with
6146  * above procedure. In the response, driver shall specify statistics
6147  * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS.
6148  */
6149 enum qca_wlan_vendor_attr_bss_filter {
6150 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0,
6151 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1,
6152 	/* Other BSS filter type, unsigned 8 bit value. One of the values
6153 	 * in enum qca_wlan_vendor_bss_filter_type.
6154 	 */
6155 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2,
6156 	/* Other BSS filter action, unsigned 8 bit value. One of the values
6157 	 * in enum qca_wlan_vendor_bss_filter_action.
6158 	 */
6159 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3,
6160 	/* Array of nested attributes where each entry is the statistics
6161 	 * information of the specified station that belong to another BSS.
6162 	 * Attributes for each entry are taken from enum
6163 	 * qca_wlan_vendor_bss_filter_sta_stats.
6164 	 * Other BSS station configured in
6165 	 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type
6166 	 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA.
6167 	 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER
6168 	 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET.
6169 	 */
6170 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4,
6171 
6172 	/* keep last */
6173 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST,
6174 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX =
6175 	QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1,
6176 };
6177 
6178 /**
6179  * enum qca_wlan_vendor_bss_filter_type - Type of
6180  * filter used in other BSS filter operations. Used by the vendor command
6181  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6182  *
6183  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter
6184  * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter
6185  */
6186 enum qca_wlan_vendor_bss_filter_type {
6187 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID,
6188 	QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA,
6189 };
6190 
6191 /**
6192  * enum qca_wlan_vendor_bss_filter_action - Type of
6193  * action in other BSS filter operations. Used by the vendor command
6194  * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6195  *
6196  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter
6197  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter
6198  * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics
6199  */
6200 enum qca_wlan_vendor_bss_filter_action {
6201 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD,
6202 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL,
6203 	QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET,
6204 };
6205 
6206 /**
6207  * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for
6208  * the statistics of a specific unassociated station belonging to another BSS.
6209  * The statistics provides information of the unassociated station
6210  * filtered by other BSS operation - such as MAC, signal value.
6211  * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER.
6212  *
6213  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station.
6214  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength
6215  *	of the station. Unsigned 8 bit number containing RSSI.
6216  * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host
6217  *	driver for the last received RSSI. Unsigned 64 bit number containing
6218  *	nanoseconds from the boottime.
6219  */
6220 enum qca_wlan_vendor_bss_filter_sta_stats {
6221 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0,
6222 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1,
6223 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2,
6224 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3,
6225 
6226 	/* keep last */
6227 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST,
6228 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX =
6229 	QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1
6230 };
6231 
6232 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
6233  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
6234  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
6235  */
6236 enum qca_wlan_nan_ext_subcmd_type {
6237 	/* Subcmd of type NAN Enable Request */
6238 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
6239 	/* Subcmd of type NAN Disable Request */
6240 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
6241 };
6242 
6243 /**
6244  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
6245  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
6246  */
6247 enum qca_wlan_vendor_attr_nan_params {
6248 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
6249 	/* Carries NAN command for firmware component. Every vendor command
6250 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
6251 	 * payload containing the NAN command. NLA_BINARY attribute.
6252 	 */
6253 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
6254 	/* Indicates the type of NAN command sent with
6255 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
6256 	 * describes the possible range of values. This attribute is mandatory
6257 	 * if the command being issued is either
6258 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
6259 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
6260 	 */
6261 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
6262 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
6263 	 * band. This attribute is mandatory when command type is
6264 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
6265 	 */
6266 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
6267 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
6268 	 * band. This attribute is optional and should be included when command
6269 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
6270 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
6271 	 */
6272 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
6273 
6274 	/* keep last */
6275 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
6276 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
6277 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
6278 };
6279 
6280 /**
6281  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
6282  * TWT (Target Wake Time) setup request. These attributes are sent as part of
6283  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
6284  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
6285  *
6286  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
6287  * Disable (flag attribute not present) - Individual TWT
6288  * Enable (flag attribute present) - Broadcast TWT.
6289  * Individual means the session is between the STA and the AP.
6290  * This session is established using a separate negotiation between
6291  * STA and AP.
6292  * Broadcast means the session is across multiple STAs and an AP. The
6293  * configuration parameters are announced in Beacon frames by the AP.
6294  *
6295  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
6296  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
6297  * specify the TWT request type
6298  *
6299  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
6300  * Enable (flag attribute present) - TWT with trigger support.
6301  * Disable (flag attribute not present) - TWT without trigger support.
6302  * Trigger means the AP will send the trigger frame to allow STA to send data.
6303  * Without trigger, the STA will wait for the MU EDCA timer before
6304  * transmitting the data.
6305  *
6306  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
6307  * 0 - Announced TWT - In this mode, STA may skip few service periods to
6308  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
6309  * NULL frame to AP.
6310  * 1 - Unannounced TWT - The STA will wakeup during every SP.
6311  *
6312  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
6313  * Flow ID is the unique identifier for each TWT session.
6314  * Currently this is not required and dialog ID will be set to zero.
6315  *
6316  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
6317  * This attribute (exp) is used along with the mantissa to derive the
6318  * wake interval using the following formula:
6319  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
6320  * Wake interval is the interval between 2 successive SP.
6321  *
6322  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
6323  * Enable (flag attribute present) - Protection required.
6324  * Disable (flag attribute not present) - Protection not required.
6325  * If protection is enabled, then the AP will use protection
6326  * mechanism using RTS/CTS to self to reserve the airtime.
6327  *
6328  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
6329  * This attribute is used as the SP offset which is the offset from
6330  * TSF after which the wake happens. The units are in microseconds. If
6331  * this attribute is not provided, then the value will be set to zero.
6332  *
6333  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
6334  * This is the duration of the service period. The units are in TU.
6335  *
6336  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
6337  * This attribute is used to configure wake interval mantissa.
6338  * The units are in TU.
6339  */
6340 enum qca_wlan_vendor_attr_twt_setup {
6341 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
6342 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
6343 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
6344 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
6345 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
6346 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
6347 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
6348 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
6349 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
6350 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
6351 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
6352 
6353 	/* keep last */
6354 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
6355 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
6356 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
6357 };
6358 
6359 /**
6360  * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
6361  * TWT (Target Wake Time) resume request. These attributes are sent as part of
6362  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
6363  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
6364  *
6365  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
6366  * This attribute is used as the SP offset which is the offset from
6367  * TSF after which the wake happens. The units are in microseconds.
6368  * If this attribute is not provided, then the value will be set to
6369  * zero.
6370  *
6371  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
6372  * This attribute represents the next TWT subfield size.
6373  */
6374 enum qca_wlan_vendor_attr_twt_resume {
6375 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
6376 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
6377 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
6378 
6379 	/* keep last */
6380 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
6381 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
6382 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
6383 };
6384 
6385 /**
6386  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
6387  * Represents the setup type being requested for TWT.
6388  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
6389  * parameters but relying on AP to fill the parameters during the negotiation.
6390  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
6391  * values which the AP may accept or AP may provide alternative parameters
6392  * which the STA may accept.
6393  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
6394  * alternate parameters than the requested ones.
6395  */
6396 enum qca_wlan_vendor_twt_setup_req_type {
6397 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
6398 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
6399 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
6400 };
6401 
6402 /**
6403  * enum qca_wlan_roam_scan_event_type - Type of roam scan event
6404  *
6405  * Indicates the type of roam scan event sent by firmware/driver.
6406  *
6407  * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type.
6408  * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type.
6409  */
6410 enum qca_wlan_roam_scan_event_type {
6411 	QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0,
6412 	QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1,
6413 };
6414 
6415 /**
6416  * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason
6417  *
6418  * Indicates the reason for triggering roam scan by firmware/driver.
6419  *
6420  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP.
6421  * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate.
6422  */
6423 enum qca_wlan_roam_scan_trigger_reason {
6424 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0,
6425 	QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1,
6426 };
6427 
6428 /**
6429  * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report
6430  * roam scan related details from driver/firmware to user space. enum values
6431  * are used for NL attributes sent with
6432  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command.
6433  */
6434 enum qca_wlan_vendor_attr_roam_scan {
6435 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0,
6436 	/* Encapsulates type of roam scan event being reported. enum
6437 	 * qca_wlan_roam_scan_event_type describes the possible range of
6438 	 * values. u32 attribute.
6439 	 */
6440 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1,
6441 	/* Encapsulates reason for triggering roam scan. enum
6442 	 * qca_wlan_roam_scan_trigger_reason describes the possible range of
6443 	 * values. u32 attribute.
6444 	 */
6445 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2,
6446 
6447 	/* keep last */
6448 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST,
6449 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX =
6450 	QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1,
6451 };
6452 
6453 /**
6454  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
6455  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
6456  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
6457  */
6458 enum qca_wlan_vendor_cfr_method {
6459 	/* CFR method using QOS Null frame */
6460 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
6461 };
6462 
6463 /**
6464  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
6465  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
6466  * Channel Frequency Response capture parameters and enable periodic CFR
6467  * capture.
6468  */
6469 enum qca_wlan_vendor_peer_cfr_capture_attr {
6470 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
6471 	/* 6-byte MAC address of the peer.
6472 	 * This attribute is mandatory.
6473 	 */
6474 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
6475 	/* Enable peer CFR Capture, flag attribute.
6476 	 * This attribute is mandatory to enable peer CFR capture.
6477 	 * If this attribute is not present, peer CFR capture is disabled.
6478 	 */
6479 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
6480 	/* BW of measurement, attribute uses the values in enum nl80211_chan_width
6481 	 * Supported values: 20, 40, 80, 80+80, 160.
6482 	 * Note that all targets may not support all bandwidths.
6483 	 * u8 attribute. This attribute is mandatory if attribute
6484 	 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6485 	 */
6486 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
6487 	/* Periodicity of CFR measurement in msec.
6488 	 * Periodicity should be a multiple of Base timer.
6489 	 * Current Base timer value supported is 10 msecs (default).
6490 	 * 0 for one shot capture. u32 attribute.
6491 	 * This attribute is mandatory if attribute
6492 	 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6493 	 */
6494 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
6495 	/* Method used to capture Channel Frequency Response.
6496 	 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
6497 	 * u8 attribute. This attribute is mandatory if attribute
6498 	 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
6499 	 */
6500 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
6501 	/* Enable periodic CFR capture, flag attribute.
6502 	 * This attribute is mandatory to enable Periodic CFR capture.
6503 	 * If this attribute is not present, periodic CFR capture is disabled.
6504 	 */
6505 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
6506 
6507 	/* Keep last */
6508 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
6509 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
6510 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
6511 };
6512 
6513 /**
6514  * enum qca_wlan_throughput_level - Current throughput level
6515  *
6516  * Indicates the current level of throughput calculated by the driver. The
6517  * driver may choose different thresholds to decide whether the throughput level
6518  * is low or medium or high based on variety of parameters like physical link
6519  * capacity of the current connection, the number of packets being dispatched
6520  * per second, etc. The throughput level events might not be consistent with the
6521  * actual current throughput value being observed.
6522  *
6523  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
6524  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
6525  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
6526  */
6527 enum qca_wlan_throughput_level {
6528 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
6529 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
6530 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
6531 };
6532 
6533 /**
6534  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
6535  * report throughput changes from the driver to user space. enum values are used
6536  * for netlink attributes sent with
6537  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
6538  */
6539 enum qca_wlan_vendor_attr_throughput_change {
6540 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
6541 	/* Indicates the direction of throughput in which the change is being
6542 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
6543 	 */
6544 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
6545 	/* Indicates the newly observed throughput level. enum
6546 	 * qca_wlan_throughput_level describes the possible range of values.
6547 	 * u8 attribute.
6548 	 */
6549 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
6550 	/* Indicates the driver's guidance on the new value to be set to
6551 	 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The
6552 	 * driver may optionally include this attribute.
6553 	 */
6554 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
6555 	/* Indicates the driver's guidance on the new value to be set to
6556 	 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible
6557 	 * values are from -31 to 31. The driver may optionally include this
6558 	 * attribute.
6559 	 */
6560 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
6561 	/* Indicates the driver's guidance on the new value to be set to
6562 	 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may
6563 	 * optionally include this attribute.
6564 	 */
6565 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
6566 
6567 	/* keep last */
6568 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
6569 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
6570 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
6571 };
6572 
6573 /**
6574  * enum qca_coex_config_profiles - This enum defines different types of
6575  * traffic streams that can be prioritized one over the other during coex
6576  * scenarios.
6577  * The types defined in this enum are categorized in the below manner.
6578  * 0 - 31 values corresponds to WLAN
6579  * 32 - 63 values corresponds to BT
6580  * 64 - 95 values corresponds to Zigbee
6581  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
6582  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
6583  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
6584  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
6585  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
6586  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
6587  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
6588  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
6589  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
6590  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
6591  * @QCA_BT_A2DP: Prioritize BT A2DP
6592  * @QCA_BT_BLE: Prioritize BT BLE
6593  * @QCA_BT_SCO: Prioritize BT SCO
6594  * @QCA_ZB_LOW: Prioritize Zigbee Low
6595  * @QCA_ZB_HIGH: Prioritize Zigbee High
6596  */
6597 enum qca_coex_config_profiles {
6598 	/* 0 - 31 corresponds to WLAN */
6599 	QCA_WIFI_STA_DISCOVERY = 0,
6600 	QCA_WIFI_STA_CONNECTION = 1,
6601 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
6602 	QCA_WIFI_STA_DATA = 3,
6603 	QCA_WIFI_STA_ALL = 4,
6604 	QCA_WIFI_SAP_DISCOVERY = 5,
6605 	QCA_WIFI_SAP_CONNECTION = 6,
6606 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
6607 	QCA_WIFI_SAP_DATA = 8,
6608 	QCA_WIFI_SAP_ALL = 9,
6609 	QCA_WIFI_CASE_MAX = 31,
6610 	/* 32 - 63 corresponds to BT */
6611 	QCA_BT_A2DP = 32,
6612 	QCA_BT_BLE = 33,
6613 	QCA_BT_SCO = 34,
6614 	QCA_BT_CASE_MAX = 63,
6615 	/* 64 - 95 corresponds to Zigbee */
6616 	QCA_ZB_LOW = 64,
6617 	QCA_ZB_HIGH = 65,
6618 	QCA_ZB_CASE_MAX = 95,
6619 	/* 0xff is default value if the u8 profile value is not set. */
6620 	QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255
6621 };
6622 
6623 /**
6624  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
6625  * This enum defines the valid set of values of coex configuration types. These
6626  * values may used by attribute
6627  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
6628  *
6629  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
6630  *	weights to default values.
6631  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
6632  *	weights with configurability value.
6633  */
6634 enum qca_vendor_attr_coex_config_types {
6635 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
6636 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
6637 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
6638 };
6639 
6640 /**
6641  * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes
6642  *
6643  * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable
6644  * length array of 8-bit values from enum qca_coex_config_profiles.
6645  * FW will prioritize the profiles in the order given in the array encapsulated
6646  * in this attribute.
6647  * For example:
6648  * -----------------------------------------------------------------------
6649  * |     1       |       34       |        32         |         65       |
6650  * -----------------------------------------------------------------------
6651  * If the attribute contains the values defined in above array then it means
6652  * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH.
6653  * 2) BT_SCO has priority over BT_A2DP.
6654  * 3) BT_A2DP has priority over ZIGBEE HIGH.
6655  * Profiles which are not listed in this array shall not be preferred over the
6656  * profiles which are listed in the array as a part of this attribute.
6657  */
6658 enum qca_vendor_attr_coex_config {
6659 	QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
6660 	QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1,
6661 
6662 	/* Keep last */
6663 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST,
6664 	QCA_VENDOR_ATTR_COEX_CONFIG_MAX =
6665 	QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1,
6666 };
6667 
6668 /**
6669  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
6670  * attributes
6671  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
6672  *
6673  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
6674  * Indicate config type.
6675  * The config types are 32-bit values from qca_vendor_attr_coex_config_types
6676  *
6677  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
6678  *	Indicate the Priority 1 profiles.
6679  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
6680  *	In same priority level, maximum to 4 profiles can be set here.
6681  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
6682  *	Indicate the Priority 2 profiles.
6683  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
6684  *	In same priority level, maximum to 4 profiles can be set here.
6685  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
6686  *	Indicate the Priority 3 profiles.
6687  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
6688  *	In same priority level, maximum to 4 profiles can be set here.
6689  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
6690  *	Indicate the Priority 4 profiles.
6691  *	The profiles are 8-bit values from enum qca_coex_config_profiles.
6692  *	In same priority level, maximum to 4 profiles can be set here.
6693  * NOTE:
6694  * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
6695  * arrangement:
6696  *	1: In the same u32 attribute (priority x), the profiles enum values own
6697  *	same priority level.
6698  *	2: 0xff is default value if the u8 profile value is not set.
6699  *	3: max to 4 rules/profiles in same priority level.
6700  *	4: max to 4 priority level (priority 1 - priority 4)
6701  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
6702  *	hybrid rules not support.
6703  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
6704  *	remain blank to reset all parameters.
6705  * For example:
6706  *
6707  *	If the attributes as follow:
6708  *	priority 1:
6709  *	------------------------------------
6710  *	|  0xff  |    0   |   1   |    2   |
6711  *	------------------------------------
6712  *	priority 2:
6713  *	-------------------------------------
6714  *	|  0xff  |  0xff  |  0xff  |   32   |
6715  *	-------------------------------------
6716  *	priority 3:
6717  *	-------------------------------------
6718  *	|  0xff  |  0xff  |  0xff  |   65   |
6719  *	-------------------------------------
6720  *	then it means:
6721  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
6722  *		owns same priority level.
6723  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
6724  *		has priority over BT_A2DP and ZB_HIGH.
6725  *	3: BT_A2DP has priority over ZB_HIGH.
6726  */
6727 
6728 enum qca_vendor_attr_coex_config_three_way {
6729 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
6730 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
6731 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
6732 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
6733 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
6734 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
6735 
6736 	/* Keep last */
6737 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
6738 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
6739 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
6740 };
6741 
6742 /**
6743  * enum qca_wlan_vendor_attr_link_properties - Represent the link properties.
6744  *
6745  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer
6746  * (STA/AP) for the connected link.
6747  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
6748  * &struct nl80211_sta_flag_update for the respective connected link. MAC
6749  * address of the peer represented by
6750  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
6751  */
6752 enum qca_wlan_vendor_attr_link_properties {
6753 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
6754 	/* 1 - 3 are reserved */
6755 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
6756 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
6757 
6758 	/* Keep last */
6759 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
6760 	QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX =
6761 	QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
6762 };
6763 
6764 /**
6765  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
6766  * This enum defines the valid set of values of peer stats cache types. These
6767  * values are used by attribute
6768  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE.
6769  *
6770  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics
6771  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics
6772  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn
6773  * statistics
6774  */
6775 enum qca_vendor_attr_peer_stats_cache_type {
6776 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
6777 
6778 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
6779 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
6780 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
6781 };
6782 
6783 /**
6784  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
6785  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
6786  * Information in these attributes is used to flush peer rate statistics from
6787  * the driver to user application.
6788  *
6789  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
6790  * Indicate peer statistics cache type.
6791  * The statistics types are 32-bit values from
6792  * enum qca_vendor_attr_peer_stats_cache_type.
6793  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
6794  * of size 6 octets, representing the peer MAC address.
6795  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
6796  * containing buffer of statistics to send to application layer entity.
6797  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
6798  * representing a cookie for peer unique session.
6799  */
6800 enum qca_wlan_vendor_attr_peer_stats_cache_params {
6801 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
6802 
6803 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
6804 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
6805 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
6806 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
6807 
6808 	/* Keep last */
6809 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
6810 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
6811 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
6812 };
6813 
6814 /**
6815  * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state
6816  * This enum defines all the possible states of Zigbee, which can be
6817  * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute.
6818  *
6819  * @ZIGBEE_IDLE: Zigbee in idle state
6820  * @ZIGBEE_FORM_NETWORK: Zigbee forming network
6821  * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network
6822  * @ZIGBEE_JOIN: Zigbee joining network
6823  * @ZIGBEE_NETWORK_UP: Zigbee network is up
6824  * @ZIGBEE_HMI: Zigbee in HMI mode
6825  */
6826 enum qca_mpta_helper_attr_zigbee_state {
6827 	ZIGBEE_IDLE = 0,
6828 	ZIGBEE_FORM_NETWORK = 1,
6829 	ZIGBEE_WAIT_JOIN = 2,
6830 	ZIGBEE_JOIN = 3,
6831 	ZIGBEE_NETWORK_UP = 4,
6832 	ZIGBEE_HMI = 5,
6833 };
6834 
6835 /*
6836  * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command
6837  * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
6838  */
6839 enum qca_mpta_helper_vendor_attr {
6840 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
6841 	/* Optional attribute used to update Zigbee state.
6842 	 * enum qca_mpta_helper_attr_zigbee_state.
6843 	 * NLA_U32 attribute.
6844 	 */
6845 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
6846 	/* Optional attribute used to configure WLAN duration for Shape-OCS
6847 	 * during interrupt.
6848 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
6849 	 * Value range 0 ~ 300 (ms).
6850 	 * NLA_U32 attribute.
6851 	 */
6852 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
6853 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
6854 	 * during interrupt.
6855 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
6856 	 * Value range 0 ~ 300 (ms).
6857 	 * NLA_U32 attribute.
6858 	 */
6859 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION  = 3,
6860 	/* Optional attribute used to configure WLAN duration for Shape-OCS
6861 	 * monitor period.
6862 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
6863 	 * Value range 0 ~ 300 (ms)
6864 	 * NLA_U32 attribute
6865 	 */
6866 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
6867 	/* Optional attribute used to configure non-WLAN duration for Shape-OCS
6868 	 * monitor period.
6869 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
6870 	 * Value range 0 ~ 300 (ms)
6871 	 * NLA_U32 attribute
6872 	 */
6873 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION  = 5,
6874 	/* Optional attribute used to configure OCS interrupt duration.
6875 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
6876 	 * Value range 1000 ~ 20000 (ms)
6877 	 * NLA_U32 attribute
6878 	 */
6879 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION  = 6,
6880 	/* Optional attribute used to configure OCS monitor duration.
6881 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
6882 	 * Value range 1000 ~ 20000 (ms)
6883 	 * NLA_U32 attribute
6884 	 */
6885 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION  = 7,
6886 	/* Optional attribute used to notify WLAN firmware the current Zigbee
6887 	 * channel.
6888 	 * Value range 11 ~ 26
6889 	 * NLA_U32 attribute
6890 	 */
6891 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
6892 	/* Optional attribute used to configure WLAN mute duration.
6893 	 * Value range 0 ~ 400 (ms)
6894 	 * NLA_U32 attribute
6895 	 */
6896 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION	= 9,
6897 
6898 	/* keep last */
6899 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
6900 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
6901 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
6902 };
6903 
6904 /**
6905  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
6906  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used.
6907  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
6908  *
6909  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
6910  * to request the driver to start reporting Beacon frames.
6911  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to
6912  * request the driver to stop reporting Beacon frames.
6913  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
6914  * userspace to report received Beacon frames.
6915  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
6916  * to indicate that the driver is going to pause reporting Beacon frames.
6917  */
6918 enum qca_wlan_vendor_beacon_reporting_op_types {
6919 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
6920 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
6921 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
6922 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
6923 };
6924 
6925 /**
6926  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types
6927  * of reasons for which the driver is pausing reporting Beacon frames. Will be
6928  * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
6929  *
6930  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
6931  * reasons.
6932  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
6933  * driver/firmware is starting a scan.
6934  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
6935  * driver/firmware disconnects from the ESS and indicates the disconnection to
6936  * userspace (non-seamless roaming case). This reason code will be used by the
6937  * driver/firmware to indicate stopping of beacon report events. Userspace will
6938  * need to start beacon reporting again (if desired) by sending vendor command
6939  * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
6940  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
6941  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
6942  * completed.
6943  */
6944 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
6945 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
6946 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
6947 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
6948 };
6949 
6950 /*
6951  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
6952  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
6953  */
6954 enum qca_wlan_vendor_attr_beacon_reporting_params {
6955 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
6956 	/* Specifies the type of operation that the vendor command/event is
6957 	 * intended for. Possible values for this attribute are defined in
6958 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
6959 	 */
6960 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
6961 	/* Optionally set by userspace to request the driver to report Beacon
6962 	 * frames using asynchronous vendor events when the
6963 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
6964 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
6965 	 * If this flag is not set, the driver will only update Beacon frames in
6966 	 * cfg80211 scan cache but not send any vendor events.
6967 	 */
6968 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
6969 	/* Optionally used by userspace to request the driver/firmware to report
6970 	 * Beacon frames periodically when the
6971 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
6972 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
6973 	 * u32 attribute, indicates the period of Beacon frames to be reported
6974 	 * and in the units of beacon interval.
6975 	 * If this attribute is missing in the command, then the default value
6976 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
6977 	 * Zero is an invalid value.
6978 	 * If a valid value is received for this attribute, the driver will
6979 	 * update the cfg80211 scan cache periodically as per the value received
6980 	 * in this attribute in addition to updating the cfg80211 scan cache
6981 	 * when there is significant change in Beacon frame IEs.
6982 	 */
6983 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
6984 	/* Used by the driver to encapsulate the SSID when the
6985 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
6986 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
6987 	 * u8 array with a maximum size of 32.
6988 	 *
6989 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
6990 	 * will be taken from the SSID element of the received Beacon frame.
6991 	 *
6992 	 * When generating beacon report from Multiple BSSID Beacon frame and if
6993 	 * the BSSID of the current connected BSS matches the BSSID of the
6994 	 * transmitting BSS, the SSID will be taken from the SSID element of the
6995 	 * received Beacon frame.
6996 	 *
6997 	 * When generating beacon report from Multiple BSSID Beacon frame and if
6998 	 * the BSSID of the current connected BSS matches the BSSID of one of
6999 	 * the* nontransmitting BSSs, the SSID will be taken from the SSID field
7000 	 * included in the nontransmitted BSS profile whose derived BSSID is
7001 	 * same as the BSSID of the current connected BSS. When there is no
7002 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
7003 	 * of current connected* BSS, this attribute will not be present.
7004 	 */
7005 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
7006 	/* Used by the driver to encapsulate the BSSID of the AP to which STA is
7007 	 * currently connected to when the
7008 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7009 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
7010 	 * fixed size of 6 bytes.
7011 	 *
7012 	 * When generating beacon report from a Multiple BSSID beacon and the
7013 	 * current connected BSSID matches one of the nontransmitted BSSIDs in a
7014 	 * Multiple BSSID set, this BSSID will be that particular nontransmitted
7015 	 * BSSID and not the transmitted BSSID (i.e., the transmitting address
7016 	 * of the Beacon frame).
7017 	 */
7018 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
7019 	/* Used by the driver to encapsulate the frequency in MHz on which
7020 	 * the Beacon frame was received when the
7021 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
7022 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7023 	 * u32 attribute.
7024 	 */
7025 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
7026 	/* Used by the driver to encapsulate the Beacon interval
7027 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7028 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7029 	 * u16 attribute. The value will be copied from the Beacon frame and the
7030 	 * units are TUs.
7031 	 */
7032 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
7033 	/* Used by the driver to encapsulate the Timestamp field from the Beacon
7034 	 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set
7035 	 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
7036 	 * u64 attribute.
7037 	 */
7038 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
7039 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
7040 	 * Beacon frame is received in the driver when the
7041 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7042 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
7043 	 * the units of nanoseconds. This value is expected to have accuracy of
7044 	 * about 10 ms.
7045 	 */
7046 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
7047 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
7048 	 * which this event is generated when the
7049 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7050 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
7051 	 */
7052 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
7053 	/* Used by the driver to specify the reason for the driver/firmware to
7054 	 * pause sending beacons to userspace when the
7055 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7056 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
7057 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
7058 	 * attribute.
7059 	 */
7060 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
7061 	/* Used by the driver to specify whether the driver will automatically
7062 	 * resume reporting beacon events to userspace later (for example after
7063 	 * the ongoing off-channel activity is completed etc.) when the
7064 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7065 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
7066 	 */
7067 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
7068 	/* Optionally set by userspace to request the driver not to resume
7069 	 * beacon reporting after a pause is completed, when the
7070 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
7071 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
7072 	 * If this flag is set, the driver will not resume beacon reporting
7073 	 * after any pause in beacon reporting is completed. Userspace has to
7074 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
7075 	 * to initiate beacon reporting again. If this flag is set in the recent
7076 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
7077 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
7078 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
7079 	 * set by the driver. Setting this flag until and unless there is a
7080 	 * specific need is not recommended as there is a chance of some beacons
7081 	 * received after pause command and next start command being not
7082 	 * reported.
7083 	 */
7084 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
7085 
7086 	/* Keep last */
7087 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
7088 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
7089 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
7090 };
7091 
7092 /**
7093  * enum qca_vendor_interop_issues_ap_type - Interop issue types
7094  * This enum defines the valid set of values of interop issue types. These
7095  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
7096  *
7097  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue
7098  * when the STA's Qpower feature is enabled.
7099  */
7100 enum qca_vendor_interop_issues_ap_type {
7101 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
7102 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
7103 };
7104 
7105 /**
7106  * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues
7107  * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
7108  *
7109  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value
7110  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type
7111  * 32-bit unsigned value. The values defined in enum
7112  * qca_vendor_interop_issues_ap_type are used.
7113  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container
7114  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes.
7115  * It is present and mandatory for the command but is not used for the event
7116  * since only a single BSSID is reported in an event.
7117  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address.
7118  * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST
7119  * attribute in command case and without such encapsulation in the event case.
7120  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
7121  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
7122  */
7123 enum qca_vendor_attr_interop_issues_ap {
7124 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
7125 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
7126 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
7127 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
7128 	/* keep last */
7129 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
7130 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
7131 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
7132 };
7133 
7134 /*
7135  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
7136  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
7137  *
7138  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor
7139  * command QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this attribute.
7140  * NLA_BINARY attribute, the max size is 1024 bytes.
7141  */
7142 enum qca_wlan_vendor_attr_oem_data_params {
7143 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
7144 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
7145 
7146 	/* keep last */
7147 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
7148 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
7149 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
7150 };
7151 #endif /* QCA_VENDOR_H */
7152