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