xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 4902c68f4d4507da5cf7607fa013a97fcb10adba)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: declares vendor commands interfacing with linux kernel
22  */
23 
24 
25 #ifndef _WLAN_QCA_VENDOR_H_
26 #define _WLAN_QCA_VENDOR_H_
27 
28 /* Vendor id to be used in vendor specific command and events
29  * to user space.
30  * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
31  * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
32  * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
33  * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
34  */
35 
36 #define QCA_NL80211_VENDOR_ID           0x001374
37 
38 #ifndef BIT
39 #define BIT(x) (1U << (x))
40 #endif
41 
42 /**
43  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
44  *
45  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
46  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
47  *	Sub commands 2 to 8 are not used
48  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
49  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
50  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
51  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52  *	NAN Request/Response and NAN Indication messages. These messages are
53  *	interpreted between the framework and the firmware component. While
54  *	sending the command from userspace to the driver, payload is not
55  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56  *	is used when receiving vendor events in userspace from the driver.
57  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
59  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
61  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
62  *	results
63  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
64  *	results
65  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
66  *	results
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
68  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
69  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
70  *	channels
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
72  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
73  *	results
74  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
75  *	available. Used when report_threshold is reached in scan cache.
76  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
77  *	result. Used to report scan results when each probe rsp. is received,
78  *	if report_events enabled in wifi_scan_cmd_params.
79  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
80  *	Indicates progress of scanning state-machine.
81  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
82  *	ap found
83  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
84  *	bssid
85  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
86  *	hotlist bssid
87  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
88  *	change
89  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
90  *	significant change
91  *	ap found
92  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
93  *	significant change
94  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
95  *	capability or to form a session with the specified peer.
96  *	If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
97  *	indicates to enable TDLS capability on the interface.
98  *	If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
99  *	%NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
100  *	form a TDLS session with the specified peer MAC address.
101  *	The attributes used with this command are defined in
102  *	enum qca_wlan_vendor_attr_tdls_enable.
103  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
104  *	capability or to terminate the session with the specified peer.
105  *	If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
106  *	indicates to disable TDLS capability on the interface.
107  *	If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
108  *	%NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
109  *	terminate TDLS session with the specified peer MAC address.
110  *	The attributes used with this command are defined in
111  *	enum qca_wlan_vendor_attr_tdls_disable.
112  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
113  *	status at the interface level or with the specific peer.
114  *	If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
115  *	indicates the TDLS status query is at interface level.
116  *	If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
117  *	%NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
118  *	get TDLS session status with the specified peer MAC address.
119  *	The attributes used with this command are defined in
120  *	enum qca_wlan_vendor_attr_tdls_get_status.
121  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
122  *	of the TDLS session request with the peer sent by userspace in
123  *	%QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
124  *	The attributes used with this command are defined in
125  *	enum qca_wlan_vendor_attr_tdls_state.
126  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
127  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
128  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
129  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
130  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
131  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
132  * roaming and auth information.
133  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
134  *
135  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
136  *	invoke the ACS function in device and pass selected channels to
137  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
138  *
139  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
140  * driver.
141  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
142  *	started CAC on DFS channel
143  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
144  * 	completed the CAC check on DFS channel
145  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
146  * 	check was aborted by the driver
147  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
148  * 	driver completed NOP
149  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
150  * 	driver detected radar signal on the current operating channel
151  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
152  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
153  *	configure various wiphy or interface level configurations. Attributes
154  *	are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
155  *	or more configuration attributes with a single command. The driver
156  *	accepts the command only if all the configurations are known, otherwise
157  *	it rejects the command. The driver returns success only if processing of
158  *	all the configurations succeeds. The driver continues to process all the
159  *	configurations even if processing of some configurations failed and
160  *	returns the last error occurred while processing the failed
161  *	configurations.
162  *
163  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
164  *	get the current values of the various wiphy or interface level
165  *	configurations. Attributes are defined in enum
166  *	qca_wlan_vendor_attr_config. Userspace needs to specify the
167  *	configuration attributes for which it wants to get the values in the
168  *	command, there is no significance for the value sent in the attribute
169  *	unless explicitly specified in the corresponding configuration
170  *	attribute documentation. The driver accepts the command only if all the
171  *	configurations are known, otherwise it rejects the command. The driver
172  *	returns success only if fetching of all configuration values succeeds
173  *	and indicates the configuration values in corresponding attributes in
174  *	the response. The driver continues to process all the configurations
175  *	even if processing of some configurations failed and returns the last
176  *	error occurred while processing the failed configurations.
177  *
178  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
179  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
180  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
181  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
182  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
183  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
184  *	extscan reset ssid hotlist
185  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
186  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
187  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
188  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
189  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
190  *	reset passpoint list
191  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
192  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
193  *	passpoint network found
194  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
195  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
196  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
197  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
198  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
199  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
200 	list
201  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
202  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
203  *	to the host driver. This command sets the band through either
204  *	the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
205  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
206  *	refers enum qca_set_band as unsigned integer values and
207  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
208  *	values. Also, the acceptable values for
209  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
210  *	values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
211  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
212  *	recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
213  *	implementations configure using both the attributes, the configurations
214  *	through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
215  *	precedence.
216  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
217  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
218  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
219  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
220  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
221  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
222  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
223  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
224  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
225  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
226  *	start the P2P Listen Offload function in device and pass the listen
227  *	channel, period, interval, count, number of device types, device
228  *	types and vendor information elements to device driver and firmware.
229  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
230  *	indicate stop request/response of the P2P Listen Offload function in
231  *	device. As an event, it indicates either the feature stopped after it
232  *	was already running or feature has actually failed to start.
233  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
234  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
235  *     beaconing, this sub command provides the driver, the frequencies on the
236  *     5 GHz to check for any radar activity. Driver selects one channel from
237  *     this priority list provided through
238  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
239  *     to check for radar activity on it. If no radar activity is detected
240  *     during the channel availability check period, driver internally switches
241  *     to the selected frequency of operation. If the frequency is zero, driver
242  *     internally selects a channel. The status of this conditional switch is
243  *     indicated through an event using the same sub command through
244  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
245  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
246  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
247  *      indication period and threshold for MAC layer counters.
248  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
249  *	in the host driver. The different TDLS configurations are defined
250  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
251  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
252  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
253  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
254  *	require methods to set SAR limits on TX power of WLAN/WWAN.
255  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
256  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
257  *      configuration of vendor ACS.
258  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
259  *      requisite information leading to a power save failure. The information
260  *      carried as part of this event is represented by the
261  *      enum qca_attr_chip_power_save_failure attributes.
262  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
263  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
264  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
265  *      statistics are represented by the enum qca_attr_nud_stats_get
266  *      attributes.
267  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
268  *      the BSS transition status, whether accept or reject, for a list of
269  *      candidate BSSIDs provided by the userspace. This uses the vendor
270  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
271  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
272  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
273  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
274  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
275  *      the driver shall specify array of
276  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
277  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
278  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
279  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
280  *      specific QCA module. The trace levels are represented by
281  *      enum qca_attr_trace_level attributes.
282  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
283  *      Protocol antenna limit in different modes. See enum
284  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
285  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
286  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
287  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
288  *      identifying the operation in success case. In failure cases an
289  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
290  *      describing the reason for the failure is returned.
291  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
292  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
293  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
294  *      be stopped.
295  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
296  *     specific interface. This can be used to modify some of the low level
297  *     scan parameters (off channel dwell time, home channel time) in the
298  *     driver/firmware. These parameters are maintained within the host
299  *     driver.
300  *     This command is valid only when the interface is in the connected
301  *     state.
302  *     These scan parameters shall be reset by the driver/firmware once
303  *     disconnected. The attributes used with this command are defined in
304  *     enum qca_wlan_vendor_attr_active_tos.
305  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
306  *      driver has detected an internal failure. This event carries the
307  *      information indicating the reason that triggered this detection. The
308  *      attributes for this command are defined in
309  *      enum qca_wlan_vendor_attr_hang.
310  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
311  *     of spectral parameters used. The spectral scan parameters are specified
312  *     by enum qca_wlan_vendor_attr_spectral_scan.
313  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
314  *     for spectral scan functionality. The debug stats are specified by
315  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
316  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
317  *     scan system capabilities. The capabilities are specified
318  *     by enum qca_wlan_vendor_attr_spectral_cap.
319  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
320  *     status of spectral scan. The status values are specified
321  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
322  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
323  *     peer pending packets. Specify the peer MAC address in
324  *     QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
325  *     in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
326  *     in enum qca_wlan_vendor_attr_flush_pending.
327  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
328  *     RF Operating Parameter (RROP) information. The attributes for this
329  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
330  *     intended for use by external Auto Channel Selection applications.
331  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
332  *	(SAR) power limits. This is a companion to the command
333  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
334  *	settings currently in use. The attributes returned by this command are
335  *	defined by enum qca_vendor_attr_sar_limits.
336  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
337  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
338  *      This works both as a query (user space asks the current mode) or event
339  *      interface (driver advertizing the current mode to the user space).
340  *      Driver does not trigger this event for temporary hardware mode changes.
341  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
342  *      channel change etc ) are updated with this event. Attributes for this
343  *      interface are defined in enum qca_wlan_vendor_attr_mac.
344  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
345  *	per peer per TID. Attributes for this command are define in
346  *	enum qca_wlan_set_qdepth_thresh_attr
347  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
348  *	guide for WLAN driver. Request to suspend of driver and FW if the
349  *	temperature is higher than the suspend threshold; resume action is
350  *	requested to driver if the temperature is lower than the resume
351  *	threshold. In user poll mode, request temperature data by user. For test
352  *	purpose, getting thermal shutdown configuration parameters is needed.
353  *	Attributes for this interface are defined in
354  *	enum qca_wlan_vendor_attr_thermal_cmd.
355  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
356  *	driver. Thermal temperature and indication of resume completion are
357  *	reported as thermal events. The attributes for this command are defined
358  *	in enum qca_wlan_vendor_attr_thermal_event.
359  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
360  *	test configuration. Attributes for this command are defined in
361  *	enum qca_wlan_vendor_attr_wifi_test_config.
362  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
363  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
364  *	carried a payload which was a binary blob of data. The command was not
365  *	extendable to send more information. The newer version carries the
366  *	legacy blob encapsulated within an attribute and can be extended with
367  *	additional vendor attributes that can enhance the NAN command
368  *	interface.
369  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
370  *	configure parameters per peer to capture Channel Frequency Response
371  *	(CFR) and enable Periodic CFR capture. The attributes for this command
372  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
373  *	can also be used to send CFR data from the driver to userspace when
374  *	netlink events are used to send CFR data.
375  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
376  *	The returned firmware state is specified in the attribute
377  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
378  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
379  *	is used by host driver to flush per-peer cached statistics to user space
380  *	application. This interface is used as an event from host driver to
381  *	user space application. Attributes for this event are specified in
382  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
383  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
384  *	sent as event from host driver.
385  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
386  *	improve the success rate of Zigbee joining network.
387  *	Due to PTA master limitation, zigbee joining network success rate is
388  *	low while wlan is working. Wlan host driver need to configure some
389  *	parameters including Zigbee state and specific WLAN periods to enhance
390  *	PTA master. All this parameters are delivered by the NetLink attributes
391  *	defined in "enum qca_mpta_helper_vendor_attr".
392  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
393  *	implement Beacon frame reporting feature.
394  *
395  *	Userspace can request the driver/firmware to periodically report
396  *	received Beacon frames whose BSSID is same as the current connected
397  *	BSS's MAC address.
398  *
399  *	In case the STA seamlessly (without sending disconnect indication to
400  *	userspace) roams to a different BSS, Beacon frame reporting will be
401  *	automatically enabled for the Beacon frames whose BSSID is same as the
402  *	MAC address of the new BSS. Beacon reporting will be stopped when the
403  *	STA is disconnected (when the disconnect indication is sent to
404  *	userspace) and need to be explicitly enabled by userspace for next
405  *	connection.
406  *
407  *	When a Beacon frame matching configured conditions is received, and if
408  *	userspace has requested to send asynchronous beacon reports, the
409  *	driver/firmware will encapsulate the details of the Beacon frame in an
410  *	event and send it to userspace along with updating the BSS information
411  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
412  *	scan cache with the information from the received Beacon frame but
413  *	will not send any active report to userspace.
414  *
415  *	The userspace can request the driver/firmware to stop reporting Beacon
416  *	frames. If the driver/firmware is not able to receive Beacon frames
417  *	due to other Wi-Fi operations such as off-channel activities, etc.,
418  *	the driver/firmware will send a pause event to userspace and stop
419  *	reporting Beacon frames. Whether the beacon reporting will be
420  *	automatically resumed or not by the driver/firmware later will be
421  *	reported to userspace using the
422  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
423  *	reporting shall be resumed for all the cases except either when
424  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
425  *	in the command which triggered the current beacon reporting or during
426  *	any disconnection case as indicated by setting
427  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
428  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
429  *	driver.
430  *
431  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
432  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
433  *	flag not set, the next first
434  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
435  *	shall be considered as un-pause event.
436  *
437  *	All the attributes used with this command are defined in
438  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
439  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
440  *	interop issues with the DUT. This sub command is used to transfer the
441  *	ap info between driver and user space. This works both as a command
442  *	or event. As a command, it configs the stored list of aps from user
443  *	space to firmware; as an event, it indicates the ap info detected by
444  *	firmware to user space for persistent storage. The attributes defined
445  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
446  *	parameters.
447  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
448  *	binary blobs from application/service to firmware. The attributes
449  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
450  *	deliver the parameters.
451  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
452  *	to send/receive avoid frequency data using
453  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
454  *	This new command is alternative to existing command
455  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
456  *	is using stream of bytes instead of structured data using vendor
457  *	attributes. User space sends unsafe frequency ranges to the driver using
458  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
459  *	reception of this command, the driver shall check if an interface is
460  *	operating on an unsafe frequency and the driver shall try to move to a
461  *	safe channel when needed. If the driver is not able to find a safe
462  *	channel the interface can keep operating on an unsafe channel with the
463  *	TX power limit derived based on internal configurations	like
464  *	regulatory/SAR rules.
465  *
466  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
467  *	add the STA node details in driver/firmware. Attributes for this event
468  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
469  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
470  *	coex chain mode from application/service.
471  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
472  *	to deliver the parameters.
473  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
474  *	get information of a station from driver to userspace. This command can
475  *	be used in both STA and AP modes. For STA mode, it provides information
476  *	of the current association when in connected state or the last
477  *	association when in disconnected state. For AP mode, only information
478  *	of the currently connected stations is available. This command uses
479  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
480  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
481  *	Host drivers can request the user space entity to set the SAR power
482  *	limits with this event. Accordingly, the user space entity is expected
483  *	to set the SAR power limits. Host drivers can retry this event to the
484  *	user space for the SAR power limits configuration from user space. If
485  *	the driver does not get the SAR power limits from user space for all
486  *	the retried attempts, it can configure a default SAR power limit.
487  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
488  *	is used to update the information about the station from the driver to
489  *	userspace. Uses attributes from enum
490  *	qca_wlan_vendor_attr_update_sta_info.
491  *
492  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
493  *	The host driver initiates the disconnection for scenarios such as beacon
494  *	miss, NUD failure, peer kick out, etc. The disconnection indication
495  *	through cfg80211_disconnected() expects the reason codes from enum
496  *	ieee80211_reasoncode which does not signify these various reasons why
497  *	the driver has triggered the disconnection. This event will be used to
498  *	send the driver specific reason codes by the host driver to userspace.
499  *	Host drivers should trigger this event and pass the respective reason
500  *	code immediately prior to triggering cfg80211_disconnected(). The
501  *	attributes used with this event are defined in enum
502  *	qca_wlan_vendor_attr_driver_disconnect_reason.
503  *
504  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
505  *	add/delete TSPEC for each AC. One command is for one specific AC only.
506  *	This command can only be used in STA mode and the STA must be
507  *	associated with an AP when the command is issued. Uses attributes
508  *	defined in enum qca_wlan_vendor_attr_config_tspec.
509  *
510  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
511  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
512  *
513  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
514  *	the host driver. The band configurations obtained are referred through
515  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
516  *
517  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
518  *	assessment.
519  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
520  *
521  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
522  *	used to update SSID information in hostapd when it is updated in the
523  *	driver. Uses the attribute NL80211_ATTR_SSID.
524  *
525  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
526  *	the driver to send opaque data from the firmware to userspace. The
527  *	driver sends an event to userspace whenever such data is received from
528  *	the firmware.
529  *
530  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
531  *	send this opaque data for this event.
532  *
533  *	The format of the opaque data is specific to the particular firmware
534  *	version and there is no guarantee of the format remaining same.
535  *
536  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
537  *	The host driver selects Tx VDEV, and notifies user. The attributes
538  *	used with this event are defined in enum
539  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
540  *	This event contains Tx VDEV group information contains other VDEVs
541  *	interface index and status information.
542  *
543  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
544  *	configure the concurrent session policies when multiple interfaces
545  *	are (getting) active. The attributes used by this command are defined
546  *	in enum qca_wlan_vendor_attr_concurrent_policy.
547  *
548  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
549  *	to query usable channels for different interface types such as STA,
550  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
551  *	channels in the response based on country code, different static
552  *	configurations, concurrency combinations, etc. The attributes used
553  *	with this command are defined in
554  *	enum qca_wlan_vendor_attr_usable_channels.
555  *
556  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
557  *	to get DFS radar history from the driver to userspace. The driver
558  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
559  *	array of nested entries.
560  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
561  *	enable/disable mDNS offload to the firmware. The attributes used with
562  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
563  *
564  * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
565  *	important debug events that are required for various issues. The
566  *	attributes used with this command are defined in
567  *	enum qca_wlan_vendor_attr_diag.
568  *	This command is defined for temporary usage until this interface is
569  *	moved to the existing diag infra with cnss diag events. This command
570  *	will be deprecated soon and it is not recommended to do any further
571  *	enhancements to this command.
572  *
573  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
574  *     to set packet monitor mode that aims to send the specified set of TX and
575  *     RX frames on the current client interface to an active monitor interface.
576  *     If this Monitor mode is set, the driver will send the configured frames,
577  *     from the interface on which the command is issued, to an active monitor
578  *     interface. The attributes used with this command are defined in
579  *     enum qca_wlan_vendor_attr_set_monitor_mode.
580  *
581  *     Though the monitor mode is configured for the respective data/mgmt/ctrl
582  *     frames, it is up to the respective WLAN driver/firmware/hardware designs
583  *     to consider the possibility of sending these frames over the monitor
584  *     interface. For example, the control frames are handled with in the
585  *     hardware and thus passing such frames over the monitor interface is left
586  *     to the respective designs.
587  *
588  *     Also, this monitor mode is governed to behave accordingly in
589  *     suspend/resume states. If the firmware handles any of such frames
590  *     in suspend state without waking up the host and if the monitor mode
591  *     is configured to notify all such frames, then the firmware is expected
592  *     to resume the host and forward the respective frames to the monitor
593  *     interface. Please note that such a request to get the frames over the
594  *     monitor interface will have a definite power implications.
595  *
596  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
597  *     as a request to set the driver/firmware with the parameters to trigger
598  *     the roaming events, and also used by the driver/firmware to pass on the
599  *     various roam events to userspace.
600  *     Applicable only for the STA mode. The attributes used with this command
601  *     are defined in enum qca_wlan_vendor_attr_roam_events.
602  *
603  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
604  *     rate mask config for a list of phy types. Userspace shall provide
605  *     an array of the vendor attributes defined in
606  *     enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
607  *
608  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
609  *	when two interfaces are active on the same band, using two different
610  *	home channels, and only supported by a single radio. In this scenario
611  *	the device must split the use of the radio between the two interfaces.
612  *	The percentage of time allocated to a given interface is the quota.
613  *	Depending on the configuration, the quota can either be fixed or
614  *	dynamic.
615  *
616  *	When used as an event, the device will report the quota type, and for
617  *	all interfaces operating in MCC it will report the current quota.
618  *	When used as a command, the device can be configured for a specific
619  *	quota type, and in the case of a fixed quota, the quota to apply to one
620  *	of the interfaces.
621  *
622  *	Applications can use the event to do TX bitrate control based on the
623  *	information, and can use the command to explicitly set the quota to
624  *	enhance performance in specific scenarios.
625  *
626  *	The attributes used with this command are defined in
627  *	enum qca_wlan_vendor_attr_mcc_quota.
628  *
629  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
630  *	user space that the driver is ready for operations again after
631  *	recovering from internal failures. This occurs following a failure
632  *	that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
633  *
634  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
635  *	get the WLAN radio combinations matrix supported by the device which
636  *	provides the device simultaneous radio configurations such as
637  *	standalone, dual band simultaneous, and single band simultaneous.
638  *
639  *	The attributes used with this command are defined in
640  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
641  *
642  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
643  *	security negotiation and key generation to user space.
644  *
645  *	When used as an event, the driver requests userspace to trigger the PASN
646  *	authentication or dropping of a PTKSA for the indicated peer devices.
647  *	When used as a command response, userspace indicates a consolidated
648  *	status report for all the peers that were requested for.
649  *
650  *	The attributes used with this command are defined in
651  *	enum qca_wlan_vendor_attr_pasn.
652  *
653  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
654  *	secure ranging context such as TK and LTF keyseed for each peer
655  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
656  *
657  *	The attributes used with this command are defined in
658  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
659  *
660  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
661  *	enable/disable offload processing in firmware during system/runtime
662  *	suspend for CoAP messages (see RFC7252: The Constrained Application
663  *	Protocol) and fetch information of the CoAP messages cached during
664  *	offload processing.
665  *
666  *	The attributes used with this command are defined in
667  *	enum qca_wlan_vendor_attr_coap_offload.
668  *
669  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
670  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
671  *
672  *	The attributes used with this event are defined in
673  *	enum qca_wlan_vendor_attr_scs_rule_config.
674  *
675  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
676  *	supported by the WLAN firmware.
677  *
678  *	The attributes used with this command are defined in
679  *	enum qca_wlan_vendor_attr_sar_capability.
680  *
681  * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
682  *	(SR) feature. This command is used by userspace to configure SR
683  *	parameters to the driver and to get the SR related parameters and
684  *	statistics with synchronous responses from the driver.
685  *	The driver also uses this command to send asynchronous events to
686  *	userspace to indicate suspend/resume of SR feature and changes
687  *	in SR parameters.
688  *
689  *	The attributes used with this command are defined in
690  *	enum qca_wlan_vendor_attr_sr.
691  *
692  * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
693  *	notify application layer about the primary netdev of an MLO connection.
694  *	In some implementations, MLO has multiple netdevs out of which one
695  *	netdev is designated as primary to provide a unified interface to the
696  *	bridge. In those implementations this event is sent on every MLO peer
697  *	connection. User applications on an AP MLD will use this event to get
698  *	info for all the links from non-AP MLD that were negotiated to be used
699  *	for the ML association.
700  *
701  *	The attributes used with this event are defined in
702  *	enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
703  *
704  * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
705  *	driver to notify different AFC events to userspace. The attributes used
706  *	with this command are defined in enum qca_wlan_vendor_attr_afc_event.
707  *
708  * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
709  *	userspace to deliver AFC response data to driver. The attributes used
710  *	with this command are defined in enum qca_wlan_vendor_attr_afc_response.
711  *
712  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
713  *	operate in doze mode.
714  *
715  *	Userspace uses this command to configure the AP interface to enter or
716  *	exit from doze mode. The driver sends this event after it enters or
717  *	exits the doze mode with the updated AP doze mode settings.
718  *
719  *	The attributes used with this subcommand are defined in
720  *	enum qca_wlan_vendor_attr_dozed_ap.
721  *
722  * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
723  *	to get the status of local packet capture of monitor mode. The monitor
724  *	mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
725  *	subcommand.
726  *
727  *	The attributes used with this command are defined in enum
728  *	qca_wlan_vendor_attr_get_monitor_mode.
729  *
730  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
731  *	get roam information from the driver to user space. It provides the
732  *	latest several instances of roam information cached in the driver.
733  *	The command is only used for STA mode. The attributes used with this
734  *	command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
735  *
736  * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
737  *	configure and fetch the state information of the MLO links affiliated
738  *	with the STA interface. The attributes used with this command are
739  *	defined in enum qca_wlan_vendor_attr_mlo_link_state.
740  *
741  * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
742  *	vendor subcommand to trigger channel utilization measurement on entire
743  *	channel width of the connected channel(s). For MLO connection, connected
744  *	channel utilization measurement shall be done on all the MLO links.
745  *	The driver may use regular scan or wideband energy detection feature
746  *	based on the hardware capability for connected channel(s) utilization
747  *	measurement. The driver indicates the connected channel(s) utilization
748  *	measurement completion as an asynchronous event with this command ID to
749  *	userspace. Upon receiving this event, userspace can use
750  *	%NL80211_CMD_GET_INTERFACE to determine the channel width of the current
751  *	connected channel(s) and can derive the channel utilization percentage
752  *	(CU) of each 20 MHz sub-channel of the entire connected channel using
753  *	%NL80211_CMD_GET_SURVEY response.
754  *	CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
755  *	This command is only used for STA mode.
756  *
757  * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
758  *	used as an event to notify the userspace of TID-to-link map changes
759  *	negotiated by the driver or updated by associated AP MLD with Beacon,
760  *	Probe Response, or Action frames. The attributes used with this command
761  *	are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
762  *
763  *	Note that the attribute
764  *	%QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
765  *	the current connected AP MLD address.
766  *
767  * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
768  *	of STA MLD setup links due to AP MLD removing the corresponding
769  *	affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
770  *	links are removed during Multi-Link reconfiguration, the driver shall
771  *	use %NL80211_CMD_DISCONNECT instead of this command since it is a
772  *	connection drop. The attributes used with this command are defined in
773  *	enum qca_wlan_vendor_attr_link_reconfig.
774  *	Note that the attribute
775  *	%QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
776  *	the current connected AP MLD address.
777  *
778  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
779  *	the driver with MLO link id information on which to transmit the TDLS
780  *	discovery response frame on the configured MLO BSS link when the
781  *	local station is connected in MLO mode. This command is sent to the
782  *	driver prior to the TDLS discovery response management transmit
783  *	operation and is followed immediately by the TDLS discovery response
784  *	management frame transmit command.
785  *
786  *	The driver saves the configured MLO link id information and uses it for
787  *	the following TDLS discovery response frame transmission on the
788  *	configured MLO BSS link and the link id information is cleared in the
789  *	driver after the TDLS discovery response frame is successfully
790  *	transmitted. This behavior is independent of the TDLS peer STA connection
791  *	mode (MLO or non-MLO).
792  *
793  *	Uses the attributes defined in
794  *	enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
795  *
796  * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is
797  *	used to configure and indicate the audio transport switch in both
798  *	command and event paths. This is used when two or more audio transports
799  *	(ex: WLAN and bluetooth) are available between peers.
800  *
801  *	If the driver needs to perform operations like scan, connection,
802  *	roaming, RoC etc. and AP concurrency policy is set to either
803  *	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or
804  *	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends
805  *	audio transport switch event to userspace. Userspace application upon
806  *	receiving the event, can try to switch to requested audio transport.
807  *	The userspace uses this command to send the status of transport
808  *	switching (either confirm or reject) to the driver using this
809  *	subcommand. The driver continues with the pending operation either upon
810  *	receiving the command from userspace or after waiting for timeout since
811  *	sending the event to userspace. The driver can request userspace to
812  *	switch to WLAN upon availability of WLAN audio transport once after the
813  *	concurrent operations are completed.
814  *
815  *	Userspace can also request audio transport switch from non-WLAN to WLAN
816  *	using this subcommand to the driver. The driver can accept or reject
817  *	depending on other concurrent operations in progress. The driver returns
818  *	success if it can allow audio transport when it receives the command or
819  *	appropriate kernel error code otherwise. Userspace indicates the audio
820  *	transport switch from WLAN to non-WLAN using this subcommand and the
821  *	driver can do other concurrent operations without needing to send any
822  *	event to userspace. This subcommand is used by userspace only when the
823  *	driver advertises support for
824  *	QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
825  *
826  *	The attributes used with this command are defined in enum
827  *	qca_wlan_vendor_attr_audio_transport_switch.
828  */
829 
830 enum qca_nl80211_vendor_subcmds {
831 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
832 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
833 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
834 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
835 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
836 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
837 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
838 
839 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
840 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
841 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
842 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
843 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
844 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
845 
846 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
847 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
848 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
849 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
850 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
851 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
852 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
853 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
854 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
855 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
856 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
857 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
858 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
859 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
860 
861 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
862 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
863 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
864 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
865 
866 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
867 
868 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
869 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
870 
871 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
872 
873 	/* Get Concurrency Matrix */
874 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
875 
876 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
877 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
878 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
879 
880 	/* Deprecated */
881 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
882 
883 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
884 
885 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
886 
887 	/* Off loaded DFS events */
888 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
889 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
890 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
891 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
892 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
893 
894 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
895 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
896 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
897 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
898 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
899 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
900 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
901 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
902 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
903 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
904 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
905 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
906 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
907 
908 	/* Wi-Fi Configuration subcommands */
909 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
910 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
911 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
912 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
913 
914 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
915 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
916 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
917 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
918 
919 	/* NS Offload enable/disable cmd */
920 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
921 
922 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
923 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
924 
925 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
926 
927 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
928 	/* OCB commands */
929 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
930 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
931 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
932 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
933 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
934 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
935 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
936 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
937 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
938 
939 	/* subcommand to get link properties */
940 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
941 	/* LFR Subnet Detection */
942 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
943 
944 	/* DBS subcommands */
945 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
946 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
947 
948 	/* Vendor setband command */
949 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
950 
951 	/* Vendor scan commands */
952 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
953 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
954 
955 	/* OTA test subcommand */
956 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
957 	/* Tx power scaling subcommands */
958 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
959 	/* Tx power scaling in db subcommands */
960 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
961 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
962 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
963 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
964 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
965 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
966 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
967 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
968 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
969 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
970 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
971 
972 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
973 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
974 	/* FTM/indoor location subcommands */
975 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
976 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
977 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
978 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
979 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
980 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
981 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
982 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
983 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
984 
985 	/* Encrypt/Decrypt command */
986 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
987 
988 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
989 	/* DMG low level RF sector operations */
990 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
991 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
992 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
993 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
994 
995 	/* Configure the TDLS mode from user space */
996 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
997 
998 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
999 
1000 	/* Vendor abort scan command */
1001 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
1002 
1003 	/* Set Specific Absorption Rate(SAR) Power Limits */
1004 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
1005 
1006 	/* External Auto channel configuration setting */
1007 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1008 
1009 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1010 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1011 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
1012 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1013 
1014 	/* Set the trace level for QDF */
1015 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
1016 
1017 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1018 
1019 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1020 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1021 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1022 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
1023 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1024 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1025 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1026 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1027 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1028 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1029 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1030 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1031 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1032 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1033 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1034 	/* Wi-Fi test configuration subcommand */
1035 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1036 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
1037 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
1038 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1039 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1040 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1041 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1042 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
1043 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1044 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
1045 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1046 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1047 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1048 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
1049 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
1050 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1051 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1052 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
1053 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1054 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1055 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1056 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1057 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1058 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1059 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
1060 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
1061 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1062 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1063 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1064 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
1065 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1066 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1067 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1068 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
1069 	/* 206..212 - reserved for QCA */
1070 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1071 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1072 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1073 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
1074 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1075 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1076 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1077 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
1078 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1079 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1080 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1081 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1082 	QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1083 	QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
1084 	QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
1085 	QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1086 	QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1087 	QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1088 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
1089 	QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
1090 };
1091 
1092 enum qca_wlan_vendor_tos {
1093 	QCA_WLAN_VENDOR_TOS_BK = 0,
1094 	QCA_WLAN_VENDOR_TOS_BE = 1,
1095 	QCA_WLAN_VENDOR_TOS_VI = 2,
1096 	QCA_WLAN_VENDOR_TOS_VO = 3,
1097 };
1098 
1099 /**
1100  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
1101  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
1102  */
1103 enum qca_wlan_vendor_attr_active_tos {
1104 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
1105 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
1106 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
1107 	/* Flag attribute representing the start (attribute included) or stop
1108 	 * (attribute not included) of the respective TOS.
1109 	 */
1110 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
1111 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
1112 };
1113 
1114 enum qca_wlan_vendor_hang_reason {
1115 	/* Unspecified reason */
1116 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
1117 	/* No Map for the MAC entry for the received frame */
1118 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
1119 	/* peer deletion timeout happened */
1120 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
1121 	/* peer unmap timeout */
1122 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
1123 	/* Scan request timed out */
1124 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
1125 	/* Consecutive Scan attempt failures */
1126 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
1127 	/* Unable to get the message buffer */
1128 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
1129 	/* Current command processing is timedout */
1130 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
1131 	/* Timeout for an ACK from FW for suspend request */
1132 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
1133 	/* Timeout for an ACK from FW for resume request */
1134 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
1135 	/* Transmission timeout for consecutive data frames */
1136 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
1137 	/* Timeout for the TX completion status of data frame */
1138 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
1139 	/* DXE failure for tx/Rx, DXE resource unavailability */
1140 	QCA_WLAN_HANG_DXE_FAILURE = 12,
1141 	/* WMI pending commands exceed the maximum count */
1142 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
1143 	/* Timeout for peer STA connection accept command's response from the
1144 	 * FW in AP mode. This command is triggered when a STA (peer) connects
1145 	 * to AP (DUT).
1146 	 */
1147 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
1148 	/* Timeout for the AP connection accept command's response from the FW
1149 	 * in STA mode. This command is triggered when the STA (DUT) connects
1150 	 * to an AP (peer).
1151 	 */
1152 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
1153 	/* Timeout waiting for the response to the MAC HW mode change command
1154 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
1155 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
1156 	 * Channel Concurrency) mode.
1157 	 */
1158 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
1159 	/* Timeout waiting for the response from FW to configure the MAC HW's
1160 	 * mode. This operation is to configure the single/two MACs in either
1161 	 * SCC/MCC/DBS mode.
1162 	 */
1163 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
1164 	/* Timeout waiting for response of VDEV start command from the FW */
1165 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
1166 	/* Timeout waiting for response of VDEV restart command from the FW */
1167 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
1168 	/* Timeout waiting for response of VDEV stop command from the FW */
1169 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
1170 	/* Timeout waiting for response of VDEV delete command from the FW */
1171 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
1172 	/* Timeout waiting for response of peer all delete request command to
1173 	 * the FW on a specific VDEV.
1174 	 */
1175 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
1176 	/* WMI sequence mismatch between WMI command and Tx completion */
1177 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
1178 	/* Write to Device HAL register failed */
1179 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
1180 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
1181 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
1182 	/* Bus failure */
1183 	QCA_WLAN_HANG_BUS_FAILURE = 26,
1184 	/* tasklet/credit latency found */
1185 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
1186 	/* MSDU buffers received in REO error ring, exceeding certain
1187 	 * threshold
1188 	 */
1189 	QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
1190 	/* Vdev SM is out of sync and connect req received
1191 	 * when already connected
1192 	 */
1193 	QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
1194 	/* Stats request timeout */
1195 	QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
1196 	/* Leak in TX descriptor for a packet */
1197 	QCA_WLAN_HANG_TX_DESC_LEAK = 31,
1198 	/* Scheduler watchdog timeout */
1199 	QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
1200 	/* Failed to send self peer deletion cmd to firmware */
1201 	QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
1202 	/* Received del self sta without del bss */
1203 	QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
1204 	/* Recovery needed when sending flush completion to userspace */
1205 	QCA_WLAN_HANG_FLUSH_LOGS = 35,
1206 	/* Host wakeup because of page fault */
1207 	QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
1208 };
1209 
1210 /**
1211  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
1212  * QCA_NL80211_VENDOR_SUBCMD_HANG.
1213  */
1214 enum qca_wlan_vendor_attr_hang {
1215 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
1216 	/*
1217 	 * Reason for the Hang - Represented by enum
1218 	 * qca_wlan_vendor_hang_reason.
1219 	 */
1220 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
1221 	/* The binary blob data associated with the hang reason specified by
1222 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
1223 	 * contain the required dump to analyze the reason for the hang.
1224 	 * NLA_BINARY attribute, the max size is 1024 bytes.
1225 	 */
1226 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
1227 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
1228 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
1229 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
1230 };
1231 
1232 /**
1233  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
1234  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
1235  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
1236  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
1237     level needs to be updated.
1238  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
1239  * to be set.
1240  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
1241  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
1242  */
1243 enum qca_vendor_attr_set_trace_level {
1244 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1245 	/*
1246 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1247 	* attributes.
1248 	*/
1249 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1250 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1251 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1252 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1253 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1254 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1255 };
1256 
1257 /**
1258  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1259  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1260  * station information. The information obtained through these
1261  * commands signify the current info in connected state and
1262  * latest cached information during the connected state , if queried
1263  * when in disconnected state.
1264  *
1265  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1266  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1267  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1268  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1269  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1270  */
1271 enum qca_wlan_vendor_attr_get_station {
1272 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1273 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1274 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1275 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1276 
1277 	/* keep last */
1278 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1279 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1280 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1281 };
1282 
1283 /**
1284  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1285  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1286  *
1287  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1288  * Used in STA mode. This attribute represents the list of channel center
1289  * frequencies in MHz (u32) the station has learnt during the last connection
1290  * or roaming attempt. This information shall not signify the channels for
1291  * an explicit scan request from the user space. Host drivers can update this
1292  * information to the user space in both connected and disconnected state.
1293  * In the disconnected state this information shall signify the channels
1294  * scanned in the last connection/roam attempt that lead to the disconnection.
1295  */
1296 enum qca_wlan_vendor_attr_update_sta_info {
1297 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1298 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1299 
1300 	/* keep last */
1301 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1302 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1303 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1304 };
1305 
1306 /**
1307  * enum qca_wlan_802_11_mode - dot11 mode
1308  * @QCA_WLAN_802_11_MODE_11B: mode B
1309  * @QCA_WLAN_802_11_MODE_11G: mode G
1310  * @QCA_WLAN_802_11_MODE_11N: mode N
1311  * @QCA_WLAN_802_11_MODE_11A: mode A
1312  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1313  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1314  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1315  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1316  */
1317 enum qca_wlan_802_11_mode {
1318 	QCA_WLAN_802_11_MODE_11B,
1319 	QCA_WLAN_802_11_MODE_11G,
1320 	QCA_WLAN_802_11_MODE_11N,
1321 	QCA_WLAN_802_11_MODE_11A,
1322 	QCA_WLAN_802_11_MODE_11AC,
1323 	QCA_WLAN_802_11_MODE_11AX,
1324 	QCA_WLAN_802_11_MODE_11BE,
1325 	QCA_WLAN_802_11_MODE_INVALID,
1326 };
1327 
1328 /**
1329  * enum qca_wlan_auth_type - Authentication key management type
1330  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1331  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1332  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1333  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1334  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1335  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1336  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1337  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1338  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1339  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1340  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1341  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1342  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1343  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1344  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1345  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1346  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1347  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1348  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1349  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1350  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1351  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1352  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1353  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1354  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1355  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1356  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1357  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1358  */
1359 enum qca_wlan_auth_type {
1360 	QCA_WLAN_AUTH_TYPE_INVALID,
1361 	QCA_WLAN_AUTH_TYPE_OPEN,
1362 	QCA_WLAN_AUTH_TYPE_SHARED,
1363 	QCA_WLAN_AUTH_TYPE_WPA,
1364 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1365 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1366 	QCA_WLAN_AUTH_TYPE_RSN,
1367 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1368 	QCA_WLAN_AUTH_TYPE_FT,
1369 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1370 	QCA_WLAN_AUTH_TYPE_SHA256,
1371 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1372 	QCA_WLAN_AUTH_TYPE_WAI,
1373 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1374 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1375 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1376 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1377 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1378 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1379 	QCA_WLAN_AUTH_TYPE_SAE,
1380 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1381 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1382 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1383 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1384 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1385 	QCA_WLAN_AUTH_TYPE_OWE,
1386 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1387 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1388 };
1389 
1390 /**
1391  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1392  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1393  *
1394  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1395  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1396  *  Get the standard NL attributes Nested with this attribute.
1397  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1398  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1399  *  NL80211_ATTR_STA_INFO
1400  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1401  *  Get the standard NL attributes Nested with this attribute.
1402  *  Ex : Query HT/VHT Capability advertised by the AP.
1403  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1404  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1405  *  Number of successful Roam attempts before a
1406  *  disconnect, Unsigned 32 bit value
1407  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1408  *  Authentication Key Management Type used for the connected session.
1409  *  Signified by enum qca_wlan_auth_type
1410  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1411  *  connected Session, signified by enum qca_wlan_802_11_mode
1412  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1413  *  HS20 Indication Element
1414  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1415  *  Status Code Corresponding to the Association Failure.
1416  *  Unsigned 32 bit value.
1417  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1418  *  Max phy rate of remote station
1419  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1420  *  TX packets to remote station
1421  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1422  *  TX bytes to remote station
1423  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1424  *  RX packets from remote station
1425  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1426  *  RX bytes from remote station
1427  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1428  *  Last TX rate with remote station
1429  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1430  *  Last RX rate with remote station
1431  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1432  *  Remote station enable/disable WMM
1433  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1434  *  Remote station connection mode
1435  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1436  *  Remote station AMPDU enable/disable
1437  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1438  *  Remote station TX Space-time block coding enable/disable
1439  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1440  *  Remote station RX Space-time block coding enable/disable
1441  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1442  *  Remote station channel width
1443  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1444  *  Remote station short GI enable/disable
1445  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1446  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1447  *  containing the raw information elements from Beacon frames. Represents
1448  *  the Beacon frames of the current BSS in the connected state. When queried
1449  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1450  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1451  *  disconnect reason for the last disconnection if the disconnection is
1452  *  triggered from the host driver. The values are referred from
1453  *  enum qca_disconnect_reason_codes. If the disconnect is from
1454  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1455  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1456  *  Applicable in AP mode only. It contains the raw information elements
1457  *  from assoc request frame of the given peer station. User queries with the
1458  *  mac address of peer station when it disconnects. Host driver sends
1459  *  assoc request frame of the given station. Host driver doesn't provide
1460  *  the IEs when the peer station is still in connected state.
1461  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1462  * sending HE operation info.
1463  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
1464  * type for remote channel width greater than 160 MHz.
1465  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for
1466  * sending EHT operation info.
1467  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1468  *
1469  */
1470 enum qca_wlan_vendor_attr_get_station_info {
1471 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1472 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1473 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1474 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1475 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1476 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1477 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1478 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1479 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1480 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1481 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1482 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1483 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1484 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1485 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1486 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1487 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1488 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1489 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1490 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1491 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1492 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1493 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1494 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1495 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1496 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1497 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1498 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1499 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1500 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1501 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1502 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1503 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1504 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1505 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1506 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1507 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1508 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1509 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1510 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1511 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
1512 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION,
1513 
1514 	/* keep last */
1515 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1516 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1517 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1518 };
1519 
1520 /**
1521  * qca_chip_power_save_failure_reason: Power save failure reason
1522  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1523  * due to protocol/module.
1524  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1525  * due to hardware
1526  */
1527 enum qca_chip_power_save_failure_reason {
1528 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1529 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1530 };
1531 
1532 /**
1533  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1534  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1535  * information leading to the power save failure.
1536  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1537  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1538  * represented by enum qca_chip_power_save_failure_reason
1539  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1540  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1541  */
1542 enum qca_attr_chip_power_save_failure {
1543 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1544 
1545 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1546 
1547 	/* keep last */
1548 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1549 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1550 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1551 };
1552 
1553 /* enum's to provide TDLS capabilities */
1554 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1555 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1556 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1557 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1558 
1559 	/* keep last */
1560 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1561 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1562 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1563 };
1564 
1565 /* Compatibility defines for previously used subcmd names.
1566  * These values should not be used in any new implementation.
1567  */
1568 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1569 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1570 
1571 enum qca_wlan_vendor_attr {
1572 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1573 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1574 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1575 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1576 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1577 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1578 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1579 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1580 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1581 	/*
1582 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1583 	 * by enum qca_roaming_policy.
1584 	 */
1585 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1586 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1587 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1588 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1589 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1590 	/*
1591 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1592 	 * Unsigned 32-bit value.
1593 	 */
1594 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1595 	/* Unsigned 32-bit value */
1596 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1597 	/* Unsigned 32-bit value */
1598 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1599 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1600 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1601 	 * is deprecated. Recommendation is to use
1602 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1603 	 * using both the attributes, the ones configured through
1604 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1605 	 */
1606 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1607 	/* Dummy (NOP) attribute for 64 bit padding */
1608 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1609 	/*
1610 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1611 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1612 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1613 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1614 	 */
1615 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1616 	/*
1617 	 * Indoor location capabilities, returned by
1618 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1619 	 * see enum qca_wlan_vendor_attr_loc_capa.
1620 	 */
1621 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1622 	/*
1623 	 * Array of nested attributes containing information about each peer
1624 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1625 	 * for supported attributes for each peer.
1626 	 */
1627 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1628 	/*
1629 	 * Array of nested attributes containing measurement results for
1630 	 * one or more peers, reported by the
1631 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1632 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1633 	 * attributes.
1634 	 */
1635 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1636 	/* Flag attribute for enabling or disabling responder functionality. */
1637 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1638 	/*
1639 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1640 	 * command to specify the LCI report that will be sent by
1641 	 * the responder during a measurement exchange. The format is
1642 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1643 	 */
1644 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1645 	/*
1646 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1647 	 * command to specify the location civic report that will
1648 	 * be sent by the responder during a measurement exchange.
1649 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1650 	 */
1651 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1652 	/*
1653 	 * Session/measurement completion status code,
1654 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1655 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1656 	 * see enum qca_vendor_attr_loc_session_status.
1657 	 */
1658 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1659 	/*
1660 	 * Initial dialog token used by responder (0 if not specified),
1661 	 * unsigned 8 bit value.
1662 	 */
1663 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1664 	/*
1665 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1666 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1667 	 * AOA measurements are needed as part of an FTM session.
1668 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1669 	 * enum qca_wlan_vendor_attr_aoa_type.
1670 	 */
1671 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1672 	/*
1673 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1674 	 * by indoor location measurements. Refers to the antenna
1675 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1676 	 */
1677 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1678 	/*
1679 	 * AOA measurement data. Its contents depends on the AOA measurement
1680 	 * type and antenna array mask:
1681 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1682 	 * phase of the strongest CIR path for each antenna in the measured
1683 	 * array(s).
1684 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1685 	 * values, phase and amplitude of the strongest CIR path for each
1686 	 * antenna in the measured array(s).
1687 	 */
1688 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1689 	/*
1690 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1691 	 * to specify the chain number (unsigned 32 bit value) to inquire
1692 	 * the corresponding antenna RSSI value */
1693 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1694 	/*
1695 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1696 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1697 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1698 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1699 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1700 	/*
1701 	 *  TSF timer value, unsigned 64 bit value.
1702 	 * May be returned by various commands.
1703 	 */
1704 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1705 	/*
1706 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1707 	 * 0..127 for sector indices or 65535 as special value used to
1708 	 * unlock sector selection in
1709 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1710 	 */
1711 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1712 	/*
1713 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1714 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1715 	 */
1716 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1717 	/*
1718 	 * Bitmask of DMG RF modules for which information is requested. Each
1719 	 * bit corresponds to an RF module with the same index as the bit
1720 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1721 	 * all DMG chips currently have up to 8 RF modules.
1722 	 */
1723 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1724 	/*
1725 	 * Array of nested attributes where each entry is DMG RF sector
1726 	 * configuration for a single RF module.
1727 	 * Attributes for each entry are taken from enum
1728 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1729 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1730 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1731 	 */
1732 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1733 	/*
1734 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1735 	 * to report frame aggregation statistics to userspace.
1736 	 */
1737 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1738 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1739 	/*
1740 	 * Unsigned 8-bit value representing MBO transition reason code as
1741 	 * provided by the AP used by subcommand
1742 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1743 	 * specified by the userspace in the request to the driver.
1744 	 */
1745 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1746 	/*
1747 	 * Array of nested attributes, BSSID and status code, used by subcommand
1748 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1749 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1750 	 * The userspace space specifies the list/array of candidate BSSIDs in
1751 	 * the order of preference in the request. The driver specifies the
1752 	 * status code, for each BSSID in the list, in the response. The
1753 	 * acceptable candidates are listed in the order preferred by the
1754 	 * driver.
1755 	 */
1756 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1757 	/*
1758 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1759 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1760 	 */
1761 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1762 	/*
1763 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1764 	 * to define the number of antennas to use for BRP.
1765 	 * different purpose in each ANT_LIMIT_MODE:
1766 	 * DISABLE - ignored
1767 	 * EFFECTIVE - upper limit to number of antennas to be used
1768 	 * FORCE - exact number of antennas to be used
1769 	 * unsigned 8 bit value
1770 	 */
1771 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1772 	/*
1773 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1774 	 * to report the corresponding antenna index to the chain RSSI value
1775 	 */
1776 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1777 	/*
1778 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1779 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1780 	 * With a determinate group of antennas, the driver specifies the
1781 	 * EVM value for each antenna ID, and application extract them
1782 	 * in user space.
1783 	 */
1784 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1785 	/*
1786 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1787 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1788 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1789 	 */
1790 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1791 
1792 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1793 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1794 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1795 	 * This attribute shall consider the bitmask combinations to define
1796 	 * the respective Band combinations and always takes precedence over
1797 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1798 	 */
1799 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1800 
1801 	/* keep last */
1802 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1803 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1804 };
1805 
1806 enum qca_wlan_vendor_attr_extscan_config_params {
1807 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1808 
1809 	/* Unsigned 32-bit value */
1810 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1811 
1812 	/*
1813 	 * Attributes for data used by
1814 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1815 	 */
1816 
1817 	/* Unsigned 32-bit value */
1818 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1819 	= 2,
1820 	/* Unsigned 32-bit value */
1821 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1822 	= 3,
1823 
1824 	/*
1825 	 * Attributes for input params used by
1826 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1827 	 */
1828 
1829 	/* Unsigned 32-bit value; channel frequency */
1830 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1831 	/* Unsigned 32-bit value; dwell time in ms. */
1832 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1833 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1834 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1835 	/* Unsigned 8-bit value; channel class */
1836 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1837 
1838 	/* Unsigned 8-bit value; bucket index, 0 based */
1839 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1840 	/* Unsigned 8-bit value; band. */
1841 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1842 	/* Unsigned 32-bit value; desired period, in ms. */
1843 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1844 	/* Unsigned 8-bit value; report events semantics. */
1845 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1846 	/*
1847 	 * Unsigned 32-bit value. Followed by a nested array of
1848 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1849 	 */
1850 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1851 
1852 	/*
1853 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1854 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1855 	 */
1856 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1857 
1858 	/* Unsigned 32-bit value; base timer period in ms. */
1859 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1860 	/*
1861 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1862 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1863 	 */
1864 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1865 	/*
1866 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1867 	 * up AP.
1868 	 */
1869 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1870 	= 16,
1871 
1872 	/*
1873 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1874 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1875 	 * of the array is determined by NUM_BUCKETS.
1876 	 */
1877 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1878 
1879 	/*
1880 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1881 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1882 	 */
1883 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1884 
1885 	/* Unsigned 8-bit value */
1886 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1887 	= 19,
1888 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1889 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1890 	= 20,
1891 
1892 	/* An array of 6 x unsigned 8-bit value */
1893 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1894 	/* Signed 32-bit value */
1895 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1896 	/* Signed 32-bit value */
1897 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1898 	/* Unsigned 32-bit value */
1899 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1900 
1901 	/*
1902 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1903 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1904 	 * array is determined by NUM_AP.
1905 	 */
1906 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1907 
1908 	/*
1909 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1910 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1911 	 */
1912 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1913 
1914 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1915 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1916 	= 27,
1917 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1918 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1919 	= 28,
1920 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1921 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1922 	/*
1923 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1924 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1925 	 */
1926 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1927 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1928 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1929 	= 31,
1930 	/*
1931 	 * Unsigned 32-bit value. If max_period is non zero or different than
1932 	 * period, then this bucket is an exponential backoff bucket.
1933 	 */
1934 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1935 	/* Unsigned 32-bit value. */
1936 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1937 	/*
1938 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1939 	 * scans to perform for a given period.
1940 	 */
1941 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1942 	/*
1943 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1944 	 * many scans.
1945 	 */
1946 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1947 	= 35,
1948 
1949 	/*
1950 	 * Attributes for data used by
1951 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1952 	 */
1953 
1954 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1955 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1956 	= 36,
1957 	/*
1958 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1959 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1960 	 * size of the array is determined by NUM_SSID.
1961 	 */
1962 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1963 	/*
1964 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1965 	 * attributes.
1966 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1967 	 */
1968 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1969 
1970 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1971 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1972 	/* Unsigned 8-bit value */
1973 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1974 	/* Signed 32-bit value */
1975 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1976 	/* Signed 32-bit value */
1977 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1978 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1979 	 */
1980 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1981 
1982 	/* keep last */
1983 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1984 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1985 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1986 };
1987 
1988 enum qca_wlan_vendor_attr_extscan_results {
1989 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1990 
1991 	/*
1992 	 * Unsigned 32-bit value; must match the request Id supplied by
1993 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1994 	 */
1995 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1996 
1997 	/*
1998 	 * Unsigned 32-bit value; used to indicate the status response from
1999 	 * firmware/driver for the vendor sub-command.
2000 	 */
2001 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
2002 
2003 	/*
2004 	 * EXTSCAN Valid Channels attributes */
2005 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
2006 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
2007 	/*
2008 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
2009 	 * representing channel numbers.
2010 	 */
2011 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
2012 
2013 	/* EXTSCAN Capabilities attributes */
2014 
2015 	/* Unsigned 32-bit value */
2016 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
2017 	/* Unsigned 32-bit value */
2018 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
2019 	/* Unsigned 32-bit value */
2020 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
2021 	= 7,
2022 	/* Unsigned 32-bit value */
2023 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
2024 	= 8,
2025 	/* Signed 32-bit value */
2026 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
2027 	= 9,
2028 	/* Unsigned 32-bit value */
2029 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
2030 	/* Unsigned 32-bit value */
2031 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
2032 	= 11,
2033 	/* Unsigned 32-bit value */
2034 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
2035 	= 12,
2036 
2037 	/*
2038 	 * EXTSCAN Attributes used with
2039 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
2040 	 */
2041 
2042 	/* Unsigned 32-bit value */
2043 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
2044 
2045 	/*
2046 	 * EXTSCAN attributes used with
2047 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
2048 	 */
2049 
2050 	/*
2051 	 * An array of NUM_RESULTS_AVAILABLE x
2052 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
2053 	 */
2054 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
2055 
2056 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
2057 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
2058 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
2059 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
2060 	/* An array of 6 x unsigned 8-bit value */
2061 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
2062 	/* Unsigned 32-bit value; channel frequency in MHz */
2063 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
2064 	/* Signed 32-bit value */
2065 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
2066 	/* Unsigned 32-bit value */
2067 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
2068 	/* Unsigned 32-bit value */
2069 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
2070 	/* Unsigned 16-bit value */
2071 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
2072 	/* Unsigned 16-bit value */
2073 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
2074 	/* Unsigned 32-bit value; size of the IE DATA blob */
2075 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
2076 	/*
2077 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
2078 	 * information elements found in the beacon; this data should be a
2079 	 * packed list of wifi_information_element objects, one after the
2080 	 * other.
2081 	 */
2082 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
2083 
2084 	/*
2085 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
2086 	 * available.
2087 	 */
2088 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
2089 
2090 	/*
2091 	 * EXTSCAN attributes for
2092 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
2093 	 */
2094 	/* Unsigned 8-bit value */
2095 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
2096 	/* Unsigned 32-bit value */
2097 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
2098 
2099 	/*
2100 	 * EXTSCAN attributes for
2101 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
2102 	 */
2103 	/*
2104 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2105 	 * to indicate number of results.
2106 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2107 	 * list of results.
2108 	 */
2109 
2110 	/*
2111 	 * EXTSCAN attributes for
2112 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
2113 	 */
2114 	/* An array of 6 x unsigned 8-bit value */
2115 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
2116 	/* Unsigned 32-bit value */
2117 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
2118 	= 30,
2119 	/* Unsigned 32-bit value. */
2120 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
2121 	= 31,
2122 	/*
2123 	 * A nested array of signed 32-bit RSSI values. Size of the array is
2124 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
2125 	 */
2126 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
2127 	= 32,
2128 
2129 	/*
2130 	 * EXTSCAN attributes used with
2131 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
2132 	 */
2133 	/*
2134 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2135 	 * to indicate number of extscan cached results returned.
2136 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
2137 	 *  the list of extscan cached results.
2138 	 */
2139 
2140 	/*
2141 	 * An array of NUM_RESULTS_AVAILABLE x
2142 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
2143 	 */
2144 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
2145 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
2146 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
2147 	/*
2148 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
2149 	 */
2150 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
2151 	/*
2152 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2153 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
2154 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2155 	 * list of wifi scan results returned for each cached result block.
2156 	 */
2157 
2158 	/*
2159 	 * EXTSCAN attributes for
2160 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2161 	 */
2162 	/*
2163 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2164 	 * number of results.
2165 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2166 	 * list of wifi scan results returned for each
2167 	 * wifi_passpoint_match_result block.
2168 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2169 	 */
2170 
2171 	/*
2172 	 * EXTSCAN attributes for
2173 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2174 	 */
2175 	/* Unsigned 32-bit value */
2176 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2177 	= 36,
2178 	/*
2179 	 * A nested array of
2180 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2181 	 * attributes. Array size =
2182 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2183 	 */
2184 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2185 
2186 	/* Unsigned 32-bit value; network block id for the matched network */
2187 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2188 	/*
2189 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2190 	 * list of wifi scan results returned for each
2191 	 * wifi_passpoint_match_result block.
2192 	 */
2193 	/* Unsigned 32-bit value */
2194 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2195 	/*
2196 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2197 	 * ANQP data in the information_element format.
2198 	 */
2199 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2200 
2201 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2202 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2203 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2204 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2205 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2206 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2207 	= 43,
2208 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2209 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2210 	= 44,
2211 
2212 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2213 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2214 
2215 	/* keep last */
2216 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2217 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2218 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2219 };
2220 
2221 /**
2222  * enum qca_vendor_interop_issues_ap_type - interop issues type
2223  * This enum defines the valid set of values of interop issues type. These
2224  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2225  *
2226  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2227  * when the STA's Qpower feature is enabled.
2228  */
2229 enum qca_vendor_interop_issues_ap_type {
2230 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2231 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2232 };
2233 
2234 /**
2235  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2236  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2237  *
2238  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2239  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2240  * 32-bit unsigned value, The type defined in enum
2241  * qca_vendor_interop_issues_ap_type are used.
2242  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2243  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2244  * it is present and mandatory for the command but is not used for
2245  * the event since only a single BSSID is reported in an event.
2246  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2247  * 6-byte MAC address. It is used within the nested
2248  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2249  * and without such encapsulation in the event case.
2250  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2251  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2252  */
2253 enum qca_vendor_attr_interop_issues_ap {
2254 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2255 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2256 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2257 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2258 	/* keep last */
2259 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2260 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2261 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2262 };
2263 
2264 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2265 
2266 enum qca_wlan_vendor_attr_ll_stats_set {
2267 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2268 	/* Unsigned 32-bit value */
2269 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2270 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2271 	/* keep last */
2272 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2273 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2274 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2275 };
2276 
2277 /**
2278  * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
2279  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
2280  *
2281  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
2282  *
2283  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
2284  * radio statistics.
2285  *
2286  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
2287  * statistics within radio statistics.
2288  *
2289  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
2290  * radio statistics.
2291  *
2292  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
2293  *
2294  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
2295  * within interface statistics.
2296  *
2297  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
2298  * interface statistics.
2299  *
2300  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
2301  * (min, max, avg) statistics within AC statistics.
2302  *
2303  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
2304  * on this interface.
2305  *
2306  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
2307  * statistics depending on the peer_mac.
2308  */
2309 enum qca_wlan_ll_stats_clr_req_bitmap {
2310 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO =		BIT(0),
2311 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA =		BIT(1),
2312 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS =	BIT(2),
2313 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN =		BIT(3),
2314 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE =		BIT(4),
2315 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE =		BIT(5),
2316 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC =		BIT(6),
2317 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION =	BIT(7),
2318 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER =	BIT(8),
2319 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER =	BIT(9),
2320 };
2321 
2322 enum qca_wlan_vendor_attr_ll_stats_clr {
2323 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2324 	/* Unsigned 32bit bitmap for clearing statistics, specified
2325 	 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
2326 	 */
2327 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2328 	/* Unsigned 8 bit value: Request to stop statistics collection */
2329 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2330 
2331 	/* Unsigned 32 bit bitmap: Response from the driver
2332 	 * for the cleared statistics
2333 	 */
2334 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2335 	/* Unsigned 8 bit value: Response from driver/firmware
2336 	 * for the stop request
2337 	 */
2338 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2339 	/* keep last */
2340 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2341 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2342 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2343 };
2344 
2345 /**
2346  * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
2347  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
2348  *
2349  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
2350  *
2351  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
2352  *
2353  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
2354  *
2355  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
2356  */
2357 enum qca_wlan_ll_stats_get_req_bitmap {
2358 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO =	BIT(0),
2359 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE =	BIT(1),
2360 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER =	BIT(2),
2361 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER =	BIT(3),
2362 };
2363 
2364 enum qca_wlan_vendor_attr_ll_stats_get {
2365 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2366 	/* Unsigned 32 bit value provided by the caller issuing the GET stats
2367 	 * command. When reporting the stats results, the driver uses the same
2368 	 * value to indicate which GET request the results correspond to.
2369 	 */
2370 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2371 	/* Unsigned 32 bit value - bit mask to identify what statistics are
2372 	 * requested for retrieval specified in the enum
2373 	 * qca_wlan_ll_stats_get_req_bitmap
2374 	 */
2375 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2376 	/* keep last */
2377 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2378 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2379 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2380 };
2381 
2382 enum qca_wlan_vendor_attr_ll_stats_results {
2383 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2384 
2385 	/*
2386 	 * For Multi Link Operation (MLO) connection, per-link statistics will
2387 	 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
2388 	 * cumulative statistics will be sent outside of
2389 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
2390 	 * compatibility with legacy user space. Attributes which don't have
2391 	 * explicit documentation for MLO will be sent only outside of
2392 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
2393 	 * don't depend on whether the connection is MLO capable or not, e.g.,
2394 	 * radio and channel specific attributes.
2395 	 */
2396 
2397 	/* Unsigned 32bit value. Used by the driver; must match the request id
2398 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2399 	 */
2400 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2401 
2402 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2403 	 * the link with the best RSSI outside
2404 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2405 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2406 	 */
2407 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2408 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2409 	 * the link with the best RSSI outside
2410 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2411 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2412 	 */
2413 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2414 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2415 	 * the link with the best RSSI outside
2416 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2417 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2418 	 */
2419 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2420 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2421 	 * the link with the best RSSI outside
2422 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2423 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2424 	 */
2425 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2426 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2427 	 * the link with the best RSSI outside
2428 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2429 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2430 	 */
2431 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2432 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2433 	 * the link with the best RSSI outside
2434 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2435 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2436 	 */
2437 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2438 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2439 	 * the link with the best RSSI outside
2440 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2441 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2442 	 */
2443 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2444 
2445 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2446 	 * nested within the interface stats.
2447 	 */
2448 
2449 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2450 	 * Type = enum wifi_interface_mode.
2451 	 */
2452 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2453 	/* Interface MAC address. An array of 6 Unsigned int8 */
2454 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2455 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2456 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2457 	 */
2458 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2459 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2460 	 */
2461 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2462 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2463 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2464 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2465 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2466 	/* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
2467 	 * address of the AP. An array of 6 unsigned 8 bit values
2468 	 */
2469 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2470 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2471 	 * values.
2472 	 */
2473 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2474 	/* Country string for this association. An array of 3 unsigned 8 bit
2475 	 * values.
2476 	 */
2477 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2478 
2479 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2480 	 * be nested within the interface stats.
2481 	 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2482 	 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
2483 	 * indicate the aggregate of all links outside
2484 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2485 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
2486 	 * indicate value of the MLO link with the best RSSI outside
2487 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2488 	 * These attributes indicate the link specific value inside
2489 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2490 	 */
2491 
2492 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2493 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2494 	/* Unsigned int 32 value corresponding to respective AC */
2495 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2496 	/* Unsigned int 32 value corresponding to respective AC */
2497 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2498 	/* Unsigned int 32 value corresponding to respective AC */
2499 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2500 	/* Unsigned int 32 value corresponding to respective AC */
2501 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2502 	/* Unsigned int 32 value corresponding to respective AC */
2503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2504 	/* Unsigned int 32 value corresponding to respective AC */
2505 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2506 	/* Unsigned int 32 value corresponding to respective AC */
2507 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2508 	/* Unsigned int 32 value corresponding to respective AC */
2509 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2510 	/* Unsigned int 32 value corresponding to respective AC  */
2511 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2512 	/* Unsigned int 32 values corresponding to respective AC */
2513 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2514 	/* Unsigned int 32 values corresponding to respective AC */
2515 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2516 	/* Unsigned int 32 values corresponding to respective AC */
2517 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2518 	/* Unsigned int 32 values corresponding to respective AC */
2519 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2520 	/* Unsigned int 32 values corresponding to respective AC */
2521 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2522 	/* Unsigned 32 bit value. Number of peers */
2523 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2524 
2525 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2526 	 * nested within the interface stats.
2527 	 */
2528 
2529 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2530 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2531 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2532 	 * 8 bit values.
2533 	 */
2534 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2535 	/* Unsigned int 32 bit value representing capabilities corresponding
2536 	 * to respective peer.
2537 	 */
2538 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2539 	/* Unsigned 32 bit value. Number of rates */
2540 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2541 
2542 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2543 	 * are nested within the rate stat.
2544 	 */
2545 
2546 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2547 
2548 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2549 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2550 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2551 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2552 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2553 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2554 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2555 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2556 	 */
2557 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2558 
2559 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2560 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2561 
2562 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2563 	 * nested within the peer info stats.
2564 	 */
2565 
2566 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2567 	 * packets, i.e., with ACK received corresponding to the respective
2568 	 * rate.
2569 	 */
2570 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2571 	/* Unsigned int 32 bit value. Number of received data packets
2572 	 * corresponding to the respective rate.
2573 	 */
2574 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2575 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2576 	 * received corresponding to the respective rate.
2577 	 */
2578 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2579 	/* Unsigned int 32 bit value. Total number of data packet retries for
2580 	 * the respective rate.
2581 	 */
2582 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2583 	/* Unsigned int 32 bit value. Total number of short data packet retries
2584 	 * for the respective rate.
2585 	 */
2586 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2587 	/* Unsigned int 32 bit value. Total number of long data packet retries
2588 	 * for the respective rate.
2589 	 */
2590 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2591 
2592 	/* Unsigned 32 bit value. This is used to indicate radio ID of the radio
2593 	 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
2594 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
2595 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
2596 	 * of the MLO link.
2597 	 */
2598 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2599 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2600 	 * accruing over time.
2601 	 */
2602 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2603 	/* Unsigned 32 bit value. Total number of msecs the radio is
2604 	 * transmitting accruing over time.
2605 	 */
2606 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2607 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2608 	 * receive accruing over time.
2609 	 */
2610 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2611 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2612 	 * to all scan accruing over time.
2613 	 */
2614 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2615 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2616 	 * to NAN accruing over time.
2617 	 */
2618 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2619 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2620 	 * to GSCAN accruing over time.
2621 	 */
2622 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2623 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2624 	 * to roam scan accruing over time.
2625 	 */
2626 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2627 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2628 	 * to PNO scan accruing over time.
2629 	 */
2630 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2631 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2632 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2633 	 */
2634 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2635 	/* Unsigned 32 bit value. Number of channels. */
2636 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2637 
2638 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2639 	 * be nested within the channel stats.
2640 	 */
2641 
2642 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2643 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2644 	/* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
2645 	 * indicate the primary frequency of the channel when
2646 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
2647 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
2648 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
2649 	 * on which the MLO link is operating.
2650 	 */
2651 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2652 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2653 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2654 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2655 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2656 
2657 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2658 	 * nested within the radio stats.
2659 	 */
2660 
2661 	/* Unsigned int 32 bit value representing total number of msecs the
2662 	 * radio is awake on that channel accruing over time, corresponding to
2663 	 * the respective channel.
2664 	 */
2665 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2666 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2667 	 * register is busy accruing over time corresponding to the respective
2668 	 * channel.
2669 	 */
2670 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2671 
2672 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2673 
2674 	/* Signifies the nested list of channel attributes
2675 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2676 	 */
2677 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2678 
2679 	/* Signifies the nested list of peer info attributes
2680 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
2681 	 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
2682 	 * indicate on which link the peer is connected.
2683 	 */
2684 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2685 
2686 	/* Signifies the nested list of rate info attributes
2687 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2688 	 */
2689 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2690 
2691 	/* Signifies the nested list of wmm info attributes
2692 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2693 	 */
2694 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2695 
2696 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2697 	 * that more stats, e.g., peers or radio, are to follow in the next
2698 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2699 	 * Otherwise, it is set to 0.
2700 	 */
2701 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2702 
2703 	/* Unsigned 64 bit value. For an MLO connection, indicates the value of
2704 	 * the link with the best RSSI outside
2705 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2706 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2707 	 */
2708 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2709 
2710 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2711 	 * the link with the best RSSI outside
2712 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2713 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2714 	 */
2715 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2716 
2717 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2718 	 * the link with the best RSSI outside
2719 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2720 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2721 	 */
2722 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2723 
2724 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2725 	 * the link with the best RSSI outside
2726 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2727 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2728 	 */
2729 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2730 
2731 	/* Unsigned 32 bit value */
2732 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2733 
2734 	/* Unsigned 32 bit value */
2735 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2736 
2737 	/* Number of msecs the radio spent in transmitting for each power level
2738 	 */
2739 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2740 
2741 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2742 	 * the link with the best RSSI outside
2743 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2744 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2745 	 */
2746 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2747 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2748 	 * the link with the best RSSI outside
2749 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2750 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2751 	 */
2752 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2753 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2754 	 * the link with the best RSSI outside
2755 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2756 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2757 	 */
2758 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2759 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2760 	 * the link with the best RSSI outside
2761 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2762 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2763 	 */
2764 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2765 
2766 	/* Unsigned int 32 value.
2767 	 * Pending MSDUs corresponding to respective AC.
2768 	 */
2769 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2770 
2771 	/* u32 value representing total time in milliseconds for which the radio
2772 	 * is transmitting on this channel. This attribute will be nested
2773 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2774 	 */
2775 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2776 	/* u32 value representing total time in milliseconds for which the radio
2777 	 * is receiving all 802.11 frames intended for this device on this
2778 	 * channel. This attribute will be nested within
2779 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2780 	 */
2781 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2782 	/* u8 value representing the channel load percentage. Possible values
2783 	 * are 0-100.
2784 	 */
2785 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2786 	/* u8 value representing the time slicing duty cycle percentage.
2787 	 * Possible values are 0-100. For an MLO connection, indicates the value
2788 	 * of the link with the best RSSI outside
2789 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2790 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2791 	 */
2792 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2793 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2794 	 * from the associated AP and indicate buffered unicast frame(s) for us
2795 	 * in the TIM element. For an MLO connection, indicates the value of the
2796 	 * link with the best RSSI outside
2797 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2798 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2799 	 */
2800 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2801 	/* Unsigned 32 bit value. The total number of Beacon frames received
2802 	 * from the associated AP that have wrongly indicated buffered unicast
2803 	 * traffic in the TIM element for us.
2804 	 * Below scenarios will be considered as wrong TIM element beacon:
2805 	 * 1)	The related TIM element is set in the beacon for STA but STA
2806 	 *      doesn’t receive any unicast data after this beacon.
2807 	 * 2)	The related TIM element is still set in the beacon for STA
2808 	 *	after STA has indicated power save exit by QoS Null Data frame.
2809 	 * For an MLO connection, indicates the value of the link with the best
2810 	 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
2811 	 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2812 	 */
2813 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2814 
2815 	/* Signed 32 bit value. It represents the noise floor calibration value.
2816 	 * Possible values are -120~-50 dBm. For an MLO connection, indicates
2817 	 * the value of the link with the best RSSI outside
2818 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2819 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2820 	 */
2821 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
2822 
2823 	/* Attribute used for padding for 64-bit alignment */
2824 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
2825 
2826 	/* Unsigned u8 value, link ID of an MLO link. Used inside nested
2827 	 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
2828 	 * link ID of the MLO link for which the statistics are embedded in the
2829 	 * nested attribute. Used inside nested attribute
2830 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
2831 	 * link ID of the peer.
2832 	 */
2833 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
2834 
2835 	/* A nested array of attributes for each MLO link, each containing
2836 	 * per-link statistics of a multi link connection. The attributes used
2837 	 * inside this nested attribute are defined in enum
2838 	 * qca_wlan_vendor_attr_ll_stats_results.
2839 	 *
2840 	 * For non-MLO connection, this attribute is not present and the
2841 	 * statistics will be sent outside this attribute (without nesting).
2842 	 *
2843 	 * For MLO connection, this attribute is present and also cumulative
2844 	 * statistics of all the links will be sent outside of this attribute
2845 	 * to be compatible with legacy user space.
2846 	 */
2847 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
2848 
2849 	/* keep last */
2850 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2851 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2852 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2853 };
2854 
2855 enum qca_wlan_vendor_attr_ll_stats_type {
2856 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2857 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2858 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2859 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2860 
2861 	/* keep last */
2862 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2863 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2864 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2865 };
2866 
2867 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2868 
2869 /**
2870  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2871  *
2872  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2873  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2874  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2875  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2876  */
2877 enum qca_wlan_vendor_attr_get_supported_features {
2878 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2879 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2880 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2881 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2882 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2883 };
2884 
2885 /**
2886  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2887  *
2888  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2889  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2890  *	value
2891  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2892  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2893  */
2894 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2895 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2896 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2897 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2898 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2899 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2900 };
2901 
2902 /**
2903  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2904  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2905  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2906  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2907  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2908  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2909  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2910  */
2911 enum qca_wlan_vendor_scan_priority {
2912 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2913 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2914 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2915 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2916 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2917 };
2918 
2919 /**
2920  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2921  *
2922  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2923  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2924  *	with frequencies to be scanned (in MHz)
2925  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2926  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2927  *	rates to be included
2928  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2929  *	at non CCK rate in 2GHz band
2930  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2931  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2932  *	driver for the specific scan request
2933  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2934  *	request decoded as in enum scan_status
2935  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2936  *	scan flag is set
2937  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2938  *	randomisation
2939  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2940  *	specific BSSID to scan for.
2941  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2942  *	microseconds. This is a common value which applies across all
2943  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2944  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2945  *      other scan requests. It is a u32 attribute and takes values from enum
2946  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2947  *      If this attribute is not configured, the driver shall use
2948  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2949  */
2950 enum qca_wlan_vendor_attr_scan {
2951 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2952 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2953 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2954 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2955 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2956 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2957 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2958 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2959 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2960 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2961 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2962 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2963 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2964 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2965 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2966 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2967 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2968 };
2969 
2970 /**
2971  * enum scan_status - Specifies the valid values the vendor scan attribute
2972  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2973  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2974  *	new scan results
2975  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2976  */
2977 enum scan_status {
2978 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2979 	VENDOR_SCAN_STATUS_ABORTED,
2980 	VENDOR_SCAN_STATUS_MAX,
2981 };
2982 
2983 /**
2984  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2985  *
2986  * NL attributes for data used by
2987  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2988  *
2989  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2990  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2991  *	Unsigned 32-bit value
2992  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2993  *	Unsigned 32-bit value
2994  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2995  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2996  *	combinations
2997  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2998  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2999  */
3000 enum qca_wlan_vendor_attr_get_concurrency_matrix {
3001 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
3002 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
3003 									= 1,
3004 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
3005 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
3006 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
3007 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
3008 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
3009 };
3010 
3011 /**
3012  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
3013  *
3014  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
3015  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
3016  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
3017  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
3018  */
3019 enum qca_wlan_vendor_attr_set_no_dfs_flag {
3020 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
3021 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
3022 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
3023 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
3024 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
3025 };
3026 
3027 /**
3028  * enum qca_vendor_attr_wisa_cmd
3029  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
3030  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
3031  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
3032  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
3033  * WISA setup vendor commands
3034  */
3035 enum qca_vendor_attr_wisa_cmd {
3036 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
3037 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
3038 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
3039 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
3040 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
3041 };
3042 
3043 enum qca_roaming_policy {
3044 	QCA_ROAMING_NOT_ALLOWED,
3045 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
3046 };
3047 
3048 /**
3049  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
3050  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
3051  *
3052  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
3053  * reasons.
3054  *
3055  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
3056  * the configured threshold.
3057  *
3058  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
3059  * beacon misses from the then connected AP.
3060  *
3061  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
3062  * by the connected AP.
3063  *
3064  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
3065  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
3066  * not poor.
3067  *
3068  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
3069  * or environment being very noisy / congested.
3070  *
3071  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
3072  * from the user (user space).
3073  *
3074  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
3075  * connected AP.
3076  *
3077  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
3078  * breaching out the configured threshold.
3079  *
3080  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
3081  * transition request.
3082  *
3083  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
3084  * there is no data activity with the AP and the current rssi falls below a
3085  * certain threshold.
3086  *
3087  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
3088  * deauthentication or disassociation frames received from the connected AP.
3089  *
3090  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
3091  * scan that happens when there is no candidate AP found during the poor
3092  * RSSI scan trigger.
3093  *
3094  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
3095  * results obtained from an external scan (not aimed at roaming).
3096  *
3097  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
3098  * connection is established when the station is connected in 2.4 Ghz band.
3099  *
3100  * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
3101  * failures to the connected AP.
3102  */
3103 enum qca_roam_reason {
3104 	QCA_ROAM_REASON_UNKNOWN,
3105 	QCA_ROAM_REASON_PER,
3106 	QCA_ROAM_REASON_BEACON_MISS,
3107 	QCA_ROAM_REASON_POOR_RSSI,
3108 	QCA_ROAM_REASON_BETTER_RSSI,
3109 	QCA_ROAM_REASON_CONGESTION,
3110 	QCA_ROAM_REASON_USER_TRIGGER,
3111 	QCA_ROAM_REASON_BTM,
3112 	QCA_ROAM_REASON_BSS_LOAD,
3113 	QCA_ROAM_REASON_WTC,
3114 	QCA_ROAM_REASON_IDLE,
3115 	QCA_ROAM_REASON_DISCONNECTION,
3116 	QCA_ROAM_REASON_PERIODIC_TIMER,
3117 	QCA_ROAM_REASON_BACKGROUND_SCAN,
3118 	QCA_ROAM_REASON_BT_ACTIVITY,
3119 	QCA_ROAM_REASON_STA_KICKOUT,
3120 };
3121 
3122 /**
3123  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
3124  *
3125  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
3126  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
3127  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
3128  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
3129  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
3130  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
3131  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
3132  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
3133  * Indicates the status of re-association requested by user space for
3134  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
3135  * Type u16.
3136  * Represents the status code from AP. Use
3137  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
3138  * real status code for failures.
3139  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
3140  * This attribute indicates that the old association was maintained when
3141  * a re-association is requested by user space and that re-association
3142  * attempt fails (i.e., cannot connect to the requested BSS, but can
3143  * remain associated with the BSS with which the association was in
3144  * place when being requested to roam). Used along with
3145  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
3146  * re-association status. Type flag.
3147  * This attribute is applicable only for re-association failure cases.
3148  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
3149  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
3150  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
3151  * seq number
3152  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
3153  * representing the reasons for the roaming. Defined by enum
3154  * qca_roam_reason.
3155  */
3156 enum qca_wlan_vendor_attr_roam_auth {
3157 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
3158 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
3159 	 * of the roamed AP for MLO roaming.
3160 	 */
3161 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
3162 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
3163 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
3164 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
3165 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
3166 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
3167 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
3168 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
3169 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
3170 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
3171 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
3172 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
3173 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
3174 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
3175 	/* A nested attribute containing per-link information of all the links
3176 	 * of MLO connection done while roaming. The attributes used inside this
3177 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
3178 	 */
3179 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
3180 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
3181 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
3182 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
3183 };
3184 
3185 /**
3186  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
3187  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
3188  *
3189  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
3190  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
3191  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
3192  */
3193 enum qca_wlan_vendor_attr_mlo_links {
3194 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
3195 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
3196 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
3197 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
3198 
3199 	/* Keep last */
3200 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
3201 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
3202 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
3203 };
3204 
3205 /**
3206  * enum qca_wlan_vendor_attr_wifi_config - wifi config
3207  *
3208  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
3209  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
3210  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
3211  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
3212  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
3213  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
3214  */
3215 enum qca_wlan_vendor_attr_wifi_config {
3216 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
3217 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
3218 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
3219 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
3220 
3221 	/* keep last */
3222 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
3223 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
3224 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
3225 };
3226 
3227 /**
3228  * enum qca_wlan_epno_type - the type of request to the EPNO command
3229  * @QCA_WLAN_EPNO: epno type request
3230  * @QCA_WLAN_PNO: pno type request
3231  */
3232 enum qca_wlan_epno_type {
3233 	QCA_WLAN_EPNO,
3234 	QCA_WLAN_PNO
3235 };
3236 
3237 /**
3238  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
3239  *
3240  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
3241  *
3242  *	NL attributes for data used by
3243  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3244  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
3245  *	Unsigned 32-bit value; pno passpoint number of networks
3246  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
3247  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3248  *	attributes. Array size =
3249  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3250  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
3251  *	Unsigned 32-bit value; network id
3252  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
3253  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
3254  *	realm, 0 if unspecified.
3255  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
3256  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
3257  *	to match, 0 if unspecified.
3258  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
3259  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
3260  *	unspecified.
3261  *
3262  *	NL attributes for data used by
3263  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3264  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
3265  *	Unsigned 32-bit value; set pno number of networks
3266  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
3267  *	Array of nested
3268  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3269  *	attributes. Array size =
3270  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
3271  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
3272  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
3273  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
3274  *	Signed 8-bit value; threshold for considering this SSID as found,
3275  *	required granularity for this threshold is 4dBm to 8dBm
3276  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
3277  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
3278  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
3279  *	Unsigned 8-bit value; auth bit field for matching WPA IE
3280  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
3281  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
3282  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
3283  *	Nested attribute to send the channel list
3284  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
3285  *	Unsigned 32-bit value; indicates the Interval between PNO scan
3286  *	cycles in msec
3287  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
3288  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
3289  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
3290  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
3291  *	This attribute is obsolete now.
3292  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
3293  *	Signed 32-bit value; the maximum score that a network
3294  *	can have before bonuses
3295  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
3296  *	Signed 32-bit value; only report when there is a network's
3297  *	score this much higher han the current connection
3298  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
3299  *	Signed 32-bit value; score bonus for all networks with
3300  *	the same network flag
3301  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
3302  *	Signed 32-bit value; score bonus for networks that are not open
3303  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
3304  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
3305  *	5GHz networks
3306  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
3307  *	Unsigned 32-bit value, representing the PNO Request ID
3308  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
3309  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
3310  */
3311 enum qca_wlan_vendor_attr_pno_config_params {
3312 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3313 
3314 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3315 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3316 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3317 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3318 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3319 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3320 
3321 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3322 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3323 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3324 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
3325 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3326 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3327 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3328 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3329 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3330 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3331 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3332 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3333 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3334 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3335 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3336 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3337 
3338 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3339 	/* keep last */
3340 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3341 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3342 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3343 };
3344 
3345 /**
3346  * enum qca_scan_freq_list_type: Frequency list types
3347  *
3348  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3349  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3350  *	a preferred frequency list for roaming.
3351  *
3352  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3353  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3354  *	a specific frequency list for roaming.
3355  */
3356 enum qca_scan_freq_list_type {
3357 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3358 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3359 };
3360 
3361 /**
3362  * enum qca_roam_scan_scheme: scan scheme
3363  *
3364  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3365  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3366  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3367  *	disconnect from the current connected AP by notifying a failure
3368  *	code in the BTM response.
3369  *
3370  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3371  *	trigger partial frequency scans. These frequencies are the ones learnt
3372  *	or maintained by the driver based on the probability of finding the
3373  *	BSSID's in the ESS for which the roaming is triggered.
3374  *
3375  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3376  *	trigger the scan on all the valid frequencies to find the better
3377  *	candidates to roam.
3378  */
3379 enum qca_roam_scan_scheme {
3380 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3381 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3382 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3383 };
3384 
3385 /**
3386  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3387  *
3388  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3389  *	List of frequencies in MHz to be considered for a roam scan.
3390  *
3391  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3392  *	Type of frequency list scheme being configured/gotten as defined by the
3393  *	enum qca_scan_freq_list_type.
3394  */
3395 enum qca_vendor_attr_scan_freq_list_scheme {
3396 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3397 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3398 
3399 	/* keep last */
3400 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3401 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3402 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3403 };
3404 
3405 /*
3406  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3407  *
3408  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3409  *	a bad packet error rates (PER).
3410  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3411  *	based on beacon misses from the connected AP.
3412  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3413  *	due to poor RSSI of the connected AP.
3414  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3415  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3416  *	Also, set if the roam has to be triggered due to the high RSSI of the
3417  *	current connected AP (better than
3418  *	QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
3419  *	the current BSSID need not be poor.
3420  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3421  *	by triggering a periodic scan to find a better AP to roam.
3422  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3423  *	when the connected channel environment is too noisy/congested.
3424  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3425  *	when BTM Request frame is received from the connected AP.
3426  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3427  *	when the channel utilization is goes above the configured threshold.
3428  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3429  *	based on the request from the user (space).
3430  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3431  *	device receives Deauthentication/Disassociation frame from connected
3432  *	AP.
3433  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3434  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3435  *	is determined to be a poor one.
3436  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3437  *	based on continuous TX Data Frame failures to the connected AP.
3438  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3439  *	based on the scan results obtained from an external scan (not
3440  *	triggered to aim roaming)
3441  *
3442  * Set the corresponding roam trigger reason bit to consider it for roam
3443  * trigger.
3444  * Userspace can set multiple bits and send to the driver. The driver shall
3445  * consider all of them to trigger/initiate a roam scan.
3446  */
3447 enum qca_vendor_roam_triggers {
3448 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3449 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3450 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3451 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3452 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3453 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3454 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3455 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3456 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3457 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3458 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3459 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3460 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3461 };
3462 
3463 /*
3464  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3465  * fail reasons. This enum value is used in
3466  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3467  *
3468  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3469  * able to trigger the scan.
3470  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3471  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3472  * scan.
3473  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3474  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3475  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3476  * status code.
3477  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3478  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3479  * frame.
3480  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3481  * with error status code.
3482  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3483  * received.
3484  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3485  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3486  * frame.
3487  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3488  * internally before transmission.
3489  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3490  * Request frame.
3491  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3492  * dropped internally.
3493  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3494  * times out.
3495  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3496  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3497  * internally.
3498  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3499  * M2 frame.
3500  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3501  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3502  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3503  * internally.
3504  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3505  * frame.
3506  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3507  * started for final beacon miss case.
3508  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3509  * received from the AP during roaming handoff.
3510  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3511  * or host is suspended and gives the indication of the last roamed AP only
3512  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3513  * progress, this ongoing roaming is aborted and the last roamed AP is
3514  * indicated to host.
3515  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3516  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3517  * out.
3518  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3519  * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
3520  * current network conditions are fine.
3521  */
3522 enum qca_vendor_roam_fail_reasons {
3523 	QCA_ROAM_FAIL_REASON_NONE = 0,
3524 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3525 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3526 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3527 	QCA_ROAM_FAIL_REASON_HOST = 4,
3528 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3529 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3530 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3531 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3532 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3533 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3534 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3535 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3536 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3537 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3538 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3539 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3540 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3541 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3542 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3543 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3544 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3545 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3546 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3547 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3548 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3549 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3550 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3551 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3552 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3553 	QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
3554 };
3555 
3556 /*
3557  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3558  * invoke fail reasons. This enum value is used in
3559  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3560  *
3561  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3562  * in roam invoke command.
3563  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3564  * enabled.
3565  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3566  * length is invalid.
3567  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3568  * in progress.
3569  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3570  * of the AP in the roam invoke command to firmware. This reason is sent by the
3571  * firmware when the given AP is configured to be ignored or SSID/security
3572  * does not match.
3573  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3574  * firmware internal reasons.
3575  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3576  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3577  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3578  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3579  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3580  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3581  */
3582 enum qca_vendor_roam_invoke_fail_reasons {
3583 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3584 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3585 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3586 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3587 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3588 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3589 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3590 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3591 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3592 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3593 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3594 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3595 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3596 
3597 };
3598 
3599 /**
3600  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3601  *
3602  * Each attribute carries a weightage in percentage (%).
3603  *
3604  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3605  *	Represents the weightage to be given for the RSSI selection
3606  *	criteria among other parameters.
3607  *
3608  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3609  *	Represents the weightage to be given for the rate selection
3610  *	criteria among other parameters.
3611  *
3612  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3613  *	Represents the weightage to be given for the band width selection
3614  *	criteria among other parameters.
3615  *
3616  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3617  *	Represents the weightage to be given for the band selection
3618  *	criteria among other parameters.
3619  *
3620  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3621  *	Represents the weightage to be given for the NSS selection
3622  *	criteria among other parameters.
3623  *
3624  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3625  *	Represents the weightage to be given for the channel congestion
3626  *	selection criteria among other parameters.
3627  *
3628  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3629  *	Represents the weightage to be given for the beamforming selection
3630  *	criteria among other parameters.
3631  *
3632  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3633  *	Represents the weightage to be given for the OCE selection
3634  *	criteria among other parameters.
3635  */
3636 enum qca_vendor_attr_roam_candidate_selection_criteria {
3637 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3638 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3639 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3640 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3641 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3642 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3643 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3644 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3645 
3646 	/* keep last */
3647 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3648 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3649 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3650 };
3651 
3652 /**
3653  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3654  *	The following attributes are used to set/get/clear the respective
3655  *	configurations to/from the driver.
3656  *	For the get, the attribute for the configuration to be queried shall
3657  *	carry any of its acceptable values to the driver. In return, the driver
3658  *	shall send the configured values within the same attribute to the user
3659  *	space.
3660  *
3661  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3662  *	Signifies to enable/disable roam control in driver.
3663  *	1-enable, 0-disable
3664  *	Enable: Mandates the driver to do the further roams using the
3665  *	configuration parameters set through
3666  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3667  *	Disable: Disables the driver/firmware roaming triggered through
3668  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3669  *	expected to continue with the default configurations.
3670  *
3671  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3672  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3673  *	Roam control status is obtained through this attribute.
3674  *
3675  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3676  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3677  *	is to be cleared in the driver.
3678  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3679  *	and shall be ignored if used with other sub commands.
3680  *	If this attribute is specified along with subcmd
3681  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3682  *	all other attributes, if there are any.
3683  *	If this attribute is not specified when the subcmd
3684  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3685  *	clear the data corresponding to the attributes specified.
3686  *
3687  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3688  *	list of frequencies and its type, represented by
3689  *	enum qca_vendor_attr_scan_freq_list_scheme.
3690  *	Frequency list and its type are mandatory for this attribute to set
3691  *	the frequencies.
3692  *	Frequency type is mandatory for this attribute to get the frequencies
3693  *	and the frequency list is obtained through
3694  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3695  *	Frequency list type is mandatory for this attribute to clear the
3696  *	frequencies.
3697  *
3698  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3699  *	Carries the value of scan period in seconds to set.
3700  *	The value of scan period is obtained with the same attribute for get.
3701  *	Clears the scan period in the driver when specified with clear command.
3702  *	Scan period is the idle time in seconds between each subsequent
3703  *	channel scans.
3704  *
3705  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3706  *	Carries the value of full scan period in seconds to set.
3707  *	The value of full scan period is obtained with the same attribute for
3708  *	get.
3709  *	Clears the full scan period in the driver when specified with clear
3710  *	command. Full scan period is the idle period in seconds between two
3711  *	successive full channel roam scans.
3712  *
3713  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3714  *	Carries a bitmap of the roam triggers specified in
3715  *	enum qca_vendor_roam_triggers.
3716  *	The driver shall enable roaming by enabling corresponding roam triggers
3717  *	based on the trigger bits sent with this attribute.
3718  *	If this attribute is not configured, the driver shall proceed with
3719  *	default behavior.
3720  *	The bitmap configured is obtained with the same attribute for get.
3721  *	Clears the bitmap configured in driver when specified with clear
3722  *	command.
3723  *
3724  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3725  *	weightage in percentage (%) to be given for each selection criteria.
3726  *	Different roam candidate selection criteria are represented by
3727  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3728  *	The driver shall select the roam candidate based on corresponding
3729  *	candidate selection scores sent.
3730  *
3731  *	An empty nested attribute is used to indicate that no specific
3732  *	preference score/criteria is configured (i.e., to disable this mechanism
3733  *	in the set case and to show that the mechanism is disabled in the get
3734  *	case).
3735  *
3736  *	Userspace can send multiple attributes out of this enum to the driver.
3737  *	Since this attribute represents the weight/percentage of preference for
3738  *	the respective selection criteria, it is preferred to configure 100%
3739  *	total weightage. The value in each attribute or cumulative weight of the
3740  *	values in all the nested attributes should not exceed 100%. The driver
3741  *	shall reject such configuration.
3742  *
3743  *	If the weights configured through this attribute are less than 100%,
3744  *	the driver shall honor the weights (x%) passed for the corresponding
3745  *	selection criteria and choose/distribute rest of the weight (100-x)%
3746  *	for the other selection criteria, based on its internal logic.
3747  *
3748  *	The selection criteria configured is obtained with the same
3749  *	attribute for get.
3750  *
3751  *	Clears the selection criteria configured in the driver when specified
3752  *	with clear command.
3753  *
3754  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3755  *	Represents value of scan frequency scheme from
3756  *      enum qca_roam_scan_scheme.
3757  *
3758  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3759  *	signifying the RSSI threshold of the current connected AP, indicating
3760  *	the driver to trigger roam only when the current connected AP's RSSI
3761  *	is lesser than this threshold.
3762  *
3763  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3764  *	signifying the RSSI threshold of the candidate AP, indicating
3765  *	the driver to trigger roam only to the candidate AP with RSSI
3766  *	better than this threshold. If RSSI thresholds for candidate APs found
3767  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3768  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3769  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3770  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3771  *	will take precedence over the value configured using
3772  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3773  *
3774  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3775  *	user triggered reason code to be sent to the AP in response to AP's
3776  *	request to trigger the roam if the roaming cannot be triggered.
3777  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3778  *
3779  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3780  *	Carries a bitmap of the roam triggers specified in
3781  *	enum qca_vendor_roam_triggers.
3782  *	Represents the roam triggers for which the specific scan scheme from
3783  *	enum qca_roam_scan_scheme has to be applied.
3784  *	It's an optional attribute. If this attribute is not configured, but
3785  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3786  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3787  *	all the roams.
3788  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3789  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3790  *	driver shall proceed with the default behavior.
3791  *
3792  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3793  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3794  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3795  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3796  *	threshold. Optional attribute. If this attribute is not included, then
3797  *	threshold value specified by the
3798  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3799  *
3800  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3801  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3802  *	band. The driver/firmware shall trigger roaming to the candidate AP
3803  *	found in 5GHz band only if it's RSSI value is better than this
3804  *	threshold. Optional attribute. If this attribute is not included, then
3805  *	threshold value specified by the
3806  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3807  *
3808  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3809  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3810  *	band. The driver/firmware shall trigger roaming to the candidate AP
3811  *	found in 6GHz band only if it's RSSI value is better than this
3812  *	threshold. Optional attribute. If this attribute is not included, then
3813  *	threshold value specified by the
3814  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3815  *
3816  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3817  *	Carries bitmask value of bits from &enum qca_set_band and represents
3818  *	all the bands in which roaming is allowed. The configuration is valid
3819  *	until next disconnection. If this attribute is not present, the
3820  *	existing configuration shall be used. By default, roaming is allowed
3821  *	on all bands supported by local device. When the value is set to
3822  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3823  *
3824  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3825  *	Optional parameter. RX link speed threshold to disable roaming.
3826  *	If the current RX link speed is above the threshold, roaming is not
3827  *	needed. If this attribute is not configured, or if it is set to 0, the
3828  *	driver will not consider the RX link speed in the roaming decision.
3829  *
3830  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
3831  *	Optional parameter. This configuration delays hand-off (in msec) by the
3832  *	specified duration to receive pending rx frames from current BSS.
3833  *
3834  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
3835  *	value.
3836  *	During the roam scan, if there are no desired APs found in the partial
3837  *	frequency list, an immediate full scan on all the supported frequencies
3838  *	is initiated as a fallback. This flag controls the frequency list
3839  *	creation for the full scan on the following lines.
3840  *	1 - Full scan to exclude the frequencies that were already scanned by
3841  *	    the previous partial scan.
3842  *	0 - Full scan to include all the supported frequencies irrespective of
3843  *	    the ones part of the earlier partial scan.
3844  *	If this flag is not specified, a full scan shall include all the
3845  *	supported frequencies irrespective of the ones part of an earlier
3846  *	partial scan.
3847  *
3848  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
3849  *	value.
3850  *	During the roam scan, if there are no desired APs found in the partial
3851  *	frequency list, an immediate full scan on all the supported frequencies
3852  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
3853  *	frequencies, including all PSC frequencies by default. This attribute
3854  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
3855  *	as following.
3856  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
3857  *	    prior discovery of any 6 GHz frequency support in the environment.
3858  *	    This discovery can happen through a prior RNR, 11k neighbor
3859  *	    request, 11v BTM request, host scan, etc.
3860  *	0 - Default behavior. Full scan to include all the supported 6 GHz
3861  *	    PSC frequencies regardless of whether 6 GHz BSSs have been
3862  *	    discovered.
3863  *	The default behavior if this flag is not specified is to include all
3864  *	the supported 6 GHz PSC frequencies in the roam full scan.
3865  *
3866  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
3867  *	This attribute signifies the RSSI offset that is added to low RSSI
3868  *	threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
3869  *	high RSSI threshold. STA is expected to trigger roam if the current
3870  *	connected AP's RSSI gets above this high RSSI threshold. STA's roam
3871  *	attempt on high RSSI threshold aims to find candidates from other
3872  *	better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
3873  *	and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
3874  *	for 2.4 GHz BSS).
3875  */
3876 enum qca_vendor_attr_roam_control {
3877 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3878 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3879 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3880 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3881 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3882 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3883 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3884 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3885 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3886 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3887 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3888 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3889 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3890 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3891 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3892 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3893 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3894 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3895 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
3896 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
3897 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
3898 	QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
3899 
3900 	/* keep last */
3901 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3902 	QCA_ATTR_ROAM_CONTROL_MAX =
3903 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3904 };
3905 
3906 /**
3907  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3908  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3909  *
3910  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3911  *	Represents the different roam sub commands referred by
3912  *	enum qca_wlan_vendor_roaming_subcmd.
3913  *
3914  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3915  *	Represents the Request ID for the specific set of commands.
3916  *	This also helps to map specific set of commands to the respective
3917  *	ID / client. e.g., helps to identify the user entity configuring the
3918  *	Blacklist BSSID and accordingly clear the respective ones with the
3919  *	matching ID.
3920  *
3921  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3922  *	32-bit value.Represents the number of whitelist SSIDs configured.
3923  *
3924  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3925  *	to carry the list of Whitelist SSIDs.
3926  *
3927  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3928  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3929  *	represent the list of SSIDs to which the firmware/driver can consider
3930  *	to roam to.
3931  *
3932  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3933  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3934  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3935  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3936  *
3937  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3938  *	value, RSSI threshold above which 5GHz RSSI is favored.
3939  *
3940  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3941  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3942  *
3943  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3944  *	value, factor by which 5GHz RSSI is boosted.
3945  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3946  *
3947  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3948  *	value, factor by which 5GHz RSSI is penalized.
3949  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3950  *
3951  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3952  *	value, maximum boost that can be applied to a 5GHz RSSI.
3953  *
3954  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3955  *	value, boost applied to current BSSID to ensure the currently
3956  *	associated BSSID is favored so as to prevent ping-pong situations.
3957  *
3958  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3959  *	value, RSSI below which "Alert" roam is enabled.
3960  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3961  *	because the RSSI is low, or because many successive beacons have been
3962  *	lost or other bad link conditions.
3963  *
3964  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3965  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3966  *	firmware is hunting for a better BSSID or white listed SSID even though
3967  *	the RSSI of the link is good. The parameters enabling the roaming are
3968  *	configured through the PARAM_A_BAND_XX attrbutes.
3969  *
3970  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3971  *	represents the BSSIDs preferred over others while evaluating them
3972  *	for the roaming.
3973  *
3974  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3975  *	32-bit value. Represents the number of preferred BSSIDs set.
3976  *
3977  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3978  *	address representing the BSSID to be preferred.
3979  *
3980  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3981  *	32-bit value, representing the modifier to be applied to the RSSI of
3982  *	the BSSID for the purpose of comparing it with other roam candidate.
3983  *
3984  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3985  *	represents the BSSIDs to get blacklisted for roaming.
3986  *
3987  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3988  *	32-bit value, represents the number of blacklisted BSSIDs.
3989  *
3990  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3991  *	address representing the Blacklisted BSSID.
3992  *
3993  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3994  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3995  *	select this BSSID in the worst case (when no other BSSIDs are better).
3996  *
3997  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3998  *	set/get/clear the roam control config as
3999  *	defined @enum qca_vendor_attr_roam_control.
4000  *
4001  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
4002  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
4003  */
4004 enum qca_wlan_vendor_attr_roaming_config_params {
4005 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
4006 
4007 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
4008 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
4009 
4010 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
4011 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
4012 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
4013 
4014 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
4015 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
4016 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
4017 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
4018 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
4019 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
4020 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
4021 
4022 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
4023 
4024 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
4025 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
4026 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
4027 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
4028 
4029 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
4030 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
4031 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
4032 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
4033 
4034 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
4035 
4036 	/* keep last */
4037 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
4038 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
4039 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
4040 };
4041 
4042 /**
4043  * enum qca_wlan_vendor_roaming_subcmd: Referred by
4044  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
4045  *
4046  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
4047  *	configure the white list SSIDs. These are configured through
4048  *	the following attributes.
4049  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
4050  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
4051  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
4052  *
4053  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
4054  *	configure the Roam params. These parameters are evaluated on the extscan
4055  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
4056  *	params.
4057  *
4058  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
4059  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
4060  *	to enable/disable Lazy roam.
4061  *
4062  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
4063  *	preference. Contains the attribute
4064  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
4065  *	preference.
4066  *
4067  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
4068  *
4069  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
4070  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
4071  *	set the same.
4072  *
4073  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
4074  *	roam control config to the driver with the attribute
4075  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4076  *
4077  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
4078  *	roam control config from driver with the attribute
4079  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4080  *	For the get, the attribute for the configuration to be queried shall
4081  *	carry any of its acceptable value to the driver. In return, the driver
4082  *	shall send the configured values within the same attribute to the user
4083  *	space.
4084  *
4085  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
4086  *	roam control config in the driver with the attribute
4087  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4088  *	The driver shall continue with its default roaming behavior when data
4089  *	corresponding to an attribute is cleared.
4090  */
4091 enum qca_wlan_vendor_roaming_subcmd {
4092 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
4093 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
4094 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
4095 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
4096 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
4097 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
4098 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
4099 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
4100 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
4101 };
4102 
4103 /**
4104  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
4105  *
4106  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
4107  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
4108  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
4109  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
4110  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
4111  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
4112  */
4113 enum qca_wlan_vendor_attr_get_wifi_info {
4114 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4115 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
4116 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
4117 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
4118 
4119 	/* KEEP LAST */
4120 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4121 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
4122 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4123 };
4124 
4125 enum qca_wlan_vendor_attr_logger_results {
4126 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4127 
4128 	/*
4129 	 * Unsigned 32-bit value; must match the request Id supplied by
4130 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
4131 	 */
4132 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4133 
4134 	/*
4135 	 * Unsigned 32-bit value; used to indicate the size of memory
4136 	 * dump to be allocated.
4137 	 */
4138 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4139 
4140 	/* keep last */
4141 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4142 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4143 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4144 };
4145 
4146 /**
4147  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
4148  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
4149  */
4150 enum qca_wlan_vendor_channel_prop_flags {
4151 	/* Bits 0, 1, 2, and 3 are reserved */
4152 
4153 	/* Turbo channel */
4154 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
4155 	/* CCK channel */
4156 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
4157 	/* OFDM channel */
4158 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
4159 	/* 2.4 GHz spectrum channel. */
4160 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
4161 	/* 5 GHz spectrum channel */
4162 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
4163 	/* Only passive scan allowed */
4164 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
4165 	/* Dynamic CCK-OFDM channel */
4166 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
4167 	/* GFSK channel (FHSS PHY) */
4168 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
4169 	/* Radar found on channel */
4170 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
4171 	/* 11a static turbo channel only */
4172 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
4173 	/* Half rate channel */
4174 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
4175 	/* Quarter rate channel */
4176 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
4177 	/* HT 20 channel */
4178 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
4179 	/* HT 40 with extension channel above */
4180 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
4181 	/* HT 40 with extension channel below */
4182 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
4183 	/* HT 40 intolerant */
4184 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
4185 	/* VHT 20 channel */
4186 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
4187 	/* VHT 40 with extension channel above */
4188 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
4189 	/* VHT 40 with extension channel below */
4190 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
4191 	/* VHT 80 channel */
4192 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
4193 	/* HT 40 intolerant mark bit for ACS use */
4194 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
4195 	/* Channel temporarily blocked due to noise */
4196 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
4197 	/* VHT 160 channel */
4198 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
4199 	/* VHT 80+80 channel */
4200 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
4201 	/* HE 20 channel */
4202 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
4203 	/* HE 40 with extension channel above */
4204 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
4205 	/* HE 40 with extension channel below */
4206 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
4207 	/* HE 40 intolerant */
4208 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
4209 };
4210 
4211 /**
4212  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
4213  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
4214  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
4215  */
4216 enum qca_wlan_vendor_channel_prop_flags_2 {
4217 	/* HE 40 intolerant mark bit for ACS use */
4218 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
4219 	/* HE 80 channel */
4220 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
4221 	/* HE 160 channel */
4222 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
4223 	/* HE 80+80 channel */
4224 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
4225 };
4226 
4227 /**
4228  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
4229  * each channel. This is used by
4230  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
4231  */
4232 enum qca_wlan_vendor_channel_prop_flags_ext {
4233 	/* Radar found on channel */
4234 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
4235 	/* DFS required on channel */
4236 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
4237 	/* DFS required on channel for 2nd band of 80+80 */
4238 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
4239 	/* If channel has been checked for DFS */
4240 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
4241 	/* Excluded in 802.11d */
4242 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
4243 	/* Channel Switch Announcement received on this channel */
4244 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
4245 	/* Ad-hoc is not allowed */
4246 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
4247 	/* Station only channel */
4248 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
4249 	/* DFS radar history for slave device (STA mode) */
4250 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
4251 	/* DFS CAC valid for slave device (STA mode) */
4252 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
4253 };
4254 
4255 /**
4256  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
4257  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
4258  * information to start/stop the NUD statistics collection.
4259  */
4260 enum qca_attr_nud_stats_set {
4261 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
4262 
4263 	/*
4264 	 * Flag to start/stop the NUD statistics collection.
4265 	 * Start - If included, Stop - If not included
4266 	 */
4267 	QCA_ATTR_NUD_STATS_SET_START = 1,
4268 	/* IPv4 address of the default gateway (in network byte order) */
4269 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
4270 	/*
4271 	 * Represents the data packet type to be monitored.
4272 	 * Host driver tracks the stats corresponding to each data frame
4273 	 * represented by these flags.
4274 	 * These data packets are represented by
4275 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
4276 	 */
4277 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
4278 	/* keep last */
4279 	QCA_ATTR_NUD_STATS_SET_LAST,
4280 	QCA_ATTR_NUD_STATS_SET_MAX =
4281 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
4282 };
4283 
4284 /**
4285  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
4286  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4287  *	information to start / stop the NUD stats collection.
4288  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
4289  *	Bitmap to Flag to Start / Stop the NUD stats collection
4290  *	Start - If included , Stop - If not included
4291  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
4292  *	IPv4 address of Default Gateway (in network byte order)
4293  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4294  *	information to start / stop the NUD stats collection.
4295  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
4296  *	Flag to Start / Stop the NUD stats collection
4297  *	Start - If included , Stop - If not included
4298  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
4299  *	IPv4 address of Default Gateway (in network byte order)
4300  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4301  *	information to start / stop the NUD stats collection.
4302  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
4303  *	Flag to Start / Stop the NUD stats collection
4304  *	Start - If included , Stop - If not included
4305  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
4306  *	IPv4 address of Default Gateway (in network byte order)
4307  */
4308 enum qca_attr_connectivity_check_stats_set {
4309 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
4310 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
4311 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
4312 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
4313 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
4314 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
4315 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
4316 	/* keep last */
4317 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
4318 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
4319 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
4320 };
4321 
4322 /**
4323  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4324  * data types for which the stats have to get collected.
4325  */
4326 enum qca_wlan_vendor_connectivity_check_pkt_flags {
4327 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
4328 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
4329 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
4330 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
4331 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
4332 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4333 	 * to represent the stats of respective data type.
4334 	 */
4335 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
4336 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
4337 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
4338 };
4339 
4340 enum qca_attr_connectivity_check_stats {
4341 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
4342 	/* Data packet type for which the stats are collected.
4343 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4344 	 */
4345 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
4346 	/* ID corresponding to the DNS frame for which the respective DNS stats
4347 	 * are monitored (u32).
4348 	 */
4349 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
4350 	/* source / destination port on which the respective proto stats are
4351 	 * collected (u32).
4352 	 */
4353 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
4354 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
4355 	/* IPv4/IPv6 address for which the destined data packets are
4356 	 * monitored. (in network byte order)
4357 	 */
4358 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
4359 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
4360 	/* Data packet Request count received from netdev */
4361 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4362 	/* Data packet Request count sent to lower MAC from upper MAC */
4363 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4364 	/* Data packet Request count received by lower MAC from upper MAC */
4365 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4366 	/* Data packet Request count successfully transmitted by the device */
4367 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4368 	/* Data packet Response count received by lower MAC */
4369 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4370 	/* Data packet Response count received by upper MAC */
4371 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4372 	/* Data packet Response count delivered to netdev */
4373 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4374 	/* Data Packet Response count that are dropped out of order */
4375 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4376 
4377 	/* keep last */
4378 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
4379 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
4380 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
4381 };
4382 
4383 /**
4384  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4385  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4386  * NUD statistics collected when queried.
4387  */
4388 enum qca_attr_nud_stats_get {
4389 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4390 	/* ARP Request count from netdev */
4391 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4392 	/* ARP Request count sent to lower MAC from upper MAC */
4393 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4394 	/* ARP Request count received by lower MAC from upper MAC */
4395 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4396 	/* ARP Request count successfully transmitted by the device */
4397 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4398 	/* ARP Response count received by lower MAC */
4399 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4400 	/* ARP Response count received by upper MAC */
4401 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4402 	/* ARP Response count delivered to netdev */
4403 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4404 	/* ARP Response count delivered to netdev */
4405 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4406 	/*
4407 	 * Flag indicating if the station's link to the AP is active.
4408 	 * Active Link - If included, Inactive link - If not included
4409 	 */
4410 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4411 	/*
4412 	 * Flag indicating if there is any duplicate address detected (DAD).
4413 	 * Yes - If detected, No - If not detected.
4414 	 */
4415 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4416 	/*
4417 	 * List of Data types for which the stats are requested.
4418 	 * This list does not carry ARP stats as they are done by the
4419 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4420 	 */
4421 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4422 	/* keep last */
4423 	QCA_ATTR_NUD_STATS_GET_LAST,
4424 	QCA_ATTR_NUD_STATS_GET_MAX =
4425 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4426 };
4427 
4428 enum qca_wlan_btm_candidate_status {
4429 	QCA_STATUS_ACCEPT = 0,
4430 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4431 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4432 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4433 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4434 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4435 	QCA_STATUS_REJECT_UNKNOWN = 6,
4436 };
4437 
4438 enum qca_wlan_vendor_attr_btm_candidate_info {
4439 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4440 
4441 	/* 6-byte MAC address representing the BSSID of transition candidate */
4442 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4443 	/*
4444 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4445 	 * returned by the driver. It says whether the BSSID provided in
4446 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4447 	 * the driver, if not it specifies the reason for rejection.
4448 	 * Note that the user-space can overwrite the transition reject reason
4449 	 * codes provided by driver based on more information.
4450 	 */
4451 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4452 
4453 	/* keep last */
4454 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4455 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4456 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4457 };
4458 
4459 enum qca_attr_trace_level {
4460 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4461 	/*
4462 	 * Nested array of the following attributes:
4463 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4464 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4465 	 */
4466 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4467 	/*
4468 	 * Specific QCA host driver module. Please refer to the QCA host
4469 	 * driver implementation to get the specific module ID.
4470 	 */
4471 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4472 	/* Different trace level masks represented in the QCA host driver. */
4473 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4474 
4475 	/* keep last */
4476 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4477 	QCA_ATTR_TRACE_LEVEL_MAX =
4478 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4479 };
4480 
4481 /**
4482  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4483  *                                                 supported features
4484  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4485  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4486  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4487  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4488  *
4489  * enum values are used for NL attributes for data used by
4490  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4491  */
4492 enum qca_wlan_vendor_attr_get_logger_features {
4493 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4494 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4495 
4496 	/* keep last */
4497 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4498 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4499 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4500 };
4501 
4502 /**
4503  * enum qca_wlan_vendor_attr_link_properties - link properties
4504  *
4505  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4506  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4507  *	specify the number of spatial streams negotiated
4508  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4509  *	to specify negotiated rate flags i.e. ht, vht and channel width
4510  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4511  *	specify the operating frequency
4512  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4513  * (STA / AP ) for the connected link.
4514  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4515  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4516  * address of the peer represented by
4517  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4518  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4519  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4520  */
4521 enum qca_wlan_vendor_attr_link_properties {
4522 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4523 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4524 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4525 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4526 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4527 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4528 
4529 	/* KEEP LAST */
4530 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4531 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4532 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4533 };
4534 
4535 /**
4536  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4537  *
4538  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4539  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4540  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4541  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4542  *
4543  * enum values are used for NL attributes for data used by
4544  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4545  */
4546 enum qca_wlan_vendor_attr_nd_offload {
4547 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4548 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4549 
4550 	/* Keep last */
4551 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4552 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4553 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4554 };
4555 
4556 /**
4557  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4558  *
4559  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4560  *	management offload, a mechanism where the station's firmware
4561  *	does the exchange with the AP to establish the temporal keys
4562  *	after roaming, rather than having the user space wpa_supplicant do it.
4563  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4564  *	band selection based on channel selection results.
4565  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4566  *	simultaneous off-channel operations.
4567  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4568  *	Listen offload; a mechanism where the station's firmware takes care of
4569  *	responding to incoming Probe Request frames received from other P2P
4570  *	Devices whilst in Listen state, rather than having the user space
4571  *	wpa_supplicant do it. Information from received P2P requests are
4572  *	forwarded from firmware to host whenever the host processor wakes up.
4573  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4574  *	specific features.
4575  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4576  *	features.
4577  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4578  *	specific features only. If a Device sets this bit but not the
4579  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4580  *	this Device may not support all OCE AP functionalities but can support
4581  *	only OCE STA-CFON functionalities.
4582  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4583  *	managed regulatory.
4584  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4585  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4586  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4587  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4588  *	and applying thermal configuration through
4589  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4590  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4591  *	userspace.
4592  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4593  *	With Adaptive 11r feature, access points advertise the vendor
4594  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4595  *	The Adaptive 11r supported stations are expected to identify
4596  *	such vendor specific IEs and connect to the AP in FT mode though
4597  *	the profile is configured in non-FT mode.
4598  *	The driver-based SME cases also need to have this support for
4599  *	Adaptive 11r to handle the connection and roaming scenarios.
4600  *	This flag indicates the support for the same to the user space.
4601  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4602  *	concurrent network sessions on different Wi-Fi Bands. This feature
4603  *	capability is attributed to the hardware's capability to support
4604  *	the same (e.g., DBS).
4605  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4606  *	responses for the respective TWT operations are asynchronous (separate)
4607  *	event message) from the driver. If not specified, the responses are
4608  *	synchronous (in vendor command reply) to the request. Each TWT
4609  *	operation is specifically mentioned (against its respective)
4610  *	documentation) to support either of these or both modes.
4611  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4612  * 	that the driver requires add/del virtual interface path using the
4613  *	generic nl80211 commands for NDP interface create/delete and to
4614  *	register/unregister the netdev instead of creating/deleting the NDP
4615  *	interface using the vendor commands
4616  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4617  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4618  * 	(5.12 version onward), interface creation/deletion is not allowed using
4619  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4620  * 	during the register/unregister of netdev. Create and delete NDP
4621  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4622  * 	commands respectively if the driver advertises this capability set.
4623  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4624  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4625  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4626  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4627  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4628  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4629  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4630  *	station mode supports secure RTT measurement exchange. If
4631  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4632  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4633  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4634  *	mode supports secure RTT measurement exchange. If
4635  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4636  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4637  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4638  *	the device in station mode supports protection of range negotiation and
4639  *	measurement management frames. If
4640  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4641  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4642  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4643  *	the device in AP mode supports protection of range negotiation and
4644  *	measurement management frames. If
4645  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4646  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4647  * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
4648  *	in AP mode supports configuring allowed frequency list for AP operation
4649  *	with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
4650  * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
4651  *	 that the device supports enhanced audio experience over WLAN feature.
4652  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4653  */
4654 enum qca_wlan_vendor_features {
4655 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4656 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4657 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4658 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4659 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4660 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4661 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4662 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4663 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4664 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4665 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4666 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4667 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4668 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4669 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4670 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4671 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4672 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4673 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4674 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4675 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4676 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4677 	QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
4678 	QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
4679 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4680 };
4681 
4682 /**
4683  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4684  *     conditional channel switch
4685  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4686  *     value
4687  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4688  * frequency list (an array of u32 values in host byte order)
4689  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4690  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4691  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4692  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4693  */
4694 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4695 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4696 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4697 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4698 
4699 	/* Keep Last */
4700 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4701 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4702 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4703 };
4704 
4705 /**
4706  * enum wifi_logger_supported_features - values for supported logger features
4707  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4708  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4709  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4710  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4711  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4712  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4713  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4714  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4715  */
4716 enum wifi_logger_supported_features {
4717 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4718 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4719 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4720 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4721 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4722 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4723 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4724 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4725 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4726 };
4727 
4728 /**
4729  * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
4730  * capabilities features
4731  */
4732 enum qca_wlan_tdls_caps_features_supported {
4733 	WIFI_TDLS_SUPPORT = (1 << (0)),
4734 	WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
4735 	WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
4736 
4737 	/* Indicates if the TDLS session can be formed with the peer using
4738 	 * higher bandwidth than the bandwidth of the AP path.
4739 	 */
4740 	WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
4741 };
4742 
4743 /**
4744  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4745  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4746  *
4747  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4748  * Used with event to notify the primary channel number selected in ACS
4749  * operation.
4750  * Note: If both the driver and user-space application supports the 6 GHz band,
4751  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4752  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4753  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4754  * is still used if either of the driver or user space application doesn't
4755  * support the 6 GHz band.
4756  *
4757  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4758  * Used with event to notify the secondary channel number selected in ACS
4759  * operation.
4760  * Note: If both the driver and user-space application supports the 6 GHz band,
4761  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4762  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4763  * To maintain backward compatibility,
4764  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4765  * the driver or user space application doesn't support 6 GHz band.
4766  *
4767  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4768  * (a) Used with command to configure hw_mode from
4769  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4770  * (b) Also used with event to notify the hw_mode of selected primary channel
4771  * in ACS operation.
4772  *
4773  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4774  * Used with command to configure ACS operation for HT mode.
4775  * Disable (flag attribute not present) - HT disabled and
4776  * Enable (flag attribute present) - HT enabled.
4777  *
4778  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4779  * Used with command to configure ACS operation for HT40 mode.
4780  * Disable (flag attribute not present) - HT40 disabled and
4781  * Enable (flag attribute present) - HT40 enabled.
4782  *
4783  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4784  * Used with command to configure ACS operation for VHT mode.
4785  * Disable (flag attribute not present) - VHT disabled and
4786  * Enable (flag attribute present) - VHT enabled.
4787  *
4788  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4789  * mandatory with event.
4790  * If specified in command path, ACS operation is configured with the given
4791  * channel width (in MHz).
4792  * In event path, specifies the channel width of the primary channel selected.
4793  *
4794  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4795  * Used with command to configure channel list using an array of
4796  * channel numbers (u8).
4797  * Note: If both the driver and user-space application supports the 6 GHz band,
4798  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4799  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4800  *
4801  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4802  * Used with event to notify the VHT segment 0 center channel number selected in
4803  * ACS operation.
4804  * Note: If both the driver and user-space application supports the 6 GHz band,
4805  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4806  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4807  * To maintain backward compatibility,
4808  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4809  * the driver or user space application doesn't support the 6 GHz band.
4810  *
4811  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4812  * Used with event to notify the VHT segment 1 center channel number selected in
4813  * ACS operation.
4814  * Note: If both the driver and user-space application supports the 6 GHz band,
4815  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4816  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4817  * To maintain backward compatibility,
4818  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4819  * the driver or user space application doesn't support the 6 GHz band.
4820  *
4821  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4822  * Used with command to configure the channel list using an array of channel
4823  * center frequencies in MHz (u32).
4824  * Note: If both the driver and user-space application supports the 6 GHz band,
4825  * the driver first parses the frequency list and if it fails to get a frequency
4826  * list, parses the channel list specified using
4827  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4828  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4829  *
4830  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4831  * Used with event to notify the primary channel center frequency (MHz) selected
4832  * in ACS operation.
4833  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4834  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4835  *
4836  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4837  * Used with event to notify the secondary channel center frequency (MHz)
4838  * selected in ACS operation.
4839  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4840  * includes this attribute along with
4841  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4842  *
4843  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4844  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
4845  * selected in ACS operation.
4846  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4847  * includes this attribute along with
4848  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
4849  *
4850  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4851  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4852  * selected in ACS operation.
4853  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4854  * includes this attribute along with
4855  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4856  *
4857  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4858  * Used with command to notify the driver of EDMG request for ACS
4859  * operation.
4860  *
4861  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4862  * Used with event to notify the EDMG channel number selected in ACS
4863  * operation.
4864  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4865  *
4866  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4867  * Used with event to notify the puncture pattern selected in ACS operation.
4868  * Encoding for this attribute will follow the convention used in the Disabled
4869  * Subchannel Bitmap field of the EHT Operation IE.
4870  *
4871  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4872  * Used with command to configure ACS operation for EHT mode.
4873  * Disable (flag attribute not present) - EHT disabled and
4874  * Enable (flag attribute present) - EHT enabled.
4875  *
4876  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4877  * Used with command to configure how older scan can be considered for ACS
4878  * scoring. In case scan was performed on partial set of channels configured
4879  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4880  * (in ms), then scan only remaining channels.
4881  */
4882 enum qca_wlan_vendor_attr_acs_offload {
4883 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4884 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4885 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4886 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4887 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4888 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4889 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4890 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4891 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4892 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4893 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4894 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4895 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4896 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4897 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4898 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4899 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4900 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4901 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4902 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4903 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4904 
4905 	/* keep last */
4906 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4907 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4908 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4909 };
4910 
4911 /**
4912  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4913  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4914  *
4915  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4916  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4917  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4918  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4919  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4920  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4921  */
4922 enum qca_wlan_vendor_acs_hw_mode {
4923 	QCA_ACS_MODE_IEEE80211B,
4924 	QCA_ACS_MODE_IEEE80211G,
4925 	QCA_ACS_MODE_IEEE80211A,
4926 	QCA_ACS_MODE_IEEE80211AD,
4927 	QCA_ACS_MODE_IEEE80211ANY,
4928 	QCA_ACS_MODE_IEEE80211AX,
4929 };
4930 
4931 /**
4932  * enum qca_access_policy - access control policy
4933  *
4934  * Access control policy is applied on the configured IE
4935  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4936  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4937  *
4938  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4939  *»       with the specific configuration (IE) set, i.e. allow all the
4940  *»       connections which do not match the configuration.
4941  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4942  *»       with the specific configuration (IE) set, i.e. deny all the
4943  *»       connections which do not match the configuration.
4944  */
4945 enum qca_access_policy {
4946 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4947 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4948 };
4949 
4950 /**
4951  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4952  *
4953  * The valid values for the ignore assoc disallowed
4954  *
4955  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4956  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4957  *
4958  */
4959 enum qca_ignore_assoc_disallowed {
4960 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4961 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4962 };
4963 
4964 /* Attributes for data used by
4965  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4966  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4967  */
4968 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4969 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4970 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4971 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4972 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4973 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4974 enum qca_wlan_vendor_attr_config {
4975 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4976 	/*
4977 	 * Unsigned 32-bit value to set the DTIM period.
4978 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4979 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4980 	 * DTIM beacons.
4981 	 */
4982 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4983 	/*
4984 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4985 	 * used to calculate statistics like average the TSF offset or average
4986 	 * number of frame leaked.
4987 	 * For instance, upon Beacon frame reception:
4988 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4989 	 * For instance, when evaluating leaky APs:
4990 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4991 	 */
4992 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4993 	/*
4994 	 * Unsigned 32-bit value to configure guard time, i.e., when
4995 	 * implementing IEEE power management based on frame control PM bit, how
4996 	 * long the driver waits before shutting down the radio and after
4997 	 * receiving an ACK frame for a Data frame with PM bit set.
4998 	 */
4999 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
5000 	/* Unsigned 32-bit value to change the FTM capability dynamically */
5001 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
5002 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
5003 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
5004 	/*
5005 	 * Unsigned 32-bit value to configure the number of continuous
5006 	 * Beacon Miss which shall be used by the firmware to penalize
5007 	 * the RSSI.
5008 	 */
5009 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
5010 	/*
5011 	 * Unsigned 8-bit value to configure the channel avoidance indication
5012 	 * behavior. Firmware to send only one indication and ignore duplicate
5013 	 * indications when set to avoid multiple Apps wakeups.
5014 	 */
5015 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
5016 	/*
5017 	 * 8-bit unsigned value to configure the maximum TX MPDU for
5018 	 * aggregation.
5019 	 */
5020 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
5021 	/*
5022 	 * 8-bit unsigned value to configure the maximum RX MPDU for
5023 	 * aggregation.
5024 	 */
5025 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
5026 	/*
5027 	 * 8-bit unsigned value to configure the Non aggregate/11g sw
5028 	 * retry threshold (0 disable, 31 max).
5029 	 */
5030 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
5031 	/*
5032 	 * 8-bit unsigned value to configure the aggregate sw
5033 	 * retry threshold (0 disable, 31 max).
5034 	 */
5035 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
5036 	/*
5037 	 * 8-bit unsigned value to configure the MGMT frame
5038 	 * retry threshold (0 disable, 31 max).
5039 	 */
5040 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
5041 	/*
5042 	 * 8-bit unsigned value to configure the CTRL frame
5043 	 * retry threshold (0 disable, 31 max).
5044 	 */
5045 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
5046 	/*
5047 	 * 8-bit unsigned value to configure the propagation delay for
5048 	 * 2G/5G band (0~63, units in us)
5049 	 */
5050 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
5051 	/*
5052 	 * Unsigned 32-bit value to configure the number of unicast TX fail
5053 	 * packet count. The peer is disconnected once this threshold is
5054 	 * reached.
5055 	 */
5056 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
5057 	/*
5058 	 * Attribute used to set scan default IEs to the driver.
5059 	 *
5060 	 * These IEs can be used by scan operations that will be initiated by
5061 	 * the driver/firmware.
5062 	 *
5063 	 * For further scan requests coming to the driver, these IEs should be
5064 	 * merged with the IEs received along with scan request coming to the
5065 	 * driver. If a particular IE is present in the scan default IEs but not
5066 	 * present in the scan request, then that IE should be added to the IEs
5067 	 * sent in the Probe Request frames for that scan request.
5068 	 */
5069 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
5070 	/* Unsigned 32-bit attribute for generic commands */
5071 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
5072 	/* Unsigned 32-bit value attribute for generic commands */
5073 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
5074 	/* Unsigned 32-bit data attribute for generic command response */
5075 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
5076 	/*
5077 	 * Unsigned 32-bit length attribute for
5078 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
5079 	 */
5080 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
5081 	/*
5082 	 * Unsigned 32-bit flags attribute for
5083 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
5084 	 */
5085 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
5086 	/*
5087 	 * Unsigned 32-bit, defining the access policy.
5088 	 * See enum qca_access_policy. Used with
5089 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
5090 	 */
5091 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
5092 	/*
5093 	 * Sets the list of full set of IEs for which a specific access policy
5094 	 * has to be applied. Used along with
5095 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
5096 	 * Zero length payload can be used to clear this access constraint.
5097 	 */
5098 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
5099 	/*
5100 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
5101 	 * corresponding configurations are applied. If the interface index is
5102 	 * not specified, the configurations are attributed to the respective
5103 	 * wiphy.
5104 	 */
5105 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
5106 	/*
5107 	 * 8-bit unsigned value to trigger QPower:
5108 	 * 1-Enable, 0-Disable
5109 	 */
5110 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
5111 	/*
5112 	 * 8-bit unsigned value to configure the driver and below layers to
5113 	 * ignore the assoc disallowed set by APs while connecting
5114 	 * 1-Ignore, 0-Don't ignore
5115 	 */
5116 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
5117 	/*
5118 	 * 32-bit unsigned value to trigger antenna diversity features:
5119 	 * 1-Enable, 0-Disable
5120 	 */
5121 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
5122 	/* 32-bit unsigned value to configure specific chain antenna */
5123 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
5124 	/*
5125 	 * 32-bit unsigned value to trigger cycle selftest
5126 	 * 1-Enable, 0-Disable
5127 	 */
5128 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
5129 	/*
5130 	 * 32-bit unsigned to configure the cycle time of selftest
5131 	 * the unit is micro-second
5132 	 */
5133 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
5134 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
5135 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
5136 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
5137 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
5138 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
5139 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
5140 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
5141 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
5142 	/* 6-byte MAC address to point out the specific peer */
5143 	QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
5144 	/* Backward compatibility with the original name */
5145 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
5146 		QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
5147 	/* 32-bit unsigned value to set window size for specific peer */
5148 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
5149 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
5150 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
5151 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
5152 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
5153 	/*
5154 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
5155 	 * station device while in disconnect state. The attribute use the
5156 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
5157 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
5158 	 * 10 MHz channel width, the station will not connect to a BSS using 20
5159 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
5160 	 * clear this constraint.
5161 	 */
5162 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
5163 	/*
5164 	 * 32-bit unsigned value to configure the propagation absolute delay
5165 	 * for 2G/5G band (units in us)
5166 	 */
5167 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
5168 	/* 32-bit unsigned value to set probe period */
5169 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
5170 	/* 32-bit unsigned value to set stay period */
5171 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
5172 	/* 32-bit unsigned value to set snr diff */
5173 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
5174 	/* 32-bit unsigned value to set probe dwell time */
5175 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
5176 	/* 32-bit unsigned value to set mgmt snr weight */
5177 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
5178 	/* 32-bit unsigned value to set data snr weight */
5179 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
5180 	/* 32-bit unsigned value to set ack snr weight */
5181 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
5182 	/*
5183 	 * 32-bit unsigned value to configure the listen interval.
5184 	 * This is in units of beacon intervals. This configuration alters
5185 	 * the negotiated listen interval with the AP during the connection.
5186 	 * It is highly recommended to configure a value less than or equal to
5187 	 * the one negotiated during the association. Configuring any greater
5188 	 * value can have adverse effects (frame loss, AP disassociating STA,
5189 	 * etc.).
5190 	 */
5191 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
5192 	/*
5193 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
5194 	 * disable operations that would cause the AP/GO to leave its operating
5195 	 * channel.
5196 	 *
5197 	 * This will restrict the scans to the AP/GO operating channel and the
5198 	 * channels of the other band, if DBS is supported.A STA/CLI interface
5199 	 * brought up after this setting is enabled, will be restricted to
5200 	 * connecting to devices only on the AP/GO interface's operating channel
5201 	 * or on the other band in DBS case. P2P supported channel list is
5202 	 * modified, to only include AP interface's operating-channel and the
5203 	 * channels of the other band if DBS is supported.
5204 	 *
5205 	 * These restrictions are only applicable as long as the AP/GO interface
5206 	 * is alive. If the AP/GO interface is brought down then this
5207 	 * setting/restriction is forgotten.
5208 	 *
5209 	 * If this variable is set on an AP/GO interface while a multi-channel
5210 	 * concurrent session is active, it has no effect on the operation of
5211 	 * the current interfaces, other than restricting the scan to the AP/GO
5212 	 * operating channel and the other band channels if DBS is supported.
5213 	 * However, if the STA is brought down and restarted then the new STA
5214 	 * connection will either be formed on the AP/GO channel or on the
5215 	 * other band in a DBS case. This is because of the scan being
5216 	 * restricted on these channels as mentioned above.
5217 	 *
5218 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
5219 	 */
5220 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
5221 
5222 	/*
5223 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
5224 	 * on an interface.
5225 	 * 1 - Enable , 0 - Disable.
5226 	 */
5227 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
5228 
5229 	/*
5230 	 * 8 bit unsigned value to globally enable/disable scan
5231 	 * 1 - Enable, 0 - Disable.
5232 	 */
5233 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
5234 
5235 	/* 8-bit unsigned value to set the total beacon miss count */
5236 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
5237 
5238 	/*
5239 	 * Unsigned 32-bit value to configure the number of continuous
5240 	 * Beacon Miss which shall be used by the firmware to penalize
5241 	 * the RSSI for BTC.
5242 	 */
5243 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
5244 
5245 	/*
5246 	 * 8-bit unsigned value to configure the driver and below layers to
5247 	 * enable/disable all fils features.
5248 	 * 0-enable, 1-disable
5249 	 */
5250 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
5251 
5252 	/* 16-bit unsigned value to configure the level of WLAN latency
5253 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
5254 	 */
5255 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
5256 
5257 	/*
5258 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
5259 	 * the connect interface. Exclusively used for the scenarios where the
5260 	 * device is used as a test bed device with special functionality and
5261 	 * not recommended for production. This helps driver to not validate the
5262 	 * RSNE passed from user space and thus allow arbitrary IE data to be
5263 	 * used for testing purposes.
5264 	 * 1-enable, 0-disable.
5265 	 * Applications set/reset this configuration. If not reset, this
5266 	 * parameter remains in use until the driver is unloaded.
5267 	 */
5268 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
5269 
5270 	/*
5271 	 * 8-bit unsigned value to trigger green Tx power saving.
5272 	 * 1-Enable, 0-Disable
5273 	 */
5274 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
5275 
5276 	/*
5277 	 * Attribute to configure disconnect IEs to the driver.
5278 	 * This carries an array of unsigned 8-bit characters.
5279 	 *
5280 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
5281 	 * frame.
5282 	 * These IEs are expected to be considered only for the next
5283 	 * immediate disconnection (disassoc/deauth frame) originated by
5284 	 * the DUT, irrespective of the entity (user space/driver/firmware)
5285 	 * triggering the disconnection.
5286 	 * The host drivers are not expected to use the IEs set through
5287 	 * this interface for further disconnections after the first immediate
5288 	 * disconnection initiated post the configuration.
5289 	 * If the IEs are also updated through cfg80211 interface (after the
5290 	 * enhancement to cfg80211_disconnect), host driver is expected to
5291 	 * take the union of IEs from both of these interfaces and send in
5292 	 * further disassoc/deauth frames.
5293 	 */
5294 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
5295 
5296 	/* 8-bit unsigned value for ELNA bypass.
5297 	 * 0 - Disable eLNA bypass.
5298 	 * 1 - Enable eLNA bypass.
5299 	 * 2 - Reset eLNA bypass configuration, the driver should
5300 	 *	revert to the default configuration of eLNA bypass.
5301 	 */
5302 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
5303 
5304 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5305 	 * to send the Beacon Report response with failure reason for the
5306 	 * scenarios where STA cannot honor the Beacon report request from AP.
5307 	 * 1-Enable, 0-Disable.
5308 	 */
5309 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
5310 
5311 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5312 	 * to send roam reason information in the reassociation request to the
5313 	 * AP. 1-Enable, 0-Disable.
5314 	 */
5315 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
5316 
5317 	/* 32-bit unsigned value to configure different PHY modes to the
5318 	 * driver/firmware. The possible values are defined in
5319 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
5320 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
5321 	 * the driver.
5322 	 */
5323 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
5324 
5325 	/* 8-bit unsigned value to configure the maximum supported channel width
5326 	 * for STA mode. If this value is configured when STA is in connected
5327 	 * state, it should not exceed the negotiated channel width. If it is
5328 	 * configured when STA is in disconnected state, the configured value
5329 	 * will take effect for the next immediate connection.
5330 	 * This configuration can be sent inside
5331 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
5332 	 * supported channel width per-MLO link.
5333 	 *
5334 	 * This uses values defined in enum nl80211_chan_width.
5335 	 */
5336 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
5337 
5338 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
5339 	 * This attribute is only applicable for STA mode. When dynamic
5340 	 * bandwidth adjustment is disabled, STA will use static channel width
5341 	 * the value of which is negotiated during connection.
5342 	 * 1-enable (default), 0-disable
5343 	 */
5344 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
5345 
5346 	/* 8-bit unsigned value to configure the maximum number of subframes of
5347 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
5348 	 * it is decided by hardware.
5349 	 */
5350 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
5351 
5352 	/* 8-bit unsigned value to configure the maximum number of subframes of
5353 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
5354 	 * it is decided by hardware.
5355 	 */
5356 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
5357 
5358 	/* 8-bit unsigned value. This attribute is used to dynamically
5359 	 * enable/disable the LDPC capability of the device. When configured in
5360 	 * the disconnected state, the updated configuration will be considered
5361 	 * for the immediately following connection attempt. If this
5362 	 * configuration is modified while the device is in the connected state,
5363 	 * the LDPC TX will be updated with this configuration immediately,
5364 	 * while the LDPC RX configuration update will take place starting from
5365 	 * the subsequent association attempt.
5366 	 * 1-Enable, 0-Disable.
5367 	 */
5368 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
5369 
5370 	/* 8-bit unsigned value. This attribute is used to dynamically
5371 	 * enable/disable the TX STBC capability of the device. When configured
5372 	 * in the disconnected state, the updated configuration will be
5373 	 * considered for the immediately following connection attempt. If the
5374 	 * connection is formed with TX STBC enabled and if this configuration
5375 	 * is disabled during that association, the TX will be impacted
5376 	 * immediately. Further connection attempts will disable TX STBC.
5377 	 * However, enabling the TX STBC for a connected session with disabled
5378 	 * capability is not allowed and will fail.
5379 	 * 1-Enable, 0-Disable.
5380 	 */
5381 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
5382 
5383 	/* 8-bit unsigned value. This attribute is used to dynamically
5384 	 * enable/disable the RX STBC capability of the device. When configured
5385 	 * in the disconnected state, the updated configuration will be
5386 	 * considered for the immediately following connection attempt. If the
5387 	 * configuration is modified in the connected state, there will be no
5388 	 * impact for the current association, but further connection attempts
5389 	 * will use the updated configuration.
5390 	 * 1-Enable, 0-Disable.
5391 	 */
5392 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
5393 
5394 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5395 	 * the number of spatial streams. When configured in the disconnected
5396 	 * state, the updated configuration will be considered for the
5397 	 * immediately following connection attempt. If the NSS is updated after
5398 	 * the connection, the updated NSS value is notified to the peer using
5399 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
5400 	 * frame. The updated NSS value after the connection shall not be
5401 	 * greater than the one negotiated during the connection. Any such
5402 	 * higher value configuration shall be returned with a failure.
5403 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
5404 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
5405 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
5406 	 * configure the asymmetric NSS configuration (such as 1X2).
5407 	 */
5408 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
5409 
5410 	/* 8-bit unsigned value to configure Optimized Power Management mode:
5411 	 * Modes are defined by enum qca_wlan_vendor_opm_mode.
5412 	 *
5413 	 * This attribute shall be configured along with
5414 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
5415 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
5416 	 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
5417 	 */
5418 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
5419 
5420 	/* 8-bit unsigned value. This attribute takes the QOS/access category
5421 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5422 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
5423 	 * is invalid for this attribute. This will override the DSCP value
5424 	 * configured in the frame with the intention to only upgrade the QOS.
5425 	 * That said, it is not intended to downgrade the QOS for the frames.
5426 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
5427 	 * to disable.
5428 	 *
5429 	 * If only UDP frames of BE or BK access category needs to be upgraded
5430 	 * without changing the access category of VO or VI UDP frames, refer to
5431 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
5432 	 *
5433 	 * This attribute is not recommended to be used as it blindly forces all
5434 	 * UDP packets to a higher access category which could impact the
5435 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
5436 	 */
5437 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
5438 
5439 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5440 	 * the number of chains to be used for transmitting data. This
5441 	 * configuration is allowed only when in connected state and will be
5442 	 * effective until disconnected. The driver rejects this configuration
5443 	 * if the number of spatial streams being used in the current connection
5444 	 * cannot be supported by this configuration.
5445 	 */
5446 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
5447 
5448 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5449 	 * the number of chains to be used for receiving data. This
5450 	 * configuration is allowed only when in connected state and will be
5451 	 * effective until disconnected. The driver rejects this configuration
5452 	 * if the number of spatial streams being used in the current connection
5453 	 * cannot be supported by this configuration.
5454 	 */
5455 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5456 
5457 	/* 8-bit unsigned value to configure ANI setting type.
5458 	 * See &enum qca_wlan_ani_setting for possible values.
5459 	 */
5460 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5461 	/* 32-bit signed value to configure ANI level. This is used when
5462 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5463 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5464 	 * is invalid, the driver will return a failure.
5465 	 */
5466 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5467 
5468 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5469 	 * the number of spatial streams used for transmitting the data. When
5470 	 * configured in the disconnected state, the configured value will
5471 	 * be considered for the following connection attempt.
5472 	 * If the NSS is updated after the connection, the updated NSS value
5473 	 * is notified to the peer using the Operating Mode Notification/Spatial
5474 	 * Multiplexing Power Save frame.
5475 	 * The TX NSS value configured after the connection shall not be greater
5476 	 * than the value negotiated during the connection. Any such higher
5477 	 * value configuration shall be treated as invalid configuration by
5478 	 * the driver. This attribute shall be configured along with
5479 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5480 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5481 	 * configuration (such as 1X2).
5482 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5483 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5484 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5485 	 */
5486 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5487 
5488 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5489 	 * the number of spatial streams used for receiving the data. When
5490 	 * configured in the disconnected state, the configured value will
5491 	 * be considered for the following connection attempt.
5492 	 * If the NSS is updated after the connection, the updated NSS value
5493 	 * is notified to the peer using the Operating Mode Notification/Spatial
5494 	 * Multiplexing Power Save frame.
5495 	 * The RX NSS value configured after the connection shall not be greater
5496 	 * than the value negotiated during the connection. Any such higher
5497 	 * value configuration shall be treated as invalid configuration by
5498 	 * the driver. This attribute shall be configured along with
5499 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5500 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5501 	 * configuration (such as 1X2).
5502 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5503 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5504 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5505 	 */
5506 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5507 
5508 	/*
5509 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5510 	 * specified interface is the primary STA interface when there are more
5511 	 * than one STA interfaces concurrently active.
5512 	 *
5513 	 * This configuration helps the firmware/hardware to support certain
5514 	 * features (e.g., roaming) on this primary interface, if the same
5515 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5516 	 *
5517 	 * This configuration is only applicable for a single STA interface on
5518 	 * a device and gives the priority for it only over other concurrent STA
5519 	 * interfaces.
5520 	 *
5521 	 * If the device is a multi wiphy/soc, this configuration applies to a
5522 	 * single STA interface across the wiphys.
5523 	 *
5524 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5525 	 */
5526 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5527 
5528 	/*
5529 	 * 8-bit unsigned value. This attribute can be used to configure the
5530 	 * driver to enable/disable FT-over-DS feature. Possible values for
5531 	 * this attribute are 1-Enable and 0-Disable.
5532 	 */
5533 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5534 
5535 	/*
5536 	 * 8-bit unsigned value. This attribute can be used to configure the
5537 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5538 	 * for this attribute are 0-Disable and 1-Enable.
5539 	 *
5540 	 * This attribute is only applicable for STA/P2P-Client interface,
5541 	 * and is optional, default behavior is APR/NS offload Enable.
5542 	 *
5543 	 * This attribute can be set in disconncted and connected state, and
5544 	 * will restore to default behavior if interface is closed.
5545 	 */
5546 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5547 
5548 	/*
5549 	 * 8-bit unsigned value. This attribute can be used to configure the
5550 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5551 	 * for this attribute are defined in the enum qca_dbam_config.
5552 	 */
5553 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5554 
5555 	/* 8-bit unsigned value. This attribute takes the QoS/access category
5556 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5557 	 * to upgrade the UDP frames of BE or BK access category to this access
5558 	 * category. This attribute will not modify UDP frames of VO or VI
5559 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
5560 	 * attribute.
5561 	 *
5562 	 * This will override the DSCP value configured in the frame with the
5563 	 * intention to only upgrade the access category. That said, it is not
5564 	 * intended to downgrade the access category for the frames.
5565 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
5566 	 * disabled, as BK is of the lowest priority and an upgrade to it does
5567 	 * not result in any changes for the frames.
5568 	 *
5569 	 * This attribute behavior is similar to
5570 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
5571 	 * only UDP frames of BE or BK access category are upgraded and not
5572 	 * UDP frames of VI or VO access category.
5573 	 *
5574 	 * This attribute is not recommended to be used as it blindly forces all
5575 	 * UDP packets of BE or BK access category to a higher access category
5576 	 * which could impact the traffic pattern of all apps using UDP and can
5577 	 * cause unknown behavior.
5578 	 */
5579 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
5580 
5581 	/* 8-bit unsigned value to configure the driver to enable/disable the
5582 	 * periodic sounding for Tx beamformer functionality. The default
5583 	 * behavior uses algorithm to do sounding based on packet stats.
5584 	 *
5585 	 * 0 - Default behavior.
5586 	 * 1 - Enable the periodic sounding for Tx beamformer.
5587 	 * This attribute is used for testing purposes.
5588 	 */
5589 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
5590 
5591 	/* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
5592 	 * Userspace sends this information to driver/firmware to configure
5593 	 * wfc state. Driver/Firmware uses this information to
5594 	 * optimize power savings, rate adaption, roaming, etc.
5595 	 *
5596 	 * 1 - wfc is on.
5597 	 * 0 - wfc is off.
5598 	 */
5599 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
5600 
5601 	/* 8-bit unsigned value to configure the driver to enable/disable the
5602 	 * EHT EML capability in management frame EHT capabilities.
5603 	 * 1 - Enable, 0 - Disable.
5604 	 */
5605 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
5606 
5607 	/* 8-bit unsigned value to configure the driver with EHT MLO max
5608 	 * simultaneous links to be used for MLO connection.
5609 	 * The range of the value is 0 to 14.
5610 	 */
5611 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
5612 
5613 	/* 8-bit unsigned value to configure the driver with EHT MLO maximum
5614 	 * number of links to be used for MLO connection.
5615 	 * The range of the value is 1 to 16.
5616 	 */
5617 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
5618 
5619 	/* 8-bit unsigned value to configure the driver with EHT MLO mode.
5620 	 * Uses enum qca_wlan_eht_mlo_mode values.
5621 	 */
5622 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
5623 
5624 	/* Nested attribute with frequencies in u32 attributes to configure a
5625 	 * list of allowed 20 MHz channel center frequencies in MHz for AP
5626 	 * operation. Whenever performing a channel selection operation, the
5627 	 * driver shall generate a new list based on this provided list by
5628 	 * filtering out channels that cannot be used at that time due to
5629 	 * regulatory or other constraints. The resulting list is used as the
5630 	 * list of all allowed channels, i.e., operation on any channel that is
5631 	 * not included is not allowed, whenever performing operations like ACS
5632 	 * and DFS.
5633 	 *
5634 	 * Userspace shall configure this before starting the AP and the
5635 	 * configuration is valid only from the next BSS start and until the
5636 	 * BSS is stopped. The driver shall clear this configuration when the
5637 	 * AP is stopped and fall back to the default behavior for subsequent
5638 	 * AP operation.
5639 	 *
5640 	 * The default behavior when this configuration is not applicable is the
5641 	 * driver can choose any of the channels supported by the hardware
5642 	 * except the channels that cannot be used due to regulatory or other
5643 	 * constraints.
5644 	 *
5645 	 * The driver shall reject this configuration if done after the AP is
5646 	 * started. This attribute can be used to specify user's choice of
5647 	 * frequencies and static puncture channel list, etc.
5648 	 */
5649 	QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
5650 
5651 	/* Nested attribute to indicate EHT MLO links to be forced active.
5652 	 * It contains link MAC address attributes. These nested attributes are
5653 	 * of the type NL80211_ATTR_MAC and are used to force enabling of the
5654 	 * MLO links corresponding to the indicated link MAC addresses.
5655 	 * Subsequently, the links corresponding to the link MAC addresses that
5656 	 * are not indicated are forced inactive.
5657 	 */
5658 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
5659 
5660 	/* 8-bit unsigned value to configure EMLSR mode entry or exit.
5661 	 * Uses enum qca_wlan_emlsr_mode values.
5662 	 */
5663 	QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
5664 
5665 	/* 8-bit unsigned value. This attribute is used to dynamically
5666 	 * enable/suspend trigger based UL MU transmission.
5667 	 * This is supported in STA mode and the device sends Operating
5668 	 * Mode Indication to inform the change as described in
5669 	 * IEEE Std 802.11ax-2021, 26.9.
5670 	 *
5671 	 * This attribute can be configured when the STA is associated
5672 	 * to an AP and the configuration is maintained until the current
5673 	 * association terminates.
5674 	 *
5675 	 * By default all UL MU transmissions are enabled.
5676 	 *
5677 	 * Uses enum qca_ul_mu_config values.
5678 	 */
5679 	QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
5680 
5681 	/* 8-bit unsigned value. Optionally specified along with
5682 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
5683 	 * state. This configuration is applicable only for the current
5684 	 * connection. This configuration not allowed in disconnected state.
5685 	 * This configuration can be sent inside
5686 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
5687 	 * supported channel width update type per-MLO link.
5688 	 *
5689 	 * valid values:
5690 	 * 0 - The maximum allowed bandwidth change is applicable for both Tx
5691 	 *	and Rx paths. The driver shall conduct OMI operation as defined
5692 	 *	in 26.9 (Operating mode indication) or OMN operation as
5693 	 *	defined in 11.40 (Notification of operating mode
5694 	 *	changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
5695 	 *	change in the maximum allowed operating bandwidth.
5696 	 * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
5697 	 *	In this case the driver doesn't need to conduct OMI/OMN
5698 	 *	operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
5699 	 *	expected to be less than the current connection maximum
5700 	 *	negotiated bandwidth.
5701 	 *	For example: Negotiated maximum bandwidth is 160 MHz and the new
5702 	 *	maximum bandwidth configured is 80 MHz, now the driver limits
5703 	 *	the maximum bandwidth to 80 MHz only in the Tx path.
5704 	 */
5705 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
5706 
5707 	/* 8-bit unsigned value to set EPCS (Emergency Preparedness
5708 	 * Communications Service) feature capability
5709 	 * 1 - Enable, 0 - Disable.
5710 	 *
5711 	 * This configuration is used for testing purposes.
5712 	 */
5713 	QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
5714 
5715 	/* 8-bit unsigned value to enable/disable EPCS priority access
5716 	 * 1 - Enable, 0 - Disable.
5717 	 * The EPCS priority access shall be enabled only when EPCS feature
5718 	 * capability is also enabled (see
5719 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
5720 	 *
5721 	 * This configuration is used for testing purposes.
5722 	 */
5723 	QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
5724 
5725 	/* 8-bit unsigned value. Used only for representing MLO link ID of a
5726 	 * link inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
5727 	 */
5728 	QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
5729 
5730 	/* Array of nested links each identified by
5731 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
5732 	 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
5733 	 * added for the attributes in enum qca_wlan_vendor_attr_config to
5734 	 * support per-MLO link configuration through
5735 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
5736 	 *
5737 	 * Userspace can configure a single link or multiple links with this
5738 	 * attribute by nesting the corresponding configuration attributes and
5739 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
5740 	 *
5741 	 * Userspace can fetch the configuration attribute values for a single
5742 	 * link or multiple links with this attribute by nesting the
5743 	 * corresponding configuration attributes and
5744 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
5745 	 *
5746 	 * For STA interface, this attribute is applicable only in connected
5747 	 * state when the current connection is MLO capable. The valid values of
5748 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
5749 	 * connected AP MLD links.
5750 	 *
5751 	 * For AP interface, this configuration applicable only after adding
5752 	 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
5753 	 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
5754 	 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
5755 	 * the AP interface.
5756 	 */
5757 	QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
5758 
5759 	/* 16-bit unsigned value to configure power save inactivity timeout in
5760 	 * milliseconds.
5761 	 *
5762 	 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
5763 	 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
5764 	 *
5765 	 * This attribute shall be configured along with
5766 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
5767 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
5768 	 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
5769 	 */
5770 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
5771 
5772 	/* 16-bit unsigned value to configure speculative wake interval in
5773 	 * milliseconds.
5774 	 *
5775 	 * STA speculatively wakes up to look for buffered data by AP at
5776 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
5777 	 * entering into power save. If configured zero, STA wakes up at
5778 	 * upcoming DTIM beacon.
5779 	 *
5780 	 * This attribute shall be configured along with
5781 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
5782 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
5783 	 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
5784 	 */
5785 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
5786 
5787 	/*
5788 	 * 16-bit unsigned value to configure TX max A-MPDU count.
5789 	 *
5790 	 * For STA interface, this attribute is applicable only in connected
5791 	 * state, peer MAC address is not required to be provided.
5792 	 *
5793 	 * For AP interface, this attribute is applicable only in started
5794 	 * state and one of the associated peer STAs must be specified with
5795 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
5796 	 * association, the peer MAC address provided is the link address of
5797 	 * the non-AP MLD.
5798 	 *
5799 	 * This attribute runtime configures the TX maximum aggregation size.
5800 	 * The value must be in range of 1 to BA window size for the specific
5801 	 * peer.
5802 	 */
5803 	QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
5804 
5805 	/*
5806 	 * 8-bit unsigned value to configure TID-to-link mapping negotiation
5807 	 * type.
5808 	 * Uses enum qca_wlan_ttlm_negotiation_support values.
5809 	 *
5810 	 * This value applies to the complete AP/non-AP MLD interface, and the
5811 	 * MLD advertises it within the Basic Multi-Link element in the
5812 	 * association frames. If a new value is configured during an active
5813 	 * connection, it will take effect in the subsequent associations and
5814 	 * is not reset during disconnection.
5815 	 *
5816 	 * This attribute is used for testing purposes.
5817 	 */
5818 	QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
5819 
5820 	/* keep last */
5821 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5822 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5823 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5824 };
5825 
5826 /**
5827  * enum qca_ul_mu_config - UL MU configuration
5828  * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
5829  * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
5830  */
5831 enum qca_ul_mu_config {
5832 	QCA_UL_MU_SUSPEND = 0,
5833 	QCA_UL_MU_ENABLE = 1,
5834 };
5835 
5836 /**
5837  * enum qca_dbam_config - Specifies DBAM config mode
5838  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5839  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5840  * internal criteria are met.
5841  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5842  */
5843 enum qca_dbam_config {
5844 	QCA_DBAM_DISABLE = 0,
5845 	QCA_DBAM_ENABLE = 1,
5846 	QCA_DBAM_FORCE_ENABLE = 2,
5847 };
5848 
5849 /**
5850  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5851  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5852  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5853  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5854  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5855  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5856  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5857  */
5858 enum qca_wlan_vendor_attr_wifi_logger_start {
5859 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5860 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5861 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5862 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5863 	/* keep last */
5864 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5865 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5866 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5867 };
5868 
5869 /*
5870  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5871  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5872  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5873  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5874  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5875  */
5876 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5877 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5878 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5879 	/* keep last */
5880 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5881 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5882 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5883 };
5884 
5885 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5886 /**
5887  * enum wlan_offloaded_packets_control - control commands
5888  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5889  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5890  *
5891  */
5892 enum wlan_offloaded_packets_control {
5893 	WLAN_START_OFFLOADED_PACKETS = 1,
5894 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5895 };
5896 
5897 /**
5898  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5899  *
5900  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5901  *      the offloaded data.
5902  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5903  *      data.
5904  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5905  *      indication.
5906  */
5907 enum qca_wlan_vendor_attr_data_offload_ind {
5908 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5909 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5910 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5911 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5912 
5913 	/* keep last */
5914 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5915 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5916 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5917 };
5918 
5919 /**
5920  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5921  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5922  */
5923 enum qca_wlan_vendor_attr_offloaded_packets {
5924 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5925 	/* Takes valid value from the enum
5926 	 * qca_wlan_offloaded_packets_sending_control
5927 	 * Unsigned 32-bit value
5928 	 */
5929 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5930 	/* Unsigned 32-bit value */
5931 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5932 	/* array of u8 len: Max packet size */
5933 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5934 	/* 6-byte MAC address used to represent source MAC address */
5935 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5936 	/* 6-byte MAC address used to represent destination MAC address */
5937 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5938 	/* Unsigned 32-bit value, in milli seconds */
5939 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5940 	/* This optional unsigned 16-bit attribute is used for specifying
5941 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5942 	 */
5943 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5944 
5945 	/* keep last */
5946 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5947 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5948 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5949 };
5950 
5951 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5952 
5953 /**
5954  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5955  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5956  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5957  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5958  */
5959 enum qca_wlan_rssi_monitoring_control {
5960 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5961 	QCA_WLAN_RSSI_MONITORING_START,
5962 	QCA_WLAN_RSSI_MONITORING_STOP,
5963 };
5964 
5965 /**
5966  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5967  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5968  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5969  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5970  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5971  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5972  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5973  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5974  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5975  */
5976 enum qca_wlan_vendor_attr_rssi_monitoring {
5977 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5978 
5979 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5980 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5981 
5982 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5983 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5984 
5985 	/* attributes to be used/received in callback */
5986 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5987 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5988 
5989 	/* keep last */
5990 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5991 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5992 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5993 };
5994 
5995 /**
5996  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5997  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5998  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5999  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
6000  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
6001  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
6002  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
6003  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
6004  * address
6005  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
6006  * created
6007  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
6008  * NCS_SK_TYPE/PMK/SCID instead
6009  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
6010  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
6011  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
6012  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
6013  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
6014  * code: accept/reject
6015  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
6016  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
6017  * driver
6018  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
6019  * driver
6020  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
6021  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
6022  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
6023  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
6024  * PMKID
6025  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
6026  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
6027  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
6028  * update:
6029  *     BIT_0: NSS Update
6030  *     BIT_1: Channel list update
6031  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
6032  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
6033  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
6034  *     0:20 MHz,
6035  *     1:40 MHz,
6036  *     2:80 MHz,
6037  *     3:160 MHz
6038  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
6039  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
6040  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
6041  * transport port used by NDP.
6042  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
6043  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
6044  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
6045  * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
6046  * NDP remote peer supports NAN NDPE. 1:support 0:not support
6047  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
6048  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
6049  * A lower-case representation of the Service Name shall be used to
6050  * calculate the Service ID.
6051  * Array of u8: length is 6 bytes
6052  * This attribute is used and optional for ndp indication.
6053  * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
6054  * Suite
6055  * This attribute is used and optional in ndp request, ndp response, ndp
6056  * indication, and ndp confirm.
6057  * This attribute is used to indicate the Capabilities field of Cipher Suite
6058  * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
6059  * Specification v4.0, 9.5.21.2, Table 122.
6060  * Firmware can accept or ignore any of the capability bits.
6061  * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
6062  * required for NDP. NLA_FLAG attribute.
6063  * This attribute can be used in ndp request, ndp response, ndp indication, and
6064  * ndp confirm.
6065  * GTK protection required is indicated in the NDPE attribute of NAN action
6066  * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
6067  * v4.0, 9.5.16.2.
6068  * If the device and peer supports GTKSA and if GTK protection required bit is
6069  * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
6070  * Security Confirm and Data Path Security Install frames of NDP negotiation to
6071  * send and receive protected group addressed data frames from each other.
6072  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
6073  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
6074 */
6075 enum qca_wlan_vendor_attr_ndp_params {
6076 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
6077 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
6078 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
6079 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
6080 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
6081 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
6082 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
6083 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
6084 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
6085 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
6086 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
6087 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
6088 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
6089 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
6090 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
6091 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
6092 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
6093 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
6094 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
6095 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
6096 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
6097 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
6098 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
6099 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
6100 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
6101 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
6102 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
6103 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
6104 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
6105 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
6106 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
6107 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
6108 	QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
6109 	QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
6110 
6111 	/* keep last */
6112 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
6113 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
6114 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
6115 };
6116 
6117 /**
6118  * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
6119  * QCA_NL80211_VENDOR_SUBCMD_NDP.
6120  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
6121  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
6122  * data path interface.
6123  * This command was initially designed to both create and start a NAN
6124  * data path interface. However, changes to Linux 5.12 no longer allow
6125  * interface creation via vendor commands. When the driver advertises
6126  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
6127  * userspace must explicitly first create the interface using
6128  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
6129  * to start the interface.
6130  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
6131  * data path interface.
6132  * This command was initially designed to both stop and delete a NAN
6133  * data path interface. However, changes to Linux 5.12 no longer allow
6134  * interface deletion via vendor commands. When the driver advertises
6135  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
6136  * userspace must explicitly delete the interface using
6137  * NL80211_CMD_DEL_INTERFACE after calling this command.
6138  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
6139  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
6140  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
6141  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
6142  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
6143  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
6144  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
6145  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
6146  * being received
6147  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
6148  * update
6149  */
6150 enum qca_wlan_ndp_sub_cmd {
6151 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
6152 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
6153 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
6154 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
6155 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
6156 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
6157 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
6158 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
6159 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
6160 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
6161 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
6162 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
6163 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
6164 };
6165 
6166 /**
6167  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6168  * information. These attributes are sent as part of
6169  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6170  * attributes correspond to a single channel.
6171  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
6172  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
6173  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
6174  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
6175  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
6176  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
6177  * regulatory transmission power
6178  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
6179  * transmission power
6180  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
6181  * transmission power
6182  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
6183  * class id
6184  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
6185  * antenna gain in dbm
6186  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
6187  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
6188  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
6189  * center frequency in MHz.
6190  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
6191  * segment 0 in center freq in MHz. (this is the legacy alias)
6192  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
6193  * center frequency in MHz.
6194  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
6195  * segment 1 in center freq in MHz. (this is the legacy alias)
6196  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
6197  * flag indicating the AP power modes supported by the channel, as given by
6198  * enum qca_wlan_vendor_external_acs_chan_power_level.
6199  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
6200  * attributes for each power mode. It takes attr as defined in enum
6201  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6202  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
6203  * This indicates the overlapping 320 MHz center frequency in MHz, if the
6204  * given primary channel supports more than one 320 MHz channel bonding.
6205  *
6206  */
6207 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6208 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6209 
6210 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6211 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6212 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6213 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6214 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6215 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6216 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6217 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6218 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6219 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
6220 	/*
6221 	 * A bitmask (u32) with flags specified in
6222 	 * enum qca_wlan_vendor_channel_prop_flags_2.
6223 	 */
6224 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
6225 
6226 	/*
6227 	 * Segment 0 in MHz (u32).
6228 	 *
6229 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
6230 	 * frequency index for the 20/40/80 MHz operating channel.
6231 	 * For 160 MHz bandwidth, this indicates the channel center
6232 	 * frequency of the primary 80 MHz channel.
6233 	 * For 320 MHz bandwidth, indicates the channel center frequency
6234 	 * of the primary 160 MHz channel.
6235 	 *
6236 	 * To maintain backward compatibility,
6237 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6238 	 * is also maintained.
6239 	 */
6240 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6241 	/* Legacy alias for the Segment 0 attribute.
6242 	 *
6243 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6244 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6245 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6246 	 * along with
6247 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6248 	 *
6249 	 * If both the driver and user-space application supports the 6 GHz
6250 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6251 	 * is deprecated and
6252 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6253 	 * should be used.
6254 	 *
6255 	 * To maintain backward compatibility,
6256 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6257 	 * is still used if either of the driver or user space application
6258 	 * doesn't support the 6 GHz band.
6259 	 */
6260 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6261 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
6262 
6263 	/*
6264 	 * Segment 1 in MHz (u32).
6265 	 *
6266 	 * For 20/40/80 MHz bandwidth, this is set to 0.
6267 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
6268 	 * 160 MHz channel.
6269 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
6270 	 * 320 MHz channel.
6271 	 *
6272 	 * To maintain backward compatibility,
6273 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6274 	 * is also maintained.
6275 	 */
6276 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6277 	/* Legacy alias for the Segment 1 attribute.
6278 	 *
6279 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6280 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6281 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6282 	 * along with
6283 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6284 	 *
6285 	 * If both the driver and user-space application supports the 6 GHz
6286 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6287 	 * is deprecated and
6288 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6289 	 * should be considered.
6290 	 *
6291 	 * To maintain backward compatibility,
6292 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6293 	 * is still used if either of the driver or user space application
6294 	 * doesn't support the 6 GHz band.
6295 	 */
6296 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6297 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
6298 	/*
6299 	 * 16-bit attribute of bits indicating the AP power modes supported by
6300 	 * the channel (u16).
6301 	 * Note: Currently, only 3 bits are used in the attribute and each bit
6302 	 * corresponds to the power mode mentioned in enum
6303 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
6304 	 * set if the associated mode is supported.
6305 	 */
6306 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6307 									= 14,
6308 	/* Array of nested attributes for each power mode. It takes attr as
6309 	 * defined in enum
6310 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6311 	 */
6312 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
6313 	/*
6314 	 * This indicates the overlapping 320 MHz center frequency in MHz
6315 	 * (u32), if the given primary channel supports more than one
6316 	 * 320 MHz channel bonding.
6317 	 *
6318 	 * Example:
6319 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6320 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6321 	 * possible segment 2 frequencies for this (320 MHz center
6322 	 * frequencies):
6323 	 *
6324 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6325 	 *    from frequency 5945 MHz - 6265 MHz
6326 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6327 	 *    from frequency 6105 MHz - 6425 MHz
6328 	 *
6329 	 * In this case,
6330 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6331 	 * return 6185 MHz.
6332 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6333 	 * return 6105 MHz.
6334 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6335 	 * will return 6265 MHz.
6336 	 */
6337 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6338 									= 16,
6339 
6340 	/* keep last */
6341 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6342 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6343 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6344 };
6345 
6346 /**
6347  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
6348  * values that the vendor external ACS channel power attribute
6349  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6350  * take.
6351  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6352  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6353  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6354  */
6355 enum qca_wlan_vendor_external_acs_chan_power_level {
6356 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
6357 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
6358 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
6359 };
6360 
6361 /**
6362  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
6363  * attributes for power mode type and power values corresponding to that.
6364  * These attributes are sent as part of
6365  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
6366  */
6367 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
6368 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
6369 	/*
6370 	 * Power mode (u8) takes the values defined in enum
6371 	 * qca_wlan_vendor_external_acs_chan_power_mode
6372 	 */
6373 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
6374 									= 1,
6375 	/*
6376 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
6377 	 * present, it indicates a PSD value.
6378 	 */
6379 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
6380 	/*
6381 	 * Power value (u32) PSD/EIRP as indicated by
6382 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
6383 	 * for power mode corresponding to the
6384 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
6385 	 * Units for PSD - dBm/MHz
6386 	 * Units for EIRP - dBm
6387 	 */
6388 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
6389 									= 3,
6390 	/* keep last */
6391 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
6392 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
6393 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
6394 };
6395 
6396 /**
6397  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
6398  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
6399  * driver.
6400  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
6401  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
6402  * ACS need to be started
6403  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
6404  * driver supports spectral scanning or not
6405  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
6406  * offloaded to firmware.
6407  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
6408  * provides additional channel capability as part of scan operation.
6409  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
6410  * interface status is UP
6411  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
6412  * interface. It takes one of nl80211_iftype values.
6413  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
6414  * of chan width. ACS logic should try to get a channel with specified width
6415  * if not found then look for lower values.
6416  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
6417  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
6418  * a/b/g/n/ac.
6419  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
6420  * among which ACS should choose best frequency.
6421  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
6422  * driver which will have <channel(u8), weight(u8)> format as array of
6423  * nested values.
6424  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
6425  * for each channel. It takes attr as defined in
6426  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
6427  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
6428  * qca_wlan_vendor_attr_external_acs_policy.
6429  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
6430  * Operating Parameter (RROP) availability information (u16). It uses values
6431  * defined in enum qca_wlan_vendor_attr_rropavail_info.
6432  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
6433  * indicate if driver supports 6 GHz AFC trigger for External ACS.
6434  */
6435 enum qca_wlan_vendor_attr_external_acs_event {
6436 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6437 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6438 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6439 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6440 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6441 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6442 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6443 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6444 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6445 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6446 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6447 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6448 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
6449 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
6450 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
6451 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
6452 
6453 	/* keep last */
6454 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6455 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6456 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6457 };
6458 
6459 enum qca_iface_type {
6460 	QCA_IFACE_TYPE_STA,
6461 	QCA_IFACE_TYPE_AP,
6462 	QCA_IFACE_TYPE_P2P_CLIENT,
6463 	QCA_IFACE_TYPE_P2P_GO,
6464 	QCA_IFACE_TYPE_IBSS,
6465 	QCA_IFACE_TYPE_TDLS,
6466 };
6467 
6468 /**
6469  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
6470  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
6471  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
6472  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
6473  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
6474  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
6475  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
6476  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
6477  */
6478 enum qca_wlan_vendor_attr_pcl_config {
6479 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
6480 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6481 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
6482 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6483 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
6484 };
6485 
6486 enum qca_set_band {
6487 	QCA_SETBAND_AUTO = 0,
6488 	QCA_SETBAND_5G = BIT(0),
6489 	QCA_SETBAND_2G = BIT(1),
6490 	QCA_SETBAND_6G = BIT(2),
6491 };
6492 
6493 /**
6494  * enum set_reset_packet_filter - set packet filter control commands
6495  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
6496  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
6497  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
6498  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
6499  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
6500  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
6501  */
6502 enum set_reset_packet_filter {
6503 	QCA_WLAN_SET_PACKET_FILTER = 1,
6504 	QCA_WLAN_GET_PACKET_FILTER = 2,
6505 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
6506 	QCA_WLAN_READ_PACKET_FILTER = 4,
6507 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
6508 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
6509 };
6510 
6511 /**
6512  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
6513  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
6514  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
6515  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
6516  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
6517  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
6518  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
6519  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
6520  *	section in packet filter buffer
6521  */
6522 enum qca_wlan_vendor_attr_packet_filter {
6523 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
6524 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
6525 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
6526 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
6527 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
6528 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
6529 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
6530 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
6531 
6532 	/* keep last */
6533 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
6534 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
6535 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
6536 };
6537 
6538 /**
6539  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
6540  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
6541  */
6542 enum qca_wlan_vendor_attr_wake_stats {
6543 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
6544 	/* Unsigned 32-bit value indicating the total count of wake event */
6545 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
6546 	/* Array of individual wake count, each index representing wake reason
6547 	 */
6548 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
6549 	/* Unsigned 32-bit value representing wake count array */
6550 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
6551 	/* Unsigned 32-bit total wake count value of driver/fw */
6552 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
6553 	/* Array of wake stats of driver/fw */
6554 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
6555 	/* Unsigned 32-bit total wake count value of driver/fw */
6556 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
6557 	/* Unsigned 32-bit total wake count value of packets received */
6558 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
6559 	/* Unsigned 32-bit wake count value unicast packets received */
6560 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
6561 	/* Unsigned 32-bit wake count value multicast packets received */
6562 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
6563 	/* Unsigned 32-bit wake count value broadcast packets received */
6564 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
6565 	/* Unsigned 32-bit wake count value of ICMP packets */
6566 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
6567 	/* Unsigned 32-bit wake count value of ICMP6 packets */
6568 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
6569 	/* Unsigned 32-bit value ICMP6 router advertisement */
6570 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
6571 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
6572 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
6573 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
6574 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
6575 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
6576 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
6577 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
6578 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
6579 	/* Unsigned 32-bit wake count value of receive side multicast */
6580 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
6581 	/* Unsigned 32-bit wake count value of a given RSSI breach */
6582 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
6583 	/* Unsigned 32-bit wake count value of low RSSI */
6584 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
6585 	/* Unsigned 32-bit value GSCAN count */
6586 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
6587 	/* Unsigned 32-bit value PNO complete count */
6588 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
6589 	/* Unsigned 32-bit value PNO match count */
6590 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
6591 	/* keep last */
6592 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
6593 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
6594 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
6595 };
6596 
6597 /**
6598  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
6599  * configured by userspace to the driver/firmware. The values will be
6600  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
6601  * The driver/firmware takes necessary actions requested by userspace
6602  * such as throttling wifi tx etc. in order to mitigate high temperature.
6603  *
6604  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
6605  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
6606  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
6607  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
6608  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
6609  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
6610  */
6611 enum qca_wlan_vendor_thermal_level {
6612 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
6613 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
6614 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
6615 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
6616 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
6617 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
6618 };
6619 
6620 /**
6621  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
6622  * cmd value. Used for NL attributes for data used by
6623  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6624  */
6625 enum qca_wlan_vendor_attr_thermal_cmd {
6626 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
6627 	/* The value of command, driver will implement different operations
6628 	 * according to this value. It uses values defined in
6629 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
6630 	 * u32 attribute.
6631 	 */
6632 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
6633 	/* Userspace uses this attribute to configure thermal level to the
6634 	 * driver/firmware, or get thermal level from the driver/firmware.
6635 	 * Used in request or response, u32 attribute,
6636 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
6637 	 */
6638 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
6639 	/* Userspace uses this attribute to configure the time in which the
6640 	 * driver/firmware should complete applying settings it received from
6641 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
6642 	 * command type. Used in request, u32 attribute, value is in
6643 	 * milliseconds. A value of zero indicates to apply the settings
6644 	 * immediately. The driver/firmware can delay applying the configured
6645 	 * thermal settings within the time specified in this attribute if
6646 	 * there is any critical ongoing operation.
6647 	 */
6648 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
6649 	/* Nested attribute, driver/firmware uses this attribute to report
6650 	 * thermal stats of different thermal levels to userspace when requested
6651 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
6652 	 * type. This attribute contains nested array of records of thermal
6653 	 * statistics of multiple levels. The attributes used inside this nested
6654 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
6655 	 */
6656 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
6657 
6658 	/* keep last */
6659 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
6660 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
6661 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
6662 };
6663 
6664 /**
6665  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
6666  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
6667  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
6668  * thermal command types sent to driver.
6669  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
6670  * get thermal shutdown configuration parameters for display. Parameters
6671  * responded from driver are defined in
6672  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
6673  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
6674  * get temperature. Host should respond with a temperature data. It is defined
6675  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
6676  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
6677  * suspend action.
6678  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
6679  * resume action.
6680  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
6681  * the driver/firmware.
6682  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
6683  * thermal level from the driver/firmware. The driver should respond with a
6684  * thermal level defined in enum qca_wlan_vendor_thermal_level.
6685  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
6686  * current thermal stats from the driver/firmware. The driver should respond
6687  * with stats of all thermal levels encapsulated in attribute
6688  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
6689  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
6690  * the current thermal stats all thermal levels maintained in the
6691  * driver/firmware and start counting from zero again.
6692  */
6693 enum qca_wlan_vendor_attr_thermal_cmd_type {
6694 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
6695 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
6696 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
6697 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
6698 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
6699 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
6700 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
6701 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
6702 };
6703 
6704 /**
6705  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
6706  * to get chip temperature by user.
6707  * enum values are used for NL attributes for data used by
6708  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
6709  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6710  */
6711 enum qca_wlan_vendor_attr_thermal_get_temperature {
6712 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
6713 	/* Temperature value (degree Celsius) from driver.
6714 	 * u32 attribute.
6715 	 */
6716 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
6717 
6718 	/* keep last */
6719 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
6720 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
6721 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
6722 };
6723 
6724 /**
6725  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
6726  * report thermal events from driver to user space.
6727  * enum values are used for NL attributes for data used by
6728  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
6729  */
6730 enum qca_wlan_vendor_attr_thermal_event {
6731 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
6732 	/* Temperature value (degree Celsius) from driver.
6733 	 * u32 attribute.
6734 	 */
6735 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
6736 	/* Indication of resume completion from power save mode.
6737 	 * NLA_FLAG attribute.
6738 	 */
6739 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
6740 	/* Thermal level from the driver.
6741 	 * u32 attribute. Possible values are defined in
6742 	 * enum qca_wlan_vendor_thermal_level.
6743 	 */
6744 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
6745 
6746 	/* keep last */
6747 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
6748 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
6749 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
6750 };
6751 
6752 /**
6753  * enum qca_vendor_element_id - QCA Vendor Specific element types
6754  *
6755  * These values are used to identify QCA Vendor Specific elements. The
6756  * payload of the element starts with the three octet OUI (OUI_QCA) and
6757  * is followed by a single octet type which is defined by this enum.
6758  *
6759  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
6760  *      This element can be used to specify preference order for supported
6761  *      channels. The channels in this list are in preference order (the first
6762  *      one has the highest preference) and are described as a pair of
6763  *      (global) Operating Class and Channel Number (each one octet) fields.
6764  *
6765  *      This extends the standard P2P functionality by providing option to have
6766  *      more than one preferred operating channel. When this element is present,
6767  *      it replaces the preference indicated in the Operating Channel attribute.
6768  *      For supporting other implementations, the Operating Channel attribute is
6769  *      expected to be used with the highest preference channel. Similarly, all
6770  *      the channels included in this Preferred channel list element are
6771  *      expected to be included in the Channel List attribute.
6772  *
6773  *      This vendor element may be included in GO Negotiation Request, P2P
6774  *      Invitation Request, and Provision Discovery Request frames.
6775  *
6776  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
6777  *      This element can be used for pre-standard publication testing of HE
6778  *      before P802.11ax draft assigns the element ID. The payload of this
6779  *      vendor specific element is defined by the latest P802.11ax draft.
6780  *      Please note that the draft is still work in progress and this element
6781  *      payload is subject to change.
6782  *
6783  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
6784  *      This element can be used for pre-standard publication testing of HE
6785  *      before P802.11ax draft assigns the element ID. The payload of this
6786  *      vendor specific element is defined by the latest P802.11ax draft.
6787  *      Please note that the draft is still work in progress and this element
6788  *      payload is subject to change.
6789  *
6790  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
6791  *      element).
6792  *      This element can be used for pre-standard publication testing of HE
6793  *      before P802.11ax draft assigns the element ID extension. The payload of
6794  *      this vendor specific element is defined by the latest P802.11ax draft
6795  *      (not including the Element ID Extension field). Please note that the
6796  *      draft is still work in progress and this element payload is subject to
6797  *      change.
6798  *
6799  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
6800  *      This element can be used for pre-standard publication testing of HE
6801  *      before P802.11ax draft assigns the element ID extension. The payload of
6802  *      this vendor specific element is defined by the latest P802.11ax draft
6803  *      (not including the Element ID Extension field). Please note that the
6804  *      draft is still work in progress and this element payload is subject to
6805  *      change.
6806  *
6807  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
6808  *      This element can be used for pre-standard publication testing of HE
6809  *      before P802.11ax draft assigns the element ID extension. The payload of
6810  *      this vendor specific element is defined by the latest P802.11ax draft
6811  *      (not including the Element ID Extension field). Please note that the
6812  *      draft is still work in progress and this element payload is subject to
6813  *      change.
6814  */
6815 enum qca_vendor_element_id {
6816 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6817 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6818 	QCA_VENDOR_ELEM_HE_OPER = 2,
6819 	QCA_VENDOR_ELEM_RAPS = 3,
6820 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6821 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6822 };
6823 
6824 /**
6825  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6826  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6827  * Specify the TSF command. Possible values are defined in
6828  * &enum qca_tsf_cmd.
6829  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6830  * This attribute contains TSF timer value. This attribute is only available
6831  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6832  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6833  * This attribute contains SOC timer value at TSF capture. This attribute is
6834  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6835  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6836  * This attribute is used to provide TSF sync interval and only applicable when
6837  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6838  * driver will use the default value. Time unit is in milliseconds.
6839  */
6840 enum qca_vendor_attr_tsf_cmd {
6841 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6842 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6843 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6844 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6845 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6846 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6847 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6848 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6849 };
6850 
6851 /**
6852  * enum qca_tsf_cmd: TSF driver commands
6853  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6854  * @QCA_TSF_GET: Get TSF capture value
6855  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6856  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6857  * will automatically send TSF report to the host. To query
6858  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6859  * initiated first.
6860  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6861  * will not automatically send TSF report to the host. If
6862  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6863  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6864  * operation needs to be initiated.
6865  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6866  * fetches TSF and host time mapping from the firmware with interval configured
6867  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6868  * interval value is not provided the driver will use the default value. The
6869  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6870  * command.
6871  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6872  */
6873 enum qca_tsf_cmd {
6874 	QCA_TSF_CAPTURE,
6875 	QCA_TSF_GET,
6876 	QCA_TSF_SYNC_GET,
6877 	QCA_TSF_AUTO_REPORT_ENABLE,
6878 	QCA_TSF_AUTO_REPORT_DISABLE,
6879 	QCA_TSF_SYNC_START,
6880 	QCA_TSF_SYNC_STOP,
6881 };
6882 
6883 /**
6884  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6885  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6886  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6887  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6888  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6889  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6890  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6891  */
6892 enum qca_vendor_attr_get_preferred_freq_list {
6893 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6894 	/* A 32-unsigned value; the interface type/mode for which the preferred
6895 	 * frequency list is requested (see enum qca_iface_type for possible
6896 	 * values); used in both south- and north-bound.
6897 	 */
6898 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6899 	/* An array of 32-unsigned values; values are frequency (MHz); used
6900 	 * in north-bound only.
6901 	 */
6902 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6903 	/* An array of nested values as per enum
6904 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6905 	 *  Each element contains frequency (MHz), weight, and flag
6906 	 *  bit mask indicating how the frequency should be used in P2P
6907 	 *  negotiation.
6908 	 */
6909 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6910 	/* keep last */
6911 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6912 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6913 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6914 };
6915 
6916 /**
6917  * enum qca_vendor_attr_probable_oper_channel - channel hint
6918  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6919  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6920  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6921  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6922  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6923  */
6924 enum qca_vendor_attr_probable_oper_channel {
6925 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6926 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6927 	 * come on this channel (see enum qca_iface_type).
6928 	 */
6929 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6930 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6931 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6932 	/* keep last */
6933 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6934 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6935 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6936 };
6937 
6938 /**
6939  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6940  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6941  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6942  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6943  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6944  */
6945 enum qca_wlan_vendor_attr_gw_param_config {
6946 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6947 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6948 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6949 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6950 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6951 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6952 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6953 };
6954 
6955 /**
6956  * enum drv_dbs_capability - DBS capability
6957  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6958  * @DRV_DBS_CAPABILITY_1X1: 1x1
6959  * @DRV_DBS_CAPABILITY_2X2: 2x2
6960  */
6961 enum drv_dbs_capability {
6962 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6963 	DRV_DBS_CAPABILITY_1X1,
6964 	DRV_DBS_CAPABILITY_2X2,
6965 };
6966 
6967 /**
6968  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6969  *
6970  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6971  */
6972 enum qca_vendor_attr_txpower_decr_db {
6973 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6974 	/*
6975 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6976 	 * a virtual interface.
6977 	 */
6978 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6979 	/* keep last */
6980 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
6981 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
6982 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
6983 };
6984 
6985 /**
6986  * enum qca_vendor_attr_ota_test - Enable OTA test
6987  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
6988  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
6989  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
6990  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
6991  */
6992 enum qca_vendor_attr_ota_test {
6993 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
6994 	/* 8-bit unsigned value to indicate if OTA test is enabled */
6995 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
6996 	/* keep last */
6997 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
6998 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
6999 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
7000 };
7001 
7002 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
7003  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
7004  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
7005  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
7006  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
7007  */
7008 enum qca_vendor_attr_txpower_scale {
7009 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
7010 	/* 8-bit unsigned value to indicate the scaling of tx power */
7011 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
7012 	/* keep last */
7013 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
7014 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
7015 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
7016 };
7017 
7018 /**
7019  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
7020  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
7021  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
7022  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
7023  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
7024  */
7025 enum qca_vendor_attr_txpower_scale_decr_db {
7026 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
7027 	/* 8-bit unsigned value to indicate the scaling of tx power */
7028 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
7029 	/* keep last */
7030 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
7031 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
7032 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
7033 };
7034 
7035 /**
7036  * enum dfs_mode - state of DFS mode
7037  * @DFS_MODE_NONE: DFS mode attribute is none
7038  * @DFS_MODE_ENABLE:  DFS mode is enabled
7039  * @DFS_MODE_DISABLE: DFS mode is disabled
7040  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
7041  */
7042 enum dfs_mode {
7043 	DFS_MODE_NONE,
7044 	DFS_MODE_ENABLE,
7045 	DFS_MODE_DISABLE,
7046 	DFS_MODE_DEPRIORITIZE
7047 };
7048 
7049 /**
7050  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
7051  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
7052  *
7053  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
7054  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
7055  *
7056  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
7057  * channel number hint for ACS operation, if valid channel is specified then
7058  * ACS operation gives priority to this channel.
7059  * Note: If both the driver and user space application supports the 6 GHz band,
7060  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
7061  * should be used.
7062  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
7063  * is still used if either of the driver or user space application doesn't
7064  * support the 6 GHz band.
7065  *
7066  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
7067  * Channel center frequency (MHz) hint for ACS operation, if a valid center
7068  * frequency is specified, ACS operation gives priority to this channel.
7069  */
7070 enum qca_wlan_vendor_attr_acs_config {
7071 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
7072 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
7073 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
7074 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
7075 
7076 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
7077 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
7078 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
7079 };
7080 
7081 /**
7082  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
7083  */
7084 enum qca_wlan_vendor_attr_get_hw_capability {
7085 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
7086 	/*
7087 	 * Antenna isolation
7088 	 * An attribute used in the response.
7089 	 * The content of this attribute is encoded in a byte array. Each byte
7090 	 * value is an antenna isolation value. The array length is the number
7091 	 * of antennas.
7092 	 */
7093 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
7094 	/*
7095 	 * Request HW capability
7096 	 * An attribute used in the request.
7097 	 * The content of this attribute is a u32 array for one or more of
7098 	 * hardware capabilities (attribute IDs) that are being requested. Each
7099 	 * u32 value has a value from this
7100 	 * enum qca_wlan_vendor_attr_get_hw_capability
7101 	 * identifying which capabilities are requested.
7102 	 */
7103 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
7104 
7105 	/* keep last */
7106 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
7107 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
7108 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
7109 };
7110 
7111 /**
7112  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
7113  *                        config params for sta roam policy
7114  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
7115  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
7116  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
7117  * If sta should skip unsafe channels or not in scanning
7118  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
7119  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
7120  */
7121 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
7122 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
7123 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
7124 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
7125 
7126 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
7127 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
7128 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
7129 };
7130 
7131 /* Attributes for FTM commands and events */
7132 
7133 /**
7134  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
7135  *
7136  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
7137  *      enum qca_wlan_vendor_attr_loc_capa_flags.
7138  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
7139  *      of measurement sessions that can run concurrently.
7140  *      Default is one session (no session concurrency).
7141  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
7142  *      peers that are supported in running sessions. For example,
7143  *      if the value is 8 and maximum number of sessions is 2, you can
7144  *      have one session with 8 unique peers, or 2 sessions with 4 unique
7145  *      peers each, and so on.
7146  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
7147  *      of bursts per peer, as an exponent (2^value). Default is 0,
7148  *      meaning no multi-burst support.
7149  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
7150  *      of measurement exchanges allowed in a single burst.
7151  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
7152  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
7153  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
7154  */
7155 enum qca_wlan_vendor_attr_loc_capa {
7156 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
7157 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
7158 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
7159 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
7160 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
7161 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
7162 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
7163 	/* keep last */
7164 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
7165 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
7166 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
7167 };
7168 
7169 /**
7170  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
7171  *
7172  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
7173  *      can be configured as an FTM responder (for example, an AP that
7174  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
7175  *      will be supported if set.
7176  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
7177  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
7178  *      will be supported if set.
7179 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
7180  *      supports immediate (ASAP) response.
7181  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
7182  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
7183  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
7184  *      requesting AOA measurements as part of an FTM session.
7185  */
7186 enum qca_wlan_vendor_attr_loc_capa_flags {
7187 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
7188 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
7189 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
7190 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
7191 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
7192 };
7193 
7194 /**
7195  * enum qca_wlan_ani_setting - ANI setting type
7196  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
7197  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
7198  */
7199 enum qca_wlan_ani_setting {
7200 	QCA_WLAN_ANI_SETTING_AUTO = 0,
7201 	QCA_WLAN_ANI_SETTING_FIXED = 1,
7202 };
7203 
7204 /**
7205  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
7206  *
7207  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
7208  * Channel number on which Access Point should restart.
7209  * Note: If both the driver and user space application supports the 6 GHz band,
7210  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
7211  * should be used.
7212  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
7213  * is still used if either of the driver or user space application doesn't
7214  * support the 6 GHz band.
7215  *
7216  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
7217  * Nested attribute to hold list of center frequencies on which AP is
7218  * expected to operate. This is irrespective of ACS configuration.
7219  * This list is a priority based one and is looked for before the AP is
7220  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
7221  * co-exist in the system.
7222  *
7223  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
7224  * Channel center frequency (MHz) on which the access point should restart.
7225  */
7226 enum qca_wlan_vendor_attr_sap_config {
7227 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
7228 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
7229 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
7230 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
7231 
7232 	/* Keep last */
7233 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
7234 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
7235 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
7236 };
7237 
7238 /**
7239  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
7240  * a single peer in a measurement session.
7241  *
7242  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
7243  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
7244  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
7245  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
7246  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
7247  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
7248  *      list of supported attributes.
7249  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
7250  *      secure measurement.
7251  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
7252  *      measurement every <value> bursts. If 0 or not specified,
7253  *      AOA measurements will be disabled for this peer.
7254  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
7255  *      the measurement frames are exchanged. Optional; if not
7256  *      specified, try to locate the peer in the kernel scan
7257  *      results cache and use frequency from there.
7258  */
7259 enum qca_wlan_vendor_attr_ftm_peer_info {
7260 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
7261 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
7262 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
7263 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
7264 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
7265 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
7266 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
7267 	/* keep last */
7268 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
7269 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
7270 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
7271 };
7272 
7273 /**
7274  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
7275  *      per-peer
7276  *
7277  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
7278  *      immediate (ASAP) response from peer.
7279  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
7280  *      LCI report from peer. The LCI report includes the absolute
7281  *      location of the peer in "official" coordinates (similar to GPS).
7282  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
7283  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
7284  *      Location civic report from peer. The LCR includes the location
7285  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
7286  *      11.24.6.7 for more information.
7287  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
7288  *      request a secure measurement.
7289  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
7290  */
7291 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
7292 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
7293 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
7294 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
7295 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
7296 };
7297 
7298 /**
7299  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
7300  *
7301  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
7302  *      to perform in a single burst.
7303  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
7304  *      perform, specified as an exponent (2^value).
7305  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
7306  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
7307  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
7308  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
7309  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
7310  */
7311 enum qca_wlan_vendor_attr_ftm_meas_param {
7312 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
7313 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
7314 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
7315 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
7316 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
7317 	/* keep last */
7318 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
7319 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
7320 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
7321 };
7322 
7323 /**
7324  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
7325  *
7326  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
7327  *       peer.
7328  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
7329  *      request for this peer.
7330  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
7331  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
7332  *      to measurement results for this peer.
7333  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
7334  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
7335  *      request failed and peer requested not to send an additional request
7336  *      for this number of seconds.
7337  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
7338  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
7339  *      9.4.2.22.10.
7340  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
7341  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
7342  *      9.4.2.22.13.
7343  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
7344  *      overridden some measurement request parameters. See
7345  *      enum qca_wlan_vendor_attr_ftm_meas_param.
7346  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
7347  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
7348  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
7349  *      results. Each entry is a nested attribute defined
7350  *      by enum qca_wlan_vendor_attr_ftm_meas.
7351  */
7352 enum qca_wlan_vendor_attr_ftm_peer_result {
7353 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
7354 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
7355 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
7356 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
7357 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
7358 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
7359 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
7360 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
7361 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
7362 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
7363 	/* keep last */
7364 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
7365 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
7366 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
7367 };
7368 
7369 /**
7370  * enum qca_wlan_vendor_attr_ftm_peer_result_status
7371  *
7372  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
7373  *      will be provided. Peer may have overridden some measurement parameters,
7374  *      in which case overridden parameters will be report by
7375  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
7376  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
7377  *      of performing the measurement request. No more results will be sent
7378  *      for this peer in this session.
7379  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
7380  *      failed, and requested not to send an additional request for number
7381  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
7382  *      attribute.
7383  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
7384  *      failed. Request was not sent over the air.
7385  */
7386 enum qca_wlan_vendor_attr_ftm_peer_result_status {
7387 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
7388 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
7389 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
7390 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
7391 };
7392 
7393 /**
7394  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
7395  *  for measurement result, per-peer
7396  *
7397  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
7398  *      measurement completed for this peer. No more results will be reported
7399  *      for this peer in this session.
7400  */
7401 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
7402 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
7403 };
7404 
7405 /**
7406  * enum qca_vendor_attr_loc_session_status: Session completion status code
7407  *
7408  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
7409  *      successfully.
7410  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
7411  *      by request.
7412  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
7413  *      was invalid and was not started.
7414  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
7415  *      and did not complete normally (for example out of resources).
7416  */
7417 enum qca_vendor_attr_loc_session_status {
7418 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
7419 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
7420 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
7421 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
7422 };
7423 
7424 /**
7425  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
7426  *
7427  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
7428  *      recorded by responder, in picoseconds.
7429  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7430  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
7431  *      initiator, in picoseconds.
7432  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7433  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
7434  *      initiator, in picoseconds.
7435  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7436  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
7437  *      responder, in picoseconds.
7438  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7439  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
7440  *      during this measurement exchange. Optional and will be provided if
7441  *      the hardware can measure it.
7442  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
7443  *      responder. Not always provided.
7444  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7445  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
7446  *      responder. Not always provided.
7447  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7448  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
7449  *      initiator. Not always provided.
7450  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7451  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
7452  *      initiator. Not always provided.
7453  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7454  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
7455  */
7456 enum qca_wlan_vendor_attr_ftm_meas {
7457 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
7458 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
7459 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
7460 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
7461 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
7462 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
7463 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
7464 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
7465 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
7466 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
7467 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
7468 	/* keep last */
7469 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
7470 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
7471 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
7472 };
7473 
7474 /**
7475  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
7476  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
7477  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
7478  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
7479  *     of the social channels.
7480  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
7481  *     A 32-bit unsigned value; the P2P listen offload period (ms).
7482  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
7483  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
7484  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
7485  *     A 32-bit unsigned value; number of interval times the Firmware needs
7486  *     to run the offloaded P2P listen operation before it stops.
7487  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
7488  *     An array of unsigned 8-bit characters; vendor information elements.
7489  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
7490  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
7491  *     A 32-bit unsigned value; a control flag to indicate whether listen
7492  *     results need to be flushed to wpa_supplicant.
7493  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
7494  *     A 8-bit unsigned value; reason code for P2P listen offload stop
7495  *     event.
7496  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
7497  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
7498  */
7499 enum qca_wlan_vendor_attr_p2p_listen_offload {
7500 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
7501 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
7502 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
7503 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
7504 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
7505 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
7506 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
7507 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
7508 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
7509 	/* keep last */
7510 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
7511 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
7512 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
7513 };
7514 
7515 /**
7516  * enum qca_wlan_vendor_drv_info - WLAN driver info
7517  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
7518  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
7519  * between Firmware & Host.
7520  */
7521 enum qca_wlan_vendor_drv_info {
7522 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7523 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7524 
7525 	/* keep last */
7526 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7527 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7528 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7529 };
7530 
7531 /**
7532  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
7533  *
7534  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
7535  *      CIR (channel impulse response) path for each antenna.
7536  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
7537  *      of the strongest CIR path for each antenna.
7538  */
7539 enum qca_wlan_vendor_attr_aoa_type {
7540 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
7541 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
7542 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
7543 };
7544 
7545 /**
7546  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
7547  * validate encryption engine
7548  *
7549  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
7550  *    This will be included if the request is for decryption; if not included,
7551  *    the request is treated as a request for encryption by default.
7552  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
7553  *    indicating the key cipher suite. Takes same values as
7554  *    NL80211_ATTR_KEY_CIPHER.
7555  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
7556  *    Key Id to be used for encryption
7557  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
7558  *    Key (TK) to be used for encryption/decryption
7559  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
7560  *    Packet number to be specified for encryption/decryption
7561  *    6 bytes for TKIP/CCMP/GCMP.
7562  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
7563  *    representing the 802.11 packet (header + payload + FCS) that
7564  *    needs to be encrypted/decrypted.
7565  *    Encrypted/decrypted response from the driver will also be sent
7566  *    to userspace with the same attribute.
7567  */
7568 enum qca_wlan_vendor_attr_encryption_test {
7569 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
7570 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
7571 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
7572 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
7573 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
7574 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
7575 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
7576 
7577 	/* keep last */
7578 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
7579 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
7580 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
7581 };
7582 
7583 /**
7584  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
7585  * sector for DMG RF sector operations.
7586  *
7587  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
7588  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
7589  */
7590 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
7591 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
7592 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
7593 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
7594 };
7595 
7596 /**
7597  * enum qca_wlan_vendor_attr_fw_state - State of firmware
7598  *
7599  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
7600  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
7601  */
7602 enum qca_wlan_vendor_attr_fw_state {
7603 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
7604 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
7605 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
7606 };
7607 
7608 /**
7609  * BRP antenna limit mode
7610  *
7611  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
7612  *      antenna limit, BRP will be performed as usual.
7613  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
7614  *      antennas limit. the hardware may use less antennas than the
7615  *      maximum limit.
7616  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
7617  *      use exactly the specified number of antennas for BRP.
7618  */
7619 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
7620 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
7621 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
7622 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
7623 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
7624 };
7625 
7626 /**
7627  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
7628  * DMG RF sector configuration for a single RF module.
7629  * The values are defined in a compact way which closely matches
7630  * the way it is stored in HW registers.
7631  * The configuration provides values for 32 antennas and 8 distribution
7632  * amplifiers, and together describes the characteristics of the RF
7633  * sector - such as a beam in some direction with some gain.
7634  *
7635  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
7636  *      of RF module for this configuration.
7637  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
7638  *      amplifier gain index. Unsigned 32 bit number containing
7639  *      bits for all 32 antennas.
7640  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
7641  *      amplifier gain index. Unsigned 32 bit number containing
7642  *      bits for all 32 antennas.
7643  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
7644  *      amplifier gain index. Unsigned 32 bit number containing
7645  *      bits for all 32 antennas.
7646  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
7647  *      for first 16 antennas, 2 bits per antenna.
7648  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
7649  *      for last 16 antennas, 2 bits per antenna.
7650  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
7651  *      DTYPE values (3 bits) for each distribution amplifier, followed
7652  *      by X16 switch bits for each distribution amplifier. There are
7653  *      total of 8 distribution amplifiers.
7654  */
7655 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
7656 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
7657 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
7658 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
7659 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
7660 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
7661 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
7662 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
7663 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
7664 
7665 	/* keep last */
7666 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
7667 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
7668 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
7669 };
7670 
7671 /**
7672  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
7673  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
7674  *
7675  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
7676  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
7677  *	represents the different TDLS trigger modes.
7678  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
7679  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
7680  *	of packets shall meet the criteria for implicit TDLS setup.
7681  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
7682  *	packets within a duration.
7683  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
7684  *	a TDLS setup.
7685  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
7686  *	a TDLS Discovery to the Peer.
7687  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
7688  *	discovery attempts to know the TDLS capability of the peer. A peer is
7689  *	marked as TDLS not capable if there is no response for all the attempts.
7690  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
7691  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
7692  *	number of TX / RX frames meet the criteria for TDLS teardown.
7693  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
7694  *	(u32) of Tx/Rx packets within a duration
7695  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
7696  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
7697  *	corresponding to the RSSI of the peer below which a TDLS
7698  *	setup is triggered.
7699  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
7700  *	corresponding to the RSSI of the peer above which
7701  *	a TDLS teardown is triggered.
7702  */
7703 enum qca_wlan_vendor_attr_tdls_configuration {
7704 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
7705 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
7706 
7707 	/* Attributes configuring the TDLS Implicit Trigger */
7708 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
7709 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
7710 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
7711 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
7712 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
7713 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
7714 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
7715 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
7716 
7717 	/* keep last */
7718 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
7719 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
7720 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
7721 };
7722 
7723 /**
7724  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
7725  *	the driver.
7726  *
7727  * The following are the different values for
7728  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
7729  *
7730  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
7731  *	initiate/teardown the TDLS connection to a respective peer comes
7732  *	 from the user space. wpa_supplicant provides the commands
7733  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
7734  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
7735  *	setup/teardown to the eligible peer once the configured criteria
7736  *	(such as TX/RX threshold, RSSI) is met. The attributes
7737  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
7738  *	the different configuration criteria for the TDLS trigger from the
7739  *	host driver.
7740  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
7741  *	the TDLS setup / teardown through the implicit mode, only to the
7742  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
7743  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
7744  *	External mode works on top of the implicit mode, thus the host Driver
7745  *	is expected to be configured in TDLS Implicit mode too to operate in
7746  *	External mode. Configuring External mode alone without Implicit
7747  *	mode is invalid.
7748  *
7749  * All the above implementations work as expected only when the host driver
7750  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
7751  * representing that the TDLS message exchange is not internal to the host
7752  * driver, but depends on wpa_supplicant to do the message exchange.
7753  */
7754 enum qca_wlan_vendor_tdls_trigger_mode {
7755 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
7756 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
7757 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
7758 };
7759 
7760 /**
7761  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
7762  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
7763  *	that is hard-coded in the Board Data File (BDF).
7764  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
7765  *	that is hard-coded in the Board Data File (BDF).
7766  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
7767  *	that is hard-coded in the Board Data File (BDF).
7768  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
7769  *	that is hard-coded in the Board Data File (BDF).
7770  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
7771  *	that is hard-coded in the Board Data File (BDF).
7772  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
7773  *	source of SAR power limits, thereby disabling the SAR power
7774  *	limit feature.
7775  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
7776  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7777  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
7778  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7779  *
7780  * This enumerates the valid set of values that may be supplied for
7781  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
7782  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
7783  * the response to an instance of the
7784  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7785  */
7786 enum qca_vendor_attr_sar_limits_selections {
7787 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
7788 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
7789 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
7790 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
7791 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
7792 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
7793 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7794 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
7795 };
7796 
7797 /**
7798  * enum qca_vendor_attr_sar_limits_spec_modulations -
7799  *	SAR limits specification modulation
7800  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
7801  *	CCK modulation
7802  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
7803  *	OFDM modulation
7804  *
7805  * This enumerates the valid set of values that may be supplied for
7806  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
7807  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
7808  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
7809  * command or in the response to an instance of the
7810  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7811  */
7812 enum qca_vendor_attr_sar_limits_spec_modulations {
7813 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7814 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7815 };
7816 
7817 /**
7818  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7819  *
7820  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7821  *	select which SAR power limit table should be used.  Valid
7822  *	values are enumerated in enum
7823  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7824  *	power limit selection is unchanged if this attribute is not
7825  *	present.
7826  *
7827  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7828  *	which specifies the number of SAR power limit specifications
7829  *	which will follow.
7830  *
7831  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7832  *	limit specifications. The number of specifications is
7833  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7834  *	specification contains a set of
7835  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7836  *	specification is uniquely identified by the attributes
7837  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7838  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7839  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7840  *	contains as a payload the attribute
7841  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7842  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7843  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7844  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7845  *	needed based upon the value of
7846  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7847  *
7848  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7849  *	indicate for which band this specification applies. Valid
7850  *	values are enumerated in enum %nl80211_band (although not all
7851  *	bands may be supported by a given device). If the attribute is
7852  *	not supplied then the specification will be applied to all
7853  *	supported bands.
7854  *
7855  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7856  *	to indicate for which antenna chain this specification
7857  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7858  *	attribute is not supplied then the specification will be
7859  *	applied to all chains.
7860  *
7861  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7862  *	value to indicate for which modulation scheme this
7863  *	specification applies. Valid values are enumerated in enum
7864  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7865  *	is not supplied then the specification will be applied to all
7866  *	modulation schemes.
7867  *
7868  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7869  *	value to specify the actual power limit value in units of 0.5
7870  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7871  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7872  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7873  *
7874  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7875  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7876  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7877  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7878  *
7879  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7880  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7881  */
7882 enum qca_vendor_attr_sar_limits {
7883 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7884 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7885 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7886 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7887 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7888 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7889 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7890 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7891 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7892 
7893 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7894 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7895 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7896 };
7897 
7898 /**
7899  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7900  *    offload which is an extension for LL_STATS.
7901  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7902  *    If MAC counters do not exceed the threshold, FW will report monitored
7903  *    link layer counters periodically as this setting. The first report is
7904  *    always triggered by this timer.
7905  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7906  *    For each MAC layer counter, FW holds two copies. One is the current value.
7907  *    The other is the last report. Once a current counter's increment is larger
7908  *    than the threshold, FW will indicate that counter to host even if the
7909  *    monitoring timer does not expire.
7910  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7911  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7912  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7913  *    failure code.
7914  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7915  *    1: TX packet discarded
7916  *    2: No ACK
7917  *    3: Postpone
7918  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7919  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7920  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7921  *    Threshold for all monitored parameters. If per counter dedicated threshold
7922  *    is not enabled, this threshold will take effect.
7923  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7924  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7925  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7926  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7927  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7928  *    Bit0: TX counter unit in MSDU
7929  *    Bit1: TX counter unit in MPDU
7930  *    Bit2: TX counter unit in PPDU
7931  *    Bit3: TX counter unit in byte
7932  *    Bit4: Dropped MSDUs
7933  *    Bit5: Dropped Bytes
7934  *    Bit6: MPDU retry counter
7935  *    Bit7: MPDU failure counter
7936  *    Bit8: PPDU failure counter
7937  *    Bit9: MPDU aggregation counter
7938  *    Bit10: MCS counter for ACKed MPDUs
7939  *    Bit11: MCS counter for Failed MPDUs
7940  *    Bit12: TX Delay counter
7941  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7942  *    Bit0: MAC RX counter unit in MPDU
7943  *    Bit1: MAC RX counter unit in byte
7944  *    Bit2: PHY RX counter unit in PPDU
7945  *    Bit3: PHY RX counter unit in byte
7946  *    Bit4: Disorder counter
7947  *    Bit5: Retry counter
7948  *    Bit6: Duplication counter
7949  *    Bit7: Discard counter
7950  *    Bit8: MPDU aggregation size counter
7951  *    Bit9: MCS counter
7952  *    Bit10: Peer STA power state change (wake to sleep) counter
7953  *    Bit11: Peer STA power save counter, total time in PS mode
7954  *    Bit12: Probe request counter
7955  *    Bit13: Other management frames counter
7956  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7957  *    Bit0: Idle time
7958  *    Bit1: TX time
7959  *    Bit2: time RX in current bss
7960  *    Bit3: Out of current bss time
7961  *    Bit4: Wireless medium busy time
7962  *    Bit5: RX in bad condition time
7963  *    Bit6: TX in bad condition time
7964  *    Bit7: time wlan card not available
7965  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7966  *    Bit0: Per channel SNR counter
7967  *    Bit1: Per channel noise floor counter
7968  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7969  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7970  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7971  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7972  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7973  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7974  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7975  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7976  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7977  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7978  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7979  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
7980  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
7981  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
7982  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
7983  *    aggregation stats buffer length
7984  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
7985  *    buffer for ACKed MPDUs.
7986  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
7987  *    buffer for failed MPDUs.
7988  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
7989  *    length of delay stats array.
7990  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
7991  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
7992  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
7993  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
7994  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
7995  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
7996  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
7997  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
7998  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
7999  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
8000  *    flagged as retransmissions
8001  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
8002  *    flagged as duplicated
8003  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
8004  *    packets discarded
8005  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
8006  *    stats buffer.
8007  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
8008  *    stats buffer.
8009  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
8010  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
8011  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
8012  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
8013  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
8014  *    requests received
8015  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
8016  *    frames received
8017  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
8018  *    there is no TX, nor RX, nor interference.
8019  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
8020  *    transmitting packets.
8021  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
8022  *    for receiving.
8023  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
8024  *    interference detected.
8025  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
8026  *    receiving packets with errors.
8027  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
8028  *    TX no-ACK.
8029  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
8030  *    the chip is unable to work in normal conditions.
8031  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
8032  *    receiving packets in current BSS.
8033  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
8034  *    receiving packets not in current BSS.
8035  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
8036  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
8037  *    This is a container for per antenna signal stats.
8038  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
8039  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
8040  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
8041  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
8042  */
8043 enum qca_wlan_vendor_attr_ll_stats_ext {
8044 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
8045 
8046 	/* Attributes for configurations */
8047 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
8048 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
8049 
8050 	/* Peer STA power state change */
8051 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
8052 
8053 	/* TX failure event */
8054 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
8055 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
8056 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
8057 
8058 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
8059 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
8060 
8061 	/* MAC counters */
8062 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
8063 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
8064 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
8065 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
8066 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
8067 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
8068 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
8069 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
8070 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
8071 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
8072 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
8073 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
8074 
8075 	/* Sub-attributes for PEER_AC_TX */
8076 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
8077 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
8078 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
8079 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
8080 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
8081 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
8082 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
8083 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
8084 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
8085 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
8086 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
8087 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
8088 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
8089 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
8090 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
8091 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
8092 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
8093 
8094 	/* Sub-attributes for PEER_AC_RX */
8095 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
8096 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
8097 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
8098 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
8099 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
8100 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
8101 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
8102 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
8103 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
8104 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
8105 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
8106 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
8107 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
8108 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
8109 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
8110 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
8111 
8112 	/* Sub-attributes for CCA_BSS */
8113 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
8114 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
8115 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
8116 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
8117 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
8118 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
8119 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
8120 
8121 	/* sub-attribute for BSS_RX_TIME */
8122 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
8123 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
8124 
8125 	/* Sub-attributes for PEER_SIGNAL */
8126 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
8127 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
8128 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
8129 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
8130 
8131 	/* Sub-attributes for IFACE_BSS */
8132 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
8133 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
8134 
8135 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
8136 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
8137 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
8138 };
8139 
8140 /**
8141  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
8142  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
8143  * in priority order as decided after ACS operation in userspace.
8144  *
8145  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
8146  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
8147  *
8148  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
8149  * Array of nested values for each channel with following attributes:
8150  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
8151  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
8152  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
8153  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
8154  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
8155  * Note: If both the driver and user-space application supports the 6 GHz band,
8156  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
8157  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
8158  * To maintain backward compatibility,
8159  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
8160  * is still used if either of the driver or user space application doesn't
8161  * support the 6 GHz band.
8162  *
8163  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
8164  * Primary channel number
8165  * Note: If both the driver and user-space application supports the 6 GHz band,
8166  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
8167  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
8168  * To maintain backward compatibility,
8169  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
8170  * is still used if either of the driver or user space application doesn't
8171  * support the 6 GHz band.
8172  *
8173  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
8174  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
8175  * Note: If both the driver and user-space application supports the 6 GHz band,
8176  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
8177  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
8178  * To maintain backward compatibility,
8179  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
8180  * is still used if either of the driver or user space application
8181  * doesn't support the 6 GHz band.
8182  *
8183  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
8184  * VHT seg0 channel number
8185  * Note: If both the driver and user-space application supports the 6 GHz band,
8186  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
8187  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
8188  * To maintain backward compatibility,
8189  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
8190  * is still used if either of the driver or user space application
8191  * doesn't support the 6 GHz band.
8192  *
8193  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
8194  * VHT seg1 channel number
8195  * Note: If both the driver and user-space application supports the 6 GHz band,
8196  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
8197  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
8198  * To maintain backward compatibility,
8199  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
8200  * is still used if either of the driver or user space application
8201  * doesn't support the 6 GHz band.
8202  *
8203  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
8204  * Takes one of enum nl80211_chan_width values.
8205  *
8206  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
8207  * Array of nested values for each channel with following attributes:
8208  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
8209  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
8210  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
8211  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
8212  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
8213  * Note: If user-space application has no support of the 6 GHz band, this
8214  * attribute is optional.
8215  *
8216  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
8217  * Primary channel frequency in MHz
8218  * Note: If user-space application has no support of the 6 GHz band, this
8219  * attribute is optional.
8220  *
8221  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
8222  * Secondary channel frequency in MHz used for HT 40 MHz channels.
8223  * Note: If user-space application has no support of the 6 GHz band, this
8224  * attribute is optional.
8225  *
8226  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
8227  * VHT seg0 channel frequency in MHz
8228  * Note: If user-space application has no support of the 6GHz band, this
8229  * attribute is optional.
8230  *
8231  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
8232  * VHT seg1 channel frequency in MHz
8233  * Note: If user-space application has no support of the 6 GHz band, this
8234  * attribute is optional.
8235  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
8236  * Puncture Bitmap for selected primary channel. Optional if no support
8237  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
8238  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
8239  * element.
8240  */
8241 enum qca_wlan_vendor_attr_external_acs_channels {
8242 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
8243 
8244 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
8245 	 */
8246 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
8247 
8248 	/* Array of nested values for each channel with following attributes:
8249 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
8250 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
8251 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
8252 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
8253 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
8254 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
8255 	 */
8256 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
8257 	/* This (u8) will hold values of one of enum nl80211_bands */
8258 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
8259 	/* Primary channel (u8) */
8260 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
8261 	/* Secondary channel (u8) used for HT 40 MHz channels */
8262 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
8263 	/* VHT seg0 channel (u8) */
8264 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
8265 	/* VHT seg1 channel (u8) */
8266 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
8267 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
8268 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
8269 
8270 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
8271 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
8272 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
8273 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
8274 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
8275 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
8276 
8277 	/* keep last */
8278 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
8279 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
8280 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
8281 };
8282 
8283 /**
8284  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
8285  * the ACS has to be triggered. These values are used by
8286  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
8287  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
8288  */
8289 enum qca_wlan_vendor_acs_select_reason {
8290 	/* Represents the reason that the ACS triggered during the AP start */
8291 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
8292 	/* Represents the reason that DFS found with the current channel */
8293 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
8294 	/* Represents the reason that LTE co-exist in the current band. */
8295 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
8296 	/* Represents the reason that generic, uncategorized interference has
8297 	 * been found in the current channel.
8298 	 */
8299 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
8300 	/* Represents the reason that excessive 802.11 interference has been
8301 	 * found in the current channel.
8302 	 */
8303 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
8304 	/* Represents the reason that generic Continuous Wave (CW) interference
8305 	 * has been found in the current channel.
8306 	 */
8307 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
8308 	/* Represents the reason that Microwave Oven (MWO) interference has been
8309 	 * found in the current channel.
8310 	 */
8311 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
8312 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
8313 	 * (FHSS) interference has been found in the current channel. This may
8314 	 * include 802.11 waveforms.
8315 	 */
8316 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
8317 	/* Represents the reason that non-802.11 generic Frequency-Hopping
8318 	 * Spread Spectrum (FHSS) interference has been found in the current
8319 	 * channel.
8320 	 */
8321 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
8322 	/* Represents the reason that generic Wideband (WB) interference has
8323 	 * been found in the current channel. This may include 802.11 waveforms.
8324 	 */
8325 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
8326 	/* Represents the reason that non-802.11 generic Wideband (WB)
8327 	 * interference has been found in the current channel.
8328 	 */
8329 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
8330 	/* Represents the reason that Jammer interference has been found in the
8331 	 * current channel.
8332 	 */
8333 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
8334 	/* Represents the reason that ACS triggered by AFC */
8335 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
8336 };
8337 
8338 /**
8339  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
8340  *
8341  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
8342  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
8343  * to get the available value that this item can use.
8344  *
8345  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
8346  * value to specify the gpio number.
8347  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8348  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
8349  *
8350  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
8351  * value to specify the gpio output level, please refer to enum qca_gpio_value
8352  * to get the available value that this item can use.
8353  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8354  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
8355  *
8356  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
8357  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
8358  * to get the available value that this item can use.
8359  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8360  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
8361  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
8362  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
8363  * attribute is present.
8364  *
8365  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
8366  * value to specify the gpio interrupt mode, please refer to enum
8367  * qca_gpio_interrupt_mode to get the available value that this item can use.
8368  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8369  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
8370  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
8371  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
8372  * attribute is present.
8373  *
8374  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
8375  * value to specify the gpio direction, please refer to enum qca_gpio_direction
8376  * to get the available value that this item can use.
8377  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8378  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
8379  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
8380  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
8381  * attribute is present.
8382  *
8383  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
8384  * Value to specify the mux config. Meaning of a given value is dependent
8385  * on the target chipset and gpio pin. Must be of the range 0-15.
8386  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8387  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
8388  *
8389  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
8390  * Value to specify the drive, Refer to enum qca_gpio_drive.
8391  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8392  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
8393  *
8394  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
8395  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8396  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
8397  * other parameters for the given GPIO will be obtained from internal
8398  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
8399  * specified to indicate the GPIO pin being configured.
8400  */
8401 enum qca_wlan_gpio_attr {
8402 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
8403 	/* Unsigned 32-bit attribute for GPIO command */
8404 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
8405 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
8406 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
8407 	/* Unsigned 32-bit attribute for GPIO value to configure */
8408 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
8409 	/* Unsigned 32-bit attribute for GPIO pull type */
8410 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
8411 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
8412 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
8413 	/* Unsigned 32-bit attribute for GPIO direction to configure */
8414 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
8415 	/* Unsigned 32-bit attribute for GPIO mux config */
8416 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
8417 	/* Unsigned 32-bit attribute for GPIO drive */
8418 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
8419 	/* Flag attribute for using internal gpio configuration */
8420 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
8421 
8422 	/* keep last */
8423 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
8424 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
8425 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
8426 };
8427 
8428 /**
8429  * enum gpio_cmd_type - GPIO configuration command type
8430  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
8431  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
8432  */
8433 enum qca_gpio_cmd_type {
8434 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
8435 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
8436 };
8437 
8438 /**
8439  * enum qca_gpio_pull_type - GPIO pull type
8440  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
8441  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
8442  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
8443  */
8444 enum qca_gpio_pull_type {
8445 	QCA_WLAN_GPIO_PULL_NONE = 0,
8446 	QCA_WLAN_GPIO_PULL_UP = 1,
8447 	QCA_WLAN_GPIO_PULL_DOWN = 2,
8448 	QCA_WLAN_GPIO_PULL_MAX,
8449 };
8450 
8451 /**
8452  * enum qca_gpio_direction - GPIO direction
8453  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
8454  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
8455  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
8456  */
8457 enum qca_gpio_direction {
8458 	QCA_WLAN_GPIO_INPUT = 0,
8459 	QCA_WLAN_GPIO_OUTPUT = 1,
8460 	QCA_WLAN_GPIO_DIR_MAX,
8461 };
8462 
8463 /**
8464  * enum qca_gpio_value - GPIO Value
8465  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
8466  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
8467  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
8468  */
8469 enum qca_gpio_value {
8470 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
8471 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
8472 	QCA_WLAN_GPIO_LEVEL_MAX,
8473 };
8474 
8475 /**
8476  * enum gpio_interrupt_mode - GPIO interrupt mode
8477  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
8478  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
8479  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
8480  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
8481  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
8482  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
8483  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
8484  */
8485 enum qca_gpio_interrupt_mode {
8486 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
8487 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
8488 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
8489 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
8490 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
8491 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
8492 	QCA_WLAN_GPIO_INTMODE_MAX,
8493 };
8494 
8495 /**
8496  * enum gpio_drive - GPIO drive
8497  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
8498  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
8499  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
8500  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
8501  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
8502  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
8503  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
8504  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
8505  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
8506  */
8507 enum qca_gpio_drive {
8508 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
8509 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
8510 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
8511 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
8512 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
8513 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
8514 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
8515 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
8516 	QCA_WLAN_GPIO_DRIVE_MAX,
8517 };
8518 
8519 /**
8520  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
8521  * MSDUQ depth threshold per peer per tid in the target
8522  *
8523  * Associated Vendor Command:
8524  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
8525  */
8526 enum qca_wlan_set_qdepth_thresh_attr {
8527 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
8528 	/* 6-byte MAC address */
8529 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
8530 	/* Unsigned 32-bit attribute for holding the TID */
8531 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
8532 	/* Unsigned 32-bit attribute for holding the update mask
8533 	 * bit 0 - Update high priority msdu qdepth threshold
8534 	 * bit 1 - Update low priority msdu qdepth threshold
8535 	 * bit 2 - Update UDP msdu qdepth threshold
8536 	 * bit 3 - Update Non UDP msdu qdepth threshold
8537 	 * rest of bits are reserved
8538 	 */
8539 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
8540 	/* Unsigned 32-bit attribute for holding the threshold value */
8541 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
8542 
8543 	/* keep last */
8544 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
8545 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
8546 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
8547 };
8548 
8549 /**
8550  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
8551  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
8552  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
8553  * external ACS policies to select the channels w.r.t. the PCL weights.
8554  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
8555  * their PCL weights.)
8556  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
8557  * select a channel with non-zero PCL weight.
8558  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
8559  * channel with non-zero PCL weight.
8560  *
8561  */
8562 enum qca_wlan_vendor_attr_external_acs_policy {
8563 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
8564 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
8565 };
8566 
8567 /**
8568  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
8569  */
8570 enum qca_wlan_vendor_attr_spectral_scan {
8571 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
8572 	/*
8573 	 * Number of times the chip enters spectral scan mode before
8574 	 * deactivating spectral scans. When set to 0, chip will enter spectral
8575 	 * scan mode continuously. u32 attribute.
8576 	 */
8577 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
8578 	/*
8579 	 * Spectral scan period. Period increment resolution is 256*Tclk,
8580 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
8581 	 */
8582 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
8583 	/* Spectral scan priority. u32 attribute. */
8584 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
8585 	/* Number of FFT data points to compute. u32 attribute. */
8586 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
8587 	/*
8588 	 * Enable targeted gain change before starting the spectral scan FFT.
8589 	 * u32 attribute.
8590 	 */
8591 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
8592 	/* Restart a queued spectral scan. u32 attribute. */
8593 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
8594 	/*
8595 	 * Noise floor reference number for the calculation of bin power.
8596 	 * u32 attribute.
8597 	 */
8598 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
8599 	/*
8600 	 * Disallow spectral scan triggers after TX/RX packets by setting
8601 	 * this delay value to roughly SIFS time period or greater.
8602 	 * u32 attribute.
8603 	 */
8604 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
8605 	/*
8606 	 * Number of strong bins (inclusive) per sub-channel, below
8607 	 * which a signal is declared a narrow band tone. u32 attribute.
8608 	 */
8609 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
8610 	/*
8611 	 * Specify the threshold over which a bin is declared strong (for
8612 	 * scan bandwidth analysis). u32 attribute.
8613 	 */
8614 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
8615 	/* Spectral scan report mode. u32 attribute. */
8616 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
8617 	/*
8618 	 * RSSI report mode, if the ADC RSSI is below
8619 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
8620 	 * then FFTs will not trigger, but timestamps and summaries get
8621 	 * reported. u32 attribute.
8622 	 */
8623 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
8624 	/*
8625 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
8626 	 * to ensure spectral scan reporting with normal error code.
8627 	 * u32 attribute.
8628 	 */
8629 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
8630 	/*
8631 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
8632 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
8633 	 * u32 attribute.
8634 	 */
8635 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
8636 	/*
8637 	 * Format of FFT report to software for spectral scan triggered FFTs.
8638 	 * 0: No FFT report (only spectral scan summary report)
8639 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
8640 	 * report
8641 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
8642 	 * bins (in-band) per FFT + spectral scan summary report
8643 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
8644 	 * bins (all) per FFT + spectral scan summary report
8645 	 * u32 attribute.
8646 	 */
8647 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
8648 	/*
8649 	 * Number of LSBs to shift out in order to scale the FFT bins.
8650 	 * u32 attribute.
8651 	 */
8652 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
8653 	/*
8654 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
8655 	 * in dBm power. u32 attribute.
8656 	 */
8657 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
8658 	/*
8659 	 * Per chain enable mask to select input ADC for search FFT.
8660 	 * u32 attribute.
8661 	 */
8662 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
8663 	/*
8664 	 * An unsigned 64-bit integer provided by host driver to identify the
8665 	 * spectral scan request. This attribute is included in the scan
8666 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
8667 	 * and used as an attribute in
8668 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
8669 	 * specific scan to be stopped.
8670 	 */
8671 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
8672 	/* Skip interval for FFT reports. u32 attribute */
8673 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
8674 	/* Set to report only one set of FFT results.
8675 	 * u32 attribute.
8676 	 */
8677 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
8678 	/* Debug level for spectral module in driver.
8679 	 * 0 : Verbosity level 0
8680 	 * 1 : Verbosity level 1
8681 	 * 2 : Verbosity level 2
8682 	 * 3 : Matched filterID display
8683 	 * 4 : One time dump of FFT report
8684 	 * u32 attribute.
8685 	 */
8686 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8687 	/* Type of spectral scan request. u32 attribute.
8688 	 * It uses values defined in enum
8689 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
8690 	 */
8691 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
8692 	/* This specifies the frequency span over which spectral
8693 	 * scan would be carried out. Its value depends on the
8694 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8695 	 * the relation is as follows.
8696 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8697 	 *    Not applicable. Spectral scan would happen in the
8698 	 *    operating span.
8699 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8700 	 *    Center frequency (in MHz) of the span of interest or
8701 	 *    for convenience, center frequency (in MHz) of any channel
8702 	 *    in the span of interest. For 80+80 MHz agile spectral scan
8703 	 *    request it represents center frequency (in MHz) of the primary
8704 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
8705 	 *    channel in the primary 80 MHz span. If agile spectral scan is
8706 	 *    initiated without setting a valid frequency it returns the
8707 	 *    error code
8708 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8709 	 * u32 attribute.
8710 	 */
8711 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8712 	/* Spectral scan mode. u32 attribute.
8713 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8714 	 * If this attribute is not present, it is assumed to be
8715 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8716 	 */
8717 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8718 	/* Spectral scan error code. u32 attribute.
8719 	 * It uses values defined in enum
8720 	 * qca_wlan_vendor_spectral_scan_error_code.
8721 	 * This attribute is included only in failure scenarios.
8722 	 */
8723 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8724 	/* 8-bit unsigned value to enable/disable debug of the
8725 	 * Spectral DMA ring.
8726 	 * 1-enable, 0-disable
8727 	 */
8728 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8729 	/* 8-bit unsigned value to enable/disable debug of the
8730 	 * Spectral DMA buffers.
8731 	 * 1-enable, 0-disable
8732 	 */
8733 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
8734 	/* This specifies the frequency span over which spectral scan would be
8735 	 * carried out. Its value depends on the value of
8736 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8737 	 * follows.
8738 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8739 	 *    Not applicable. Spectral scan would happen in the operating span.
8740 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8741 	 *    This attribute is applicable only for agile spectral scan
8742 	 *    requests in 80+80 MHz mode. It represents center frequency (in
8743 	 *    MHz) of the secondary 80 MHz span or for convenience, center
8744 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
8745 	 * u32 attribute.
8746 	 */
8747 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
8748 	/* This attribute specifies the bandwidth to be used for Spectral scan
8749 	 * operation. This is an u8 attribute and uses the values in enum
8750 	 * nl80211_chan_width.  This is an optional attribute.
8751 	 * If this attribute is not populated, the driver should configure the
8752 	 * Spectral scan bandwidth to the maximum value supported by the target
8753 	 * for the current operating bandwidth.
8754 	 */
8755 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
8756 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
8757 	 * recapture. Recapture can only be enabled for Scan period greater
8758 	 * than 52us.
8759 	 * If this attribute is enabled, re-triggers will be enabled in uCode
8760 	 * when AGC gain changes.
8761 	 */
8762 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
8763 
8764 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8765 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8766 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8767 };
8768 
8769 /**
8770  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8771  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8772  */
8773 enum qca_wlan_vendor_attr_spectral_diag_stats {
8774 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8775 	/* Number of spectral TLV signature mismatches.
8776 	 * u64 attribute.
8777 	 */
8778 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8779 	/* Number of spectral phyerror events with insufficient length when
8780 	 * parsing for secondary 80 search FFT report. u64 attribute.
8781 	 */
8782 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8783 	/* Number of spectral phyerror events without secondary 80
8784 	 * search FFT report. u64 attribute.
8785 	 */
8786 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8787 	/* Number of spectral phyerror events with vht operation segment 1 id
8788 	 * mismatches in search fft report. u64 attribute.
8789 	 */
8790 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8791 	/* Number of spectral phyerror events with vht operation segment 2 id
8792 	 * mismatches in search fft report. u64 attribute.
8793 	 */
8794 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
8795 
8796 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8797 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8798 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8799 };
8800 
8801 /**
8802  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8803  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8804  */
8805 enum qca_wlan_vendor_attr_spectral_cap {
8806 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8807 	/* Flag attribute to indicate phydiag capability */
8808 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8809 	/* Flag attribute to indicate radar detection capability */
8810 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8811 	/* Flag attribute to indicate spectral capability */
8812 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8813 	/* Flag attribute to indicate advanced spectral capability */
8814 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8815 	/* Spectral hardware generation. u32 attribute.
8816 	 * It uses values defined in enum
8817 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8818 	 */
8819 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8820 	/* Spectral bin scaling formula ID. u16 attribute.
8821 	 * It uses values defined in enum
8822 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8823 	 */
8824 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8825 	/* Spectral bin scaling param - low level offset.
8826 	 * s16 attribute.
8827 	 */
8828 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8829 	/* Spectral bin scaling param - high level offset.
8830 	 * s16 attribute.
8831 	 */
8832 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8833 	/* Spectral bin scaling param - RSSI threshold.
8834 	 * s16 attribute.
8835 	 */
8836 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8837 	/* Spectral bin scaling param - default AGC max gain.
8838 	 * u8 attribute.
8839 	 */
8840 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8841 	/* Flag attribute to indicate agile spectral scan capability
8842 	 * for 20/40/80 MHz modes.
8843 	 */
8844 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8845 	/* Flag attribute to indicate agile spectral scan capability
8846 	 * for 160 MHz mode.
8847 	 */
8848 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8849 	/* Flag attribute to indicate agile spectral scan capability
8850 	 * for 80+80 MHz mode.
8851 	 */
8852 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8853 	/* Number of spectral detectors used for scan in 20 MHz.
8854 	 * u32 attribute.
8855 	 */
8856 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8857 	/* Number of spectral detectors used for scan in 40 MHz.
8858 	 * u32 attribute.
8859 	 */
8860 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8861 	/* Number of spectral detectors used for scan in 80 MHz.
8862 	 * u32 attribute.
8863 	 */
8864 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8865 	/* Number of spectral detectors used for scan in 160 MHz.
8866 	 * u32 attribute.
8867 	 */
8868 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8869 	/* Number of spectral detectors used for scan in 80+80 MHz.
8870 	 * u32 attribute.
8871 	 */
8872 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8873 	/* Flag attribute to indicate agile spectral scan capability
8874 	 * for 320 MHz mode.
8875 	 */
8876 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8877 	/* Number of spectral detectors used for scan in 320 MHz.
8878 	 * u32 attribute.
8879 	 */
8880 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8881 
8882 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8883 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8884 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8885 };
8886 
8887 /**
8888  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8889  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8890  */
8891 enum qca_wlan_vendor_attr_spectral_scan_status {
8892 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8893 	/* Flag attribute to indicate whether spectral scan is enabled */
8894 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8895 	/* Flag attribute to indicate whether spectral scan is in progress*/
8896 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8897 	/* Spectral scan mode. u32 attribute.
8898 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8899 	 * If this attribute is not present, normal mode
8900 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8901 	 * requested.
8902 	 */
8903 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8904 
8905 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8906 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8907 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8908 };
8909 
8910 /**
8911  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8912  * wlan latency module.
8913  *
8914  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8915  * power saving which would causing data exchange out of service, this
8916  * would be a big impact on latency. For latency sensitive applications over
8917  * Wi-Fi are intolerant to such operations and thus would configure them
8918  * to meet their respective needs. It is well understood by such applications
8919  * that altering the default behavior would degrade the Wi-Fi functionality
8920  * w.r.t the above pointed WLAN operations.
8921  *
8922  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8923  *      Default WLAN operation level which throughput orientated.
8924  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8925  *      Use XR level to benefit XR (extended reality) application to achieve
8926  *      latency and power by via constraint scan/roaming/adaptive PS.
8927  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8928  *      Use low latency level to benefit application like concurrent
8929  *      downloading or video streaming via constraint scan/adaptive PS.
8930  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8931  *      Use ultra low latency level to benefit for gaming/voice
8932  *      application via constraint scan/roaming/adaptive PS.
8933  */
8934 enum qca_wlan_vendor_attr_config_latency_level {
8935 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8936 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8937 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8938 	/* legacy name */
8939 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8940 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8941 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8942 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8943 
8944 	/* keep last */
8945 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8946 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8947 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8948 };
8949 
8950 /**
8951  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8952  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8953  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8954  * spectral scan request types.
8955  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8956  * set the spectral parameters and start scan.
8957  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8958  * only set the spectral parameters.
8959  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8960  * only start the spectral scan.
8961  */
8962 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8963 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8964 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8965 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8966 };
8967 
8968 /**
8969  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8970  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8971  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8972  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8973  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8974  * spectral scan modes.
8975  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8976  * spectral scan in the current operating span.
8977  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8978  * spectral scan in the configured agile span.
8979  */
8980 enum qca_wlan_vendor_spectral_scan_mode {
8981 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8982 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8983 };
8984 
8985 /**
8986  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8987  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8988  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8989  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8990  * of a parameter is not supported.
8991  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8992  * mode is not supported.
8993  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8994  * has invalid value.
8995  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8996  * is not initialized.
8997  */
8998 enum qca_wlan_vendor_spectral_scan_error_code {
8999 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
9000 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
9001 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
9002 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
9003 };
9004 
9005 /**
9006  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
9007  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
9008  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
9009  * spectral hardware generation.
9010  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
9011  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
9012  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
9013  */
9014 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
9015 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
9016 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
9017 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
9018 };
9019 
9020 /**
9021  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
9022  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
9023  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
9024  * Spectral bin scaling formula ID.
9025  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
9026  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
9027  * and RSSI threshold based formula.
9028  */
9029 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
9030 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
9031 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
9032 };
9033 
9034 /**
9035  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
9036  * RF Operating Parameter (RROP) information is available, and if so, at which
9037  * point in the application-driver interaction sequence it can be retrieved by
9038  * the application from the driver. This point may vary by architecture and
9039  * other factors. This is a u16 value.
9040  */
9041 enum qca_wlan_vendor_attr_rropavail_info {
9042 	/* RROP information is unavailable. */
9043 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
9044 	/* RROP information is available and the application can retrieve the
9045 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
9046 	 * event from the driver.
9047 	 */
9048 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
9049 	/* RROP information is available only after a vendor specific scan
9050 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
9051 	 * successfully completed. The application can retrieve the information
9052 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
9053 	 * the driver.
9054 	 */
9055 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
9056 };
9057 
9058 /**
9059  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
9060  * Representative RF Operating Parameter (RROP) information. It is sent for the
9061  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
9062  * intended for use by external Auto Channel Selection applications. It provides
9063  * guidance values for some RF parameters that are used by the system during
9064  * operation. These values could vary by channel, band, radio, and so on.
9065  */
9066 enum qca_wlan_vendor_attr_rrop_info {
9067 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
9068 
9069 	/* Representative Tx Power List (RTPL) which has an array of nested
9070 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
9071 	 */
9072 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
9073 
9074 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
9075 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
9076 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
9077 };
9078 
9079 /**
9080  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
9081  * entry instances in the Representative Tx Power List (RTPL). It provides
9082  * simplified power values intended for helping external Auto channel Selection
9083  * applications compare potential Tx power performance between channels, other
9084  * operating conditions remaining identical. These values are not necessarily
9085  * the actual Tx power values that will be used by the system. They are also not
9086  * necessarily the max or average values that will be used. Instead, they are
9087  * relative, summarized keys for algorithmic use computed by the driver or
9088  * underlying firmware considering a number of vendor specific factors.
9089  */
9090 enum qca_wlan_vendor_attr_rtplinst {
9091 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
9092 
9093 	/* Primary channel number (u8).
9094 	 * Note: If both the driver and user space application support the
9095 	 * 6 GHz band, this attribute is deprecated and
9096 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
9097 	 * maintain backward compatibility,
9098 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
9099 	 * driver or user space application or both do not support the 6 GHz
9100 	 * band.
9101 	 */
9102 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
9103 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
9104 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
9105 	/* Representative Tx power in dBm (s32) with emphasis on range. */
9106 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
9107 	/* Primary channel center frequency (u32) in MHz */
9108 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
9109 
9110 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
9111 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
9112 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
9113 };
9114 
9115 /**
9116  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
9117  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
9118  *
9119  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
9120  *  array of nested values as per attributes in
9121  *  enum qca_wlan_vendor_attr_mac_mode_info.
9122  */
9123 enum qca_wlan_vendor_attr_mac {
9124 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
9125 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
9126 
9127 	/* keep last */
9128 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
9129 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
9130 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
9131 };
9132 
9133 /**
9134  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
9135  * WiFi netdev interface on a respective MAC. Used by the attribute
9136  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
9137  *
9138  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
9139  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
9140  *  the connected Wi-Fi interface(u32).
9141  */
9142 enum qca_wlan_vendor_attr_mac_iface_info {
9143 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
9144 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
9145 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
9146 
9147 	/* keep last */
9148 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
9149 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
9150 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
9151 };
9152 
9153 /**
9154  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
9155  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
9156  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
9157  *
9158  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
9159  *  MAC (u32)
9160  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
9161  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
9162  *  in enum nl80211_band.
9163  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
9164  * interfaces associated with this MAC. Represented by enum
9165  * qca_wlan_vendor_attr_mac_iface_info.
9166  */
9167 enum qca_wlan_vendor_attr_mac_info {
9168 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
9169 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
9170 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
9171 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
9172 
9173 	/* keep last */
9174 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
9175 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
9176 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
9177 
9178 };
9179 
9180 /**
9181  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
9182  * to get thermal status from driver/firmware.
9183  * enum values are used for NL attributes encapsulated inside
9184  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
9185  *
9186  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
9187  * of a thermal level in Celsius. u32 size.
9188  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
9189  * of a thermal level in Celsius. u32 size.
9190  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
9191  * thermal level in milliseconds. u32 size.
9192  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
9193  * of times the temperature crossed into the temperature range defined by the
9194  * thermal level from both higher and lower directions. u32 size.
9195  */
9196 enum qca_wlan_vendor_attr_thermal_stats {
9197 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
9198 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
9199 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
9200 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
9201 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
9202 
9203 	/* keep last */
9204 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
9205 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
9206 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
9207 };
9208 
9209 /**
9210  * enum he_fragmentation_val - HE fragmentation support values
9211  * Indicates level of dynamic fragmentation that is supported by
9212  * a STA as a recipient.
9213  * HE fragmentation values are defined as per 11ax spec and are used in
9214  * HE capability IE to advertise the support. These values are validated
9215  * in the driver to check the device capability and advertised in the HE
9216  * capability element.
9217  *
9218  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
9219  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
9220  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
9221  *	within an A-MPDU that is not an S-MPDU.
9222  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
9223  *	contained within an MPDU or S-MPDU and support for up to one dynamic
9224  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
9225  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
9226  *	MPDU or S-MPDU.
9227  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
9228  *	contained within an MPDU or S-MPDU and support for multiple dynamic
9229  *	fragments for each MSDU and for each A-MSDU if supported by the
9230  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
9231  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
9232  */
9233 enum he_fragmentation_val {
9234 	HE_FRAG_DISABLE,
9235 	HE_FRAG_LEVEL1,
9236 	HE_FRAG_LEVEL2,
9237 	HE_FRAG_LEVEL3,
9238 };
9239 
9240 /**
9241  * enum he_mcs_config - HE MCS support configuration
9242  *
9243  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
9244  * These values are used in driver to configure the HE MCS map to advertise
9245  * Tx/Rx MCS map in HE capability and these values are applied for all the
9246  * streams supported by the device. To configure MCS for different bandwidths,
9247  * vendor command needs to be sent using this attribute with appropriate value.
9248  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
9249  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
9250  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
9251  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
9252  *
9253  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
9254  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
9255  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
9256  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
9257  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
9258  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
9259  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
9260  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
9261  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
9262  */
9263 enum he_mcs_config {
9264 	HE_80_MCS0_7 = 0,
9265 	HE_80_MCS0_9 = 1,
9266 	HE_80_MCS0_11 = 2,
9267 	HE_160_MCS0_7 = 4,
9268 	HE_160_MCS0_9 = 5,
9269 	HE_160_MCS0_11 = 6,
9270 	HE_80p80_MCS0_7 = 8,
9271 	HE_80p80_MCS0_9 = 9,
9272 	HE_80p80_MCS0_11 = 10,
9273 };
9274 
9275 /**
9276  * enum qca_wlan_ba_session_config - BA session configuration
9277  *
9278  * Indicates the configuration values for BA session configuration attribute.
9279  *
9280  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
9281  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
9282  */
9283 enum qca_wlan_ba_session_config {
9284 	QCA_WLAN_ADD_BA = 1,
9285 	QCA_WLAN_DELETE_BA = 2,
9286 };
9287 
9288 /**
9289  * enum qca_wlan_ac_type - access category type
9290  *
9291  * Indicates the access category type value.
9292  *
9293  * @QCA_WLAN_AC_BE: BE access category
9294  * @QCA_WLAN_AC_BK: BK access category
9295  * @QCA_WLAN_AC_VI: VI access category
9296  * @QCA_WLAN_AC_VO: VO access category
9297  * @QCA_WLAN_AC_ALL: All ACs
9298  */
9299 enum qca_wlan_ac_type {
9300 	QCA_WLAN_AC_BE = 0,
9301 	QCA_WLAN_AC_BK = 1,
9302 	QCA_WLAN_AC_VI = 2,
9303 	QCA_WLAN_AC_VO = 3,
9304 	QCA_WLAN_AC_ALL = 4,
9305 };
9306 
9307 /**
9308  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
9309  *
9310  * Indicates the HE LTF configuration value.
9311  *
9312  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
9313  * the mandatory HE-LTF based on the GI setting
9314  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
9315  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
9316  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
9317  */
9318 enum qca_wlan_he_ltf_cfg {
9319 	QCA_WLAN_HE_LTF_AUTO = 0,
9320 	QCA_WLAN_HE_LTF_1X = 1,
9321 	QCA_WLAN_HE_LTF_2X = 2,
9322 	QCA_WLAN_HE_LTF_4X = 3,
9323 };
9324 
9325 /**
9326  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
9327  *
9328  * Indicates the HE trigger frame MAC padding duration value.
9329  *
9330  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
9331  * process the trigger frame.
9332  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
9333  * trigger frame.
9334  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
9335  * trigger frame.
9336  */
9337 enum qca_wlan_he_mac_padding_dur {
9338 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
9339 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
9340 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
9341 };
9342 
9343 /**
9344  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
9345  *
9346  * Indicates the HE Operating mode control channel width setting value.
9347  *
9348  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
9349  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
9350  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
9351  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
9352  */
9353 enum qca_wlan_he_om_ctrl_ch_bw {
9354 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
9355 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
9356 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
9357 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
9358 };
9359 
9360 /**
9361  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
9362  *
9363  * Indicates the frame types to use for keep alive data.
9364  *
9365  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
9366  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
9367  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
9368  */
9369 enum qca_wlan_keep_alive_data_type {
9370 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
9371 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
9372 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
9373 };
9374 
9375 /**
9376  * enum eht_mcs_config - EHT MCS support configuration
9377  *
9378  * Configures the EHT Tx/Rx MCS map in EHT Capability element.
9379  * These values are used in the driver to configure the EHT MCS map to advertise
9380  * Tx/Rx MCS map in EHT capability and these values are applied for all the
9381  * streams supported by the device.
9382  * @EHT_MCS0_7: EHT MCS 0 to 7 support
9383  * @EHT_MCS0_9: EHT MCS 0 to 9 support
9384  * @EHT_MCS0_11: EHT MCS 0 to 11 support
9385  * @EHT_MCS0_13: EHT MCS 0 to 13 support
9386  */
9387 enum eht_mcs_config {
9388 	EHT_MCS0_7 = 0,
9389 	EHT_MCS0_9 = 1,
9390 	EHT_MCS0_11 = 2,
9391 	EHT_MCS0_13 = 3,
9392 };
9393 
9394 /**
9395  * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
9396  * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
9397  * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
9398  * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
9399  * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
9400  * multi-link multi radio mode.
9401  * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
9402  * multi-link multi radio mode.
9403  */
9404 enum qca_wlan_eht_mlo_mode {
9405 	QCA_WLAN_EHT_MODE_INVALID = 0,
9406 	QCA_WLAN_EHT_MLSR = 1,
9407 	QCA_WLAN_EHT_EMLSR = 2,
9408 	QCA_WLAN_EHT_NON_STR_MLMR = 3,
9409 	QCA_WLAN_EHT_STR_MLMR = 4,
9410 };
9411 
9412 /**
9413  * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
9414  * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
9415  * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
9416  */
9417 enum qca_wlan_emlsr_mode {
9418 	QCA_WLAN_EMLSR_MODE_ENTER = 0,
9419 	QCA_WLAN_EMLSR_MODE_EXIT = 1,
9420 };
9421 
9422 /**
9423  * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
9424  * support
9425  * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
9426  * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
9427  * both DL and UL
9428  * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
9429  * different link set
9430  */
9431 enum qca_wlan_ttlm_negotiation_support {
9432 	QCA_WLAN_TTLM_DISABLE = 0,
9433 	QCA_WLAN_TTLM_SAME_LINK_SET = 1,
9434 	QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
9435 };
9436 
9437 /**
9438  * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
9439  * EHT operating mode control transmit request. These attributes are
9440  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
9441  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
9442  *
9443  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
9444  * indicates the maximum number of spatial streams, NSS, that the STA
9445  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
9446  * and is set to NSS - 1.
9447  *
9448  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
9449  * indicates the operating channel width supported by the STA for both
9450  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
9451  *
9452  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
9453  * indicates the all trigger based UL MU operations by the STA.
9454  * 0 - UL MU operations are enabled by the STA.
9455  * 1 - All triggered UL MU transmissions are suspended by the STA.
9456  *
9457  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
9458  * indicates the maximum number of space-time streams, NSTS, that
9459  * the STA supports in transmission and is set to NSTS - 1.
9460  *
9461  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
9462  * combined with the UL MU Disable subfield and the recipient's setting
9463  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
9464  * capabilities to determine which HE TB PPDUs are possible by the
9465  * STA to transmit.
9466  * 0 - UL MU data operations are enabled by the STA.
9467  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
9468  * bit is not set, else UL MU Tx is suspended.
9469  *
9470  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9471  * Control subfield combined with the Rx NSS subfield in the OM Control subfield
9472  * indicates NSS - 1, where NSS is the maximum number of spatial streams that
9473  * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
9474  *
9475  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
9476  * 320 MHz operating channel width supported by the EHT STA for both reception
9477  * and transmission.
9478  *
9479  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9480  * Control subfield combined with the Tx NSTS subfield in OM Control subfield
9481  * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
9482  * that the STA supports in transmission for PPDU bandwidths less than or equal
9483  * to 80 MHz.
9484  */
9485 enum qca_wlan_vendor_attr_omi_tx {
9486 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
9487 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
9488 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
9489 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
9490 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
9491 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
9492 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
9493 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
9494 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
9495 
9496 	/* keep last */
9497 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
9498 	QCA_WLAN_VENDOR_ATTR_OMI_MAX =
9499 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
9500 };
9501 
9502 /* deprecated legacy names */
9503 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
9504 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
9505 #define qca_wlan_vendor_attr_he_omi_tx \
9506 	qca_wlan_vendor_attr_omi_tx
9507 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
9508 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
9509 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
9510 	QCA_WLAN_VENDOR_ATTR_OMI_MAX
9511 
9512 /**
9513  * enum qca_wlan_vendor_phy_mode - Different PHY modes
9514  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
9515  *
9516  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
9517  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
9518  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
9519  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
9520  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
9521  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
9522  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
9523  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
9524  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
9525  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
9526  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
9527  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
9528  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
9529  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
9530  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
9531  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
9532  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
9533  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
9534  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
9535  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
9536  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
9537  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
9538  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
9539  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
9540  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
9541  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
9542  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
9543  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
9544  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
9545  */
9546 enum qca_wlan_vendor_phy_mode {
9547 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
9548 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
9549 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
9550 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
9551 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
9552 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
9553 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
9554 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
9555 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
9556 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
9557 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9558 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9559 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9560 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9561 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9562 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9563 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9564 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9565 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9566 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9567 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9568 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9569 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9570 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9571 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9572 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9573 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9574 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9575 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9576 };
9577 
9578 /* Attributes for data used by
9579  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9580  */
9581 enum qca_wlan_vendor_attr_wifi_test_config {
9582 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9583 	/* 8-bit unsigned value to configure the driver to enable/disable
9584 	 * WMM feature. This attribute is used to configure testbed device.
9585 	 * 1-enable, 0-disable
9586 	 */
9587 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9588 
9589 	/* 8-bit unsigned value to configure the driver to accept/reject
9590 	 * the addba request from peer. This attribute is used to configure
9591 	 * the testbed device.
9592 	 * 1-accept addba, 0-reject addba
9593 	 */
9594 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9595 
9596 	/* 8-bit unsigned value to configure the driver to send or not to
9597 	 * send the addba request to peer.
9598 	 * This attribute is used to configure the testbed device.
9599 	 * 1-send addba, 0-do not send addba
9600 	 */
9601 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9602 
9603 	/* 8-bit unsigned value to indicate the HE fragmentation support.
9604 	 * Uses enum he_fragmentation_val values.
9605 	 * This attribute is used to configure the testbed device to
9606 	 * allow the advertised hardware capabilities to be downgraded
9607 	 * for testing purposes.
9608 	 */
9609 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9610 
9611 	/* 8-bit unsigned value to indicate the HE MCS support.
9612 	 * Uses enum he_mcs_config values.
9613 	 * This attribute is used to configure the testbed device to
9614 	 * allow the advertised hardware capabilities to be downgraded
9615 	 * for testing purposes.
9616 	 */
9617 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
9618 
9619 	/* 8-bit unsigned value to configure the driver to allow or not to
9620 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
9621 	 * This attribute is used to configure the testbed device.
9622 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
9623 	 */
9624 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
9625 
9626 	/* 8-bit unsigned value to configure the driver to add a
9627 	 * new BA session or delete the existing BA session for
9628 	 * given TID. ADDBA command uses the buffer size and tid
9629 	 * configuration if user specifies the values else default
9630 	 * value for buffer size is used for all tids if the tid
9631 	 * also not specified. For DEL_BA command TID value is
9632 	 * required to process the command.
9633 	 * Uses enum qca_wlan_ba_session_config values.
9634 	 * This attribute is used to configure the testbed device.
9635 	 */
9636 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9637 
9638 	/* 16-bit unsigned value to configure the buffer size in addba
9639 	 * request and response frames.
9640 	 * This attribute is used to configure the testbed device.
9641 	 * The range of the value is 0 to 256.
9642 	 */
9643 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9644 
9645 	/* 8-bit unsigned value to configure the buffer size in addba
9646 	 * request and response frames.
9647 	 * This attribute is used to configure the testbed device.
9648 	 */
9649 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9650 
9651 	/* 8-bit unsigned value to configure the no ack policy.
9652 	 * To configure no ack policy, access category value
9653 	 * is required to process the command.
9654 	 * This attribute is used to configure the testbed device.
9655 	 * 1 - enable no ack, 0 - disable no ack
9656 	 */
9657 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9658 
9659 	/* 8-bit unsigned value to configure the AC for no ack policy
9660 	 * This attribute is used to configure the testbed device.
9661 	 * uses the enum qca_wlan_ac_type values
9662 	 */
9663 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9664 
9665 	/* 8-bit unsigned value to configure the HE LTF
9666 	 * This attribute is used to configure the testbed device.
9667 	 * Uses the enum qca_wlan_he_ltf_cfg values.
9668 	 */
9669 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9670 
9671 	/* 8-bit unsigned value to configure the tx beamformee.
9672 	 * This attribute is used to configure the testbed device.
9673 	 * 1 - enable, 0 - disable.
9674 	 */
9675 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9676 
9677 	/* 8-bit unsigned value to configure the tx beamformee number of
9678 	 * space-time streams.
9679 	 * This attribute is used to configure the testbed device.
9680 	 * The range of the value is 0 to 8
9681 	 */
9682 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9683 
9684 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
9685 	 * This attribute is used to configure the testbed device.
9686 	 * Uses the enum qca_wlan_ac_type values.
9687 	 */
9688 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9689 
9690 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9691 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
9692 	 * is required to process the command.
9693 	 * This attribute is used to configure the testbed device.
9694 	 */
9695 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9696 
9697 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
9698 	 * given AC.
9699 	 * To configure MU EDCA ECW min value, MU EDCA access category value
9700 	 * is required to process the command.
9701 	 * This attribute is used to configure the testbed device.
9702 	 */
9703 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9704 
9705 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
9706 	 * given AC.
9707 	 * To configure MU EDCA ECW max value, MU EDCA access category value
9708 	 * is required to process the command.
9709 	 * This attribute is used to configure the testbed device.
9710 	 */
9711 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9712 
9713 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
9714 	 * To configure MU EDCA timer value, MU EDCA access category value
9715 	 * is required to process the command.
9716 	 * This attribute is used to configure the testbed device.
9717 	 */
9718 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9719 
9720 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
9721 	 * duration.
9722 	 * This attribute is used to configure the testbed device.
9723 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
9724 	 */
9725 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9726 
9727 	/* 8-bit unsigned value to override the MU EDCA params to defaults
9728 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
9729 	 * the default values else use the MU EDCA params from AP beacon.
9730 	 * This attribute is used to configure the testbed device.
9731 	 * 1 - enable override, 0 - disable.
9732 	 */
9733 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9734 
9735 	/* 8-bit unsigned value to configure the support for receiving
9736 	 * an MPDU that contains an operating mode control subfield.
9737 	 * This attribute is used to configure the testbed device.
9738 	 * 1-enable, 0-disable.
9739 	 */
9740 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9741 
9742 	/* Nested attribute values required to setup the TWT session.
9743 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9744 	 * information to set up the session. It contains broadcast flags,
9745 	 * set_up flags, trigger value, flow type, flow ID, wake interval
9746 	 * exponent, protection, target wake time, wake duration, wake interval
9747 	 * mantissa. These nested attributes are used to setup a host triggered
9748 	 * TWT session.
9749 	 */
9750 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9751 
9752 	/* This nested attribute is used to terminate the current TWT session.
9753 	 * It does not currently carry any attributes.
9754 	 */
9755 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9756 
9757 	/* This nested attribute is used to suspend the current TWT session.
9758 	 * It does not currently carry any attributes.
9759 	 */
9760 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9761 
9762 	/* Nested attribute values to indicate the request for resume.
9763 	 * This attribute is used to resume the TWT session.
9764 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9765 	 * parameters required to resume the TWT session.
9766 	 */
9767 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9768 
9769 	/* 8-bit unsigned value to set the HE operating mode control
9770 	 * (OM CTRL) Channel Width subfield.
9771 	 * The Channel Width subfield indicates the operating channel width
9772 	 * supported by the STA for both reception and transmission.
9773 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9774 	 * This setting is cleared with the
9775 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9776 	 * flag attribute to reset defaults.
9777 	 * This attribute is used to configure the testbed device.
9778 	 */
9779 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9780 
9781 	/* 8-bit unsigned value to configure the number of spatial
9782 	 * streams in HE operating mode control field.
9783 	 * This setting is cleared with the
9784 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9785 	 * flag attribute to reset defaults.
9786 	 * This attribute is used to configure the testbed device.
9787 	 */
9788 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9789 
9790 	/* Flag attribute to configure the UL MU disable bit in
9791 	 * HE operating mode control field.
9792 	 * This setting is cleared with the
9793 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9794 	 * flag attribute to reset defaults.
9795 	 * This attribute is used to configure the testbed device.
9796 	 */
9797 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9798 
9799 	/* Flag attribute to clear the previously set HE operating mode
9800 	 * control field configuration.
9801 	 * This attribute is used to configure the testbed device to reset
9802 	 * defaults to clear any previously set HE operating mode control
9803 	 * field configuration.
9804 	 */
9805 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9806 
9807 	/* 8-bit unsigned value to configure HE single user PPDU
9808 	 * transmission. By default this setting is disabled and it
9809 	 * is disabled in the reset defaults of the device configuration.
9810 	 * This attribute is used to configure the testbed device.
9811 	 * 1-enable, 0-disable
9812 	 */
9813 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9814 
9815 	/* 8-bit unsigned value to configure action frame transmission
9816 	 * in HE trigger based PPDU transmission.
9817 	 * By default this setting is disabled and it is disabled in
9818 	 * the reset defaults of the device configuration.
9819 	 * This attribute is used to configure the testbed device.
9820 	 * 1-enable, 0-disable
9821 	 */
9822 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9823 
9824 	/* Nested attribute to indicate HE operating mode control field
9825 	 * transmission. It contains operating mode control field Nss,
9826 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9827 	 * These nested attributes are used to send HE operating mode control
9828 	 * with configured values.
9829 	 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
9830 	 * This attribute is used to configure the testbed device.
9831 	 */
9832 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
9833 
9834 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
9835 	 * support for the reception of a frame that carries an HE variant
9836 	 * HT Control field.
9837 	 * This attribute is used to configure the testbed device.
9838 	 * 1-enable, 0-disable
9839 	 */
9840 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9841 
9842 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
9843 	 * This attribute is used to configure the testbed device.
9844 	 * 1-enable, 0-disable
9845 	 */
9846 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9847 
9848 	/* 8-bit unsigned value to configure HE testbed defaults.
9849 	 * This attribute is used to configure the testbed device.
9850 	 * 1-set the device HE capabilities to testbed defaults.
9851 	 * 0-reset the device HE capabilities to supported config.
9852 	 */
9853 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9854 
9855 	/* 8-bit unsigned value to configure twt request support.
9856 	 * This attribute is used to configure the testbed device.
9857 	 * 1-enable, 0-disable.
9858 	 */
9859 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9860 
9861 	/* 8-bit unsigned value to configure protection for Management
9862 	 * frames when PMF is enabled for the association.
9863 	 * This attribute is used to configure the testbed device.
9864 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9865 	 */
9866 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9867 
9868 	/* Flag attribute to inject Disassociation frame to the connected AP.
9869 	 * This attribute is used to configure the testbed device.
9870 	 */
9871 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9872 
9873 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9874 	 * subfield in the MIC control field of the FTE in FT Reassociation
9875 	 * Request frame.
9876 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9877 	 * This attribute is used to configure the testbed device.
9878 	 * This attribute can be configured when STA is in disconnected or
9879 	 * associated state and the configuration is valid until the next
9880 	 * disconnection.
9881 	 */
9882 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9883 
9884 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9885 	 * Switch Announcement) when STA is in connected state.
9886 	 * 0 - Default behavior, 1 - Ignore CSA.
9887 	 * This attribute is used to configure the testbed device.
9888 	 * This attribute can be configured when STA is in disconnected or
9889 	 * associated state and the configuration is valid until the next
9890 	 * disconnection.
9891 	 */
9892 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9893 
9894 	/* Nested attribute values required to configure OCI (Operating Channel
9895 	 * Information). Attributes defined in enum
9896 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9897 	 * This attribute is used to configure the testbed device.
9898 	 * This attribute can be configured when STA is in disconnected or
9899 	 * associated state and the configuration is valid until the next
9900 	 * disconnection.
9901 	 */
9902 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9903 
9904 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9905 	 * Query timeout. If this configuration is enabled STA shall not send
9906 	 * Deauthentication frmae when SA Query times out (mainly, after a
9907 	 * channel switch when OCV is enabled).
9908 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9909 	 * This attribute is used to configure the testbed device.
9910 	 * This attribute can be configured only when STA is in associated state
9911 	 * and the configuration is valid until the disconnection.
9912 	 */
9913 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9914 
9915 	/* 8-bit unsigned value to configure the driver/firmware to start or
9916 	 * stop transmitting FILS discovery frames.
9917 	 * 0 - Stop transmitting FILS discovery frames
9918 	 * 1 - Start transmitting FILS discovery frames
9919 	 * This attribute is used to configure the testbed device.
9920 	 * This attribute can be configured only in AP mode and the
9921 	 * configuration is valid until AP restart.
9922 	 */
9923 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9924 
9925 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9926 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9927 	 * information field.
9928 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9929 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9930 	 * This attribute is used to configure the testbed device.
9931 	 */
9932 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9933 
9934 	/* 16-bit unsigned value to configure the driver with a specific BSS
9935 	 * max idle period to advertise in the BSS Max Idle Period element
9936 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9937 	 * This attribute is used to configure the testbed device.
9938 	 */
9939 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9940 
9941 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9942 	 * for data transmission.
9943 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9944 	 * This attribute is used to configure the testbed device.
9945 	 */
9946 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9947 
9948 	/* 8-bit unsigned value to configure the driver to disable data and
9949 	 * management response frame transmission to test the BSS max idle
9950 	 * feature.
9951 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9952 	 * This attribute is used to configure the testbed device.
9953 	 */
9954 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9955 
9956 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9957 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9958 	 * information field.
9959 	 * 0 - Disable Punctured Preamble Rx subfield
9960 	 * 1 - Enable Punctured Preamble Rx subfield
9961 	 * This attribute is used to configure the testbed device.
9962 	 */
9963 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9964 
9965 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9966 	 * requirement mismatch for 6 GHz connection.
9967 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9968 	 * This attribute is used to configure the testbed device.
9969 	 */
9970 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9971 
9972 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9973 	 * connection with all security modes.
9974 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9975 	 * modes.
9976 	 * This attribute is used for testing purposes.
9977 	 */
9978 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9979 
9980 	/* 8-bit unsigned value to configure the driver to transmit data with
9981 	 * ER SU PPDU type.
9982 	 *
9983 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9984 	 * This attribute is used for testing purposes.
9985 	 */
9986 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9987 
9988 	/* 8-bit unsigned value to configure the driver to use Data or
9989 	 * Management frame type for keep alive data.
9990 	 * Uses enum qca_wlan_keep_alive_data_type values.
9991 	 *
9992 	 * This attribute is used for testing purposes.
9993 	 */
9994 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9995 
9996 	/* 8-bit unsigned value to configure the driver to use scan request
9997 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9998 	 * driver saves this configuration and applies this setting to all user
9999 	 * space scan requests until the setting is cleared. If this
10000 	 * configuration is set, the driver uses the BSSID value from the scan
10001 	 * request to set the RA(A1) in the Probe Request frames during the
10002 	 * scan.
10003 	 *
10004 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
10005 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
10006 	 * This attribute is used for testing purposes.
10007 	 */
10008 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
10009 
10010 	/* 8-bit unsigned value to configure the driver to enable/disable the
10011 	 * BSS max idle period support.
10012 	 *
10013 	 * 0 - Disable the BSS max idle support.
10014 	 * 1 - Enable the BSS max idle support.
10015 	 * This attribute is used for testing purposes.
10016 	 */
10017 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
10018 
10019 	/* 8-bit unsigned value to configure the driver/firmware to enable or
10020 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
10021 	 * capabilities information field.
10022 	 * 0 - Disable Rx control frame to MultiBSS subfield
10023 	 * 1 - Enable Rx control frame to MultiBSS subfield
10024 	 * This attribute is used to configure the testbed device.
10025 	 */
10026 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
10027 
10028 	/* 8-bit unsigned value to configure the driver/firmware to enable or
10029 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
10030 	 * information field.
10031 	 * 0 - Disable Broadcast TWT support subfield
10032 	 * 1 - Enable Broadcast TWT support subfield
10033 	 * This attribute is used to configure the testbed device.
10034 	 */
10035 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
10036 
10037 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
10038 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
10039 	 * and if the FW supports this capability too, then the STA host
10040 	 * advertises this capability to AP over assoc request frame. This
10041 	 * attribute will not have any effect on legacy devices with no 802.11be
10042 	 * support.
10043 	 * 0 - Default behavior
10044 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
10045 	 * This attribute is used to configure the testbed device.
10046 	 */
10047 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
10048 
10049 	/* 8-bit unsigned value to configure the driver to enable/disable the
10050 	 * periodic sounding for Tx beamformer functionality. The default
10051 	 * behavior uses algorithm to do sounding based on packet stats.
10052 	 *
10053 	 * 0 - Default behavior.
10054 	 * 1 - Enable the periodic sounding for Tx beamformer.
10055 	 * This attribute is used for testing purposes.
10056 	 */
10057 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
10058 
10059 	/* 8-bit unsigned value to configure beamformee SS EHT capability
10060 	 * to indicate the maximum number of spatial streams that the STA
10061 	 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
10062 	 * The range of the value is 3 to 7.
10063 	 * This attribute is used to configure the testbed device.
10064 	 */
10065 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
10066 
10067 	/* 8-bit unsigned value to configure beamformee SS EHT capability
10068 	 * to indicate the maximum number of spatial streams that the STA
10069 	 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
10070 	 * The range of the value is 3 to 7.
10071 	 * This attribute is used to configure the testbed device.
10072 	 */
10073 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
10074 
10075 	/* 8-bit unsigned value to configure beamformee SS EHT capability
10076 	 * to indicate the maximum number of spatial streams that the STA
10077 	 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
10078 	 * The range of the value is 3 to 7.
10079 	 * This attribute is used to configure the testbed device.
10080 	 */
10081 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
10082 
10083 	/* 8-bit unsigned value to configure the driver to exclude station
10084 	 * profile in Probe Request frame Multi-Link element.
10085 	 * 0 - Default behavior, sends the Probe Request frame with station
10086 	 * profile data included in the Multi-Link element.
10087 	 * 1 - Exclude station profile in Probe Request frame Multi-Link
10088 	 * element.
10089 	 * This attribute is used to configure the testbed device.
10090 	 */
10091 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
10092 
10093 	/* 8-bit unsigned value to configure EHT testbed defaults.
10094 	 * This attribute is used to configure the testbed device.
10095 	 * 1 - Set the device EHT capabilities to testbed defaults.
10096 	 * 0 - Reset the device EHT capabilities to supported config.
10097 	 */
10098 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
10099 
10100 	/* 8-bit unsigned value to indicate the EHT MCS support.
10101 	 * Uses enum eht_mcs_config values.
10102 	 * This attribute is used to configure the testbed device to
10103 	 * allow the advertised hardware capabilities to be downgraded
10104 	 * for testing purposes.
10105 	 */
10106 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
10107 
10108 	/* 8-bit unsigned value to configure EHT TB Sounding Feedback
10109 	 * Rate Limit capability.
10110 	 * This attribute is used to configure the testbed device.
10111 	 * 0 - Indicates no maximum supported data rate limitation.
10112 	 * 1 - Indicates the maximum supported data rate is the lower of
10113 	 * the 1500 Mb/s and the maximum supported data rate.
10114 	 */
10115 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
10116 
10117 	/* 8-bit unsigned value to configure the support for receiving an MPDU
10118 	 * that contains an EHT operating mode control subfield.
10119 	 * This attribute is used to configure the testbed device.
10120 	 * 1-enable, 0-disable.
10121 	 */
10122 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
10123 
10124 	/* 8-bit unsigned value to configure the driver with EMLSR padding delay
10125 	 * subfield value.
10126 	 *
10127 	 * 0 - 0 us
10128 	 * 1 - 32 us
10129 	 * 2 - 64 us
10130 	 * 3 - 128 us
10131 	 * 4 - 256 us
10132 	 * 5-255 - Reserved
10133 	 *
10134 	 * This attribute is used for testing purposes.
10135 	 */
10136 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
10137 
10138 	/*
10139 	 * 8-bit unsigned value to indicate the firmware to force the active MLO
10140 	 * links to power save mode for the configured number of beacon periods.
10141 	 * This allows the firmware to suspend STA links for X beacon periods
10142 	 * and remain asleep even if the AP advertises TIM as opposed to regular
10143 	 * power save mode where STA links wake up if the AP indicates that it
10144 	 * has buffered data to send.
10145 	 * This attribute is used to configure the testbed device.
10146 	 */
10147 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
10148 
10149 	/*
10150 	 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
10151 	 * to enable simultaneous transmission of PPDUs on all active links.
10152 	 * 0 - Default behavior
10153 	 * 1 - Enter STR mode for simultaneous data transmission on all links
10154 	 */
10155 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
10156 
10157 	/* Nested attribute to indicate EHT MLO links on which powersave to be
10158 	 * enabled. It contains link ID attributes. These nested attributes are
10159 	 * of the type u8 and are used to enable the powersave on associated
10160 	 * MLO links corresponding to the link IDs provided in the command.
10161 	 * This attribute is used to configure the testbed device.
10162 	 */
10163 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
10164 
10165 	/* 8-bit unsigned value to configure the MLD ID of the BSS whose link
10166 	 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
10167 	 * testcase, STA can request information of non-Tx BSS through Tx BSS
10168 	 * by configuring non-Tx BSS MLD ID within the ML probe request that
10169 	 * is transmitted via host initiated scan request.
10170 	 *
10171 	 * This attribute is used for testing purposes.
10172 	 */
10173 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
10174 
10175 	/* keep last */
10176 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
10177 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
10178 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
10179 };
10180 
10181 /**
10182  * enum qca_wlan_twt_operation - Operation of the config TWT request
10183  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
10184  * The response for the respective operations can be either synchronous or
10185  * asynchronous (wherever specified). If synchronous, the response to this
10186  * operation is obtained in the corresponding vendor command reply to the user
10187  * space. For the asynchronous case the response is obtained as an event with
10188  * the same operation type.
10189  *
10190  * Drivers shall support either of these modes but not both simultaneously.
10191  * This support for asynchronous mode is advertised through the flag
10192  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
10193  * the driver shall support synchronous mode.
10194  *
10195  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
10196  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10197  * qca_wlan_vendor_attr_twt_setup. Depending upon the
10198  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
10199  * synchronous or asynchronous operation.
10200  *
10201  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
10202  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10203  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
10204  *
10205  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
10206  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10207  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
10208  * This terminate can either get triggered by the user space or can as well be
10209  * a notification from the firmware if it initiates a terminate.
10210  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10211  * the request from user space can either be a synchronous or asynchronous
10212  * operation.
10213  *
10214  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
10215  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10216  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
10217  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10218  * this is either a synchronous or asynchronous operation.
10219  *
10220  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
10221  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10222  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
10223  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
10224  * request.
10225  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10226  * capability, this is either a synchronous or asynchronous operation.
10227  *
10228  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
10229  * combination of suspend and resume in a single request. Required parameters
10230  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
10231  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
10232  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10233  * capability, this is either a synchronous or asynchronous operation.
10234  *
10235  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
10236  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
10237  * session is setup. It's a synchronous operation.
10238  *
10239  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
10240  * Valid only after the TWT session is setup. It's a synchronous operation.
10241  *
10242  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
10243  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
10244  * operation.
10245  *
10246  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
10247  * ready for a new TWT session setup after it issued a twt teardown.
10248  *
10249  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
10250  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
10251  * the enum qca_wlan_vendor_attr_twt_set_param.
10252  *
10253  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
10254  * related information for example TWT required bit in AP capabilities etc.
10255  * The reason for the notification is sent using
10256  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
10257  */
10258 enum qca_wlan_twt_operation {
10259 	QCA_WLAN_TWT_SET = 0,
10260 	QCA_WLAN_TWT_GET = 1,
10261 	QCA_WLAN_TWT_TERMINATE = 2,
10262 	QCA_WLAN_TWT_SUSPEND = 3,
10263 	QCA_WLAN_TWT_RESUME = 4,
10264 	QCA_WLAN_TWT_NUDGE = 5,
10265 	QCA_WLAN_TWT_GET_STATS = 6,
10266 	QCA_WLAN_TWT_CLEAR_STATS = 7,
10267 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
10268 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
10269 	QCA_WLAN_TWT_SET_PARAM = 10,
10270 	QCA_WLAN_TWT_NOTIFY = 11,
10271 };
10272 
10273 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
10274  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
10275  *
10276  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
10277  * u8 attribute. Specify the TWT operation of this request. Possible values
10278  * are defined in enum qca_wlan_twt_operation. The parameters for the
10279  * respective operation is specified through
10280  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
10281  *
10282  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
10283  * parameters configured for TWT. These parameters are represented by
10284  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
10285  * enum qca_wlan_vendor_attr_twt_set_param or
10286  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
10287  *
10288  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
10289  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
10290  * The values used by this attribute are defined in
10291  * enum qca_wlan_vendor_twt_status.
10292  */
10293 enum qca_wlan_vendor_attr_config_twt {
10294 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
10295 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
10296 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
10297 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
10298 
10299 	/* keep last */
10300 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
10301 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
10302 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
10303 };
10304 
10305 /**
10306  * qca_wlan_twt_setup_state: Represents the TWT session states.
10307  *
10308  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
10309  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
10310  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
10311  */
10312 enum qca_wlan_twt_setup_state {
10313 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
10314 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
10315 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
10316 };
10317 
10318 /**
10319  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
10320  * TWT (Target Wake Time) setup request. These attributes are sent as part of
10321  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
10322  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10323  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10324  *
10325  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
10326  * Disable (flag attribute not present) - Individual TWT
10327  * Enable (flag attribute present) - Broadcast TWT.
10328  * Individual means the session is between the STA and the AP.
10329  * This session is established using a separate negotiation between
10330  * STA and AP.
10331  * Broadcast means the session is across multiple STAs and an AP. The
10332  * configuration parameters are announced in Beacon frames by the AP.
10333  * This is used in
10334  * 1. TWT SET Request and Response
10335  * 2. TWT GET Response
10336  *
10337  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
10338  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
10339  * specify the TWT request type. This is used in TWT SET operation.
10340  *
10341  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
10342  * Enable (flag attribute present) - TWT with trigger support.
10343  * Disable (flag attribute not present) - TWT without trigger support.
10344  * Trigger means the AP will send the trigger frame to allow STA to send data.
10345  * Without trigger, the STA will wait for the MU EDCA timer before
10346  * transmitting the data.
10347  * This is used in
10348  * 1. TWT SET Request and Response
10349  * 2. TWT GET Response
10350  *
10351  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
10352  * 0 - Announced TWT - In this mode, STA may skip few service periods to
10353  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
10354  * NULL frame to AP.
10355  * 1 - Unannounced TWT - The STA will wakeup during every SP.
10356  * This is a required parameter for
10357  * 1. TWT SET Request and Response
10358  * 2. TWT GET Response
10359  *
10360  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
10361  * Flow ID is the unique identifier for each TWT session.
10362  * If not provided then dialog ID will be set to zero.
10363  * This is an optional parameter for
10364  * 1. TWT SET Request and Response
10365  * 2. TWT GET Request and Response
10366  * 3. TWT TERMINATE Request and Response
10367  * 4. TWT SUSPEND Request and Response
10368  * Flow Id values from 0 to 254 represent a single TWT session
10369  * Flow ID value of 255 represents all twt sessions for the following
10370  * 1. TWT TERMINATE Request and Response
10371  * 2. TWT SUSPEND Request and Response
10372  * 4. TWT CLEAR STATISTICS request
10373  * 5. TWT GET STATISTICS request and response
10374  * If an invalid dialog id is provided, status
10375  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10376  *
10377  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
10378  * This attribute (exp) is used along with the mantissa to derive the
10379  * wake interval using the following formula:
10380  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
10381  * Wake interval is the interval between 2 successive SP.
10382  * This is a required parameter for
10383  * 1. TWT SET Request and Response
10384  * 2. TWT GET Response
10385  *
10386  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
10387  * Enable (flag attribute present) - Protection required.
10388  * Disable (flag attribute not present) - Protection not required.
10389  * If protection is enabled, then the AP will use protection
10390  * mechanism using RTS/CTS to self to reserve the airtime.
10391  * This is used in
10392  * 1. TWT SET Request and Response
10393  * 2. TWT GET Response
10394  *
10395  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
10396  * This attribute is used as the SP offset which is the offset from
10397  * TSF after which the wake happens. The units are in microseconds. If
10398  * this attribute is not provided, then the value will be set to zero.
10399  * This is an optional parameter for
10400  * 1. TWT SET Request and Response
10401  * 2. TWT GET Response
10402  *
10403  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
10404  * This is the duration of the service period. This is specified as
10405  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
10406  * This is a required parameter for
10407  * 1. TWT SET Request and Response
10408  * 2. TWT GET Response
10409  *
10410  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
10411  * This attribute is used to configure wake interval mantissa.
10412  * The units are in TU.
10413  * This is a required parameter for
10414  * 1. TWT SET Request and Response
10415  * 2. TWT GET Response
10416  *
10417  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
10418  * This field is applicable for TWT response only.
10419  * This contains status values in enum qca_wlan_vendor_twt_status
10420  * and is passed to the userspace. This is used in TWT SET operation.
10421  * This is a required parameter for
10422  * 1. TWT SET Response
10423  * 2. TWT TERMINATE Response
10424  * 3. TWT SUSPEND Response
10425  * 4. TWT RESUME Response
10426  * 5. TWT NUDGE Response
10427  *
10428  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
10429  * This field is applicable for TWT response only.
10430  * This field contains response type from the TWT responder and is
10431  * passed to the userspace. The values for this field are defined in
10432  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
10433  * response.
10434  *
10435  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
10436  * In TWT setup command this field contains absolute TSF that will
10437  * be used by TWT requester during setup.
10438  * In TWT response this field contains absolute TSF value of the
10439  * wake time received from the TWT responder and is passed to
10440  * the userspace.
10441  * This is an optional parameter for
10442  * 1. TWT SET Request
10443  * This is a required parameter for
10444  * 1. TWT SET Response
10445  * 2. TWT GET Response
10446  *
10447  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
10448  * Enable (flag attribute present) - Indicates that the TWT responder
10449  * supports reception of TWT information frame from the TWT requestor.
10450  * Disable (flag attribute not present) - Indicates that the responder
10451  * doesn't support reception of TWT information frame from requestor.
10452  * This is used in
10453  * 1. TWT SET Response
10454  * 2. TWT GET Response
10455  *
10456  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
10457  * Represents the MAC address of the peer for which the TWT session
10458  * is being configured. This is used in AP mode to represent the respective
10459  * client
10460  * In AP mode, this is a required parameter in response for
10461  * 1. TWT SET
10462  * 2. TWT GET
10463  * 3. TWT TERMINATE
10464  * 4. TWT SUSPEND
10465  * In STA mode, this is an optional parameter in request and response for
10466  * the above four TWT operations.
10467  * In AP mode, this is a required parameter in request for
10468  * 1. TWT GET
10469  * 2. TWT TERMINATE
10470  *
10471  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
10472  * Minimum tolerance limit of wake interval parameter in microseconds.
10473  *
10474  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
10475  * Maximum tolerance limit of wake interval parameter in microseconds.
10476  *
10477  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
10478  * Minimum tolerance limit of wake duration parameter in microseconds.
10479  *
10480  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
10481  * Maximum tolerance limit of wake duration parameter in microseconds.
10482  *
10483  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
10484  * TWT state for the given dialog id. The values for this are represented
10485  * by enum qca_wlan_twt_setup_state.
10486  * This is obtained through TWT GET operation.
10487  *
10488  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
10489  * This attribute is used to configure wake interval mantissa.
10490  * The unit is microseconds. This attribute, when specified, takes
10491  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
10492  * This parameter is used for
10493  * 1. TWT SET Request and Response
10494  * 2. TWT GET Response
10495  *
10496  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
10497  * This attribute is used to configure Broadcast TWT ID.
10498  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
10499  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
10500  * This parameter is used for
10501  * 1. TWT SET Request
10502  * 2. TWT TERMINATE Request
10503  *
10504  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
10505  * This attribute is used to configure Broadcast TWT recommendation.
10506  * The Broadcast TWT Recommendation subfield contains a value that indicates
10507  * recommendations on the types of frames that are transmitted by TWT
10508  * scheduled STAs and scheduling AP during the broadcast TWT SP.
10509  * The allowed values are 0 - 3.
10510  * This parameter is used for
10511  * 1. TWT SET Request
10512  *
10513  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
10514  * This attribute is used to configure Broadcast TWT Persistence.
10515  * The Broadcast TWT Persistence subfield indicates the number of
10516  * TBTTs during which the Broadcast TWT SPs corresponding to this
10517  * broadcast TWT Parameter set are present. The number of beacon intervals
10518  * during which the Broadcast TWT SPs are present is equal to the value in the
10519  * Broadcast TWT Persistence subfield plus 1 except that the value 255
10520  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
10521  * This parameter is used for
10522  * 1. TWT SET Request
10523  *
10524  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
10525  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
10526  * from TWT response frame.
10527  * This parameter is used for
10528  * 1. TWT SET Response
10529  * 2. TWT GET Response
10530  *
10531  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
10532  * This attribute is used to configure the announce timeout value (in us) in
10533  * firmware. This timeout value is only applicable for announced TWT. If
10534  * timeout value is non-zero then firmware waits upto timeout value to use
10535  * data frame as announcement frame. If timeout value is 0 then firmware sends
10536  * explicit QoS NULL frame as announcement frame on SP start. Default value in
10537  * firmware is 0.
10538  * This parameter is used for
10539  * 1. TWT SET Request
10540  */
10541 enum qca_wlan_vendor_attr_twt_setup {
10542 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
10543 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
10544 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
10545 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
10546 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
10547 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
10548 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
10549 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
10550 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
10551 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
10552 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
10553 
10554 	/* TWT Response only attributes */
10555 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
10556 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
10557 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
10558 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
10559 
10560 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
10561 
10562 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
10563 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
10564 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
10565 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
10566 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
10567 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
10568 
10569 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
10570 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
10571 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
10572 
10573 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
10574 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
10575 
10576 	/* keep last */
10577 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
10578 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
10579 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
10580 };
10581 
10582 /**
10583  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
10584  * TWT operation
10585  *
10586  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
10587  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
10588  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
10589  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
10590  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
10591  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
10592  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
10593  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
10594  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
10595  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
10596  * request/response frame
10597  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
10598  * frame
10599  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
10600  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
10601  * unknown reason
10602  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
10603  * suspend state
10604  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
10605  * invalid IE in the received TWT frame
10606  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
10607  * the responder are not in the specified range
10608  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
10609  * session due to request from the responder. Used on the TWT_TERMINATE
10610  * notification from the firmware.
10611  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
10612  * session due to roaming. Used on the TWT_TERMINATE notification from the
10613  * firmware.
10614  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
10615  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
10616  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
10617  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
10618  * request due to roaming in progress.
10619  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
10620  * setup request due to channel switch in progress.
10621  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
10622  * request due to scan in progress.
10623  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
10624  * terminate an existing TWT session on power save exit request from userspace.
10625  * Used on the TWT_TERMINATE notification from the driver/firmware.
10626  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
10627  * required bit in its capabilities.
10628  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
10629  * the TWT required bit(1->0) in its capabilities.
10630  */
10631 enum qca_wlan_vendor_twt_status {
10632 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
10633 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
10634 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
10635 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
10636 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
10637 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
10638 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
10639 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
10640 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
10641 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
10642 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
10643 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
10644 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
10645 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
10646 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
10647 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
10648 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
10649 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
10650 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
10651 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
10652 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
10653 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
10654 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
10655 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
10656 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
10657 };
10658 
10659 /**
10660  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
10661  * TWT (Target Wake Time) resume request. These attributes are sent as part of
10662  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
10663  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10664  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10665  *
10666  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
10667  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
10668  * These attributes are used as the SP offset which is the offset from TSF after
10669  * which the wake happens. The units are in microseconds. Please note that
10670  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
10671  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
10672  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
10673  * will be set to zero.
10674  *
10675  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
10676  * This attribute represents the next TWT subfield size.
10677  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10678  * and 4 for 64 bits.
10679  *
10680  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
10681  * Flow ID is the unique identifier for each TWT session. This attribute
10682  * represents the respective TWT session to resume.
10683  * Flow Id values from 0 to 254 represent a single TWT session
10684  * Flow ID value of 255 represents all TWT sessions.
10685  * If an invalid dialog id is provided, status
10686  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10687  *
10688  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
10689  * Represents the MAC address of the peer to which TWT Resume is
10690  * being sent. This is used in AP mode to represent the respective
10691  * client and is a required parameter. In STA mode, this is an optional
10692  * parameter
10693  *
10694  */
10695 enum qca_wlan_vendor_attr_twt_resume {
10696 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
10697 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
10698 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
10699 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
10700 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
10701 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
10702 
10703 	/* keep last */
10704 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
10705 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
10706 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
10707 };
10708 
10709 /**
10710  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
10711  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
10712  * and resume in a single request. These attributes are sent as part of
10713  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10714  *
10715  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10716  * Flow ID is the unique identifier for each TWT session. This attribute
10717  * represents the respective TWT session to suspend and resume.
10718  *
10719  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10720  * Flow ID is the unique identifier for each TWT session. This attribute
10721  * represents the respective TWT session to suspend and resume.
10722  * Flow Id values from 0 to 254 represent a single TWT session
10723  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
10724  * and response.
10725  * If an invalid dialog id is provided, status
10726  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10727  *
10728  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
10729  * This attribute is used as the SP offset which is the offset from
10730  * TSF after which the wake happens. The units are in microseconds.
10731  *
10732  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
10733  * This attribute represents the next TWT subfield size.
10734  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10735  * and 4 for 64 bits.
10736  *
10737  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
10738  * Represents the MAC address of the peer to which TWT Suspend and Resume is
10739  * being sent. This is used in AP mode to represent the respective
10740  * client and is a required parameter. In STA mode, this is an optional
10741  * parameter.
10742  *
10743  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
10744  * This field contains absolute TSF value of the time at which twt
10745  * sesion will be resumed.
10746  *
10747  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
10748  * This field will be used when device supports Flexible TWT.
10749  * This field contains an offset value by which to shift the starting time
10750  * of the next service period. The value of offset can be negative or positive.
10751  * If provided, this attribute will override
10752  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10753  */
10754 enum qca_wlan_vendor_attr_twt_nudge {
10755 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10756 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10757 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10758 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10759 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10760 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
10761 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
10762 
10763 	/* keep last */
10764 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10765 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10766 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10767 };
10768 
10769 /**
10770  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10771  * TWT (Target Wake Time) get statistics and clear statistics request.
10772  * These attributes are sent as part of
10773  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10774  *
10775  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10776  * Flow ID is the unique identifier for each TWT session. This attribute
10777  * represents the respective TWT session for get and clear TWT statistics.
10778  * Flow Id values from 0 to 254 represent a single TWT session
10779  * Flow ID value of 255 represents all TWT sessions in
10780  * 1) TWT GET STATISTICS request and response
10781  * 2) TWT CLEAR STATISTICS request
10782  *
10783  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10784  * Represents the MAC address of the peer for which TWT Statistics
10785  * is required.
10786  * In AP mode this is used to represent the respective
10787  * client and is a required parameter for
10788  * 1) TWT GET STATISTICS request and response
10789  * 2) TWT CLEAR STATISTICS request and response
10790  * In STA mode, this is an optional parameter.
10791  *
10792  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10793  * This is the duration of the service period in microseconds.
10794  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10795  *
10796  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10797  * Average of actual wake duration observed so far. Unit is microseconds.
10798  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10799  *
10800  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10801  * Number of TWT service period elapsed so far.
10802  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10803  *
10804  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10805  * This is the minimum value of wake duration observed across
10806  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10807  * microseconds.
10808  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10809  *
10810  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10811  * This is the maximum value of wake duration observed across
10812  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10813  * microseconds.
10814  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10815  *
10816  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10817  * Average number of MPDU's transmitted successfully across
10818  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10819  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10820  *
10821  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10822  * Average number of MPDU's received successfully across
10823  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10824  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10825  *
10826  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10827  * Average number of bytes transmitted successfully across
10828  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10829  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10830  *
10831  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
10832  * Average number of bytes received successfully across
10833  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10834  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10835  *
10836  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10837  * Status of the TWT GET STATISTICS request.
10838  * This contains status values in enum qca_wlan_vendor_twt_status
10839  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10840  */
10841 enum qca_wlan_vendor_attr_twt_stats {
10842 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10843 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10844 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10845 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10846 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10847 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10848 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10849 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10850 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10851 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10852 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10853 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10854 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10855 
10856 	/* keep last */
10857 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10858 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10859 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10860 };
10861 
10862 /**
10863  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
10864  * supported by the device and peer.
10865  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10866  *
10867  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10868  * TWT non-scheduling STA. This capability is advertised in the HE
10869  * capability/Extended capabilities information element in the
10870  * Association request frame by the device.
10871  *
10872  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
10873  * by the TWT scheduling AP. This capability is advertised in the extended
10874  * capabilities/HE capabilities information element.
10875  *
10876  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
10877  * for the broadcast TWT functionality. On responder side, this	indicates
10878  * support for the role of broadcast TWT scheduling functionality. This
10879  * capability is advertised in the HE capabilities information element.
10880  *
10881  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
10882  * This capability is advertised in the HE capabilities information element.
10883  *
10884  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10885  * that it mandates the associated HE STAs to support TWT. This capability is
10886  * advertised by AP in the HE Operation Parameters field of the HE operation
10887  * information element.
10888  */
10889 enum qca_wlan_twt_capa {
10890 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10891 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10892 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10893 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
10894 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
10895 
10896 };
10897 
10898 /**
10899  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
10900  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10901  * operation.
10902  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10903  * Represents the MAC address of the peer for which the TWT capabilities
10904  * are being queried. This is used in AP mode to represent the respective
10905  * client. In STA mode, this is an optional parameter.
10906  *
10907  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10908  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10909  * enum qca_wlan_twt_capa.
10910  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10911  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10912  * enum qca_wlan_twt_capa.
10913  */
10914 enum qca_wlan_vendor_attr_twt_capability {
10915 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10916 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10917 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10918 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10919 
10920 	/* keep last */
10921 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10922 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10923 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10924 };
10925 
10926 /**
10927  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10928  * TWT (Target Wake Time) related parameters. It is used when
10929  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10930  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10931  *
10932  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10933  * This attribute configures AC parameters to be used for all TWT
10934  * sessions in AP mode.
10935  * Uses the enum qca_wlan_ac_type values.
10936  */
10937 enum qca_wlan_vendor_attr_twt_set_param {
10938 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10939 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10940 
10941 	/* keep last */
10942 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10943 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10944 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10945 };
10946 
10947 /**
10948  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10949  * the TWT responder
10950  *
10951  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10952  * parameters that are different from TWT requesting STA suggested
10953  * or demanded TWT parameters
10954  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10955  * parameters that are different from TWT requesting STA TWT suggested
10956  * or demanded parameters
10957  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10958  * setup
10959  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10960  * setup.
10961  */
10962 enum qca_wlan_vendor_twt_setup_resp_type {
10963 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10964 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10965 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10966 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10967 };
10968 
10969 /**
10970  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10971  * Represents the setup type being requested for TWT.
10972  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10973  * parameters but relying on AP to fill the parameters during the negotiation.
10974  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10975  * values which the AP may accept or AP may provide alternative parameters
10976  * which the STA may accept.
10977  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10978  * alternate parameters than the requested ones.
10979  */
10980 enum qca_wlan_vendor_twt_setup_req_type {
10981 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10982 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10983 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10984 };
10985 
10986 /**
10987  * enum qca_wlan_throughput_level - Current throughput level
10988  *
10989  * Indicates the current level of throughput calculated by driver. The driver
10990  * may choose different thresholds to decide whether the throughput level is
10991  * low or medium or high based on variety of parameters like physical link
10992  * capacity of current connection, number of pakcets being dispatched per
10993  * second etc. The throughput level events might not be consistent with the
10994  * actual current throughput value being observed.
10995  *
10996  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10997  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10998  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10999  */
11000 enum qca_wlan_throughput_level {
11001 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
11002 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
11003 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
11004 };
11005 
11006 /**
11007  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
11008  * report throughput changes from driver to user space. enum values are used
11009  * for NL attributes sent with
11010  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
11011  */
11012 enum qca_wlan_vendor_attr_throughput_change {
11013 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
11014 	/*
11015 	 * Indicates the direction of throughput in which the change is being
11016 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
11017 	 */
11018 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
11019 
11020 	/*
11021 	 * Indicates the newly observed throughput level.
11022 	 * qca_wlan_throughput_level describes the possible range of values.
11023 	 * u8 attribute.
11024 	 */
11025 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
11026 
11027 	/*
11028 	 * Indicates the driver's guidance on the new value to be set to
11029 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
11030 	 * may optionally include this attribute.
11031 	 */
11032 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
11033 
11034 	/*
11035 	 * Indicates the driver's guidance on the new value to be set to
11036 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
11037 	 * values are from -31 to 31. Driver may optionally include this
11038 	 * attribute.
11039 	 */
11040 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
11041 
11042 	/*
11043 	 * Indicates the driver's guidance on the new value to be set to
11044 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
11045 	 * optionally include this attribute.
11046 	 */
11047 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
11048 
11049 	/* keep last */
11050 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
11051 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
11052 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
11053 };
11054 
11055 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
11056  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
11057  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
11058  */
11059 enum qca_wlan_nan_ext_subcmd_type {
11060 	/* Subcmd of type NAN Enable Request */
11061 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
11062 	/* Subcmd of type NAN Disable Request */
11063 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
11064 };
11065 
11066 /**
11067  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
11068  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
11069  */
11070 enum qca_wlan_vendor_attr_nan_params {
11071 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
11072 	/* Carries NAN command for firmware component. Every vendor command
11073 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
11074 	 * payload containing the NAN command. NLA_BINARY attribute.
11075 	 */
11076 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
11077 	/* Indicates the type of NAN command sent with
11078 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
11079 	 * describes the possible range of values. This attribute is mandatory
11080 	 * if the command being issued is either
11081 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
11082 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
11083 	 */
11084 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
11085 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
11086 	 * band. This attribute is mandatory when command type is
11087 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
11088 	 */
11089 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
11090 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
11091 	 * band. This attribute is optional and should be included when command
11092 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
11093 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
11094 	 */
11095 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
11096 
11097 	/* keep last */
11098 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
11099 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
11100 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
11101 };
11102 
11103 /**
11104  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
11105  * transport modes and is used by attribute
11106  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
11107  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11108  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
11109  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
11110  * data. The data shall be encapsulated within
11111  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
11112  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
11113  */
11114 enum qca_wlan_vendor_cfr_data_transport_modes {
11115 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
11116 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
11117 };
11118 
11119 /**
11120  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
11121  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
11122  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11123  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
11124  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
11125  * with phase
11126  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
11127  */
11128 enum qca_wlan_vendor_cfr_method {
11129 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
11130 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
11131 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
11132 };
11133 
11134 /**
11135  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
11136  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
11137  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
11138  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
11139  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
11140  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
11141  * is provided by one or more of below attributes:
11142  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
11143  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
11144  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
11145  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
11146  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
11147  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
11148  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11149  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
11150  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
11151  */
11152 enum qca_wlan_vendor_cfr_capture_type {
11153 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
11154 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
11155 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
11156 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
11157 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
11158 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
11159 };
11160 
11161 /**
11162  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
11163  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
11164  * Channel Frequency Response capture parameters and enable periodic CFR
11165  * capture.
11166  *
11167  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
11168  * MAC address of peer. This is for CFR version 1 only.
11169  *
11170  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
11171  * Enable peer CFR Capture. This attribute is mandatory to
11172  * enable peer CFR capture. If this attribute is not present,
11173  * peer CFR capture is disabled.
11174  *
11175  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
11176  * BW of measurement, attribute uses the values in enum nl80211_chan_width
11177  * Supported values: 20, 40, 80, 80+80, 160.
11178  * Note that all targets may not support all bandwidths.
11179  * This attribute is mandatory for version 1 if attribute
11180  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11181  *
11182  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
11183  * Periodicity of CFR measurement in msec.
11184  * Periodicity should be a multiple of Base timer.
11185  * Current Base timer value supported is 10 msecs (default).
11186  * 0 for one shot capture.
11187  * This attribute is mandatory for version 1 if attribute
11188  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11189  *
11190  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
11191  * Method used to capture Channel Frequency Response.
11192  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
11193  * This attribute is mandatory for version 1 if attribute
11194  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11195  *
11196  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
11197  * Enable periodic CFR capture.
11198  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
11199  * If this attribute is not present, periodic CFR capture is disabled.
11200  *
11201  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
11202  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
11203  * can't be enabled at same time. This attribute is mandatory if target
11204  * support both versions and use one of them.
11205  *
11206  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
11207  * This attribute is mandatory for version 2 if
11208  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
11209  * Bits 15:0 Bit fields indicating which group to be enabled.
11210  * Bits 31:16 Reserved for future use.
11211  *
11212  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
11213  * CFR capture duration in microsecond. This attribute is mandatory for
11214  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
11215  *
11216  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
11217  * CFR capture interval in microsecond. This attribute is mandatory for
11218  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
11219  *
11220  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
11221  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
11222  * This attribute is mandatory for version 2.
11223  *
11224  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
11225  * Bit fields indicating which user in the current UL MU
11226  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
11227  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
11228  * then the CFR capture will happen for user index 0 in the current
11229  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
11230  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
11231  * This is for CFR version 2 only.
11232  *
11233  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
11234  * Indicates the number of consecutive Rx packets to be skipped
11235  * before CFR capture is enabled again.
11236  * This is for CFR version 2 only.
11237  *
11238  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
11239  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
11240  *
11241  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
11242  * the following GROUP attributes:
11243  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
11244  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
11245  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
11246  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
11247  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
11248  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
11249  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
11250  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
11251  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
11252  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11253  *
11254  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
11255  * Target support multiple groups for some configurations. Group number could be
11256  * any value between 0 and 15. This is for CFR version 2 only.
11257  *
11258  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
11259  * Transmitter address which is used to filter packets, this MAC address takes
11260  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
11261  * This is for CFR version 2 only.
11262  *
11263  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
11264  * Receiver address which is used to filter packets, this MAC address takes
11265  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
11266  * This is for CFR version 2 only.
11267  *
11268  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
11269  * Mask of transmitter address which is used to filter packets.
11270  * This is for CFR version 2 only.
11271  *
11272  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
11273  * Mask of receiver address which is used to filter packets.
11274  * This is for CFR version 2 only.
11275  *
11276  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
11277  * Indicates packets with a specific NSS will be filtered for CFR capture.
11278  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
11279  * be done for packets matching the NSS specified within this bitmask.
11280  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
11281  *     bit 0 : NSS 1
11282  *     bit 1 : NSS 2
11283  *     ...
11284  *     bit 7 : NSS 8
11285  *
11286  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
11287  * Indicates packets with a specific BW will be filtered for CFR capture.
11288  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
11289  * will be done for packets matching the bandwidths specified within this
11290  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
11291  * numerated in enum nl80211_band (although not all bands may be supported
11292  * by a given device).
11293  *
11294  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
11295  * Management packets matching the subtype filter categories will be
11296  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
11297  * represents the corresponding mgmt subtype value as per
11298  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
11299  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
11300  * This is for CFR version 2 only
11301  *
11302  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
11303  * Control packets matching the subtype filter categories will be
11304  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
11305  * represents the corresponding control subtype value as per
11306  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
11307  * This is for CFR version 2 only.
11308  *
11309  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
11310  * Data packets matching the subtype filter categories will be
11311  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
11312  * represents the corresponding data subtype value as per
11313  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
11314  * This is for CFR version 2 only.
11315  *
11316  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
11317  * Userspace can use this attribute to specify the driver about which transport
11318  * mode shall be used by the driver to send CFR data to userspace. Uses values
11319  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
11320  * not present, driver shall choose the default transport mechanism which is
11321  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
11322  *
11323  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
11324  * Userspace can use this attribute to specify the nl port id of the application
11325  * which receives the CFR data and processes it further so that the drivers can
11326  * unicast the NL events to a specific application. Optionally included when
11327  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
11328  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
11329  * shall multicast the netlink events when this attribute is not included.
11330  *
11331  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
11332  * This attribute will be used by the driver to encapsulate and send CFR data
11333  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
11334  * asynchronous event when the driver is configured to send CFR data using NL
11335  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
11336  *
11337  */
11338 enum qca_wlan_vendor_peer_cfr_capture_attr {
11339 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
11340 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
11341 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
11342 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
11343 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
11344 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
11345 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
11346 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
11347 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
11348 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
11349 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
11350 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
11351 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
11352 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
11353 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
11354 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
11355 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
11356 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
11357 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
11358 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
11359 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
11360 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
11361 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
11362 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
11363 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
11364 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
11365 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
11366 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
11367 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
11368 
11369 	/* Keep last */
11370 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
11371 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
11372 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
11373 };
11374 
11375 /**
11376  * enum qca_coex_config_profiles - This enum defines different types of
11377  * traffic streams that can be prioritized one over the other during coex
11378  * scenarios.
11379  * The types defined in this enum are categorized in the below manner.
11380  * 0 - 31 values corresponds to WLAN
11381  * 32 - 63 values corresponds to BT
11382  * 64 - 95 values corresponds to Zigbee
11383  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
11384  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
11385  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
11386  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
11387  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
11388  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
11389  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
11390  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
11391  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
11392  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
11393  * @QCA_BT_A2DP: Prioritize BT A2DP
11394  * @QCA_BT_BLE: Prioritize BT BLE
11395  * @QCA_BT_SCO: Prioritize BT SCO
11396  * @QCA_ZB_LOW: Prioritize Zigbee Low
11397  * @QCA_ZB_HIGH: Prioritize Zigbee High
11398  */
11399 enum qca_coex_config_profiles {
11400 	/* 0 - 31 corresponds to WLAN */
11401 	QCA_WIFI_STA_DISCOVERY = 0,
11402 	QCA_WIFI_STA_CONNECTION = 1,
11403 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
11404 	QCA_WIFI_STA_DATA = 3,
11405 	QCA_WIFI_STA_ALL = 4,
11406 	QCA_WIFI_SAP_DISCOVERY = 5,
11407 	QCA_WIFI_SAP_CONNECTION = 6,
11408 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
11409 	QCA_WIFI_SAP_DATA = 8,
11410 	QCA_WIFI_SAP_ALL = 9,
11411 	QCA_WIFI_CASE_MAX = 31,
11412 	/* 32 - 63 corresponds to BT */
11413 	QCA_BT_A2DP = 32,
11414 	QCA_BT_BLE = 33,
11415 	QCA_BT_SCO = 34,
11416 	QCA_BT_CASE_MAX = 63,
11417 	/* 64 - 95 corresponds to Zigbee */
11418 	QCA_ZB_LOW = 64,
11419 	QCA_ZB_HIGH = 65,
11420 	QCA_ZB_CASE_MAX = 95,
11421 	/* 0xff is default value if the u8 profile value is not set. */
11422 	QCA_PROFILE_DEFAULT_VALUE = 255
11423 };
11424 
11425 /**
11426  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
11427  * This enum defines the valid set of values of coex configuration types. These
11428  * values may used by attribute
11429  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
11430  *
11431  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
11432  *	weights to default values.
11433  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
11434  *	weights with configurability value.
11435  */
11436 enum qca_vendor_attr_coex_config_types {
11437 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11438 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
11439 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
11440 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
11441 };
11442 
11443 /**
11444  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
11445  * attributes
11446  * Attributes for data used by
11447  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
11448  *
11449  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
11450  * Indicate config type.
11451  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
11452  *
11453  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
11454  *	Indicate the Priority 1 profiles.
11455  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11456  *	In same priority level, maximum to 4 profiles can be set here.
11457  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
11458  *	Indicate the Priority 2 profiles.
11459  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11460  *	In same priority level, maximum to 4 profiles can be set here.
11461  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
11462  *	Indicate the Priority 3 profiles.
11463  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11464  *	In same priority level, maximum to 4 profiles can be set here.
11465  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
11466  *	Indicate the Priority 4 profiles.
11467  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11468  *	In same priority level, maximum to 4 profiles can be set here.
11469  * NOTE:
11470  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
11471  * arrangement:
11472  *	1: In the same u32 attribute(priority x), the profiles enum values own
11473  *	same priority level.
11474  *	2: 0xff is default value if the u8 profile value is not set.
11475  *	3: max to 4 rules/profiles in same priority level.
11476  *	4: max to 4 priority level (priority 1 - priority 4)
11477  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
11478  *	hybrid rules not support.
11479  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
11480  *	remain blank to reset all parameters.
11481  * For example:
11482  *
11483  *	If the attributes as follow:
11484  *	priority 1:
11485  *	------------------------------------
11486  *	|  0xff  |    0   |   1   |    2   |
11487  *	------------------------------------
11488  *	priority 2:
11489  *	-------------------------------------
11490  *	|  0xff  |  0xff  |  0xff  |   32   |
11491  *	-------------------------------------
11492  *	priority 3:
11493  *	-------------------------------------
11494  *	|  0xff  |  0xff  |  0xff  |   65   |
11495  *	-------------------------------------
11496  *	then it means:
11497  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11498  *		owns same priority level.
11499  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11500  *		has priority over BT_A2DP and ZB_HIGH.
11501  *	3: BT_A2DP has priority over ZB_HIGH.
11502  */
11503 
11504 enum qca_vendor_attr_coex_config_three_way {
11505 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
11506 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
11507 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
11508 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
11509 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
11510 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
11511 
11512 	/* Keep last */
11513 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
11514 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
11515 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
11516 };
11517 
11518 /**
11519  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
11520  * This enum defines the valid set of values of peer stats cache types. These
11521  * values are used by attribute
11522  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
11523  *
11524  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
11525  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
11526  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
11527  * statistics
11528  */
11529 enum qca_vendor_attr_peer_stats_cache_type {
11530 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
11531 
11532 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
11533 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
11534 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
11535 };
11536 
11537 /**
11538  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
11539  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
11540  * Attributes are required to flush peer rate statistics from driver to
11541  * user application.
11542  *
11543  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
11544  * Indicate peer stats cache type.
11545  * The statistics types are 32-bit values from
11546  * qca_vendor_attr_peer_stats_cache_type
11547  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
11548  * of size 6, representing peer mac address.
11549  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
11550  * containing buffer of statistics to send event to application layer entity.
11551  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
11552  * representing cookie for peer unique session.
11553  */
11554 enum qca_wlan_vendor_attr_peer_stats_cache_params {
11555 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
11556 
11557 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
11558 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
11559 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
11560 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
11561 
11562 	/* Keep last */
11563 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
11564 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
11565 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
11566 };
11567 
11568 /**
11569  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
11570  * this enum defines all the possible state of zigbee, which can be
11571  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
11572  *
11573  * @ZIGBEE_IDLE: zigbee in idle state
11574  * @ZIGBEE_FORM_NETWORK: zibee forming network
11575  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
11576  * @ZIGBEE_JOIN: zigbee joining network
11577  * @ZIGBEE_NETWORK_UP: zigbee network is up
11578  * @ZIGBEE_HMI: zigbee in HMI mode
11579  */
11580 enum qca_mpta_helper_attr_zigbee_state {
11581 	ZIGBEE_IDLE = 0,
11582 	ZIGBEE_FORM_NETWORK = 1,
11583 	ZIGBEE_WAIT_JOIN = 2,
11584 	ZIGBEE_JOIN = 3,
11585 	ZIGBEE_NETWORK_UP = 4,
11586 	ZIGBEE_HMI = 5,
11587 };
11588 
11589 /**
11590  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
11591  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
11592  */
11593 enum qca_mpta_helper_vendor_attr {
11594 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
11595 	/* Optional attribute used to update zigbee state.
11596 	 * enum qca_mpta_helper_attr_zigbee_state.
11597 	 * NLA_U32 attribute.
11598 	 */
11599 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
11600 	/* Optional attribute used to configure wlan duration for Shape-OCS
11601 	 * during interrupt.
11602 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
11603 	 * Value range 0 ~ 300 (ms).
11604 	 * NLA_U32 attribute.
11605 	 */
11606 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
11607 	/* Optional attribute used to configure non wlan duration for Shape-OCS
11608 	 * during interrupt.
11609 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
11610 	 * Value range 0 ~ 300 (ms).
11611 	 * NLA_U32 attribute.
11612 	 */
11613 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
11614 	/* Optional attribute used to configure wlan duration for Shape-OCS
11615 	 * monitor period.
11616 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
11617 	 * Value range 0 ~ 300 (ms)
11618 	 * NLA_U32 attribute
11619 	 */
11620 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
11621 	/* Optional attribute used to configure non wlan duration for Shape-OCS
11622 	 * monitor period.
11623 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
11624 	 * Value range 0 ~ 300 (ms)
11625 	 * NLA_U32 attribute
11626 	 */
11627 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
11628 	/* Optional attribute used to configure ocs interrupt duration.
11629 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
11630 	 * Value range 1000 ~ 20000 (ms)
11631 	 * NLA_U32 attribute
11632 	 */
11633 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
11634 	/* Optional attribute used to configure ocs monitor duration.
11635 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
11636 	 * Value range 1000 ~ 20000 (ms)
11637 	 * NLA_U32 attribute
11638 	 */
11639 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
11640 	/* Optional attribute used to notify wlan FW current zigbee channel.
11641 	 * Value range 11 ~ 26
11642 	 * NLA_U32 attribute
11643 	 */
11644 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
11645 	/* Optional attribute used to configure wlan mute duration.
11646 	 * Value range 0 ~ 400 (ms)
11647 	 * NLA_U32 attribute
11648 	 */
11649 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
11650 
11651 	/* keep last */
11652 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
11653 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
11654 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
11655 };
11656 
11657 /**
11658  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
11659  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
11660  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
11661  *
11662  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
11663  * to request the driver to start reporting Beacon frames.
11664  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
11665  * to request the driver to stop reporting Beacon frames.
11666  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
11667  * userspace to report received Beacon frames.
11668  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
11669  * to indicate that the driver is going to pause reporting Beacon frames.
11670  */
11671 enum qca_wlan_vendor_beacon_reporting_op_types {
11672 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
11673 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
11674 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
11675 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
11676 };
11677 
11678 /**
11679  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
11680  * types of reasons for which the driver is pausing reporting Beacon frames.
11681  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
11682  *
11683  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
11684  * reasons.
11685  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
11686  * driver/firmware is starting a scan.
11687  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
11688  * driver/firmware disconnects from the ESS and indicates the disconnection to
11689  * userspace (non-seamless roaming case). This reason code will be used by the
11690  * driver/firmware to indicate stopping of beacon report events. Userspace
11691  * will need to start beacon reporting again (if desired) by sending vendor
11692  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
11693  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
11694  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
11695  * completed.
11696  */
11697 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
11698 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
11699 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
11700 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
11701 };
11702 
11703 /*
11704  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
11705  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
11706  */
11707 enum qca_wlan_vendor_attr_beacon_reporting_params {
11708 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
11709 	/* Specifies the type of operation that the vendor command/event is
11710 	 * intended for. Possible values for this attribute are defined in
11711 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
11712 	 */
11713 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
11714 	/* Optionally set by userspace to request the driver to report Beacon
11715 	 * frames using asynchronous vendor events when the
11716 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11717 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11718 	 * If this flag is not set, the driver will only update Beacon frames
11719 	 * in cfg80211 scan cache but not send any vendor events.
11720 	 */
11721 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
11722 	/* Optionally used by userspace to request the driver/firmware to
11723 	 * report Beacon frames periodically when the
11724 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11725 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
11726 	 * u32 attribute, indicates the period of Beacon frames to be reported
11727 	 * and in the units of beacon interval.
11728 	 * If this attribute is missing in the command, then the default value
11729 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
11730 	 * Zero is an invalid value.
11731 	 * If a valid value is received for this attribute, the driver will
11732 	 * update the cfg80211 scan cache periodically as per the value
11733 	 * received in this attribute in addition to updating the cfg80211 scan
11734 	 * cache when there is significant change in Beacon frame IEs.
11735 	 */
11736 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
11737 	/* Used by the driver to encapsulate the SSID when the
11738 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11739 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11740 	 * u8 array with a maximum size of 32.
11741 	 *
11742 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
11743 	 * will be taken from the SSID element of the received Beacon frame.
11744 	 *
11745 	 * When generating beacon report from Multiple BSSID Beacon frame and
11746 	 * if the BSSID of the current connected BSS matches the BSSID of the
11747 	 * transmitting BSS, the SSID will be taken from the SSID element of
11748 	 * the received Beacon frame.
11749 	 *
11750 	 * When generating beacon report from Multiple BSSID Beacon frame and
11751 	 * if the BSSID of the current connected BSS matches the BSSID of one
11752 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
11753 	 * field included in the nontransmitted BSS profile whose derived BSSI
11754 	 * is same as the BSSID of the current connected BSS. When there is no
11755 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11756 	 * of current connected* BSS, this attribute will not be present.
11757 	 */
11758 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11759 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
11760 	 * is currently connected to when the
11761 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11762 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11763 	 * fixed size of 6 bytes.
11764 	 *
11765 	 * When generating beacon report from a Multiple BSSID beacon and the
11766 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
11767 	 * a Multiple BSSID set, this BSSID will be that particular
11768 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
11769 	 * transmitting address of the Beacon frame).
11770 	 */
11771 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11772 	/* Used by the driver to encapsulate the frequency in MHz on which
11773 	 * the Beacon frame was received when the
11774 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11775 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11776 	 * u32 attribute.
11777 	 */
11778 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11779 	/* Used by the driver to encapsulate the Beacon interval
11780 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11781 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11782 	 * u16 attribute. The value will be copied from the Beacon frame and
11783 	 * the units are TUs.
11784 	 */
11785 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11786 	/* Used by the driver to encapsulate the Timestamp field from the
11787 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
11788 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11789 	 * u64 attribute.
11790 	 */
11791 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11792 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11793 	 * Beacon frame is received in the driver when the
11794 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11795 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11796 	 * the units of nanoseconds. This value is expected to have accuracy of
11797 	 * about 10 ms.
11798 	 */
11799 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11800 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
11801 	 * which this event is generated when the
11802 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11803 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11804 	 */
11805 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11806 	/* Used by the driver to specify the reason for the driver/firmware to
11807 	 * pause sending beacons to userspace when the
11808 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11809 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11810 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11811 	 * attribute.
11812 	 */
11813 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11814 	/* Used by the driver to specify whether the driver will automatically
11815 	 * resume reporting beacon events to userspace later (for example after
11816 	 * the ongoing off-channel activity is completed etc.) when the
11817 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11818 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11819 	 */
11820 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11821 	/* Optionally set by userspace to request the driver not to resume
11822 	 * beacon reporting after a pause is completed, when the
11823 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11824 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11825 	 * If this flag is set, the driver will not resume beacon reporting
11826 	 * after any pause in beacon reporting is completed. Userspace has to
11827 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11828 	 * to initiate beacon reporting again. If this flag is set in the recent
11829 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11830 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11831 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11832 	 * set by the driver. Setting this flag until and unless there is a
11833 	 * specific need is not recommended as there is a chance of some beacons
11834 	 * received after pause command and next start command being not
11835 	 * reported.
11836 	 */
11837 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
11838 
11839 	/* Keep last */
11840 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11841 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11842 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11843 };
11844 
11845 /**
11846  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11847  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11848  *
11849  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11850  * a virtual device.
11851  *
11852  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11853  * a physical device.
11854  */
11855 enum qca_vendor_oem_device_type {
11856 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11857 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11858 };
11859 
11860 /*
11861  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
11862  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11863  *
11864  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11865  * used to set/query the data to/from the firmware. On query, the same
11866  * attribute is used to carry the respective data in the reply sent by the
11867  * driver to userspace. The request to set/query the data and the format of the
11868  * respective data from the firmware are embedded in the attribute. The
11869  * maximum size of the attribute payload is 1024 bytes.
11870  *
11871  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11872  * based on this field. This optional attribute is included to specify whether
11873  * the device type is a virtual device or a physical device for the command.
11874  * This attribute can be omitted for a virtual device (default) command.
11875  * This u8 attribute is used to carry information for the device type using
11876  * values defined by enum qca_vendor_oem_device_type.
11877  *
11878  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11879  * attribute when the data is queried from the firmware.
11880  *
11881  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11882  * is set when the userspace queries data from the firmware. This attribute
11883  * should not be set when userspace sets the OEM data to the firmware.
11884  */
11885 enum qca_wlan_vendor_attr_oem_data_params {
11886 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11887 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11888 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
11889 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
11890 
11891 	/* keep last */
11892 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11893 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11894 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11895 };
11896 
11897 /**
11898  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11899  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11900  *
11901  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11902  * Nested attribute containing multiple ranges with following attributes:
11903  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11904  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11905  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
11906  *
11907  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11908  * Starting center frequency in MHz.
11909  *
11910  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11911  * Ending center frequency in MHz.
11912  *
11913  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11914  * s32 attribute, optional. It is a per frequency range attribute.
11915  * The maximum TX power limit from user space is to be applied on an
11916  * unrestricted interface for corresponding frequency range. It is also
11917  * possible that the actual TX power may be even lower than this cap due to
11918  * other considerations such as regulatory compliance, SAR, etc. In absence of
11919  * this attribute the driver shall follow current behavior which means
11920  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11921  * power derived by the driver based on regulatory/SAR during interface up.
11922  *
11923  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11924  * u32 attribute, optional. Indicates all the interface types which are
11925  * restricted for all frequency ranges provided in
11926  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11927  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11928  * This attribute encapsulates bitmasks of interface types defined in
11929  * enum nl80211_iftype. If an interface is marked as restricted the driver must
11930  * move to a safe channel and if no safe channel is available the driver shall
11931  * terminate that interface functionality. In absence of this attribute,
11932  * interface (SAP/P2P) can still continue operating on an unsafe channel with
11933  * TX power limit derived from either
11934  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11935  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11936  * is not provided.
11937  */
11938 enum qca_wlan_vendor_attr_avoid_frequency_ext {
11939 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11940 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11941 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11942 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
11943 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11944 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
11945 
11946 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11947 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11948 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11949 };
11950 
11951 /*
11952  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11953  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11954  */
11955 enum qca_wlan_vendor_attr_add_sta_node_params {
11956 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11957 	/* 6 byte MAC address of STA */
11958 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11959 	/* Authentication algorithm used by the station of size u16;
11960 	 * defined in enum nl80211_auth_type.
11961 	 */
11962 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11963 
11964 	/* keep last */
11965 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11966 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11967 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11968 };
11969 
11970 /**
11971  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11972  * This enum defines the valid set of values of BT coex chain mode.
11973  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11974  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11975  *
11976  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11977  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11978  * separated, hybrid mode.
11979  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11980  * separated, fixed FDD mode.
11981  */
11982 enum qca_btc_chain_mode {
11983 	QCA_BTC_CHAIN_SHARED = 0,
11984 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11985 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
11986 };
11987 
11988 /* deprecated legacy name */
11989 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11990 
11991 /**
11992  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11993  * chain mode.
11994  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11995  *
11996  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11997  * Indicates the BT coex chain mode, are 32-bit values from
11998  * enum qca_btc_chain_mode. This attribute is mandatory.
11999  *
12000  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
12001  * If set, vdev should be restarted when BT coex chain mode is updated.
12002  * This attribute is optional.
12003  */
12004 enum qca_vendor_attr_btc_chain_mode {
12005 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
12006 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
12007 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
12008 
12009 	/* Keep last */
12010 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
12011 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
12012 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
12013 };
12014 
12015 /**
12016  * enum qca_vendor_wlan_sta_flags - Station feature flags
12017  * Bits will be set to 1 if the corresponding features are enabled.
12018  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
12019  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
12020     for the station
12021  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
12022     for the station
12023  */
12024 enum qca_vendor_wlan_sta_flags {
12025 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
12026 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
12027 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
12028 };
12029 
12030 /**
12031  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
12032  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
12033  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
12034  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
12035  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
12036  */
12037 enum qca_vendor_wlan_sta_guard_interval {
12038 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
12039 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
12040 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
12041 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
12042 };
12043 
12044 /**
12045  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
12046  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
12047  *
12048  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
12049  * Required attribute in request for AP mode only, 6-byte MAC address,
12050  * corresponding to the station's MAC address for which information is
12051  * requested. For STA mode this is not required as the info always correspond
12052  * to the self STA and the current/last association.
12053  *
12054  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
12055  * Optionally used in response, u32 attribute, contains a bitmap of different
12056  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
12057  *
12058  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
12059  * Optionally used in response, u32 attribute, possible values are defined in
12060  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
12061  * Guard interval used by the station.
12062  *
12063  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
12064  * Optionally used in response, u32 attribute, used in AP mode only.
12065  * Value indicates the number of data frames received from station with retry
12066  * bit set to 1 in FC.
12067  *
12068  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
12069  * Optionally used in response, u32 attribute, used in AP mode only.
12070  * Counter for number of data frames with broadcast or multicast address in
12071  * the destination address received from the station.
12072  *
12073  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
12074  * Optionally used in response, u32 attribute, used in both STA and AP modes.
12075  * Value indicates the number of data frames successfully transmitted only
12076  * after retrying the packets and for which the TX status has been updated
12077  * back to host from target.
12078  *
12079  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
12080  * Optionally used in response, u32 attribute, used in both STA and AP mode.
12081  * Value indicates the number of data frames not transmitted successfully even
12082  * after retrying the packets for the number of times equal to the total number
12083  * of retries allowed for that packet and for which the TX status has been
12084  * updated back to host from target.
12085  *
12086  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
12087  * Optionally used in response, u32 attribute, used in AP mode only.
12088  * Counter in the target for the number of data frames successfully transmitted
12089  * to the station.
12090  *
12091  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
12092  * Optionally used in response, u32 attribute, used in AP mode only.
12093  * Value indicates the number of data frames successfully transmitted only
12094  * after retrying the packets.
12095  *
12096  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
12097  * Optionally used in response, u32 attribute, used in both STA & AP mode.
12098  * Value indicates the number of data frames not transmitted successfully even
12099  * after retrying the packets for the number of times equal to the total number
12100  * of retries allowed for that packet.
12101  *
12102  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
12103  * the STA mode only. Represent the number of probe requests sent by the STA
12104  * while attempting to roam on missing certain number of beacons from the
12105  * connected AP. If queried in the disconnected state, this represents the
12106  * count for the last connected state.
12107  *
12108  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
12109  * the STA mode. Represent the number of probe responses received by the station
12110  * while attempting to roam on missing certain number of beacons from the
12111  * connected AP. When queried in the disconnected state, this represents the
12112  * count when in last connected state.
12113  *
12114  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
12115  * STA mode only. Represents the total number of frames sent out by STA
12116  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
12117  * only for the connect session. Represents the count of last connected session,
12118  * when queried in the disconnected state.
12119  *
12120  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
12121  * Total number of RTS sent out by the STA. This data is maintained per connect
12122  * session. Represents the count of last connected session, when queried in the
12123  * disconnected state.
12124  *
12125  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
12126  * STA mode.Represent the number of RTS transmission failure that reach retry
12127  * limit. This data is maintained per connect session. Represents the count of
12128  * last connected session, when queried in the disconnected state.
12129  *
12130  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
12131  * the STA mode. Represent the total number of non aggregated frames transmitted
12132  * by the STA. This data is maintained per connect session. Represents the count
12133  * of last connected session, when queried in the disconnected state.
12134  *
12135  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
12136  * STA mode. Represent the total number of aggregated frames transmitted by the
12137  * STA. This data is maintained per connect session. Represents the count of
12138  * last connected session, when queried in the disconnected state.
12139  *
12140  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
12141  * the STA mode. Represents the number of received frames with a good PLCP. This
12142  * data is maintained per connect session. Represents the count of last
12143  * connected session, when queried in the disconnected state.
12144  *
12145  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
12146  * used in the STA mode. Represents the number of occasions that no valid
12147  * delimiter is detected by A-MPDU parser. This data is maintained per connect
12148  * session. Represents the count of last connected session, when queried in the
12149  * disconnected state.
12150  *
12151  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
12152  * STA mode. Represents the number of frames for which CRC check failed in the
12153  * MAC. This data is maintained per connect session. Represents the count of
12154  * last connected session, when queried in the disconnected state.
12155  *
12156  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
12157  * STA mode. Represents the number of unicast ACKs received with good FCS. This
12158  * data is maintained per connect session. Represents the count of last
12159  * connected session, when queried in the disconnected state.
12160  *
12161  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
12162  * mode. Represents the number of received Block Acks. This data is maintained
12163  * per connect session. Represents the count of last connected session, when
12164  * queried in the disconnected state.
12165  *
12166  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
12167  * mode. Represents the number of beacons received from the connected BSS. This
12168  * data is maintained per connect session. Represents the count of last
12169  * connected session, when queried in the disconnected state.
12170  *
12171  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
12172  * STA mode. Represents the number of beacons received by the other BSS when in
12173  * connected state (through the probes done by the STA). This data is maintained
12174  * per connect session. Represents the count of last connected session, when
12175  * queried in the disconnected state.
12176  *
12177  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
12178  * the STA mode. Represents the number of received DATA frames with good FCS and
12179  * matching Receiver Address when in connected state. This data is maintained
12180  * per connect session. Represents the count of last connected session, when
12181  * queried in the disconnected state.
12182  *
12183  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
12184  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
12185  * when in the connected state. This data is maintained per connect session.
12186  * Represents the count of last connected session, when queried in the
12187  * disconnected state.
12188  *
12189  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
12190  * STA mode. This represents the target power in dBm for the transmissions done
12191  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
12192  * connect session. Represents the count of last connected session, when
12193  * queried in the disconnected state.
12194  *
12195  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
12196  * STA mode. This represents the Target power in dBm for transmissions done to
12197  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12198  * session. Represents the count of last connected session, when queried in the
12199  * disconnected state.
12200  *
12201  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
12202  * STA mode. This represents the Target power in dBm for transmissions done to
12203  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
12204  * Represents the count of last connected session, when queried in the
12205  * disconnected state.
12206  *
12207  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
12208  * STA mode. This represents the Target power in dBm for transmissions done to
12209  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12210  * session. Represents the count of last connected session, when queried in
12211  * the disconnected state.
12212  *
12213  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
12214  * STA mode. This represents the Target power in dBm for for transmissions done
12215  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
12216  * Represents the count of last connected session, when queried in the
12217  * disconnected state.
12218  *
12219  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
12220  * in the STA mode. This represents the Nested attribute representing the
12221  * overflow counts of each receive buffer allocated to the hardware during the
12222  * STA's connection. The number of hw buffers might vary for each WLAN
12223  * solution and hence this attribute represents the nested array of all such
12224  * HW buffer count. This data is maintained per connect session. Represents
12225  * the count of last connected session, when queried in the disconnected state.
12226  *
12227  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
12228  * allowed as per the regulatory requirements for the current or last connected
12229  * session. Used in the STA mode.
12230  *
12231  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
12232  * (dBm) used by the station in its latest unicast frame while communicating
12233  * to the AP in the connected state. When queried in the disconnected state,
12234  * this represents the TX power used by the STA with last AP communication
12235  * when in connected state.
12236  *
12237  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
12238  * level used to adjust the RX sensitivity. Represents the current ANI level
12239  * when queried in the connected state. When queried in the disconnected
12240  * state, this corresponds to the latest ANI level at the instance of
12241  * disconnection.
12242  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
12243  * only. This represents the number of group addressed robust management frames
12244  * received from this station with an invalid MIC or a missing MME when PMF is
12245  * enabled.
12246  *
12247  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
12248  * only. This represents the number of group addressed robust management frames
12249  * received from this station with the packet number less than or equal to the
12250  * last received packet number when PMF is enabled.
12251  *
12252  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
12253  * mode only. This represents the number of Beacon frames received from this
12254  * station with an invalid MIC or a missing MME when beacon protection is
12255  * enabled.
12256  *
12257  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
12258  * only. This represents number of Beacon frames received from this station with
12259  * the packet number less than or equal to the last received packet number when
12260  * beacon protection is enabled.
12261  *
12262  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
12263  * STA mode only. Driver uses this attribute to populate the connection failure
12264  * reason codes and the values are defined in
12265  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
12266  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
12267  * connection failure from driver. The driver shall not include this attribute
12268  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
12269  * connection failure observed in the last attempted connection.
12270  *
12271  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
12272  * used by the station in its last TX frame while communicating to the AP in the
12273  * connected state. When queried in the disconnected state, this represents the
12274  * rate used by the STA in the last TX frame to the AP when it was connected.
12275  * This attribute is used for STA mode only.
12276  *
12277  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
12278  * This represents the rate index used by the STA for the last TX frame to the
12279  * AP. When queried in the disconnected state, this gives the last RIX used by
12280  * the STA in the last TX frame to the AP when it was connected.
12281  *
12282  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
12283  * mode only. This represents the number of times the STA TSF goes out of sync
12284  * from the AP after the connection. If queried in the disconnected state, this
12285  * gives the count of TSF out of sync for the last connection.
12286  *
12287  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
12288  * mode only. This represents the roam trigger reason for the last roaming
12289  * attempted by the firmware. This can be queried either in connected state or
12290  * disconnected state. Each bit of this attribute represents the different
12291  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
12292  *
12293  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
12294  * only. This represents the roam fail reason for the last failed roaming
12295  * attempt by the firmware. Different roam failure reason codes are specified
12296  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
12297  * connected state or disconnected state.
12298  *
12299  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
12300  * STA mode only. This represents the roam invoke fail reason for the last
12301  * failed roam invoke. Different roam invoke failure reason codes
12302  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
12303  * queried either in connected state or disconnected state.
12304  *
12305  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
12306  * This represents the average congestion duration of uplink frames in MAC
12307  * queue in unit of ms. This can be queried either in connected state or
12308  * disconnected state.
12309  *
12310  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
12311  * attribute, used in AP mode. This represents the MPDU packet count per MCS
12312  * rate value of TX packets. Every index of this nested attribute corresponds
12313  * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
12314  * queried in connected state.
12315  *
12316  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
12317  * attribute, used in AP mode. This represents the MPDU packet count per MCS
12318  * rate value of RX packets. Every index of this nested attribute corresponds
12319  * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
12320  * queried in connected state.
12321  */
12322 enum qca_wlan_vendor_attr_get_sta_info {
12323 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
12324 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
12325 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
12326 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
12327 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
12328 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
12329 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
12330 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
12331 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
12332 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
12333 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
12334 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
12335 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
12336 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
12337 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
12338 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
12339 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
12340 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
12341 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
12342 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
12343 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
12344 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
12345 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
12346 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
12347 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
12348 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
12349 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
12350 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
12351 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
12352 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
12353 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
12354 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
12355 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
12356 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
12357 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
12358 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
12359 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
12360 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
12361 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
12362 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
12363 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
12364 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
12365 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
12366 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
12367 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
12368 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
12369 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
12370 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
12371 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
12372 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
12373 
12374 	/* keep last */
12375 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
12376 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
12377 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
12378 };
12379 
12380 /**
12381  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
12382  * Used when the driver triggers the STA to disconnect from the AP.
12383  *
12384  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
12385  * disconnection with the AP due to unspecified reasons.
12386  *
12387  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
12388  * disconnection with the AP due to a roaming failure. This roaming is triggered
12389  * internally (host driver/firmware).
12390  *
12391  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
12392  * the AP when the user/external triggered roaming fails.
12393  *
12394  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
12395  * by the host driver whenever gateway reachability failure is detected and the
12396  * driver disconnects with AP.
12397  *
12398  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
12399  * the AP on a channel switch announcement from it with an unsupported channel.
12400  *
12401  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
12402  * with indoor channels disabled and if the STA is connected on one of these
12403  * disabled channels, the host driver disconnected the STA with this reason
12404  * code.
12405  *
12406  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
12407  * explicit request from the user to disable the current operating channel.
12408  *
12409  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
12410  * the internal host driver/firmware recovery.
12411  *
12412  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
12413  * a timeout for the key installations from the user space.
12414  *
12415  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
12416  * STA on a band change request from the user space to a different band from the
12417  * current operation channel/band.
12418  *
12419  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
12420  * interface down trigger from the user space.
12421  *
12422  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
12423  * STA on getting continuous transmission failures for multiple Data frames.
12424  *
12425  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
12426  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
12427  * represents inactivity from AP on such transmissions.
12428 
12429  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
12430  * disconnection when SA Query times out (AP does not respond to SA Query).
12431  *
12432  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
12433  * STA on missing the beacons continuously from the AP.
12434  *
12435  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
12436  * able to move to the channel mentioned by the AP in CSA.
12437  *
12438  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
12439  */
12440 enum qca_disconnect_reason_codes {
12441 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
12442 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
12443 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
12444 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
12445 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
12446 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
12447 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
12448 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
12449 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
12450 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
12451 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
12452 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
12453 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
12454 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
12455 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
12456 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
12457 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
12458 };
12459 
12460 /**
12461  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
12462  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
12463  *
12464  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
12465  * This attribute represents the driver specific reason codes (local
12466  * driver/firmware initiated reasons for disconnection) defined
12467  * in enum qca_disconnect_reason_codes.
12468  */
12469 enum qca_wlan_vendor_attr_driver_disconnect_reason {
12470 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
12471 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
12472 
12473 	/* keep last */
12474 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
12475 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
12476 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
12477 };
12478 
12479 /**
12480  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
12481  *
12482  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
12483  */
12484 enum qca_wlan_tspec_operation {
12485 	QCA_WLAN_TSPEC_ADD = 0,
12486 	QCA_WLAN_TSPEC_DEL = 1,
12487 	QCA_WLAN_TSPEC_GET = 2,
12488 };
12489 
12490 /**
12491  * enum qca_wlan_tspec_direction - Direction in TSPEC
12492  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
12493  *
12494  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
12495  */
12496 enum qca_wlan_tspec_direction {
12497 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
12498 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
12499 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
12500 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
12501 };
12502 
12503 /**
12504  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
12505  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
12506  *
12507  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
12508  */
12509 enum qca_wlan_tspec_ack_policy {
12510 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
12511 	QCA_WLAN_TSPEC_NO_ACK = 1,
12512 	/* Reserved */
12513 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
12514 };
12515 
12516 /**
12517  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
12518  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
12519  *
12520  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
12521  * u8 attribute. Specify the TSPEC operation of this request. Possible values
12522  * are defined in enum qca_wlan_tspec_operation.
12523  * Mandatory attribute for all kinds of config TSPEC requests.
12524  *
12525  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
12526  * u8 attribute. TS ID. Possible values are 0-7.
12527  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
12528  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
12529  *
12530  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
12531  * u8 attribute. Direction of data carried by the TS. Possible values are
12532  * defined in enum qca_wlan_tspec_direction.
12533  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12534  *
12535  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
12536  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
12537  * with the TS. set - enabled, not set - disabled.
12538  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12539  *
12540  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
12541  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
12542  * belonging to this TS. Possible values are 0-7.
12543  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12544  *
12545  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
12546  * u8 attribute. Indicate whether MAC acknowledgements are required for
12547  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
12548  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
12549  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12550  *
12551  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
12552  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
12553  * belonging to this TS.
12554  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12555  *
12556  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
12557  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
12558  * belonging to this TS.
12559  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12560  *
12561  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
12562  * u32 attribute. Specify the minimum interval in microseconds between the
12563  * start of two successive SPs.
12564  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12565  *
12566  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
12567  * u32 attribute. Specify the maximum interval in microseconds between the
12568  * start of two successive SPs.
12569  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12570  *
12571  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
12572  * u32 attribute. Specify the minimum interval in microseconds that can elapse
12573  * without arrival or transfer of an MPDU belonging to the TS before this TS
12574  * is deleted by the MAC entity at the HC.
12575  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12576  *
12577  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
12578  * u32 attribute. Specify the minimum interval in microseconds that can elapse
12579  * without arrival or transfer of an MSDU belonging to the TS before the
12580  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
12581  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
12582  * interval is always less than or equal to the inactivity interval.
12583  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12584  *
12585  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
12586  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
12587  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12588  * bounds of this TSPEC.
12589  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12590  *
12591  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
12592  * u32 attribute. Indicate the average data rate in bps specified at the MAC
12593  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12594  * bounds of this TSPEC.
12595  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12596  *
12597  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
12598  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
12599  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
12600  * the bounds of this TSPEC.
12601  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12602  *
12603  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
12604  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
12605  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
12606  * value of 0 indicates that there are no bursts.
12607  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12608  *
12609  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
12610  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
12611  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
12612  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12613  *
12614  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
12615  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
12616  * and above the stated application rates required to transport an MSDU/A-MSDU
12617  * belonging to the TS in this TSPEC.
12618  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12619  */
12620 enum qca_wlan_vendor_attr_config_tspec {
12621 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
12622 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
12623 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
12624 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
12625 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
12626 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
12627 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
12628 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
12629 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
12630 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
12631 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
12632 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
12633 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
12634 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
12635 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
12636 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
12637 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
12638 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
12639 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
12640 
12641 	/* keep last */
12642 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
12643 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
12644 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
12645 };
12646 
12647 /**
12648  * enum qca_wlan_medium_assess_type - Type of medium assess request
12649  *
12650  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
12651  */
12652 enum qca_wlan_medium_assess_type {
12653 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
12654 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
12655 };
12656 
12657 /**
12658  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
12659  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
12660  *
12661  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
12662  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
12663  * Specify the type of medium assess request and indicate its type in response.
12664  * Possible values are defined in enum qca_wlan_medium_assess_type.
12665  *
12666  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
12667  * u32 attribute. Mandatory in CCA request.
12668  * Specify the assessment period in terms of seconds. Assessment result will be
12669  * sent as the response to the CCA request after the assessment period.
12670  *
12671  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
12672  * u32 attribute. Mandatory in response to CCA request.
12673  * Total timer tick count of the assessment cycle.
12674  *
12675  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
12676  * u32 attribute. Mandatory in response to CCA request.
12677  * Timer tick count of idle time in the assessment cycle.
12678  *
12679  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
12680  * u32 attribute. Mandatory in response to CCA request.
12681  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
12682  *
12683  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
12684  * u32 attribute. Mandatory in response to CCA request.
12685  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
12686  *
12687  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
12688  * s32 attribute. Mandatory in response to CCA request.
12689  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
12690  *
12691  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
12692  * s32 attribute. Mandatory in response to CCA request.
12693  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12694  *
12695  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12696  * u8 attribute. Mandatory in congestion report request.
12697  * 1-enable 0-disable.
12698  *
12699  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12700  * u8 attribute. Mandatory in congestion report enable request and will be
12701  * ignored if present in congestion report disable request. Possible values are
12702  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12703  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12704  * congestion percentage reaches the configured threshold.
12705  *
12706  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12707  * u8 attribute. Optional in congestion report enable request and will be
12708  * ignored if present in congestion report disable request.
12709  * Specify the interval of congestion report event in terms of seconds. Possible
12710  * values are 1-255. Default value 1 will be used if this attribute is omitted
12711  * or using invalid values.
12712  *
12713  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12714  * u8 attribute. Mandatory in congestion report event.
12715  * Indicate the actual congestion percentage. Possible values are 0-100.
12716  */
12717 enum qca_wlan_vendor_attr_medium_assess {
12718 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12719 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12720 
12721 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12722 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12723 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12724 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12725 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12726 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12727 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12728 
12729 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12730 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12731 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12732 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12733 
12734 	/* keep last */
12735 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12736 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12737 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12738 };
12739 
12740 /**
12741  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12742  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12743  *
12744  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12745  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12746  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12747  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
12748  *
12749  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12750  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
12751  *
12752  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12753  * u8 attribute, required. indicates group id of Tx VDEV
12754  *
12755  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12756  * Nested attribute. This attribute shall be used by the driver to send
12757  * group information. The attributes defined in enum
12758  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12759  * are nested in this attribute.
12760  */
12761 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12762 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12763 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
12764 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12765 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12766 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
12767 
12768 	/* keep last */
12769 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12770 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12771 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12772 };
12773 
12774 /**
12775  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12776  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12777  *
12778  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12779  * u32 attribute, required. contains interface index.
12780  *
12781  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12782  * u8 attribute, required. 0 - means vdev is in down state.
12783  * 1- means vdev is in up state.
12784  */
12785 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12786 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12787 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12788 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12789 
12790 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12791 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12792 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12793 };
12794 
12795 /**
12796  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12797  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12798  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12799  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12800  * frame
12801  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12802  * Request frame.
12803  */
12804 enum qca_wlan_vendor_oci_override_frame_type {
12805 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12806 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12807 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12808 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12809 };
12810 
12811 /**
12812  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12813  *
12814  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12815  * STA interface has to be given while selecting the connection policies
12816  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12817  * An interface is set as primary through the attribute
12818  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12819  * applicable if the primary interface has not been set earlier.
12820  *
12821  * The intention is not to downgrade the primary STA performance, such as:
12822  * - Do not reduce the number of TX/RX chains of primary connection.
12823  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12824  *   chains.
12825  * - If using MCC, should set the MCC duty cycle of the primary connection to
12826  *   be higher than the secondary connection.
12827  *
12828  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12829  * subsequent STA connection shall be chosen to balance with the existing
12830  * concurrent STA's performance.
12831  * Such as
12832  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12833  *   capability.
12834  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12835  *   to the secondary.
12836  * - Prefer BSSID candidates which will help provide the best "overall"
12837  *   performance for all the STA connections.
12838  */
12839 enum qca_wlan_concurrent_sta_policy_config {
12840 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12841 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12842 };
12843 
12844 /**
12845  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
12846  *
12847  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12848  * interface.
12849  *
12850  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12851  * to meet gaming audio latency requirements.
12852  *
12853  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12854  * concurrencies to meet lossless audio streaming requirements.
12855  *
12856  * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
12857  * XR (eXtended Reality) requirements.
12858  */
12859 enum qca_wlan_concurrent_ap_policy_config {
12860 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12861 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12862 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
12863 	QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
12864 };
12865 
12866 /**
12867  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12868  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12869  *
12870  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
12871  * u8 attribute. Configures the concurrent STA policy configuration.
12872  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
12873 
12874  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12875  * u8 attribute. Configures the concurrent AP policy configuration.
12876  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
12877  */
12878 enum qca_wlan_vendor_attr_concurrent_policy {
12879 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12880 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12881 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
12882 
12883 	/* keep last */
12884 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12885 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12886 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
12887 
12888 };
12889 
12890 /* Compatibility defines for previously used enum
12891  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12892  * in any new implementation.
12893  */
12894 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12895 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12896 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12897 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12898 #define qca_wlan_vendor_attr_concurrent_sta_policy \
12899 	qca_wlan_vendor_attr_concurrent_policy
12900 
12901 /**
12902  * enum qca_sta_connect_fail_reason_codes - Defines values carried
12903  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12904  * attribute.
12905  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
12906  * for unicast probe request.
12907  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12908  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12909  * ath request.
12910  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12911  * received from AP.
12912  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
12913  * request.
12914  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12915  * assoc request.
12916  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
12917  * received from AP.
12918  */
12919 enum qca_sta_connect_fail_reason_codes {
12920 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12921 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12922 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12923 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12924 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12925 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12926 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12927 };
12928 
12929 /**
12930  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12931  * OCI override request. These attributes are used inside nested attribute
12932  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12933  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12934  *
12935  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12936  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12937  * attribute to specify the frame type in which the OCI is to be overridden.
12938  *
12939  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12940  * OCI frequency (in MHz) to override in the specified frame type.
12941  */
12942 enum qca_wlan_vendor_attr_oci_override {
12943 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12944 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12945 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12946 
12947 	/* keep last */
12948 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12949 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12950 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12951 };
12952 
12953 /**
12954  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12955  * filters defined in this enum are used in attribute
12956  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12957  *
12958  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12959  * shall filter the channels which are not usable because of coexistence with
12960  * cellular radio.
12961  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12962  * shall filter the channels which are not usable because of existing active
12963  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12964  *
12965  */
12966 enum qca_wlan_vendor_usable_channels_filter {
12967 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12968 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12969 };
12970 
12971 /**
12972  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12973  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12974  *
12975  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12976  * u32 attribute, required. Indicates the center frequency of the primary
12977  * channel in MHz.
12978  *
12979  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12980  * u32 attribute. Indicates the center frequency of the primary segment of the
12981  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12982  * 160 MHz, and 320 MHz channels.
12983  *
12984  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12985  * u32 attribute. Indicates the center frequency of the secondary segment of
12986  * 80+80 channel in MHz. This attribute is required only when
12987  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12988  *
12989  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12990  * u32 attribute, required. Indicates the bandwidth of the channel, possible
12991  * values are defined in enum nl80211_chan_width.
12992  *
12993  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12994  * u32 attribute, required. Indicates all the interface types for which this
12995  * channel is usable. This attribute encapsulates bitmasks of interface types
12996  * defined in enum nl80211_iftype.
12997  *
12998  */
12999 enum qca_wlan_vendor_attr_chan_info {
13000 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
13001 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
13002 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
13003 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
13004 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
13005 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
13006 
13007 	/* keep last */
13008 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
13009 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
13010 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
13011 };
13012 
13013 /**
13014  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
13015  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
13016  *
13017  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
13018  * u32 attribute. Indicates the bands from which the channels should be reported
13019  * in response. This attribute encapsulates bit masks of bands defined in enum
13020  * nl80211_band. Optional attribute, if not present in the request the driver
13021  * shall return channels from all supported bands.
13022  *
13023  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
13024  * u32 attribute. Indicates all the interface types for which the usable
13025  * channels information is requested. This attribute encapsulates bitmasks of
13026  * interface types defined in enum nl80211_iftype. Optional attribute, if not
13027  * present in the request the driver shall send information of all supported
13028  * interface modes.
13029  *
13030  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
13031  * u32 attribute. This attribute carries information of all filters that shall
13032  * be applied while populating usable channels information by the driver. This
13033  * attribute carries bit masks of different filters defined in enum
13034  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
13035  * in the request the driver shall send information of channels without applying
13036  * any of the filters that can be configured through this attribute.
13037  *
13038  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
13039  * Nested attribute. This attribute shall be used by the driver to send
13040  * usability information of each channel. The attributes defined in enum
13041  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
13042  */
13043 enum qca_wlan_vendor_attr_usable_channels {
13044 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
13045 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
13046 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
13047 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
13048 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
13049 
13050 	/* keep last */
13051 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
13052 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
13053 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
13054 };
13055 
13056 /**
13057  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
13058  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
13059  *
13060  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
13061  *	the list of radar history entries.
13062  *	Each entry contains freq, timestamp, and radar signal detect flag.
13063  *	The driver shall add an entry when CAC has finished, or radar signal
13064  *	has been detected post AP beaconing. The driver shall maintain at least
13065  *	8 entries in order to save CAC result for a 160 MHz channel.
13066  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
13067  *	Channel frequency in MHz.
13068  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
13069  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
13070  *	or radar detection.
13071  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
13072  *	This flag indicates radar signal has been detected.
13073  */
13074 enum qca_wlan_vendor_attr_radar_history {
13075 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
13076 
13077 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
13078 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
13079 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
13080 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
13081 
13082 	/* keep last */
13083 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
13084 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
13085 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
13086 };
13087 
13088 /**
13089  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
13090  *
13091  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
13092  *	target exited MCC state and cleared the quota information. In the
13093  *	command it clears MCC quota setting and restores adaptive scheduling.
13094  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
13095  *      will not be changed.
13096  *      This quota type is present in command/event.
13097  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
13098  *      and the target may change the quota based on the data activity.
13099  *      This quota type is only present in event.
13100  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
13101  *      by the target for low latency.
13102  *      This quota type is only present in command.
13103  */
13104 enum qca_wlan_vendor_mcc_quota_type {
13105 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
13106 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
13107 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
13108 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
13109 };
13110 
13111 /**
13112  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
13113  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
13114  * quota information or as a command to set the required MCC quota for an
13115  * interface.
13116  *
13117  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
13118  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
13119  * In a command this specifies the MCC quota type to be set for the interface.
13120  * In an event this provides the current quota type in force.
13121  * This is required in a command and an event.
13122  *
13123  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
13124  * the list of channel quota entries.
13125  * In an event each entry contains the frequency and respective time quota for
13126  * all the MCC interfaces.
13127  * In a command it specifies the interface index and respective time quota.
13128  * In a command only one entry (ifindex, quota pair) may be specified.
13129  *
13130  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
13131  * Channel frequency in MHz. This is present only in an event.
13132  *
13133  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
13134  * Channel time quota expressed as percentage.
13135  * This is present in an event and a command.
13136  * In an command, the user shall specify the quota to be allocated for the
13137  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
13138  * In an event this provides the existing quota for the channel.
13139  *
13140  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
13141  * Specifies the interface index (netdev) for which the corresponding
13142  * configurations are applied. This is required in a command only. Only one
13143  * interface index may be specified. If not specified, the configuration is
13144  * rejected.
13145  *
13146  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
13147  * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
13148  * low latency mode. The firmware will do optimization for low
13149  * latency in Multi-Channel concurrency state if enabled. And all existing
13150  * user quota setting will be overwritten by the target.
13151  * 0 - disable(default), 1 - enable.
13152  * It is only present in a command with quota type of
13153  * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
13154  */
13155 enum qca_wlan_vendor_attr_mcc_quota {
13156 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
13157 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
13158 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
13159 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
13160 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
13161 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
13162 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
13163 
13164 	/* keep last */
13165 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
13166 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
13167 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
13168 };
13169 
13170 /**
13171  * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
13172  * are used by the attribute
13173  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
13174  *
13175  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
13176  *  invoke roam.
13177  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
13178  *  detection failed when the roam trigger.
13179  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
13180  */
13181 
13182 enum qca_wlan_roam_stats_invoke_reason {
13183 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
13184 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
13185 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
13186 };
13187 
13188 /**
13189  * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
13190  * values are used by the attribute
13191  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
13192  *
13193  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
13194  *  roam by kickout.
13195  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
13196  *  trigger by kickout.
13197  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
13198  *  roam trigger by kickout.
13199  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
13200  *  roam trigger by kickout.
13201  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
13202  *  disappeared, and all TX is failing when roam trigger by kickout.
13203  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
13204  *   timeout when roam trigger by kickout.
13205  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
13206  *  peer has roamed to a repeater.
13207  */
13208 enum qca_wlan_roam_stats_tx_failures_reason {
13209 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
13210 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
13211 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
13212 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
13213 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
13214 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
13215 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
13216 };
13217 
13218 /**
13219  * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
13220  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
13221  *
13222  * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
13223  *  detailed reason for roam scan being aborted.
13224  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
13225  *  started due to high data RSSI during LOW-RSSI roaming.
13226  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
13227  *  started due to good link speed during LOW-RSSI roaming.
13228  * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
13229  *  due to high data RSSI during background roaming.
13230  * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
13231  *  started due to high beacon RSSI during background roaming
13232  */
13233 enum qca_wlan_roam_stats_abort_reason {
13234 	QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
13235 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
13236 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
13237 	QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
13238 	QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
13239 };
13240 
13241 /**
13242  * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
13243  * These values are used by the attribute
13244  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
13245  *
13246  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
13247  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
13248  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
13249  *  This is generally used in BTM events to indicate BTM frame exchange logs.
13250  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
13251  *  from 2.4 GHz to 5 GHz or 6 GHz
13252  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
13253  *  5 GHz to 6 GHz
13254  */
13255 enum qca_wlan_roam_stats_scan_type {
13256 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
13257 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
13258 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
13259 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
13260 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
13261 };
13262 
13263 /**
13264  * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
13265  * These values are used by the attribute
13266  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
13267  *
13268  * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
13269  *  detailed roam scan type.
13270  * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
13271  * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
13272  */
13273 enum qca_wlan_roam_stats_scan_dwell_type {
13274 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
13275 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
13276 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
13277 };
13278 
13279 /**
13280  * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
13281  * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
13282  */
13283 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
13284 	/* 32-bit unsigned value to indicate center frequency of the primary
13285 	 * channel in MHz for each roam scan channel.
13286 	 */
13287 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
13288 	/* 8-bit unsigned value to indicate channel scan type for each
13289 	 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
13290 	 */
13291 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
13292 	/* 32-bit unsigned value to indicate maximum scan time in milliseconds
13293 	 * for each roam scan channel.
13294 	 */
13295 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
13296 
13297 	/* keep last */
13298 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
13299 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
13300 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
13301 };
13302 
13303 /**
13304  * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
13305  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
13306  *
13307  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
13308  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
13309  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
13310  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
13311  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
13312  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
13313  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
13314  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
13315  */
13316 enum qca_wlan_roam_stats_frame_subtype {
13317 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
13318 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
13319 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
13320 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
13321 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
13322 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
13323 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
13324 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
13325 };
13326 
13327 /**
13328  * enum roam_frame_status - Specifies the valid values the vendor roam frame
13329  * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
13330  *
13331  * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
13332  *  sent or received successfully.
13333  * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
13334  *  receiving failed.
13335  */
13336 enum qca_wlan_roam_stats_frame_status {
13337 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
13338 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
13339 };
13340 
13341 /**
13342  * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
13343  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
13344  */
13345 enum qca_wlan_vendor_attr_roam_stats_frame_info {
13346 	/* 8-bit unsigned value to indicate the frame subtype during
13347 	 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
13348 	 */
13349 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
13350 	/* 8-bit unsigned value to indicate the frame is successful or failed
13351 	 * during roaming, one of the values in
13352 	 * qca_wlan_roam_stats_frame_status.
13353 	 */
13354 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
13355 	/* 64-bit unsigned value to indicate the timestamp for frame of
13356 	 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
13357 	 * when sent or received during roaming, timestamp in milliseconds
13358 	 * from system boot.
13359 	 */
13360 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
13361 
13362 	/* keep last */
13363 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
13364 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
13365 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
13366 };
13367 
13368 /**
13369  * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
13370  * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
13371  */
13372 enum qca_wlan_vendor_attr_roam_stats_info {
13373 	/* 64-bit unsigned value to indicate the timestamp when roam was
13374 	 * triggered by the firmware, timestamp in milliseconds from system
13375 	 * boot.
13376 	 */
13377 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
13378 	/* 32-bit unsigned value to indicate the roam trigger reason for the
13379 	 * last roaming attempted by the firmware. This can be queried either
13380 	 * in a connected state or disconnected state. The values of this
13381 	 * attribute represent the roam trigger reason codes, which
13382 	 * are defined in enum qca_roam_reason.
13383 	 */
13384 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
13385 	/* 8-bit unsigned value to indicate percentage of packets for which
13386 	 * the RX rate is lower than the RX rate threshold in total RX packets,
13387 	 * used for roaming trigger by per.
13388 	 */
13389 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
13390 	/* 8-bit unsigned value to indicate percentage of packets for which
13391 	 * the TX rate is lower than TX rate threshold in total TX packets,
13392 	 * used for roaming trigger by per.
13393 	 */
13394 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
13395 	/* 32-bit unsigned value to indicate final beacon miss count for
13396 	 * trigger reason of beacon miss.
13397 	 */
13398 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
13399 	/* 32-bit unsigned value to indicate consecutive beacon miss count
13400 	 * for trigger reason of beacon miss.
13401 	 */
13402 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
13403 	/* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
13404 	 * reason of beacon miss, 0 - success, 1 - fail.
13405 	 * If QOS-NULL TX status is successful, beacon miss final count and
13406 	 * consecutive beacon miss count will be reset to zero, and roam will
13407 	 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
13408 	 * count and consecutive beacon miss count continue to calculate until
13409 	 * roaming trigger by beacon miss.
13410 	 */
13411 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
13412 	/* 8-bit signed value to indicate connected AP RSSI in dBm
13413 	 * for trigger reason of poor RSSI.
13414 	 */
13415 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
13416 	/* 8-bit signed value to indicate RSSI threshold value in dBm
13417 	 * for trigger reason of poor RSSI.
13418 	 */
13419 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
13420 	/* 8-bit unsigned value to indicate RX link speed status
13421 	 * for trigger reason of poor RSSI, 0 - good link speed,
13422 	 * 1 - bad link speed.
13423 	 */
13424 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
13425 	/* 8-bit signed value to indicate connected AP RSSI in dBm
13426 	 * for trigger reason of better RSSI.
13427 	 */
13428 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
13429 	/* 8-bit signed value to indicate RSSI threshold value in dBm
13430 	 * for trigger reason of better RSSI.
13431 	 */
13432 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
13433 	/* 32-bit unsigned value to indicate RX throughput in bytes per second
13434 	 * for trigger reason of congestion.
13435 	 */
13436 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
13437 	/* 32-bit unsigned value to indicate TX throughput in bytes per second
13438 	 * for trigger reason of congestion.
13439 	 */
13440 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
13441 	/* 8-bit unsigned value to indicate roamable AP count
13442 	 * for trigger reason of congestion.
13443 	 */
13444 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
13445 	/* 8-bit unsigned value to indicate invoke reason, one of the values
13446 	 * defined in qca_wlan_roam_stats_invoke_reason.
13447 	 */
13448 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
13449 	/* 8-bit unsigned value to indicate request mode for trigger reason
13450 	 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
13451 	 */
13452 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
13453 	/* 32-bit unsigned value to indicate disassociate time in milliseconds
13454 	 * for trigger reason of BTM.
13455 	 */
13456 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
13457 	/* 32-bit unsigned value to indicate preferred candidate list valid
13458 	 * interval in milliseconds for trigger reason of BTM.
13459 	 */
13460 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
13461 	/* 8-bit unsigned value to indicate the number of preferred
13462 	 * candidates for trigger reason of BTM.
13463 	 */
13464 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
13465 	/* 8-bit unsigned value to indicate response status for trigger
13466 	 * reason of BTM, values are defined in IEEE Std 802.11-2020,
13467 	 * Table 9-428 (BTM status code definitions).
13468 	 */
13469 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
13470 	/* 32-bit unsigned value to indicate BSS termination timeout value
13471 	 * in milliseconds for trigger reason of BTM.
13472 	 */
13473 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
13474 	/* 32-bit unsigned value to indicate MBO associate retry timeout
13475 	 * value in milliseconds for trigger reason of BTM.
13476 	 */
13477 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
13478 	/* 8-bit unsigned value to indicate dialog token number
13479 	 * for trigger reason of BTM.
13480 	 */
13481 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
13482 	/* 8-bit unsigned value to indicate percentage of connected AP
13483 	 * channel congestion utilization for trigger reason of BSS load.
13484 	 */
13485 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
13486 	/* 8-bit unsigned value to indicate disconnection type
13487 	 * for trigger reason of disconnection. 1 - Deauthentication,
13488 	 * 2 - Disassociation.
13489 	 */
13490 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
13491 	/* 16-bit unsigned value to indicate deauthentication or disassociation
13492 	 * reason for trigger reason of disconnection, values are defined
13493 	 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
13494 	 */
13495 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
13496 	/* 32-bit unsigned value to indicate milliseconds of roam scan
13497 	 * periodicity when needing to roam to find a better AP for trigger
13498 	 * reason of periodic timer.
13499 	 */
13500 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
13501 	/* 8-bit signed value to indicate connected AP RSSI in dBm for
13502 	 * trigger reason of background scan.
13503 	 */
13504 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
13505 	/* 8-bit signed value to indicate data RSSI in dBm for trigger reason
13506 	 * of background scan.
13507 	 */
13508 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
13509 	/* 8-bit signed value to indicate data RSSI threshold in dBm
13510 	 * for trigger reason of background scan.
13511 	 */
13512 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
13513 	/* 32-bit unsigned value to indicate consecutive TX failure threshold
13514 	 * for trigger reason of TX failures.
13515 	 */
13516 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
13517 	/* 8-bit unsigned value to indicate TX failure reason for trigger
13518 	 * reason of TX failures, one of the values defined in
13519 	 *  qca_wlan_roam_stats_tx_failures_reason.
13520 	 */
13521 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
13522 	/* 8-bit unsigned value to indicate detail abort reason. One of the
13523 	 * values in enum qca_wlan_roam_stats_abort_reason.
13524 	 */
13525 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
13526 	/* 8-bit signed value to indicate data RSSI in dBm when aborting the
13527 	 * roam scan.
13528 	 */
13529 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
13530 	/* 8-bit signed value to indicate data RSSI threshold in dBm when
13531 	 * aborting the roam scan.
13532 	 */
13533 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
13534 	/* 8-bit unsigned value to indicate data RSSI threshold in RX link
13535 	 * speed status when aborting the roam scan.
13536 	 * 0 - good link speed, 1 - bad link speed
13537 	 */
13538 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
13539 	/* 8-bit unsigned value to indicate roaming scan type.
13540 	 * One of the values in enum qca_wlan_roam_stats_scan_type.
13541 	 */
13542 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
13543 	/* 8-bit unsigned value to indicate roaming result, used in STA mode
13544 	 * only.
13545 	 * 0-Roaming is successful, 1-Roaming is failed
13546 	 */
13547 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
13548 	/* 8-bit unsigned value to indicate the roam fail reason for the
13549 	 * last failed roaming attempt by the firmware. Different roam failure
13550 	 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
13551 	 * This can be queried either in connected state or disconnected state.
13552 	 */
13553 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
13554 	/* Nested attribute. Indicate roam scan info for each channel, the
13555 	 * attributes defined in enum
13556 	 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
13557 	 * this attribute.
13558 	 */
13559 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
13560 	/* 32-bit unsigned value to indicate total scan time during roam scan
13561 	 * all channels, time in milliseconds.
13562 	 */
13563 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
13564 	/* Nested attribute. This attribute shall be used by the driver to
13565 	 * send roam information of each subtype. The attributes defined in
13566 	 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
13567 	 * this attribute.
13568 	 */
13569 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
13570 	/* 6-byte MAC address used by the driver to send roam stats information
13571 	 * of the original AP BSSID. The original AP is the connected AP before
13572 	 * roam happens, regardless of the roam resulting in success or failure.
13573 	 * This attribute is only present when
13574 	 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13575 	 * 0 (success) or 1 (failure).
13576 	 * For non-MLO scenario, it indicates the original connected AP BSSID.
13577 	 * For MLO scenario, it indicates the original BSSID of the link
13578 	 * for which the reassociation occurred during the roam.
13579 	 */
13580 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
13581 	/* 6-byte MAC address used by the driver to send roam stats information
13582 	 * of the roam candidate AP BSSID when roam failed. This is only present
13583 	 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13584 	 * 1 (failure). If the firmware updates more than one candidate AP BSSID
13585 	 * to the driver, the driver only fills the last candidate AP BSSID and
13586 	 * reports it to user space.
13587 	 * For non-MLO scenario, it indicates the last candidate AP BSSID.
13588 	 * For MLO scenario, it indicates the AP BSSID which may be the primary
13589 	 * link BSSID or a nonprimary link BSSID.
13590 	 */
13591 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
13592 	/* 6-byte MAC address used by the driver to send roam stats information
13593 	 * of the roamed AP BSSID when roam succeeds. This is only present when
13594 	 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13595 	 * 0 (success).
13596 	 * For non-MLO scenario, it indicates the new AP BSSID to which has
13597 	 * been successfully roamed.
13598 	 * For MLO scenario, it indicates the new AP BSSID of the link on
13599 	 * which the reassociation occurred during the roam.
13600 	 */
13601 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
13602 
13603 	/* keep last */
13604 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
13605 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
13606 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
13607 };
13608 
13609 /**
13610  * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
13611  * report cached roam info from the driver to user space, enum values are used
13612  * for netlink attributes sent with the
13613  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
13614  */
13615 enum qca_wlan_vendor_attr_roam_cached_stats {
13616 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
13617 	/* Nested attribute, this attribute contains nested array roam info
13618 	 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
13619 	 */
13620 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
13621 
13622 	/* keep last */
13623 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
13624 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
13625 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
13626 };
13627 
13628 /**
13629  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
13630  * radio configurations present in each radio combination.
13631  *
13632  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
13633  * the band info in the radio configuration. Uses the enum qca_set_band values.
13634  *
13635  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
13636  * the number of antennas info in the radio configuration.
13637  */
13638 enum qca_wlan_vendor_attr_supported_radio_cfg {
13639 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
13640 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
13641 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
13642 
13643 	/* keep last */
13644 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
13645 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
13646 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
13647 };
13648 
13649 /**
13650  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
13651  * radio combinations supported by the device.
13652  *
13653  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
13654  * provides the radio configurations present in the radio combination.
13655  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
13656  * This attribute provides the values for radio combination matrix.
13657  * For standalone config, the number of config values is one and the config
13658  * carries the band and antenna information for standalone configuration. For
13659  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
13660  * configuration the number of config values is two and the config carries the
13661  * band and antenna information for each simultaneous radio.
13662  */
13663 enum qca_wlan_vendor_attr_radio_combination {
13664 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
13665 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
13666 
13667 	/* keep last */
13668 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
13669 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
13670 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
13671 };
13672 
13673 /**
13674  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
13675  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
13676  *
13677  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
13678  * provides the radio combinations supported by the device.
13679  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
13680  * For example, in the radio combination matrix for a device which has two
13681  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
13682  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
13683  * combinations is 5 and the radio combinations are
13684  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
13685  * {{5 GHz 2X2}}, //Standalone 5 GHz
13686  * {{6 GHz 2X2}}, //Standalone 6 GHz
13687  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
13688  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
13689  * The band and antenna info together as nested data provides one radio config.
13690  * Standalone configuration has one config with band and antenna nested data.
13691  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
13692  * have two nested band and antenna info data.
13693  */
13694 enum qca_wlan_vendor_attr_radio_combination_matrix {
13695 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
13696 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
13697 
13698 	/* keep last */
13699 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
13700 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
13701 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
13702 };
13703 
13704 /**
13705  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
13706  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
13707  *
13708  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
13709  * Enable mDNS offload. This attribute is mandatory to enable
13710  * mDNS offload feature. If this attribute is not present, mDNS offload
13711  * is disabled.
13712  *
13713  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
13714  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
13715  * attribute is mandatory when enabling the feature, and not required when
13716  * disabling the feature.
13717  *
13718  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
13719  * the following attributes:
13720  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
13721  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
13722  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
13723  *
13724  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
13725  * It consists of a hostname and ".local" as the domain name. The character
13726  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
13727  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
13728  * supported per vdev.
13729  * For example: myphone.local
13730  *
13731  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
13732  * u16 attribute. It specifies the total number of resource records present
13733  * in the answer section of the answer payload. This attribute is needed by the
13734  * firmware to populate the mDNS response frame for mNDS queries without having
13735  * to parse the answer payload.
13736  *
13737  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
13738  * attribute sent by the mdnsResponder from userspace. It contains resource
13739  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
13740  * payload is passed down to firmware and is transmitted in response to
13741  * mDNS queries.
13742  * The maximum size of the answer payload supported is 512 bytes.
13743  */
13744 enum qca_wlan_vendor_attr_mdns_offload {
13745 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
13746 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
13747 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
13748 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
13749 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
13750 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
13751 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
13752 
13753 	/* keep last */
13754 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
13755 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
13756 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
13757 };
13758 
13759 /**
13760  * enum qca_vendor_attr_diag_event_type  - Attributes used by
13761  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
13762  *
13763  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
13764  * driver/firmware during Connection request from Userspace. Uses the
13765  * following attributes of enum qca_wlan_vendor_attr_diag:
13766  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13767  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
13768  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13769  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
13770  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13771  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
13772  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
13773  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
13774  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
13775  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13776  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
13777  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
13778  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13779  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13780  *
13781  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
13782  * driver/firmware when a connection is failed. Uses the
13783  * following attributes of enum qca_wlan_vendor_attr_diag:
13784  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13785  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13786  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13787  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13788  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13789  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13790  *
13791  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
13792  * driver/firmware during Authentication request from a device. Uses the
13793  * following attributes of enum qca_wlan_vendor_attr_diag:
13794  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13795  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13796  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13797  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13798  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
13799  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13800  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13801  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13802  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13803  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13804  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13805  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13806  *
13807  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
13808  * driver/firmware when device receives an authentication response. Uses the
13809  * following attributes of enum qca_wlan_vendor_attr_diag:
13810  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13811  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13812  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13813  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
13814  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13815  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13816  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13817  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13818  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13819  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13820  *
13821  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
13822  * driver/firmware when device sends an association request. Uses the
13823  * following attributes of enum qca_wlan_vendor_attr_diag:
13824  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13825  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13826  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13827  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13828  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13829  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13830  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13831  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13832  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13833  *
13834  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
13835  * driver/firmware when device receives an association response. Uses the
13836  * following attributes of enum qca_wlan_vendor_attr_diag:
13837  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13838  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13839  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13840  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13841  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13842  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13843  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13844  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13845  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
13846  *
13847  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
13848  * driver/userspace when device receives a deauthentication response. Uses the
13849  * following attributes of enum qca_wlan_vendor_attr_diag:
13850  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13851  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13852  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13853  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13854  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13855  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13856  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13857  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13858  *
13859  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
13860  * driver/userspace when device sends a deauthentication request. Uses the
13861  * following attributes of enum qca_wlan_vendor_attr_diag:
13862  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13863  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13864  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13865  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13866  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13867  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13868  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13869  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13870  *
13871  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
13872  * driver/firmware when device receives a disassociation response. Uses the
13873  * following attributes of enum qca_wlan_vendor_attr_diag:
13874  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13875  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13876  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13877  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13878  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13879  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13880  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13881  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13882  *
13883  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
13884  * driver/firmware when device sends a disassociation request. Uses the
13885  * following attributes of enum qca_wlan_vendor_attr_diag:
13886  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13887  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13888  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13889  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13890  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13891  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13892  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13893  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13894  *
13895  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
13896  * driver/firmware when device did not receive beacon packets during connection.
13897  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
13898  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13899  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13900  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13901  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13902  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13903  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13904  *
13905  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
13906  * driver/firmware when Roaming scan is triggered. Uses the following
13907  * attributes of enum qca_wlan_vendor_attr_diag:
13908  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13909  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
13910  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
13911  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13912  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13913  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
13914  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
13915  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13916  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13917  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13918  *
13919  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
13920  * driver/firmware Roam scanning is processed. Uses the following
13921  * attributes of enum qca_wlan_vendor_attr_diag:
13922  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13923  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13924  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
13925  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
13926  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13927  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13928  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13929  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13930  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
13931  *
13932  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
13933  * driver/firmware to provide Roam information of the current AP. Uses the
13934  * following attributes of enum qca_wlan_vendor_attr_diag:
13935  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13936  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13937  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13938  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13939  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13940  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
13941  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13942  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13943  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13944  *
13945  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
13946  * driver/firmware to provide Roam information of the candid AP. Uses the
13947  * following attributes of enum qca_wlan_vendor_attr_diag:
13948  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13949  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13950  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13951  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13952  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13953  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
13954  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
13955  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13956  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13957  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13958  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13959  *
13960  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
13961  * driver/firmware to provide Roam result after selecting a candidate. Uses the
13962  * following attributes of enum qca_wlan_vendor_attr_diag:
13963  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13964  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
13965  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13966  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13967  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13968  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13969  *
13970  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
13971  * driver/firmware to indicate Roam Cancellation due to higher priority events.
13972  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13973  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13974  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13975  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13976  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13977  *
13978  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
13979  * /firmware when STA sends a BTM request frame. Uses the following attributes
13980  * of enum qca_wlan_vendor_attr_diag:
13981  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13982  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13983  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
13984  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
13985  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
13986  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
13987  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13988  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13989  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13990  *
13991  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
13992  * driver/firmware when STA queries about BTM transition. Uses the following
13993  * attributes of enum qca_wlan_vendor_attr_diag:
13994  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13995  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13996  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
13997  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13998  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13999  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14000  *
14001  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
14002  * /firmware when STA receives BTM response frame. Uses the following
14003  * attributes of enum qca_wlan_vendor_attr_diag:
14004  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14005  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
14006  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
14007  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
14008  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
14009  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14010  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14011  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14012  *
14013  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
14014  * driver/firmware to provide BTM request candidate information. Uses the
14015  * following attributes of enum qca_wlan_vendor_attr_diag:
14016  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14017  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14018  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
14019  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
14020  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14021  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14022  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14023  *
14024  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
14025  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
14026  * enum qca_wlan_vendor_attr_diag:
14027  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14028  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
14029  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
14030  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
14031  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14032  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14033  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14034  *
14035  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
14036  * driver/firmware to indicate DHCP discovery to AP. Uses the following
14037  * attributes of enum qca_wlan_vendor_attr_diag:
14038  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14039  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14040  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14041  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14042  *
14043  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
14044  * driver/firmware to indicate DHCP offering to AP. Uses the following
14045  * attributes of enum qca_wlan_vendor_attr_diag:
14046  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14047  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14048  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14049  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14050  *
14051  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
14052  * driver/firmware to indicate driver sent DHCP packets. Uses the following
14053  * attributes of enum qca_wlan_vendor_attr_diag:
14054  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14055  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14056  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14057  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14058  *
14059  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
14060  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
14061  * attributes of enum qca_wlan_vendor_attr_diag:
14062  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14063  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14064  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14065  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14066  *
14067  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
14068  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
14069  * following attributes of enum qca_wlan_vendor_attr_diag:
14070  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14071  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14072  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14073  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14074  *
14075  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
14076  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
14077  * enum qca_wlan_vendor_attr_diag:
14078  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14079  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14080  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14081  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14082  *
14083  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
14084  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
14085  * enum qca_wlan_vendor_attr_diag:
14086  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14087  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14088  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14089  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14090  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14091  *
14092  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
14093  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
14094  * enum qca_wlan_vendor_attr_diag:
14095  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14096  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14097  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14098  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14099  *
14100  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
14101  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
14102  * enum qca_wlan_vendor_attr_diag:
14103  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14104  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14105  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14106  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14107  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14108  *
14109  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
14110  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
14111  * enum qca_wlan_vendor_attr_diag:
14112  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14113  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14114  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14115  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14116  *
14117  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
14118  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
14119  * enum qca_wlan_vendor_attr_diag:
14120  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14121  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14122  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14123  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14124  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14125  *
14126  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
14127  * /firmware to indicate device sent EAP request. Uses the following attributes
14128  * of enum qca_wlan_vendor_attr_diag:
14129  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14130  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
14131  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
14132  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14133  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14134  *
14135  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
14136  * /firmware to indicate device received EAP response. Uses the following
14137  * attributes of enum qca_wlan_vendor_attr_diag:
14138  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14139  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
14140  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
14141  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14142  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14143  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14144  *
14145  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
14146  * /firmware to indicate EAP frame transmission is success. Uses the following
14147  * attributes of enum qca_wlan_vendor_attr_diag:
14148  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14149  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14150  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14151  *
14152  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
14153  * /firmware to indicate EAP frame transmission is failed. Uses the following
14154  * attributes of enum qca_wlan_vendor_attr_diag:
14155  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14156  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14157  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14158  *
14159  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
14160  * /firmware to indicate Reassocation request. Uses the following attributes
14161  * of enum qca_wlan_vendor_attr_diag:
14162  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
14163  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14164  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
14165  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
14166  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14167  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14168  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
14169  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
14170  *
14171  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
14172  * /firmware to indicate Reassocation response. Uses the following attributes
14173  * of enum qca_wlan_vendor_attr_diag:
14174  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
14175  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14176  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
14177  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
14178  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
14179  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14180  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
14181  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
14182  */
14183 enum qca_vendor_attr_diag_event_type {
14184 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
14185 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
14186 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
14187 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
14188 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
14189 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
14190 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
14191 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
14192 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
14193 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
14194 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
14195 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
14196 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
14197 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
14198 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
14199 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
14200 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
14201 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
14202 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
14203 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
14204 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
14205 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
14206 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
14207 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
14208 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
14209 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
14210 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
14211 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
14212 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
14213 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
14214 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
14215 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
14216 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
14217 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
14218 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
14219 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
14220 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
14221 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
14222 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
14223 
14224 	/* keep last */
14225 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
14226 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
14227 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
14228 };
14229 
14230 /**
14231  * enum qca_wlan_vendor_tx_status - Used by attribute
14232  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
14233  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
14234  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
14235  * is not received.
14236  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
14237  * acknowledged.
14238  */
14239 enum qca_wlan_vendor_tx_status {
14240 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
14241 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
14242 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
14243 };
14244 
14245 /**
14246  * enum qca_roam_sub_reason - Used by attribute
14247  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
14248  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
14249  * timer expiry
14250  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
14251  * to no candidate found during LOW RSSI trigger.
14252  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
14253  * Imminent timeout
14254  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
14255  * failure
14256  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
14257  * emergency like deauth/disassoc.
14258  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
14259  * BSS transition management request.
14260  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
14261  * Roam scan triggered due to Low RSSI periodic timer
14262  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
14263  * Roam trigger due to periodic timer after no candidate found during CU
14264  * inactivity timer scan.
14265  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
14266  * found in high CU roam trigger.
14267  */
14268 enum qca_roam_sub_reason {
14269 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
14270 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
14271 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
14272 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
14273 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
14274 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
14275 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
14276 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
14277 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
14278 };
14279 
14280 /*
14281  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
14282  * to send diag data to the userspace. The attributes defined in this enum are
14283  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
14284  *
14285  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
14286  * by driver/firmware to send diag data. Each instance of this nested attribute
14287  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
14288  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
14289  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
14290  * nested attribute can be sent with one vendor command
14291  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
14292  *
14293  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
14294  * attribute indicates the type of the diag event from driver/firmware. Uses
14295  * values from enum qca_vendor_attr_diag_event_type.
14296  *
14297  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
14298  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
14299  * API to send time of the day in microseconds to userspace.
14300  *
14301  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
14302  * This attribute indicates firmware timestamp in microseconds.
14303  *
14304  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
14305  * indicates wlan interface index.
14306  *
14307  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
14308  * indicates 6-byte MAC address representing the BSSID of the AP.
14309  *
14310  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
14311  * indicates the 6-byte MAC address representing the BSSID hint sent in
14312  * the connect request.
14313  *
14314  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
14315  * indicates the SSID in u8 array with a maximum length of 32.
14316  *
14317  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
14318  * indicates the frequency of AP in MHz.
14319  *
14320  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
14321  * indicates frequency hint given in the connect request in MHz.
14322  *
14323  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
14324  * This attribute indicates RSSI of the 802.11 frame in dBm.
14325  *
14326  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
14327  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
14328  * Table 12-10—Integrity and key wrap algorithms.
14329  *
14330  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
14331  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
14332  * Table 12-10—Integrity and key wrap algorithms.
14333  *
14334  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
14335  * attribute indicates Group management cipher suite defined in IEEE Std
14336  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
14337  *
14338  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
14339  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
14340  * Table 9-151—AKM suite selectors.
14341  *
14342  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
14343  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
14344  * Section 9.4.1.1 Authentication Algorithm Number field.
14345  *
14346  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
14347  * indicates bluetooth COEX is active or not.
14348  *
14349  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
14350  * attribute indicates SAE authentication frame type. The possible values are
14351  * 1 - SAE commit frame
14352  * 2 - SAE confirm frame
14353  *
14354  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
14355  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
14356  * Table 9-49—Reason codes.
14357  *
14358  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
14359  * attribute indicates sequence number of the frame defined in IEEE Std
14360  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
14361  * field.
14362  *
14363  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
14364  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
14365  * 9-50—Status codes.
14366  *
14367  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
14368  * Uses enum qca_wlan_vendor_tx_status.
14369  *
14370  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
14371  * indicates if frame transmission is retried.
14372  *
14373  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
14374  * Uses enum qca_roam_reason.
14375  *
14376  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
14377  * Uses enum qca_roam_sub_reason.
14378  *
14379  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
14380  * indicates channel utilization in percentage.
14381  *
14382  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
14383  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
14384  *
14385  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
14386  * This attribute indicates current RSSI threshold in dBm.
14387  *
14388  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
14389  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
14390  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
14391  *
14392  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
14393  * This attribute indicates number of scanned candidate APs.
14394  *
14395  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
14396  * attribute indicates roam AP rank computed based on connection preference.
14397  *
14398  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
14399  * This attribute indicates expected throughput in kbps.
14400  *
14401  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
14402  * This attribute indicates the preference value of candidate AP / connected AP
14403  * calculated in the firmware.
14404  *
14405  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
14406  * indicates connection/roaming is successful or not.
14407  *
14408  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
14409  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
14410  * IE present in the BTM frame.
14411  *
14412  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
14413  * This attribute indicates BTM WTC duration in milliseconds.
14414  *
14415  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
14416  * indicates dialog token value of BTM query/request/response frames.
14417  *
14418  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
14419  * attribute indicates the Transition Reason field indicates the reason why
14420  * a transition attempt occurred and contains one of the values defined in IEEE
14421  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
14422  *
14423  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
14424  * indicates BTM mode defined in IEEE Std 802.11‐2020
14425  * Figure 9-924—Request Mode field format.
14426  *
14427  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
14428  * This attribute indicates the Disassociation Timer field which is the number
14429  * of beacon transmission times (TBTTs) until the serving AP will send a
14430  * Disassociation frame to this STA.
14431  *
14432  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
14433  * This attribute indicates BTM validity interval field in TBTTs defined in
14434  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
14435  * Action field format.
14436  *
14437  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
14438  * This attribute indicates BTM candidate list entries.
14439  *
14440  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
14441  * This attribute indicates network preference for BTM transition defined in
14442  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
14443  *
14444  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
14445  * This attribute indicates BTM transition status code defined in IEEE Std
14446  * 802.11‐2020 Table 9-428—BTM status code definitions.
14447  *
14448  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
14449  * This attribute indicates BSS termination delay defined in IEEE Std
14450  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
14451  *
14452  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
14453  * This attribute indicates 6-byte MAC address representing the BSSID of the
14454  * BSS that the non-AP STA transitions to.
14455  *
14456  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
14457  * indicates EAP frame type. The methods are enumerated by IANA at
14458  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
14459  *
14460  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
14461  * indicates EAP frame length.
14462  *
14463  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
14464  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
14465  * (Time from boot but not the time spent in suspend) to send in microseconds
14466  * to userspace.
14467  *
14468  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
14469  * indicates the association id received in the (re)association response frame
14470  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
14471  */
14472 enum qca_wlan_vendor_attr_diag {
14473 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
14474 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
14475 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
14476 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
14477 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
14478 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
14479 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
14480 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
14481 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
14482 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
14483 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
14484 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
14485 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
14486 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
14487 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
14488 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
14489 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
14490 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
14491 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
14492 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
14493 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
14494 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
14495 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
14496 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
14497 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
14498 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
14499 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
14500 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
14501 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
14502 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
14503 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
14504 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
14505 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
14506 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
14507 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
14508 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
14509 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
14510 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
14511 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
14512 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
14513 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
14514 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
14515 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
14516 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
14517 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
14518 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
14519 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
14520 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
14521 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
14522 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
14523 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
14524 
14525 	/* keep last */
14526 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
14527 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
14528 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
14529 };
14530 
14531 /**
14532  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
14533  * data types to be sent over the monitor interface.
14534  */
14535 enum qca_wlan_vendor_monitor_data_frame_type {
14536 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
14537 
14538 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
14539 	not set */
14540 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
14541 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
14542 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
14543 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
14544 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
14545 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
14546 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
14547 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
14548 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
14549 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
14550 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
14551 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
14552 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
14553 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
14554 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
14555 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
14556 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
14557 };
14558 
14559 /**
14560  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
14561  * mgmt types to be sent over the monitor interface.
14562  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
14563  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
14564  * except the Beacons. Valid only in the Connect state.
14565  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
14566  * BSSID Beacons. Valid only in the Connect state.
14567  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
14568  * the Beacons obtained during the scan (off channel and connected channel)
14569  * when in connected state.
14570  */
14571 
14572 enum qca_wlan_vendor_monitor_mgmt_frame_type {
14573 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
14574 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
14575 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
14576 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
14577 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
14578 };
14579 
14580 /**
14581  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
14582  * ctrl types to be sent over the monitor interface.
14583  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
14584  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
14585  */
14586 enum qca_wlan_vendor_monitor_ctrl_frame_type {
14587 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
14588 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
14589 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
14590 };
14591 
14592 /**
14593  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
14594  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
14595  * monitor mode.
14596  *
14597  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
14598  * Represents the tx data packet type to be monitored (u32). These data packets
14599  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14600  *
14601  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
14602  * Represents the tx data packet type to be monitored (u32). These data packets
14603  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14604  *
14605  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
14606  * Represents the tx data packet type to be monitored (u32). These mgmt packets
14607  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
14608  *
14609  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
14610  * Represents the tx data packet type to be monitored (u32). These mgmt packets
14611  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
14612  *
14613  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
14614  * Represents the tx data packet type to be monitored (u32). These ctrl packets
14615  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14616  *
14617  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
14618  * Represents the tx data packet type to be monitored (u32). These ctrl packets
14619  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14620  *
14621  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
14622  * u32 attribute, An interval only for the connected beacon interval, which
14623  * expects that the connected BSSID's beacons shall be sent on the monitor
14624  * interface only on this specific interval.
14625  */
14626 enum qca_wlan_vendor_attr_set_monitor_mode {
14627 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
14628 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
14629 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
14630 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
14631 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
14632 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
14633 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
14634 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
14635 
14636 	/* keep last */
14637 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
14638 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
14639 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
14640 
14641 };
14642 
14643 /**
14644  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
14645  * Bits will be set to 1 if the corresponding state is enabled.
14646  *
14647  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14648  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14649  */
14650 enum qca_wlan_vendor_roam_scan_state {
14651 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14652 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14653 };
14654 
14655 /**
14656  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14657  * Bits will be set to 1 if the corresponding event is notified.
14658  *
14659  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14660  * carries the trigger reason. When set, it is expected that the roam event
14661  * carries the respective reason via the attribute
14662  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14663  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14664  *
14665  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14666  * carries the roam fail reason. When set, it is expected that the roam event
14667  * carries the respective reason via the attribute
14668  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14669  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14670  *
14671  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14672  * event carries the roam invoke fail reason. When set, it is expected that
14673  * the roam event carries the respective reason via the attribute
14674  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14675  *
14676  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14677  * carries the roam scan state. When set, it is expected that the roam event
14678  * carries the respective scan state via the attribute
14679  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14680  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14681  */
14682 enum qca_wlan_vendor_roam_event_type {
14683 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14684 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14685 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14686 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14687 };
14688 
14689 /**
14690  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14691  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14692  *
14693  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14694  * representing the BSSID of the AP to which the Roam is attempted.
14695  *
14696  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14697  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14698  * attempted.
14699  *
14700  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
14701  * on which the roam is attempted.
14702  *
14703  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14704  * STA mode only. This represents the roam fail reason for the last failed
14705  * roaming attempt by the firmware for the specific BSSID. Different roam
14706  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14707  */
14708 enum qca_wlan_vendor_attr_roam_events_candidate_info {
14709 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14710 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14711 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14712 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14713 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14714 
14715 	/* keep last */
14716 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14717 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14718 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14719 };
14720 
14721 /**
14722  * enum qca_wlan_vendor_attr_roam_events - Used by the
14723  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14724  * roam events to the driver or notify these events from the driver.
14725  *
14726  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14727  * driver/firmware to enable/disable the notification of roam events. It's a
14728  * mandatory attribute and used only in the request from the userspace to the
14729  * host driver. 1-Enable, 0-Disable.
14730  * If the roaming is totally offloaded to the firmware, this request when
14731  * enabled shall mandate the firmware to notify all the relevant roam events
14732  * represented by the below attributes. If the host is in the suspend mode,
14733  * the behavior of the firmware to notify these events is guided by
14734  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14735  * these events in the suspend state, the firmware is expected to wake up the
14736  * host before the respective events are notified. Please note that such a
14737  * request to get the events in the suspend state will have a definite power
14738  * implication.
14739  *
14740  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14741  * that the roam events need to be notified in the suspend state too. By
14742  * default, these roam events are notified in the resume state. With this flag,
14743  * the roam events are notified in both resume and suspend states.
14744  * This attribute is used in the request from the userspace to the host driver.
14745  *
14746  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14747  * Represents the different roam event types, signified by the enum
14748  * qca_wlan_vendor_roam_event_type.
14749  * Each bit of this attribute represents the different roam even types reported
14750  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14751  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14752  *
14753  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14754  * mode only. This represents the roam trigger reason for the last roaming
14755  * attempted by the firmware. Each bit of this attribute represents the
14756  * different roam trigger reason code which are defined in enum
14757  * qca_vendor_roam_triggers.
14758  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14759  *
14760  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
14761  * STA mode only. This represents the roam invoke fail reason for the last
14762  * failed roam invoke. Different roam invoke failure reason codes
14763  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
14764  *
14765  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
14766  * for which the roam is attempted. Each entry is a nested attribute defined
14767  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
14768  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14769  *
14770  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
14771  * the scan state on which the roam events need to be notified. The values for
14772  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
14773  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14774  *
14775  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
14776  * u32 values. List of frequencies in MHz considered for a roam scan.
14777  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14778  */
14779 
14780 enum qca_wlan_vendor_attr_roam_events {
14781 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
14782 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
14783 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
14784 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
14785 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
14786 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
14787 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
14788 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
14789 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
14790 
14791 	/* keep last */
14792 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
14793 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
14794 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
14795 };
14796 
14797 /*
14798  * enum qca_wlan_ratemask_params_type - Rate mask config type.
14799  *
14800  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
14801  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
14802  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
14803  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
14804  */
14805 enum qca_wlan_ratemask_params_type {
14806 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
14807 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
14808 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
14809 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
14810 };
14811 
14812 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
14813  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
14814  * This is used to set the rate mask value to be used in rate selection.
14815  *
14816  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
14817  * Array of nested containing attributes
14818  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
14819  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
14820  *
14821  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
14822  * the different phy types to which the rate mask config is to be applied.
14823  * The values for this attribute are referred from enum
14824  * qca_wlan_vendor_ratemask_params_type.
14825  *
14826  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
14827  * A bit value of 1 represents rate is enabled and a value of 0
14828  * represents rate is disabled.
14829  * For HE targets, 12 bits correpond to one NSS setting.
14830  * b0-13  => NSS1, MCS 0-13
14831  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
14832  * For VHT targets, 10 bits correspond to one NSS setting.
14833  * b0-9   => NSS1, MCS 0-9
14834  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
14835  * For HT targets, 8 bits correspond to one NSS setting.
14836  * b0-7  => NSS1, MCS 0-7
14837  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
14838  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
14839  */
14840 
14841 enum qca_wlan_vendor_attr_ratemask_params {
14842 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
14843 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
14844 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
14845 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
14846 
14847 	/* keep last */
14848 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
14849 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
14850 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
14851 };
14852 
14853 /**
14854  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
14855  * the policy to flush pending frames, configured via
14856  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
14857  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
14858  *
14859  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
14860  * the flush policy configured before. This command basically disables the
14861  * flush config set by the user.
14862  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
14863  * the flush policy to be immediate. All pending packets for the peer/TID are
14864  * flushed when this command/policy is received.
14865  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
14866  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
14867  * are flushed when the end of TWT SP is reached.
14868  */
14869 enum qca_wlan_vendor_flush_pending_policy  {
14870 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
14871 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
14872 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
14873 };
14874 
14875 /**
14876  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
14877  * flushing pending traffic in firmware.
14878  *
14879  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
14880  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
14881  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
14882  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
14883  * flush packets with access category. This is optional. See below.
14884  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
14885  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
14886  * bit to 1 to act upon the TID. This is optional. Either this attribute or
14887  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
14888  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
14889  * it is an error.
14890  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
14891  * packets corresponding to the peer/TID provided. It is a u32 value,
14892  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
14893  * value is honored only when TID mask is provided. This is not honored when AC
14894  * mask is provided.
14895  */
14896 enum qca_wlan_vendor_attr_flush_pending {
14897 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
14898 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
14899 	QCA_WLAN_VENDOR_ATTR_AC = 2,
14900 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
14901 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
14902 	/* keep last */
14903 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
14904 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
14905 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
14906 };
14907 
14908 /**
14909  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
14910  *	for) or drop existing PASN security association for the listed the
14911  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
14912  *	to userspace.
14913  *
14914  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
14915  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
14916  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
14917  *	the driver to userspace to inform that the existing PASN keys of the
14918  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
14919  *	not valid anymore.
14920  */
14921 enum qca_wlan_vendor_pasn_action {
14922 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
14923 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
14924 };
14925 
14926 /**
14927  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
14928  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
14929  *
14930  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
14931  *	event from the driver to userspace and represents the local MAC address
14932  *	to be used for PASN handshake. When this attribute is present, userspace
14933  *	shall use the source address specified in this attribute by the driver
14934  *	for PASN handshake with peer device.
14935  *	This attribute is required in a command response from userspace to the
14936  *	driver and represents the MAC address that was used in PASN handshake
14937  *	with the peer device.
14938  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
14939  *	peer device to which PASN handshake is requested in an event from the
14940  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14941  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
14942  *	Indicates the MAC address of the peer device for which the keys are to
14943  *	be invalidated in an event from the driver to userspace when
14944  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14945  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
14946  *	Indicates the MAC address of the peer device for which the status is
14947  *	being sent in a status report from userspace to the driver.
14948  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
14949  *	in the event from the driver to userspace. When set, userspace is
14950  *	required to derive LTF key seed from KDK and set it to the driver.
14951  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
14952  *	attribute is used in the command response from userspace to the driver.
14953  *	If present, it indicates the successful PASN handshake with the peer. If
14954  *	this flag is not present, it indicates that the PASN handshake with the
14955  *	peer device failed.
14956  */
14957 enum qca_wlan_vendor_attr_pasn_peer {
14958 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
14959 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
14960 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
14961 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
14962 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
14963 
14964 	/* keep last */
14965 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
14966 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
14967 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
14968 };
14969 
14970 /**
14971  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
14972  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
14973  *
14974  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
14975  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
14976  *	from the driver to userspace.
14977  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
14978  *	details for each peer and used in both an event and a command response.
14979  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
14980  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
14981  */
14982 enum qca_wlan_vendor_attr_pasn {
14983 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
14984 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
14985 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
14986 
14987 	/* keep last */
14988 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
14989 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
14990 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
14991 };
14992 
14993 /**
14994  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
14995  *	the ranging security context derived from PASN for each peer. Used in
14996  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
14997  *
14998  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
14999  *	context for the peer.
15000  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
15001  *	context for the peer.
15002  */
15003 enum qca_wlan_vendor_secure_ranging_ctx_action {
15004 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
15005 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
15006 };
15007 
15008 /**
15009  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
15010  *	used for deriving PASN keys to the driver. Used in
15011  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
15012  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
15013  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
15014  */
15015 enum qca_wlan_vendor_sha_type {
15016 	QCA_WLAN_VENDOR_SHA_256,
15017 	QCA_WLAN_VENDOR_SHA_384,
15018 };
15019 
15020 /**
15021  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
15022  *	to set security context for the PASN peer from userspace to the driver.
15023  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
15024  *
15025  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
15026  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
15027  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
15028  *	was used during the PASN handshake.
15029  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
15030  *	the peer device for which secure ranging context is being configured.
15031  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
15032  *	hash algorithm to be used, possible values are defined in enum
15033  *	qca_wlan_vendor_sha_type.
15034  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
15035  *	the temporal key generated from the PASN handshake. The length of this
15036  *	attribute is dependent on the value of
15037  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
15038  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
15039  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
15040  *	(e.g., 0x000FAC04).
15041  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
15042  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
15043  *	The length of this attribute is dependent on the value of
15044  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
15045  *
15046  */
15047 enum qca_wlan_vendor_attr_secure_ranging_ctx {
15048 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
15049 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
15050 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
15051 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
15052 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
15053 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
15054 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
15055 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
15056 
15057 	/* keep last */
15058 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
15059 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
15060 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
15061 };
15062 
15063 /**
15064  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
15065  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
15066  * nested attribute. The packets that match a filter will be replied with
15067  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
15068  *
15069  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
15070  * u32 attribute. Destination IPv4 address in network byte order, the
15071  * IPv4 packets with different address will be filtered out.
15072  * This attribute is optional.
15073  *
15074  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
15075  * Flag attribute. If it's present, indicates that
15076  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
15077  * address; while if not, indicates that the address is a unicast/multicast
15078  * address.
15079  * This attribute is optional.
15080  *
15081  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
15082  * NLA_BINARY attribute, length is 16 bytes.
15083  * Destination IPv6 address in network byte order, the IPv6 packets
15084  * with different destination address will be filtered out.
15085  * This attribute is optional.
15086  *
15087  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
15088  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
15089  * Packets on both IPv4 and IPv6 will be processed if both are configured.
15090  *
15091  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
15092  * u16 attribute. Destination UDP port, the packets with different destination
15093  * UDP port will be filtered out.
15094  * This attribute is mandatory.
15095  *
15096  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
15097  * u32 attribute. Represents the offset (in UDP payload) of the data
15098  * to be matched.
15099  * This attribute is mandatory.
15100  *
15101  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
15102  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
15103  * Binary data that is compared bit-by-bit against the data (specified
15104  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
15105  * payload, the packets don't match will be filtered out.
15106  * This attribute is mandatory.
15107  */
15108 enum qca_wlan_vendor_attr_coap_offload_filter {
15109 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
15110 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
15111 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
15112 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
15113 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
15114 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
15115 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
15116 
15117 	/* keep last */
15118 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
15119 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
15120 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
15121 };
15122 
15123 /**
15124  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
15125  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
15126  *
15127  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
15128  * u32 attribute. Source address (in network byte order) for replying
15129  * the matching broadcast/multicast IPv4 packets.
15130  * This attribute is optional.
15131  *
15132  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
15133  * NLA_BINARY attribute, length is 16 bytes.
15134  * Source address (in network byte order) for replying the matching
15135  * multicast IPv6 packets.
15136  * This attribute is optional.
15137  *
15138  * For broadcast/multicast offload reply, one of
15139  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
15140  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
15141  * configured according to version of the IP address(es) configured in
15142  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
15143  * while for unicast case, firmware will take the destination IP address
15144  * in the received matching packet as the source address for replying.
15145  *
15146  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
15147  * Nested attribute. Filter for the received UDP packets, only the matching
15148  * packets will be replied and cached.
15149  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
15150  * attributes.
15151  * This attribute is mandatory.
15152  *
15153  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
15154  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15155  * CoAP message (UDP payload) to be sent upon receiving matching packets.
15156  * Firmware is responsible for adding any necessary protocol headers.
15157  * This attribute is mandatory.
15158  *
15159  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
15160  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
15161  * A cached message will be dropped by firmware if it's expired.
15162  * This attribute is optional. A default value of 40000 will be used in the
15163  * absence of it.
15164  */
15165 enum qca_wlan_vendor_attr_coap_offload_reply {
15166 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
15167 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
15168 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
15169 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
15170 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
15171 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
15172 
15173 	/* keep last */
15174 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
15175 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
15176 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
15177 };
15178 
15179 /**
15180  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
15181  * CoAP message (UDP) transmitting on IPv4.
15182  *
15183  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
15184  * u32 attribute. Source address (in network byte order) for transmitting
15185  * packets on IPv4.
15186  * This attribute is mandatory.
15187  *
15188  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
15189  * u16 attribute. Source UDP port.
15190  * This attribute is optional, a random port is taken if it's not present.
15191  *
15192  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
15193  * u32 attribute. Destination IPv4 address (in network byte order).
15194  * This attribute is mandatory.
15195  *
15196  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
15197  * Flag attribute. If it's present, indicates that
15198  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
15199  * address; while if not, indicates that the address is unicast/multicast
15200  * address.
15201  * This attribute is optional.
15202  *
15203  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
15204  * u16 attribute. Destination UDP port.
15205  * This attribute is mandatory.
15206  */
15207 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
15208 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
15209 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
15210 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
15211 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
15212 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
15213 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
15214 
15215 	/* keep last */
15216 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
15217 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
15218 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
15219 };
15220 
15221 /**
15222  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
15223  * CoAP message (UDP) transmitting on IPv6.
15224  *
15225  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
15226  * NLA_BINARY attribute, length is 16 bytes.
15227  * Source address (in network byte order) for transmitting packets on IPv6.
15228  * This attribute is mandatory.
15229  *
15230  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
15231  * u16 attribute. Source UDP port.
15232  * This attribute is optional, a random port is taken if it's not present.
15233  *
15234  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
15235  * NLA_BINARY attribute, length is 16 bytes.
15236  * Destination IPv6 address (in network byte order).
15237  * This attribute is mandatory.
15238  *
15239  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
15240  * u16 attribute. Destination UDP port.
15241  * This attribute is mandatory.
15242  */
15243 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
15244 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
15245 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
15246 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
15247 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
15248 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
15249 
15250 	/* keep last */
15251 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
15252 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
15253 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
15254 };
15255 
15256 /**
15257  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
15258  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
15259  *
15260  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
15261  * Nested attribute. The IPv4 source/destination address/port for offload
15262  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
15263  * of supported attributes.
15264  * This attribute is optional.
15265  *
15266  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
15267  * Nested attribute. The IPv6 source/destination address/port for offload
15268  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
15269  * of supported attributes.
15270  * This attribute is optional.
15271  *
15272  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
15273  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
15274  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
15275  * configured.
15276  *
15277  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
15278  * u32 attribute. Period in milliseconds for the periodic transmitting.
15279  * This attribute is mandatory.
15280  *
15281  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
15282  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15283  * CoAP message (UDP payload) to be periodically transmitted. Firmware
15284  * is responsible for adding any necessary protocol headers.
15285  * This attribute is mandatory.
15286  */
15287 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
15288 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
15289 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
15290 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
15291 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
15292 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
15293 
15294 	/* keep last */
15295 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
15296 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
15297 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
15298 };
15299 
15300 /**
15301  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
15302  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
15303  *
15304  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
15305  * u64 attribute. Received time (since system booted in microseconds) of
15306  * the cached CoAP message.
15307  * This attribute is mandatory.
15308  *
15309  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
15310  * u32 attribute. Source IPv4 address (in network byte order) of the cached
15311  * CoAP message.
15312  * This attribute is optional.
15313  *
15314  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
15315  * NLA_BINARY attribute, length is 16 bytes.
15316  * Source IPv6 address (in network byte order) of the cached CoAP message.
15317  * This attribute is optional.
15318  *
15319  * At most and at least one of
15320  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
15321  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
15322  * an entry.
15323  *
15324  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
15325  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15326  * The cached CoAP message (UDP payload). If the actual message size is
15327  * greater than the maximum size, it will be truncated and leaving only
15328  * the first 1152 bytes.
15329  * This attribute is mandatory.
15330  */
15331 enum qca_wlan_vendor_attr_coap_offload_cache_info {
15332 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
15333 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
15334 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
15335 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
15336 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
15337 
15338 	/* keep last */
15339 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
15340 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
15341 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
15342 };
15343 
15344 /**
15345  * enum qca_wlan_vendor_coap_offload_action - Actions for
15346  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15347  *
15348  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
15349  * Enable CoAP offload reply.
15350  * If it's enabled, firmware will start offload processing on each suspend
15351  * and stop on each resume.
15352  *
15353  * Offload reply on match works as follows:
15354  * Reply the packets that match the filter with the given CoAP
15355  * message (with necessary protocol headers), increase the CoAP message
15356  * ID in the given CoAP message by one for the next use after each successful
15357  * transmission, and try to store the information of the received packet,
15358  * including the received time, source IP address, and CoAP message (UDP
15359  * payload).
15360  *
15361  * Firmware has a limit to the maximum stored entries, it takes the source IP
15362  * address as the key of an entry, and keeps at most one entry for each key.
15363  * A packet won't be stored if no entry for the same key is present and the
15364  * total number of the existing unexpired entries reaches the maximum value.
15365  *
15366  * If any configured item is changed, user space should disable offload reply
15367  * first and then issue a new enable request.
15368  *
15369  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
15370  * Disable CoAP offload reply and return information of any cached CoAP
15371  * messages.
15372  *
15373  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
15374  * Enable CoAP offload periodic transmitting.
15375  * If it's enabled, firmware will start offload periodic transmitting on
15376  * each suspend and stop on each resume.
15377  *
15378  * Offload periodic transmitting works as follows:
15379  * Send the given CoAP message (with necessary protocol headers) with the given
15380  * source/destination IP address/UDP port periodically based on the given
15381  * period and increase the CoAP message ID in the given CoAP message by one
15382  * for the next use after each successful transmission.
15383  *
15384  * If any configured item is changed, user space should disable offload
15385  * periodic transmitting first and then issue a new enable request.
15386  *
15387  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
15388  * Disable CoAP offload periodic transmitting.
15389  *
15390  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
15391  * Get information of the CoAP messages cached during offload reply
15392  * processing. The cache is cleared after retrieval.
15393  */
15394 enum qca_wlan_vendor_coap_offload_action {
15395 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
15396 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
15397 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
15398 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
15399 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
15400 };
15401 
15402 /**
15403  * enum qca_wlan_vendor_attr_coap_offload - Used by the
15404  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15405  * This is used to set parameters for CoAP offload processing, or get
15406  * cached CoAP messages from firmware.
15407  *
15408  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
15409  * u32 attribute. Action to take in this vendor command.
15410  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
15411  * This attribute is mandatory.
15412  *
15413  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
15414  * u32 attribute. Represents the Request ID for the CoAP offload
15415  * configuration, which can help to identify the user entity starting
15416  * the CoAP offload processing and accordingly stop the respective
15417  * ones/get the cached CoAP messages with the matching ID.
15418  * This attribute is mandatory.
15419  *
15420  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
15421  * Nested attribute. Parameters for offload reply.
15422  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
15423  * supported attributes.
15424  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15425  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
15426  * otherwise.
15427  *
15428  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
15429  * Nested attribute. Parameters for offload periodic transmitting.
15430  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
15431  * supported attributes.
15432  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
15433  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
15434  * otherwise.
15435  *
15436  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
15437  * Array of nested attributes. Information of the cached CoAP messages,
15438  * where each entry is taken from
15439  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
15440  * This attribute is used for reporting the cached CoAP messages
15441  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15442  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
15443  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
15444  * cached item if this attribute is not present.
15445  */
15446 enum qca_wlan_vendor_attr_coap_offload {
15447 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
15448 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
15449 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
15450 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
15451 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
15452 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
15453 
15454 	/* keep last */
15455 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
15456 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
15457 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
15458 };
15459 
15460 /**
15461  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
15462  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
15463  * Service (SCS) rule.
15464  *
15465  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
15466  * Represents the unique id of SCS rule to be configured.
15467 
15468  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
15469  * Represents the request type: add, remove, or change.
15470  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
15471  * Type definitions).
15472  *
15473  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
15474  * in case of add/change request type.
15475  * Represents the output traffic identifier (TID) to be assigned to the flow
15476  * matching the rule.
15477  *
15478  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
15479  * attribute in case of add/change request type.
15480  * Represents type of classifier parameters present in SCS rule.
15481  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
15482  * Only classifier types 4 and 10 are supported for SCS.
15483  *
15484  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
15485  * in case of add/change request type when classifier type is TCLAS4.
15486  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
15487  *
15488  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
15489  * attribute in case of add/change request type when classifier type is TCLAS4
15490  * and version attribute is IPv4.
15491  * Represents the source IPv4 address in the rule which is to be compared
15492  * against the source IP address in the IPv4 header.
15493  *
15494  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
15495  * attribute in case of add/change request type when classifier type is TCLAS4
15496  * and version attribute is IPv4.
15497  * Represents the destination IPv4 address in the rule which is to be compared
15498  * against the destination IP address in the IPv4 header.
15499  *
15500  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
15501  * attribute in case of add/change request type when classifier type is TCLAS4
15502  * and version attribute is IPv6.
15503  * Represents the source IPv6 address in the rule which is to be compared
15504  * against the source IP address in the IPv6 header.
15505  *
15506  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
15507  * attribute in case of add/change request type when classifier type is TCLAS4
15508  * and version attribute is IPv6.
15509  * Represents the destination IPv6 address in the rule which is to be compared
15510  * against the destination IP address in the IPv6 header.
15511  *
15512  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
15513  * in case of add/change request type when classifier type is TCLAS4.
15514  * Represents the source port number in the rule which is to be compared against
15515  * the source port number in the protocol header.
15516  *
15517  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
15518  * in case of add/change request type when classifier type is TCLAS4.
15519  * Represents the destination port number in the rule which is to be compared
15520  * against the destination port number in the protocol header.
15521  *
15522  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
15523  * in case of add/change request type when classifier type is TCLAS4.
15524  * Represents the DSCP value in the rule which is to be compared against the
15525  * DSCP field present in the IP header.
15526  *
15527  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
15528  * attribute in case of add/change request type when classifier type is TCLAS4.
15529  * Represents the protocol/next header in the rule which is to be compared
15530  * against the protocol/next header field present in the IPv4/IPv6 header.
15531  *
15532  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
15533  * attribute of size 3 bytes present in case of add/change request type
15534  * when classifier type is TCLAS4 and version is IPv6.
15535  * Represents the flow label value in the rule which is to be compared against
15536  * the flow label field present in the IPv6 header.
15537  *
15538  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
15539  * attribute in case of add/change request type when classifier type is TCLAS10.
15540  * Represents the protocol instance number in the rule.
15541  *
15542  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
15543  * attribute in case of add/change request type when classifier type is TCLAS10.
15544  * Represents the protocol/next header in the rule which is to be compared
15545  * against the protocol/next header field present in the IPv4/IPv6 header.
15546  *
15547  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
15548  * attribute of variable length present when request type is add/change and
15549  * classifier type is TCLAS10.
15550  * Represents the mask to be used for masking the header contents of the header
15551  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
15552  * attribute.
15553  *
15554  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
15555  * attribute of variable length present when request type is add/change and
15556  * classifier type is TCLAS10.
15557  * Represents the value to be compared against after masking the header contents
15558  * of the header specified by the
15559  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
15560  * filter mask specified by the
15561  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
15562  *
15563  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
15564  * attribute.
15565  * Represents the service class id of the configured SCS rule.
15566  *
15567  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
15568  * MAC address.
15569  * Represents the destination MAC address in the rule.
15570  *
15571  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
15572  * Represents the netdevice interface index in the rule.
15573  */
15574 enum qca_wlan_vendor_attr_scs_rule_config {
15575 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
15576 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
15577 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
15578 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
15579 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
15580 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
15581 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
15582 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
15583 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
15584 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
15585 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
15586 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
15587 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
15588 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
15589 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
15590 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
15591 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
15592 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
15593 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
15594 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
15595 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
15596 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
15597 
15598 	/* Keep last */
15599 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
15600 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
15601 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
15602 };
15603 
15604 /**
15605  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
15606  * used in the firmware.
15607  *
15608  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
15609  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
15610  *
15611  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
15612  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
15613  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
15614  * groups.
15615  *
15616  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
15617  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
15618  * CTL group but user can choose up to 3 SAR set index only, as the top half
15619  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
15620  * the SAR index (3 to 5) is used for DBS mode.
15621  */
15622 enum qca_wlan_vendor_sar_version {
15623 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
15624 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
15625 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
15626 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
15627 };
15628 
15629 /**
15630  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
15631  * CTL grouping is enabled or disabled in the firmware.
15632  *
15633  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
15634  * is enabled in firmware.
15635  *
15636  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
15637  * is disabled in firmware.
15638  *
15639  */
15640 enum qca_wlan_vendor_sar_ctl_group_state {
15641 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
15642 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
15643 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
15644 };
15645 
15646 /**
15647  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15648  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15649  * supported by the firmware.
15650 
15651  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15652  * u32 attribute. This field describes current SAR version supported by the
15653  * firmware.
15654  * See enum qca_wlan_vendor_sar_version for more information.
15655  * This attribute is mandatory.
15656 
15657  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15658  * u32 attribute. This field describes whether CTL groups are enabled
15659  * or disabled in the firmware.
15660  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15661  * This attribute is optional.
15662  */
15663 
15664 enum qca_wlan_vendor_attr_sar_capability {
15665 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15666 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15667 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15668 
15669 	/* Keep last */
15670 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15671 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15672 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15673 };
15674 
15675 /**
15676  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15677  * These statistics are sent from the driver in a response when userspace
15678  * queries to get the statistics using the operation
15679  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15680  * by the driver when the SR feature is enabled, when the driver receives
15681  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15682  *
15683  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15684  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15685  * This represents the number of non-SRG TX opportunities.
15686  *
15687  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15688  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15689  * This represents the number of non-SRG PPDUs tried to transmit.
15690  *
15691  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15692  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15693  * This represents the number of non-SRG PPDUs successfully transmitted.
15694  *
15695  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15696  * Mandatory only when SRG is supported by the AP and optional otherwise.
15697  * This represents the number of SRG TX opportunities.
15698  *
15699  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15700  * Mandatory only when SRG is supported by the AP and optional otherwise.
15701  * This represents the number of SRG PPDUs tried to transmit.
15702  *
15703  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15704  * Mandatory only when SRG is supported by the AP and optional otherwise.
15705  * This represents the number of SRG PPDUs successfully transmitted.
15706  */
15707 enum qca_wlan_vendor_attr_sr_stats {
15708 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
15709 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
15710 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
15711 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
15712 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
15713 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
15714 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
15715 
15716 	/* Keep last */
15717 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
15718 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
15719 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
15720 };
15721 
15722 /**
15723  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
15724  * Spatial Reuse feature.
15725  *
15726  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
15727  * roaming to an AP that doesn't support/supports SR feature, respectively.
15728  *
15729  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
15730  * to change in concurrent interfaces that are supported by the driver.
15731  */
15732 enum qca_wlan_sr_reason_code {
15733 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
15734 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
15735 };
15736 
15737 /**
15738  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
15739  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
15740  *
15741  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
15742  * driver to enable the Spatial Reuse feature. Attributes
15743  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15744  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
15745  * operation.
15746  *
15747  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
15748  * driver to disable the Spatial Reuse feature.
15749  *
15750  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
15751  * asynchronous event sent to userspace when the SR feature is disabled.
15752  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
15753  * and sent along with the asynchronous event.
15754  *
15755  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
15756  * asynchronous event when the SR feature is enabled again after the SR feature
15757  * was suspended by the driver earlier. The enable reason is
15758  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
15759  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15760  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
15761  *
15762  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
15763  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15764  * reuse transmissions. Userspace sends this operation to the driver.
15765  * The driver/firmware upon receiving this operation shall prohibit PSR-based
15766  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15767  *
15768  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
15769  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15770  * reuse transmissions. Userspace sends this operation to the driver.
15771  * The driver/firmware upon receiving this operation shall allow PSR-based
15772  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15773  *
15774  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
15775  * driver to get the SR statistics and the driver sends a synchronous response
15776  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
15777  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
15778  *
15779  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
15780  * driver to clear the SR statistics and upon receiving this operation
15781  * the driver/firmware shall clear the SR statistics.
15782  *
15783  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
15784  * driver to get the SR parameters and the driver sends the synchronous response
15785  * with the following required attributes:
15786  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15787  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15788  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15789  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15790  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15791  *
15792  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
15793  * asynchronous event to userspace to update any changes in SR parameters.
15794  * The following attributes are used with this operation:
15795  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15796  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15797  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15798  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15799  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15800  */
15801 enum qca_wlan_sr_operation {
15802 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
15803 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
15804 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
15805 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
15806 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
15807 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
15808 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
15809 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
15810 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
15811 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
15812 };
15813 
15814 /**
15815  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
15816  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
15817  *
15818  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
15819  * This attribute is optionally set in response to
15820  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
15821  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
15822  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
15823  * about HESIGA_Spatial_reuse_value15_allowed.
15824  *
15825  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
15826  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
15827  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
15828  * allowed or not at non-AP STAs that are associated with the AP. If present
15829  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
15830  *
15831  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
15832  * attribute. This attribute is used in response to
15833  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15834  * Min Offset field which contains an unsigned integer that is added to -82 dBm
15835  * to generate the value of the SRG OBSS PD Min parameter.
15836  *
15837  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15838  * attribute. This attribute is used in response to
15839  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15840  * Max Offset field which contains an unsigned integer that is added to -82 dBm
15841  * to generate the value of the SRG OBSS PD Max parameter.
15842  *
15843  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15844  * attribute. This attribute is used in response to
15845  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
15846  * PD Max Offset field which contains an unsigned integer that is added to -82
15847  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
15848  *
15849  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15850  * Userspace optionally sends this attribute with
15851  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15852  * preferred SRG PD threshold. The driver shall send this attribute to
15853  * userspace in SR resume event to indicate the PD threshold being used for SR.
15854  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
15855  * the driver shall indicate the userspace the newly configured SRG PD threshold
15856  * using an asynchronous event.
15857  *
15858  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15859  * Userspace optionally sends this attribute with
15860  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15861  * preferred non-SRG PD threshold. The driver shall send this attribute to
15862  * userspace in SR resume event to indicate the PD threshold being used for SR.
15863  * When there is change in non-SRG PD threshold (for example, due to roaming,
15864  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
15865  * threshold using an asynchronous event.
15866  *
15867  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
15868  * values are defined in enum qca_wlan_sr_reason_code. This
15869  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
15870  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
15871  */
15872 enum qca_wlan_vendor_attr_sr_params {
15873 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
15874 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
15875 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
15876 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
15877 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
15878 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
15879 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
15880 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
15881 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
15882 
15883 	/* keep last */
15884 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
15885 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
15886 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
15887 };
15888 
15889 /**
15890  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
15891  * command QCA_NL80211_VENDOR_SUBCMD_SR.
15892  *
15893  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
15894  * from userspace to the driver. Possible values are defined in enum
15895  * qca_wlan_sr_operation.
15896  *
15897  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
15898  * configuration parameters. The possible attributes inside this attribute are
15899  * defined in enum qca_wlan_vendor_attr_sr_params.
15900  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15901  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
15902  * also in response from the driver to userspace when the response is sent for
15903  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
15904  * The driver uses this attribute in asynchronous events in which the operation
15905  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
15906  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
15907  *
15908  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
15909  * statistics. These attributes used inside this are defined in enum
15910  * qca_wlan_vendor_attr_sr_stats.
15911  * This attribute is used in response from the driver to a command in which
15912  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15913  * %QCA_WLAN_SR_OPERATION_GET_STATS.
15914  */
15915 enum qca_wlan_vendor_attr_sr {
15916 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
15917 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
15918 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
15919 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
15920 
15921 	/* Keep last */
15922 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
15923 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
15924 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
15925 };
15926 
15927 /**
15928  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
15929  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
15930  *
15931  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
15932  * used by the peer on the link that corresponds to the link used for sending
15933  * the event notification.
15934  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
15935  * MLD MAC address of the peer.
15936  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
15937  * used to pass ifindex of the primary netdev.
15938  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
15939  * used to pass ifindex of the MLD netdev.
15940  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
15941  * used to indicate the number of links that the non-AP MLD negotiated to be
15942  * used in the ML connection.
15943  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
15944  * attribute, contains information regarding links of the non-AP MLD.
15945  * User applications need to know all the links of a non-AP MLD that are
15946  * participating in the ML association. The possible attributes inside this
15947  * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
15948  */
15949 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
15950 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
15951 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
15952 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
15953 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
15954 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
15955 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
15956 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
15957 
15958 	/* keep last */
15959 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
15960 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
15961 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
15962 };
15963 
15964 /**
15965  * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
15966  * non-AP MLD link parameters used by the attribute
15967  * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
15968  *
15969  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
15970  * to pass the netdev ifindex of the non-AP MLD link.
15971  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
15972  * the non-AP MLD link.
15973  */
15974 enum qca_wlan_vendor_attr_mlo_link_info {
15975 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
15976 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
15977 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
15978 
15979 	/* keep last */
15980 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
15981 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
15982 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
15983 };
15984 
15985 /**
15986  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
15987  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
15988  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
15989  * and PSD information.
15990  *
15991  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
15992  * u32. This attribute is used to indicate the start of the queried frequency
15993  * range in MHz.
15994  *
15995  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
15996  * This attribute is used to indicate the end of the queried frequency range
15997  * in MHz.
15998  *
15999  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
16000  * This attribute will contain the PSD information for a single range as
16001  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
16002  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
16003  *
16004  * The PSD power info (dBm/MHz) from user space should be multiplied
16005  * by a factor of 100 when sending to the driver to preserve granularity
16006  * up to 2 decimal places.
16007  * Example:
16008  *     PSD power value: 10.21 dBm/MHz
16009  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
16010  *
16011  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
16012  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
16013  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
16014  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16015  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16016  *
16017  * The following set of attributes will be used to exchange frequency and
16018  * corresponding PSD information for AFC between the user space and the driver.
16019  */
16020 enum qca_wlan_vendor_attr_afc_freq_psd_info {
16021 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
16022 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
16023 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
16024 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
16025 
16026 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
16027 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
16028 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
16029 };
16030 
16031 /**
16032  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
16033  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
16034  * channel list and corresponding EIRP information.
16035  *
16036  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
16037  * This attribute is used to indicate queried channel from
16038  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
16039  *
16040  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
16041  * This attribute is used to configure the EIRP power info corresponding
16042  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
16043  * The EIRP power info(dBm) from user space should be multiplied
16044  * by a factor of 100 when sending to Driver to preserve granularity up to
16045  * 2 decimal places.
16046  * Example:
16047  *     EIRP power value: 34.23 dBm
16048  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
16049  *
16050  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
16051  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16052  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
16053  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16054  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
16055  *
16056  * The following set of attributes will be used to exchange Channel and
16057  * corresponding EIRP information for AFC between the user space and Driver.
16058  */
16059 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
16060 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
16061 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
16062 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
16063 
16064 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
16065 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
16066 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
16067 };
16068 
16069 /**
16070  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
16071  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16072  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
16073  * channel, and EIRP related information.
16074  *
16075  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
16076  * This attribute is used to indicate the operating class, as listed under
16077  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
16078  *
16079  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
16080  * for updating the channel number and EIRP power information.
16081  * It uses the attributes defined in
16082  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
16083  *
16084  * Operating class information packing format for
16085  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16086  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16087  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
16088  *
16089  * m - Total number of operating classes.
16090  * n, j - Number of queried channels for the corresponding operating class.
16091  *
16092  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16093  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16094  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16095  *      .....
16096  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16097  *  ....
16098  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16099  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16100  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16101  *      ....
16102  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16103  *
16104  * Operating class information packing format for
16105  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16106  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16107  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16108  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16109  *
16110  * m - Total number of operating classes.
16111  * n, j - Number of channels for the corresponding operating class.
16112  *
16113  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16114  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16115  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16116  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16117  *      .....
16118  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16119  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
16120  *  ....
16121  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16122  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16123  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16124  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16125  *      ....
16126  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16127  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
16128  *
16129  * The following set of attributes will be used to exchange operating class
16130  * information for AFC between the user space and the driver.
16131  */
16132 enum qca_wlan_vendor_attr_afc_opclass_info {
16133 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
16134 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
16135 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
16136 
16137 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
16138 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
16139 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
16140 };
16141 
16142 /**
16143  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
16144  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
16145  *
16146  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
16147  * driver to userspace in order to query the new AFC power values.
16148  *
16149  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
16150  * complete event will be sent from the driver to userspace to indicate
16151  * processing of the AFC response.
16152  *
16153  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
16154  * will be sent from the driver to userspace to indicate last received
16155  * AFC response data has been cleared on the AP due to invalid data
16156  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
16157  *
16158  * The following enum defines the different event types that will be
16159  * used by the driver to help trigger corresponding AFC functionality in user
16160  * space.
16161  */
16162 enum qca_wlan_vendor_afc_event_type {
16163 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
16164 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
16165 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
16166 };
16167 
16168 /**
16169  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
16170  * deployment type.
16171  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
16172  *
16173  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
16174  *
16175  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
16176  *
16177  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
16178  *
16179  * The following enum defines different deployment modes that the AP might
16180  * come up in. This information will be essential to retrieve deployment-type
16181  * specific SP power values for AFC operation.
16182  */
16183 enum qca_wlan_vendor_afc_ap_deployment_type {
16184 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
16185 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
16186 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
16187 };
16188 
16189 /**
16190  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
16191  * indicate AFC response status.
16192  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
16193  *
16194  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
16195  *
16196  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
16197  * command was not received within the expected time of the AFC expiry event
16198  * being triggered.
16199  *
16200  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
16201  * parsing error by the driver.
16202  *
16203  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
16204  * error.
16205  *
16206  * The following enum defines the status codes that the driver will use to
16207  * indicate whether the AFC data is valid or not.
16208  */
16209 enum qca_wlan_vendor_afc_evt_status_code {
16210 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
16211 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
16212 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
16213 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
16214 };
16215 
16216 /**
16217  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
16218  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
16219  * support sending only a single request to the user space at a time.
16220  *
16221  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
16222  * Used with event to notify the type of AFC event received.
16223  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
16224  *
16225  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
16226  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16227  * otherwise unused.
16228  *
16229  * This attribute is used to indicate the AP deployment type in the AFC request.
16230  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
16231  *
16232  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
16233  * Unique request identifier generated by the AFC client for every
16234  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
16235  * The user space application is responsible for ensuring no duplicate values
16236  * are in-flight with the server, e.g., by delaying a request, should the same
16237  * value be received from different radios in parallel.
16238  *
16239  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
16240  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16241  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
16242  *
16243  * This attribute indicates the AFC spec version information. This will
16244  * indicate the AFC version AFC client must use to query the AFC data.
16245  * Bits 15:0  - Minor version
16246  * Bits 31:16 - Major version
16247  *
16248  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
16249  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16250  * otherwise unused.
16251  * This attribute indicates the minimum desired power (in dBm) for
16252  * the queried spectrum.
16253  *
16254  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
16255  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16256  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16257  *
16258  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
16259  * This attribute is used to indicate if there were any errors parsing the
16260  * AFC response.
16261  *
16262  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
16263  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16264  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16265  *
16266  * This attribute indicates the AFC response code. The AFC response codes are
16267  * in the following categories:
16268  * -1: General Failure.
16269  * 0: Success.
16270  * 100 - 199: General errors related to protocol.
16271  * 300 - 399: Error events specific to message exchange
16272  *            for the Available Spectrum Inquiry.
16273  *
16274  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
16275  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16276  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16277  *
16278  * This attribute indicates the date until which the current response is
16279  * valid for in UTC format.
16280  * Date format: bits 7:0   - DD (Day 1-31)
16281  *              bits 15:8  - MM (Month 1-12)
16282  *              bits 31:16 - YYYY (Year)
16283  *
16284  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
16285  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16286  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16287  *
16288  * This attribute indicates the time until which the current response is
16289  * valid for in UTC format.
16290  * Time format: bits 7:0   - SS (Seconds 0-59)
16291  *              bits 15:8  - MM (Minutes 0-59)
16292  *              bits 23:16 - HH (Hours 0-23)
16293  *              bits 31:24 - Reserved
16294  *
16295  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
16296  * for updating the list of frequency ranges to be queried.
16297  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16298  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16299  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16300  * It uses the attributes defined in
16301  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
16302  *
16303  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
16304  * for updating the list of operating classes and corresponding channels to be
16305  * queried.
16306  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16307  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16308  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16309  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
16310  */
16311 enum qca_wlan_vendor_attr_afc_event {
16312 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
16313 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
16314 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
16315 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
16316 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
16317 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
16318 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
16319 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
16320 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
16321 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
16322 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
16323 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
16324 
16325 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
16326 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
16327 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
16328 };
16329 
16330 /**
16331  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
16332  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
16333  * will support sending only a single AFC response to the driver at a time.
16334  *
16335  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
16336  * This attribute will be used to send a single Spectrum Inquiry response object
16337  * from the 'availableSpectrumInquiryResponses' array object from the response
16338  * JSON.
16339  *
16340  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
16341  *
16342  * This attribute indicates the period (in seconds) for which the response
16343  * data received is valid for.
16344  *
16345  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
16346  *
16347  * This attribute indicates the request ID for which the corresponding
16348  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
16349  *
16350  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
16351  *
16352  * This attribute indicates the date until which the current response is
16353  * valid for in UTC format.
16354  * Date format: bits 7:0   - DD (Day 1-31)
16355  *              bits 15:8  - MM (Month 1-12)
16356  *              bits 31:16 - YYYY (Year)
16357  *
16358  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
16359  *
16360  * This attribute indicates the time until which the current response is
16361  * valid for in UTC format.
16362  * Time format: bits 7:0   - SS (Seconds 0-59)
16363  *              bits 15:8  - MM (Minutes 0-59)
16364  *              bits 23:16 - HH (Hours 0-23)
16365  *              bits 31:24 - Reserved
16366  *
16367  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
16368  *
16369  * This attribute indicates the AFC response code. The AFC response codes are
16370  * in the following categories:
16371  * -1: General Failure.
16372  * 0: Success.
16373  * 100 - 199: General errors related to protocol.
16374  * 300 - 399: Error events specific to message exchange
16375  *            for the Available Spectrum Inquiry.
16376  *
16377  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
16378  * for PSD info of all the queried frequency ranges. It uses the attributes
16379  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
16380  *
16381  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
16382  * attributes for EIRP info of all queried operating class/channels. It uses
16383  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
16384  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
16385  *
16386  */
16387 enum qca_wlan_vendor_attr_afc_response {
16388 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
16389 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
16390 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
16391 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
16392 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
16393 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
16394 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
16395 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
16396 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
16397 
16398 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
16399 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
16400 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
16401 };
16402 
16403 /**
16404  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
16405  *
16406  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
16407  *
16408  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
16409  * beaconing at higher beacon interval with Rx disabled.
16410  */
16411 enum qca_wlan_dozed_ap_state {
16412 	QCA_WLAN_DOZED_AP_DISABLE = 0,
16413 	QCA_WLAN_DOZED_AP_ENABLE = 1,
16414 };
16415 
16416 /**
16417  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
16418  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
16419  * configuration.
16420  *
16421  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
16422  * Configures the doze state for an AP interface. Possible values are defined
16423  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
16424  * gets triggered asynchronously to provide updated AP interface configuration.
16425  *
16426  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
16427  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
16428  * command, which is used later to maintain synchronization between commands
16429  * and asynchronous events.
16430  *
16431  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
16432  * Used in event to indicate the next TBTT TSF timer value after applying the
16433  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
16434  * the first beacon after entering or exiting dozed mode.
16435  *
16436  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
16437  * Used with event to inform the periodicity of beacon transmission that would
16438  * be skipped at all TBTTs in between.
16439  */
16440 enum qca_wlan_vendor_attr_dozed_ap {
16441 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
16442 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
16443 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
16444 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
16445 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
16446 
16447 	/* Keep last */
16448 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
16449 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
16450 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
16451 };
16452 
16453 /**
16454  * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
16455  * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
16456  * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
16457  * capture running status.
16458  * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
16459  * capture running status.
16460  **/
16461 
16462 enum qca_wlan_vendor_monitor_mode_status {
16463 	QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
16464 	QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
16465 };
16466 
16467 /**
16468  * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
16469  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
16470  * information regarding the local packet capture over the monitor mode.
16471  *
16472  * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
16473  * represents the status of the start capture commands. The values used with
16474  * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
16475  * is returned by the driver in the response to the command.
16476  */
16477 
16478 enum qca_wlan_vendor_attr_get_monitor_mode {
16479 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
16480 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
16481 
16482 	/* Keep last */
16483 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
16484 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
16485 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
16486 };
16487 
16488 /**
16489  * enum qca_wlan_vendor_link_state_op_types - Defines different types of
16490  * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
16491  * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
16492  *
16493  * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
16494  * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
16495  */
16496 enum qca_wlan_vendor_link_state_op_types {
16497 	QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
16498 	QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
16499 };
16500 
16501 /**
16502  * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
16503  * links state control modes. This enum is used by
16504  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
16505  *
16506  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
16507  * by the driver.
16508  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
16509  * user space.
16510  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
16511  * desired number of MLO links to operate in active state at any given time.
16512  * The driver will choose which MLO links should operate in the active state.
16513  * See enum qca_wlan_vendor_link_state for active state definition.
16514  */
16515 enum qca_wlan_vendor_link_state_control_modes {
16516 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
16517 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
16518 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
16519 };
16520 
16521 /**
16522  * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
16523  * links state operation modes. This enum is used by
16524  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
16525  *
16526  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
16527  * mode, the driver selects the operating mode of the links, without any
16528  * guidance from the user space.
16529  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
16530  * operation mode the driver should select MLO links that will achieve low
16531  * latency.
16532  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
16533  * throughput operation mode the driver should select MLO links that will
16534  * achieve higher throughput.
16535  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
16536  * operation mode the driver should select MLO links that will achieve low
16537  * power.
16538  */
16539 enum qca_wlan_vendor_link_state_operation_modes {
16540 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
16541 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
16542 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
16543 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
16544 };
16545 
16546 /**
16547  * enum qca_wlan_vendor_link_state - Represents the possible link states of an
16548  * MLO link.
16549  *
16550  * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
16551  * be used for data transmission but it can have TIDs mapped to it. It will be
16552  * in doze state always and does not monitor the beacons.
16553  * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
16554  * used for data TX/RX and monitors the beacons to check TIM bit indication.
16555  * It may enter doze state and comes out based on the transmit data traffic and
16556  * TIM bit indication in the beacon.
16557  */
16558 enum qca_wlan_vendor_link_state {
16559 	QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
16560 	QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
16561 };
16562 
16563 /**
16564  * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
16565  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
16566  *
16567  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
16568  * MLO link.
16569  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
16570  * enum qca_wlan_vendor_link_state for possible MLO link states.
16571  */
16572 
16573 enum qca_wlan_vendor_attr_link_state_config {
16574 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
16575 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
16576 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
16577 
16578 	/* Keep last */
16579 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
16580 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
16581 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
16582 };
16583 
16584 /**
16585  * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
16586  * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
16587  *
16588  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
16589  * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
16590  * Required only in a command. Possible values for this attribute are defined in
16591  * enum qca_wlan_vendor_link_state_op_types.
16592  *
16593  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
16594  * links control mode type. Optional attribute in a command when
16595  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16596  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16597  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16598  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16599  * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
16600  *
16601  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
16602  * Indicates the state of the each MLO link affiliated with the interface.
16603  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16604  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16605  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16606  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
16607  * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16608  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16609  * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
16610  *
16611  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
16612  * Represents the number of active state links. See enum
16613  * qca_wlan_vendor_link_state for active state definition.
16614  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16615  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16616  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16617  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
16618  *
16619  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
16620  * links operation mode type. Optional attribute in a command when
16621  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16622  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16623  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16624  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16625  * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
16626  * modes.
16627  */
16628 enum qca_wlan_vendor_attr_mlo_link_state {
16629 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
16630 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
16631 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
16632 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
16633 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
16634 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
16635 
16636 	/* keep last */
16637 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
16638 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
16639 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
16640 };
16641 
16642 /**
16643  * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
16644  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16645  *
16646  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
16647  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16648  * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
16649  * bitmask of the link IDs in which a bit set means that the TID is mapped with
16650  * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
16651  * traffic for that link.
16652  *
16653  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
16654  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16655  * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
16656  * bitmask of the link IDs in which a bit set means that the TID is mapped with
16657  * that link ID in downlink traffic. Otherwise, the TID is not mapped to
16658  * downlink traffic for that link.
16659  */
16660 enum qca_wlan_vendor_attr_tid_link_map_status {
16661 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
16662 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
16663 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
16664 
16665 	/* keep last */
16666 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
16667 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
16668 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
16669 };
16670 
16671 /*
16672  * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
16673  * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
16674  *
16675  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
16676  * AP MLD address with which this TID-to-link negotiation mapping is
16677  * established/updated.
16678  *
16679  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
16680  * nested attributes containing TID-to-links mapping information. This will have
16681  * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
16682  * map information. If this attribute is not present the default TID-to-link
16683  * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
16684  * downlink traffic.
16685  * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
16686  */
16687 enum qca_wlan_vendor_attr_tid_to_link_map {
16688 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
16689 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
16690 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
16691 
16692 	/* keep last */
16693 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
16694 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
16695 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
16696 };
16697 
16698 /**
16699  * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
16700  * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
16701  *
16702  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
16703  * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
16704  *
16705  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
16706  * A bitmap of the removed setup links link IDs.
16707  */
16708 enum qca_wlan_vendor_attr_link_reconfig {
16709 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
16710 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
16711 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
16712 
16713 	/* keep last */
16714 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
16715 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
16716 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
16717 };
16718 
16719 /**
16720  * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
16721  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
16722  *
16723  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
16724  * Indicates the MLO link id on which the TDLS discovery response
16725  * frame is to be transmitted.
16726  */
16727 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
16728 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
16729 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
16730 
16731 	/* Keep last */
16732 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
16733 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
16734 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
16735 };
16736 
16737 /**
16738  * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
16739  *
16740  * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
16741  * for all stations.
16742  *
16743  * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
16744  * establish the session.
16745  *
16746  * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
16747  * established.
16748  *
16749  * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
16750  * session is established using MCC.
16751  *
16752  * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
16753  * established, but is temporarily dropped currently.
16754  *
16755  * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
16756  */
16757 enum qca_wlan_vendor_tdls_state {
16758 	QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
16759 	QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
16760 	QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
16761 	QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
16762 	QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
16763 	QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
16764 };
16765 
16766 /**
16767  * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
16768  *
16769  * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
16770  *
16771  * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
16772  *
16773  * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
16774  *
16775  * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
16776  *
16777  * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
16778  * than through direct link.
16779  *
16780  * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
16781  * session anymore.
16782  */
16783 
16784 enum qca_wlan_vendor_tdls_reason {
16785 	QCA_WLAN_TDLS_REASON_SUCCESS = 0,
16786 	QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
16787 	QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
16788 	QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
16789 	QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
16790 	QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
16791 };
16792 
16793 /**
16794  * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
16795  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
16796  *
16797  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
16798  * station to enable the TDLS session. Optional attribute. The driver sends the
16799  * TDLS session result as an asynchronous response using the command
16800  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
16801  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
16802  *
16803  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
16804  * channel on which the TDLS session to be established. Required only when
16805  * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16806  *
16807  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
16808  * Indicates the global operating class of the TDLS session to be established.
16809  * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16810  *
16811  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
16812  * the maximum latency of the WLAN packets to be transmitted/received in
16813  * milliseconds on TDLS session. Required only when
16814  * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16815  *
16816  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
16817  * Indicates the minimum bandwidth to be used to establish the TDLS session
16818  * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
16819  * present.
16820  */
16821 enum qca_wlan_vendor_attr_tdls_enable {
16822 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
16823 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
16824 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
16825 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
16826 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
16827 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
16828 
16829 	/* keep last */
16830 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
16831 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
16832 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
16833 };
16834 
16835 /**
16836  * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
16837  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
16838  *
16839  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
16840  * station to disable the TDLS session. Optional attribute.
16841  */
16842 enum qca_wlan_vendor_attr_tdls_disable {
16843 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
16844 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
16845 
16846 	/* keep last */
16847 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
16848 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
16849 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
16850 };
16851 
16852 /**
16853  * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
16854  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
16855  *
16856  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
16857  * peer station. Optional attribute. Used in
16858  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
16859  *
16860  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
16861  * TDLS session state with the peer specified in
16862  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
16863  * enum qca_wlan_vendor_tdls_state. Used in
16864  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16865  *
16866  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
16867  * reason for the TDLS session state indicated in
16868  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
16869  * qca_wlan_vendor_tdls_reason. Used in
16870  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16871  *
16872  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
16873  * channel of the TDLS session established with
16874  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16875  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16876  *
16877  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
16878  * Indicates the global operating class of the TDLS session established with
16879  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16880  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16881  *
16882  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
16883  * the current number of active TDLS sessions. This is indicated in the response
16884  * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16885  * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16886  *
16887  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
16888  * whether the driver can initiate new TDLS session. This is indicated in the
16889  * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16890  * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16891  */
16892 enum qca_wlan_vendor_attr_tdls_get_status {
16893 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
16894 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
16895 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
16896 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
16897 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
16898 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
16899 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
16900 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
16901 
16902 	/* keep last */
16903 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
16904 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
16905 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
16906 };
16907 
16908 /**
16909  * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
16910  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
16911  *
16912  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
16913  * peer station. Required attribute.
16914  *
16915  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
16916  * the current TDLS state. Required attribute. Uses the values from
16917  * enum qca_wlan_vendor_tdls_state.
16918  *
16919  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
16920  * reason of the current TDLS session state. Required attribute. Uses the values
16921  * from enum qca_wlan_vendor_tdls_reason.
16922  *
16923  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
16924  * TDLS session channel. Required attribute.
16925  *
16926  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
16927  * Indicates the TDLS session global operating class. Required attribute.
16928  */
16929 enum qca_wlan_vendor_attr_tdls_state {
16930 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
16931 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
16932 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
16933 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
16934 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
16935 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
16936 
16937 	/* keep last */
16938 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
16939 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
16940 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
16941 };
16942 
16943 /*
16944  * enum qca_wlan_vendor_opm_mode - Modes supported by
16945  * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
16946  *
16947  * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
16948  * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
16949  * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
16950  * 	to configure power save inactivity timeout and speculative wake up
16951  * 	interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
16952  * 	%QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
16953  */
16954 
16955 enum qca_wlan_vendor_opm_mode {
16956 	QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
16957 	QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
16958 	QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
16959 };
16960 
16961 /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport
16962  * switch types.
16963  *
16964  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
16965  * via non-WLAN transport (ex: bluetooth).
16966  *
16967  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
16968  * WLAN transport.
16969  */
16970 enum qca_wlan_audio_transport_switch_type {
16971 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
16972 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
16973 };
16974 
16975 /**
16976  * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
16977  * transport switch request.
16978  *
16979  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
16980  * has been rejected. For ex: when transport switch is requested from WLAN
16981  * to non-WLAN transport, user space modules and peers would evaluate the switch
16982  * request and may not be ready for switch and hence switch to non-WLAN transport
16983  * gets rejected.
16984  *
16985  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport
16986  * has been completed. This is sent only in command path. Ex: when host driver
16987  * had requested for audio transport switch and userspace modules as well as
16988  * peers are ready for the switch, userspace module switches the transport and
16989  * sends subcommand with status completed to host driver.
16990  */
16991 enum qca_wlan_audio_transport_switch_status {
16992 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
16993 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
16994 };
16995 
16996 /**
16997  * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
16998  * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
16999  *
17000  * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
17001  * the transport switch type from one of the values in enum
17002  * qca_wlan_audio_transport_switch_type. This is mandatory param in both
17003  * command and event path. This attribute is included in both requests and
17004  * responses.
17005  *
17006  * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
17007  * the transport switch status from one of the values in enum
17008  * qca_wlan_audio_transport_switch_status. This is optional param and used in
17009  * both command and event path. This attribute must not be included in requests.
17010  */
17011 enum qca_wlan_vendor_attr_audio_transport_switch {
17012 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
17013 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
17014 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
17015 	/* keep last */
17016 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
17017 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
17018 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
17019 };
17020 
17021 #endif
17022