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