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