xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 70b5c653d03ad75012b89663d3e54df73831c0cd)
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  * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to
830  *	configure, retrieve, and report per-link transmit latency statistics.
831  *
832  *	The attributes used with this subcommand are defined in
833  *	enum qca_wlan_vendor_attr_tx_latency.
834  */
835 
836 enum qca_nl80211_vendor_subcmds {
837 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
838 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
839 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
840 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
841 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
842 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
843 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
844 
845 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
846 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
847 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
848 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
849 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
850 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
851 
852 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
853 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
854 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
855 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
856 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
857 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
858 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
859 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
860 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
861 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
862 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
863 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
864 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
865 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
866 
867 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
868 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
869 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
870 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
871 
872 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
873 
874 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
875 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
876 
877 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
878 
879 	/* Get Concurrency Matrix */
880 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
881 
882 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
883 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
884 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
885 
886 	/* Deprecated */
887 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
888 
889 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
890 
891 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
892 
893 	/* Off loaded DFS events */
894 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
895 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
896 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
897 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
898 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
899 
900 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
901 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
902 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
903 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
904 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
905 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
906 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
907 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
908 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
909 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
910 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
911 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
912 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
913 
914 	/* Wi-Fi Configuration subcommands */
915 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
916 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
917 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
918 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
919 
920 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
921 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
922 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
923 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
924 
925 	/* NS Offload enable/disable cmd */
926 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
927 
928 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
929 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
930 
931 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
932 
933 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
934 	/* OCB commands */
935 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
936 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
937 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
938 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
939 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
940 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
941 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
942 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
943 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
944 
945 	/* subcommand to get link properties */
946 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
947 	/* LFR Subnet Detection */
948 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
949 
950 	/* DBS subcommands */
951 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
952 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
953 
954 	/* Vendor setband command */
955 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
956 
957 	/* Vendor scan commands */
958 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
959 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
960 
961 	/* OTA test subcommand */
962 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
963 	/* Tx power scaling subcommands */
964 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
965 	/* Tx power scaling in db subcommands */
966 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
967 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
968 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
969 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
970 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
971 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
972 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
973 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
974 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
975 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
976 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
977 
978 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
979 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
980 	/* FTM/indoor location subcommands */
981 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
982 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
983 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
984 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
985 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
986 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
987 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
988 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
989 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
990 
991 	/* Encrypt/Decrypt command */
992 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
993 
994 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
995 	/* DMG low level RF sector operations */
996 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
997 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
998 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
999 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
1000 
1001 	/* Configure the TDLS mode from user space */
1002 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
1003 
1004 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
1005 
1006 	/* Vendor abort scan command */
1007 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
1008 
1009 	/* Set Specific Absorption Rate(SAR) Power Limits */
1010 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
1011 
1012 	/* External Auto channel configuration setting */
1013 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
1014 
1015 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
1016 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
1017 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
1018 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
1019 
1020 	/* Set the trace level for QDF */
1021 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
1022 
1023 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
1024 
1025 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
1026 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
1027 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
1028 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
1029 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
1030 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
1031 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
1032 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
1033 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
1034 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
1035 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
1036 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
1037 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
1038 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
1039 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
1040 	/* Wi-Fi test configuration subcommand */
1041 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
1042 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
1043 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
1044 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
1045 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
1046 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
1047 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
1048 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
1049 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
1050 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
1051 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
1052 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
1053 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
1054 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
1055 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
1056 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
1057 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
1058 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
1059 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
1060 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
1061 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
1062 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
1063 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
1064 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
1065 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
1066 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
1067 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
1068 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
1069 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
1070 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
1071 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
1072 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
1073 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
1074 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
1075 	/* 206..212 - reserved for QCA */
1076 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
1077 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
1078 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
1079 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
1080 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
1081 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
1082 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
1083 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
1084 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
1085 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
1086 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
1087 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
1088 	QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
1089 	QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
1090 	QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
1091 	QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
1092 	QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
1093 	QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
1094 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
1095 	QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
1096 	QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233,
1097 };
1098 
1099 enum qca_wlan_vendor_tos {
1100 	QCA_WLAN_VENDOR_TOS_BK = 0,
1101 	QCA_WLAN_VENDOR_TOS_BE = 1,
1102 	QCA_WLAN_VENDOR_TOS_VI = 2,
1103 	QCA_WLAN_VENDOR_TOS_VO = 3,
1104 };
1105 
1106 /**
1107  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
1108  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
1109  */
1110 enum qca_wlan_vendor_attr_active_tos {
1111 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
1112 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
1113 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
1114 	/* Flag attribute representing the start (attribute included) or stop
1115 	 * (attribute not included) of the respective TOS.
1116 	 */
1117 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
1118 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
1119 };
1120 
1121 enum qca_wlan_vendor_hang_reason {
1122 	/* Unspecified reason */
1123 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
1124 	/* No Map for the MAC entry for the received frame */
1125 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
1126 	/* peer deletion timeout happened */
1127 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
1128 	/* peer unmap timeout */
1129 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
1130 	/* Scan request timed out */
1131 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
1132 	/* Consecutive Scan attempt failures */
1133 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
1134 	/* Unable to get the message buffer */
1135 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
1136 	/* Current command processing is timedout */
1137 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
1138 	/* Timeout for an ACK from FW for suspend request */
1139 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
1140 	/* Timeout for an ACK from FW for resume request */
1141 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
1142 	/* Transmission timeout for consecutive data frames */
1143 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
1144 	/* Timeout for the TX completion status of data frame */
1145 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
1146 	/* DXE failure for tx/Rx, DXE resource unavailability */
1147 	QCA_WLAN_HANG_DXE_FAILURE = 12,
1148 	/* WMI pending commands exceed the maximum count */
1149 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
1150 	/* Timeout for peer STA connection accept command's response from the
1151 	 * FW in AP mode. This command is triggered when a STA (peer) connects
1152 	 * to AP (DUT).
1153 	 */
1154 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
1155 	/* Timeout for the AP connection accept command's response from the FW
1156 	 * in STA mode. This command is triggered when the STA (DUT) connects
1157 	 * to an AP (peer).
1158 	 */
1159 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
1160 	/* Timeout waiting for the response to the MAC HW mode change command
1161 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
1162 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
1163 	 * Channel Concurrency) mode.
1164 	 */
1165 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
1166 	/* Timeout waiting for the response from FW to configure the MAC HW's
1167 	 * mode. This operation is to configure the single/two MACs in either
1168 	 * SCC/MCC/DBS mode.
1169 	 */
1170 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
1171 	/* Timeout waiting for response of VDEV start command from the FW */
1172 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
1173 	/* Timeout waiting for response of VDEV restart command from the FW */
1174 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
1175 	/* Timeout waiting for response of VDEV stop command from the FW */
1176 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
1177 	/* Timeout waiting for response of VDEV delete command from the FW */
1178 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
1179 	/* Timeout waiting for response of peer all delete request command to
1180 	 * the FW on a specific VDEV.
1181 	 */
1182 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
1183 	/* WMI sequence mismatch between WMI command and Tx completion */
1184 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
1185 	/* Write to Device HAL register failed */
1186 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
1187 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
1188 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
1189 	/* Bus failure */
1190 	QCA_WLAN_HANG_BUS_FAILURE = 26,
1191 	/* tasklet/credit latency found */
1192 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
1193 	/* MSDU buffers received in REO error ring, exceeding certain
1194 	 * threshold
1195 	 */
1196 	QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
1197 	/* Vdev SM is out of sync and connect req received
1198 	 * when already connected
1199 	 */
1200 	QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
1201 	/* Stats request timeout */
1202 	QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
1203 	/* Leak in TX descriptor for a packet */
1204 	QCA_WLAN_HANG_TX_DESC_LEAK = 31,
1205 	/* Scheduler watchdog timeout */
1206 	QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
1207 	/* Failed to send self peer deletion cmd to firmware */
1208 	QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
1209 	/* Received del self sta without del bss */
1210 	QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
1211 	/* Recovery needed when sending flush completion to userspace */
1212 	QCA_WLAN_HANG_FLUSH_LOGS = 35,
1213 	/* Host wakeup because of page fault */
1214 	QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
1215 };
1216 
1217 /**
1218  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
1219  * QCA_NL80211_VENDOR_SUBCMD_HANG.
1220  */
1221 enum qca_wlan_vendor_attr_hang {
1222 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
1223 	/*
1224 	 * Reason for the Hang - Represented by enum
1225 	 * qca_wlan_vendor_hang_reason.
1226 	 */
1227 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
1228 	/* The binary blob data associated with the hang reason specified by
1229 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
1230 	 * contain the required dump to analyze the reason for the hang.
1231 	 * NLA_BINARY attribute, the max size is 1024 bytes.
1232 	 */
1233 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
1234 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
1235 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
1236 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
1237 };
1238 
1239 /**
1240  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
1241  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
1242  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
1243  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
1244     level needs to be updated.
1245  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
1246  * to be set.
1247  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
1248  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
1249  */
1250 enum qca_vendor_attr_set_trace_level {
1251 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1252 	/*
1253 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1254 	* attributes.
1255 	*/
1256 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1257 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1258 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1259 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1260 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1261 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1262 };
1263 
1264 /**
1265  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1266  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1267  * station information. The information obtained through these
1268  * commands signify the current info in connected state and
1269  * latest cached information during the connected state , if queried
1270  * when in disconnected state.
1271  *
1272  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1273  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1274  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1275  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1276  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1277  */
1278 enum qca_wlan_vendor_attr_get_station {
1279 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1280 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1281 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1282 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1283 
1284 	/* keep last */
1285 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1286 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1287 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1288 };
1289 
1290 /**
1291  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1292  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1293  *
1294  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1295  * Used in STA mode. This attribute represents the list of channel center
1296  * frequencies in MHz (u32) the station has learnt during the last connection
1297  * or roaming attempt. This information shall not signify the channels for
1298  * an explicit scan request from the user space. Host drivers can update this
1299  * information to the user space in both connected and disconnected state.
1300  * In the disconnected state this information shall signify the channels
1301  * scanned in the last connection/roam attempt that lead to the disconnection.
1302  */
1303 enum qca_wlan_vendor_attr_update_sta_info {
1304 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1305 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1306 
1307 	/* keep last */
1308 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1309 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1310 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1311 };
1312 
1313 /**
1314  * enum qca_wlan_802_11_mode - dot11 mode
1315  * @QCA_WLAN_802_11_MODE_11B: mode B
1316  * @QCA_WLAN_802_11_MODE_11G: mode G
1317  * @QCA_WLAN_802_11_MODE_11N: mode N
1318  * @QCA_WLAN_802_11_MODE_11A: mode A
1319  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1320  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1321  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1322  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1323  */
1324 enum qca_wlan_802_11_mode {
1325 	QCA_WLAN_802_11_MODE_11B,
1326 	QCA_WLAN_802_11_MODE_11G,
1327 	QCA_WLAN_802_11_MODE_11N,
1328 	QCA_WLAN_802_11_MODE_11A,
1329 	QCA_WLAN_802_11_MODE_11AC,
1330 	QCA_WLAN_802_11_MODE_11AX,
1331 	QCA_WLAN_802_11_MODE_11BE,
1332 	QCA_WLAN_802_11_MODE_INVALID,
1333 };
1334 
1335 /**
1336  * enum qca_wlan_auth_type - Authentication key management type
1337  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1338  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1339  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1340  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1341  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1342  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1343  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1344  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1345  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1346  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1347  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1348  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1349  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1350  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1351  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1352  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1353  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1354  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1355  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1356  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1357  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1358  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1359  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1360  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1361  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1362  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1363  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1364  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1365  */
1366 enum qca_wlan_auth_type {
1367 	QCA_WLAN_AUTH_TYPE_INVALID,
1368 	QCA_WLAN_AUTH_TYPE_OPEN,
1369 	QCA_WLAN_AUTH_TYPE_SHARED,
1370 	QCA_WLAN_AUTH_TYPE_WPA,
1371 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1372 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1373 	QCA_WLAN_AUTH_TYPE_RSN,
1374 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1375 	QCA_WLAN_AUTH_TYPE_FT,
1376 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1377 	QCA_WLAN_AUTH_TYPE_SHA256,
1378 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1379 	QCA_WLAN_AUTH_TYPE_WAI,
1380 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1381 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1382 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1383 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1384 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1385 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1386 	QCA_WLAN_AUTH_TYPE_SAE,
1387 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1388 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1389 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1390 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1391 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1392 	QCA_WLAN_AUTH_TYPE_OWE,
1393 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1394 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1395 };
1396 
1397 /**
1398  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1399  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1400  *
1401  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1402  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1403  *  Get the standard NL attributes Nested with this attribute.
1404  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1405  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1406  *  NL80211_ATTR_STA_INFO
1407  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1408  *  Get the standard NL attributes Nested with this attribute.
1409  *  Ex : Query HT/VHT Capability advertised by the AP.
1410  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1411  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1412  *  Number of successful Roam attempts before a
1413  *  disconnect, Unsigned 32 bit value
1414  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1415  *  Authentication Key Management Type used for the connected session.
1416  *  Signified by enum qca_wlan_auth_type
1417  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1418  *  connected Session, signified by enum qca_wlan_802_11_mode
1419  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1420  *  HS20 Indication Element
1421  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1422  *  Status Code Corresponding to the Association Failure.
1423  *  Unsigned 32 bit value.
1424  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1425  *  Max phy rate of remote station
1426  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1427  *  TX packets to remote station
1428  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1429  *  TX bytes to remote station
1430  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1431  *  RX packets from remote station
1432  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1433  *  RX bytes from remote station
1434  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1435  *  Last TX rate with remote station
1436  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1437  *  Last RX rate with remote station
1438  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1439  *  Remote station enable/disable WMM
1440  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1441  *  Remote station connection mode
1442  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1443  *  Remote station AMPDU enable/disable
1444  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1445  *  Remote station TX Space-time block coding enable/disable
1446  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1447  *  Remote station RX Space-time block coding enable/disable
1448  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1449  *  Remote station channel width
1450  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1451  *  Remote station short GI enable/disable
1452  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1453  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1454  *  containing the raw information elements from Beacon frames. Represents
1455  *  the Beacon frames of the current BSS in the connected state. When queried
1456  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1457  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1458  *  disconnect reason for the last disconnection if the disconnection is
1459  *  triggered from the host driver. The values are referred from
1460  *  enum qca_disconnect_reason_codes. If the disconnect is from
1461  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1462  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1463  *  Applicable in AP mode only. It contains the raw information elements
1464  *  from assoc request frame of the given peer station. User queries with the
1465  *  mac address of peer station when it disconnects. Host driver sends
1466  *  assoc request frame of the given station. Host driver doesn't provide
1467  *  the IEs when the peer station is still in connected state.
1468  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1469  * sending HE operation info.
1470  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
1471  * type for remote channel width greater than 160 MHz.
1472  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for
1473  * sending EHT operation info.
1474  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1475  *
1476  */
1477 enum qca_wlan_vendor_attr_get_station_info {
1478 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1479 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1480 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1481 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1482 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1483 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1484 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1485 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1486 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1487 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1488 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1489 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1490 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1491 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1492 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1493 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1494 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1495 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1496 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1497 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1498 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1499 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1500 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1501 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1502 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1503 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1504 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1505 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1506 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1507 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1508 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1509 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1510 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1511 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1512 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1513 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1514 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1515 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1516 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1517 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1518 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
1519 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION,
1520 
1521 	/* keep last */
1522 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1523 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1524 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1525 };
1526 
1527 /**
1528  * qca_chip_power_save_failure_reason: Power save failure reason
1529  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1530  * due to protocol/module.
1531  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1532  * due to hardware
1533  */
1534 enum qca_chip_power_save_failure_reason {
1535 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1536 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1537 };
1538 
1539 /**
1540  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1541  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1542  * information leading to the power save failure.
1543  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1544  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1545  * represented by enum qca_chip_power_save_failure_reason
1546  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1547  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1548  */
1549 enum qca_attr_chip_power_save_failure {
1550 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1551 
1552 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1553 
1554 	/* keep last */
1555 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1556 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1557 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1558 };
1559 
1560 /* enum's to provide TDLS capabilities */
1561 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1562 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1563 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1564 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1565 
1566 	/* keep last */
1567 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1568 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1569 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1570 };
1571 
1572 /* Compatibility defines for previously used subcmd names.
1573  * These values should not be used in any new implementation.
1574  */
1575 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1576 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1577 
1578 enum qca_wlan_vendor_attr {
1579 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1580 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1581 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1582 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1583 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1584 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1585 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1586 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1587 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1588 	/*
1589 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1590 	 * by enum qca_roaming_policy.
1591 	 */
1592 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1593 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1594 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1595 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1596 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1597 	/*
1598 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1599 	 * Unsigned 32-bit value.
1600 	 */
1601 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1602 	/* Unsigned 32-bit value */
1603 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1604 	/* Unsigned 32-bit value */
1605 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1606 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1607 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1608 	 * is deprecated. Recommendation is to use
1609 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1610 	 * using both the attributes, the ones configured through
1611 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1612 	 */
1613 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1614 	/* Dummy (NOP) attribute for 64 bit padding */
1615 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1616 	/*
1617 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1618 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1619 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1620 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1621 	 */
1622 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1623 	/*
1624 	 * Indoor location capabilities, returned by
1625 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1626 	 * see enum qca_wlan_vendor_attr_loc_capa.
1627 	 */
1628 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1629 	/*
1630 	 * Array of nested attributes containing information about each peer
1631 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1632 	 * for supported attributes for each peer.
1633 	 */
1634 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1635 	/*
1636 	 * Array of nested attributes containing measurement results for
1637 	 * one or more peers, reported by the
1638 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1639 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1640 	 * attributes.
1641 	 */
1642 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1643 	/* Flag attribute for enabling or disabling responder functionality. */
1644 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1645 	/*
1646 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1647 	 * command to specify the LCI report that will be sent by
1648 	 * the responder during a measurement exchange. The format is
1649 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1650 	 */
1651 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1652 	/*
1653 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1654 	 * command to specify the location civic report that will
1655 	 * be sent by the responder during a measurement exchange.
1656 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1657 	 */
1658 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1659 	/*
1660 	 * Session/measurement completion status code,
1661 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1662 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1663 	 * see enum qca_vendor_attr_loc_session_status.
1664 	 */
1665 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1666 	/*
1667 	 * Initial dialog token used by responder (0 if not specified),
1668 	 * unsigned 8 bit value.
1669 	 */
1670 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1671 	/*
1672 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1673 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1674 	 * AOA measurements are needed as part of an FTM session.
1675 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1676 	 * enum qca_wlan_vendor_attr_aoa_type.
1677 	 */
1678 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1679 	/*
1680 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1681 	 * by indoor location measurements. Refers to the antenna
1682 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1683 	 */
1684 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1685 	/*
1686 	 * AOA measurement data. Its contents depends on the AOA measurement
1687 	 * type and antenna array mask:
1688 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1689 	 * phase of the strongest CIR path for each antenna in the measured
1690 	 * array(s).
1691 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1692 	 * values, phase and amplitude of the strongest CIR path for each
1693 	 * antenna in the measured array(s).
1694 	 */
1695 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1696 	/*
1697 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1698 	 * to specify the chain number (unsigned 32 bit value) to inquire
1699 	 * the corresponding antenna RSSI value */
1700 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1701 	/*
1702 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1703 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1704 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1705 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1706 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1707 	/*
1708 	 *  TSF timer value, unsigned 64 bit value.
1709 	 * May be returned by various commands.
1710 	 */
1711 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1712 	/*
1713 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1714 	 * 0..127 for sector indices or 65535 as special value used to
1715 	 * unlock sector selection in
1716 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1717 	 */
1718 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1719 	/*
1720 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1721 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1722 	 */
1723 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1724 	/*
1725 	 * Bitmask of DMG RF modules for which information is requested. Each
1726 	 * bit corresponds to an RF module with the same index as the bit
1727 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1728 	 * all DMG chips currently have up to 8 RF modules.
1729 	 */
1730 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1731 	/*
1732 	 * Array of nested attributes where each entry is DMG RF sector
1733 	 * configuration for a single RF module.
1734 	 * Attributes for each entry are taken from enum
1735 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1736 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1737 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1738 	 */
1739 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1740 	/*
1741 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1742 	 * to report frame aggregation statistics to userspace.
1743 	 */
1744 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1745 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1746 	/*
1747 	 * Unsigned 8-bit value representing MBO transition reason code as
1748 	 * provided by the AP used by subcommand
1749 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1750 	 * specified by the userspace in the request to the driver.
1751 	 */
1752 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1753 	/*
1754 	 * Array of nested attributes, BSSID and status code, used by subcommand
1755 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1756 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1757 	 * The userspace space specifies the list/array of candidate BSSIDs in
1758 	 * the order of preference in the request. The driver specifies the
1759 	 * status code, for each BSSID in the list, in the response. The
1760 	 * acceptable candidates are listed in the order preferred by the
1761 	 * driver.
1762 	 */
1763 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1764 	/*
1765 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1766 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1767 	 */
1768 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1769 	/*
1770 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1771 	 * to define the number of antennas to use for BRP.
1772 	 * different purpose in each ANT_LIMIT_MODE:
1773 	 * DISABLE - ignored
1774 	 * EFFECTIVE - upper limit to number of antennas to be used
1775 	 * FORCE - exact number of antennas to be used
1776 	 * unsigned 8 bit value
1777 	 */
1778 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1779 	/*
1780 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1781 	 * to report the corresponding antenna index to the chain RSSI value
1782 	 */
1783 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1784 	/*
1785 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1786 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1787 	 * With a determinate group of antennas, the driver specifies the
1788 	 * EVM value for each antenna ID, and application extract them
1789 	 * in user space.
1790 	 */
1791 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1792 	/*
1793 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1794 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1795 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1796 	 */
1797 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1798 
1799 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1800 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1801 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1802 	 * This attribute shall consider the bitmask combinations to define
1803 	 * the respective Band combinations and always takes precedence over
1804 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1805 	 */
1806 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1807 
1808 	/* keep last */
1809 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1810 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1811 };
1812 
1813 enum qca_wlan_vendor_attr_extscan_config_params {
1814 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1815 
1816 	/* Unsigned 32-bit value */
1817 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1818 
1819 	/*
1820 	 * Attributes for data used by
1821 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1822 	 */
1823 
1824 	/* Unsigned 32-bit value */
1825 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1826 	= 2,
1827 	/* Unsigned 32-bit value */
1828 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1829 	= 3,
1830 
1831 	/*
1832 	 * Attributes for input params used by
1833 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1834 	 */
1835 
1836 	/* Unsigned 32-bit value; channel frequency */
1837 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1838 	/* Unsigned 32-bit value; dwell time in ms. */
1839 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1840 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1841 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1842 	/* Unsigned 8-bit value; channel class */
1843 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1844 
1845 	/* Unsigned 8-bit value; bucket index, 0 based */
1846 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1847 	/* Unsigned 8-bit value; band. */
1848 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1849 	/* Unsigned 32-bit value; desired period, in ms. */
1850 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1851 	/* Unsigned 8-bit value; report events semantics. */
1852 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1853 	/*
1854 	 * Unsigned 32-bit value. Followed by a nested array of
1855 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1856 	 */
1857 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1858 
1859 	/*
1860 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1861 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1862 	 */
1863 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1864 
1865 	/* Unsigned 32-bit value; base timer period in ms. */
1866 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1867 	/*
1868 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1869 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1870 	 */
1871 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1872 	/*
1873 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1874 	 * up AP.
1875 	 */
1876 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1877 	= 16,
1878 
1879 	/*
1880 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1881 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1882 	 * of the array is determined by NUM_BUCKETS.
1883 	 */
1884 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1885 
1886 	/*
1887 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1888 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1889 	 */
1890 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1891 
1892 	/* Unsigned 8-bit value */
1893 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1894 	= 19,
1895 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1896 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1897 	= 20,
1898 
1899 	/* An array of 6 x unsigned 8-bit value */
1900 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1901 	/* Signed 32-bit value */
1902 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1903 	/* Signed 32-bit value */
1904 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1905 	/* Unsigned 32-bit value */
1906 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1907 
1908 	/*
1909 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1910 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1911 	 * array is determined by NUM_AP.
1912 	 */
1913 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1914 
1915 	/*
1916 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1917 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1918 	 */
1919 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1920 
1921 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1922 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1923 	= 27,
1924 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1925 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1926 	= 28,
1927 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1928 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1929 	/*
1930 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1931 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1932 	 */
1933 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1934 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1935 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1936 	= 31,
1937 	/*
1938 	 * Unsigned 32-bit value. If max_period is non zero or different than
1939 	 * period, then this bucket is an exponential backoff bucket.
1940 	 */
1941 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1942 	/* Unsigned 32-bit value. */
1943 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1944 	/*
1945 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1946 	 * scans to perform for a given period.
1947 	 */
1948 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1949 	/*
1950 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1951 	 * many scans.
1952 	 */
1953 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1954 	= 35,
1955 
1956 	/*
1957 	 * Attributes for data used by
1958 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1959 	 */
1960 
1961 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1962 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1963 	= 36,
1964 	/*
1965 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1966 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1967 	 * size of the array is determined by NUM_SSID.
1968 	 */
1969 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1970 	/*
1971 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1972 	 * attributes.
1973 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1974 	 */
1975 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1976 
1977 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1978 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1979 	/* Unsigned 8-bit value */
1980 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1981 	/* Signed 32-bit value */
1982 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1983 	/* Signed 32-bit value */
1984 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1985 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1986 	 */
1987 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1988 
1989 	/* keep last */
1990 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1991 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1992 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1993 };
1994 
1995 enum qca_wlan_vendor_attr_extscan_results {
1996 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1997 
1998 	/*
1999 	 * Unsigned 32-bit value; must match the request Id supplied by
2000 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
2001 	 */
2002 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
2003 
2004 	/*
2005 	 * Unsigned 32-bit value; used to indicate the status response from
2006 	 * firmware/driver for the vendor sub-command.
2007 	 */
2008 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
2009 
2010 	/*
2011 	 * EXTSCAN Valid Channels attributes */
2012 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
2013 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
2014 	/*
2015 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
2016 	 * representing channel numbers.
2017 	 */
2018 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
2019 
2020 	/* EXTSCAN Capabilities attributes */
2021 
2022 	/* Unsigned 32-bit value */
2023 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
2024 	/* Unsigned 32-bit value */
2025 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
2026 	/* Unsigned 32-bit value */
2027 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
2028 	= 7,
2029 	/* Unsigned 32-bit value */
2030 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
2031 	= 8,
2032 	/* Signed 32-bit value */
2033 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
2034 	= 9,
2035 	/* Unsigned 32-bit value */
2036 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
2037 	/* Unsigned 32-bit value */
2038 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
2039 	= 11,
2040 	/* Unsigned 32-bit value */
2041 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
2042 	= 12,
2043 
2044 	/*
2045 	 * EXTSCAN Attributes used with
2046 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
2047 	 */
2048 
2049 	/* Unsigned 32-bit value */
2050 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
2051 
2052 	/*
2053 	 * EXTSCAN attributes used with
2054 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
2055 	 */
2056 
2057 	/*
2058 	 * An array of NUM_RESULTS_AVAILABLE x
2059 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
2060 	 */
2061 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
2062 
2063 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
2064 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
2065 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
2066 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
2067 	/* An array of 6 x unsigned 8-bit value */
2068 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
2069 	/* Unsigned 32-bit value; channel frequency in MHz */
2070 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
2071 	/* Signed 32-bit value */
2072 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
2073 	/* Unsigned 32-bit value */
2074 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
2075 	/* Unsigned 32-bit value */
2076 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
2077 	/* Unsigned 16-bit value */
2078 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
2079 	/* Unsigned 16-bit value */
2080 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
2081 	/* Unsigned 32-bit value; size of the IE DATA blob */
2082 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
2083 	/*
2084 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
2085 	 * information elements found in the beacon; this data should be a
2086 	 * packed list of wifi_information_element objects, one after the
2087 	 * other.
2088 	 */
2089 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
2090 
2091 	/*
2092 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
2093 	 * available.
2094 	 */
2095 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
2096 
2097 	/*
2098 	 * EXTSCAN attributes for
2099 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
2100 	 */
2101 	/* Unsigned 8-bit value */
2102 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
2103 	/* Unsigned 32-bit value */
2104 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
2105 
2106 	/*
2107 	 * EXTSCAN attributes for
2108 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
2109 	 */
2110 	/*
2111 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2112 	 * to indicate number of results.
2113 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2114 	 * list of results.
2115 	 */
2116 
2117 	/*
2118 	 * EXTSCAN attributes for
2119 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
2120 	 */
2121 	/* An array of 6 x unsigned 8-bit value */
2122 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
2123 	/* Unsigned 32-bit value */
2124 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
2125 	= 30,
2126 	/* Unsigned 32-bit value. */
2127 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
2128 	= 31,
2129 	/*
2130 	 * A nested array of signed 32-bit RSSI values. Size of the array is
2131 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
2132 	 */
2133 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
2134 	= 32,
2135 
2136 	/*
2137 	 * EXTSCAN attributes used with
2138 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
2139 	 */
2140 	/*
2141 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2142 	 * to indicate number of extscan cached results returned.
2143 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
2144 	 *  the list of extscan cached results.
2145 	 */
2146 
2147 	/*
2148 	 * An array of NUM_RESULTS_AVAILABLE x
2149 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
2150 	 */
2151 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
2152 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
2153 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
2154 	/*
2155 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
2156 	 */
2157 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
2158 	/*
2159 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2160 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
2161 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2162 	 * list of wifi scan results returned for each cached result block.
2163 	 */
2164 
2165 	/*
2166 	 * EXTSCAN attributes for
2167 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2168 	 */
2169 	/*
2170 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2171 	 * number of results.
2172 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2173 	 * list of wifi scan results returned for each
2174 	 * wifi_passpoint_match_result block.
2175 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2176 	 */
2177 
2178 	/*
2179 	 * EXTSCAN attributes for
2180 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2181 	 */
2182 	/* Unsigned 32-bit value */
2183 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2184 	= 36,
2185 	/*
2186 	 * A nested array of
2187 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2188 	 * attributes. Array size =
2189 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2190 	 */
2191 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2192 
2193 	/* Unsigned 32-bit value; network block id for the matched network */
2194 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2195 	/*
2196 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2197 	 * list of wifi scan results returned for each
2198 	 * wifi_passpoint_match_result block.
2199 	 */
2200 	/* Unsigned 32-bit value */
2201 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2202 	/*
2203 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2204 	 * ANQP data in the information_element format.
2205 	 */
2206 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2207 
2208 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2209 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2210 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2211 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2212 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2213 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2214 	= 43,
2215 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2216 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2217 	= 44,
2218 
2219 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2220 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2221 
2222 	/* keep last */
2223 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2224 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2225 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2226 };
2227 
2228 /**
2229  * enum qca_vendor_interop_issues_ap_type - interop issues type
2230  * This enum defines the valid set of values of interop issues type. These
2231  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2232  *
2233  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2234  * when the STA's Qpower feature is enabled.
2235  */
2236 enum qca_vendor_interop_issues_ap_type {
2237 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2238 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2239 };
2240 
2241 /**
2242  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2243  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2244  *
2245  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2246  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2247  * 32-bit unsigned value, The type defined in enum
2248  * qca_vendor_interop_issues_ap_type are used.
2249  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2250  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2251  * it is present and mandatory for the command but is not used for
2252  * the event since only a single BSSID is reported in an event.
2253  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2254  * 6-byte MAC address. It is used within the nested
2255  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2256  * and without such encapsulation in the event case.
2257  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2258  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2259  */
2260 enum qca_vendor_attr_interop_issues_ap {
2261 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2262 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2263 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2264 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2265 	/* keep last */
2266 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2267 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2268 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2269 };
2270 
2271 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2272 
2273 enum qca_wlan_vendor_attr_ll_stats_set {
2274 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2275 	/* Unsigned 32-bit value */
2276 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2277 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
2278 	/* keep last */
2279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2280 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2281 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
2282 };
2283 
2284 /**
2285  * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
2286  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
2287  *
2288  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
2289  *
2290  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
2291  * radio statistics.
2292  *
2293  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
2294  * statistics within radio statistics.
2295  *
2296  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
2297  * radio statistics.
2298  *
2299  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
2300  *
2301  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
2302  * within interface statistics.
2303  *
2304  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
2305  * interface statistics.
2306  *
2307  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
2308  * (min, max, avg) statistics within AC statistics.
2309  *
2310  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
2311  * on this interface.
2312  *
2313  * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
2314  * statistics depending on the peer_mac.
2315  */
2316 enum qca_wlan_ll_stats_clr_req_bitmap {
2317 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO =		BIT(0),
2318 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA =		BIT(1),
2319 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS =	BIT(2),
2320 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN =		BIT(3),
2321 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE =		BIT(4),
2322 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE =		BIT(5),
2323 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC =		BIT(6),
2324 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION =	BIT(7),
2325 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER =	BIT(8),
2326 	QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER =	BIT(9),
2327 };
2328 
2329 enum qca_wlan_vendor_attr_ll_stats_clr {
2330 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2331 	/* Unsigned 32bit bitmap for clearing statistics, specified
2332 	 * in the enum qca_wlan_ll_stats_clr_req_bitmap.
2333 	 */
2334 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
2335 	/* Unsigned 8 bit value: Request to stop statistics collection */
2336 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
2337 
2338 	/* Unsigned 32 bit bitmap: Response from the driver
2339 	 * for the cleared statistics
2340 	 */
2341 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
2342 	/* Unsigned 8 bit value: Response from driver/firmware
2343 	 * for the stop request
2344 	 */
2345 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
2346 	/* keep last */
2347 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2348 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
2350 };
2351 
2352 /**
2353  * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
2354  * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
2355  *
2356  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
2357  *
2358  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
2359  *
2360  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
2361  *
2362  * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
2363  */
2364 enum qca_wlan_ll_stats_get_req_bitmap {
2365 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO =	BIT(0),
2366 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE =	BIT(1),
2367 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER =	BIT(2),
2368 	QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER =	BIT(3),
2369 };
2370 
2371 enum qca_wlan_vendor_attr_ll_stats_get {
2372 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2373 	/* Unsigned 32 bit value provided by the caller issuing the GET stats
2374 	 * command. When reporting the stats results, the driver uses the same
2375 	 * value to indicate which GET request the results correspond to.
2376 	 */
2377 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
2378 	/* Unsigned 32 bit value - bit mask to identify what statistics are
2379 	 * requested for retrieval specified in the enum
2380 	 * qca_wlan_ll_stats_get_req_bitmap
2381 	 */
2382 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
2383 	/* keep last */
2384 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2385 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2386 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
2387 };
2388 
2389 enum qca_wlan_vendor_attr_ll_stats_results {
2390 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2391 
2392 	/*
2393 	 * For Multi Link Operation (MLO) connection, per-link statistics will
2394 	 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
2395 	 * cumulative statistics will be sent outside of
2396 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
2397 	 * compatibility with legacy user space. Attributes which don't have
2398 	 * explicit documentation for MLO will be sent only outside of
2399 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
2400 	 * don't depend on whether the connection is MLO capable or not, e.g.,
2401 	 * radio and channel specific attributes.
2402 	 */
2403 
2404 	/* Unsigned 32bit value. Used by the driver; must match the request id
2405 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2406 	 */
2407 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2408 
2409 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2410 	 * the link with the best RSSI outside
2411 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2412 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2413 	 */
2414 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2415 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2416 	 * the link with the best RSSI outside
2417 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2418 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2419 	 */
2420 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2421 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2422 	 * the link with the best RSSI outside
2423 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2424 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2425 	 */
2426 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2427 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2428 	 * the link with the best RSSI outside
2429 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2430 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2431 	 */
2432 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2433 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2434 	 * the link with the best RSSI outside
2435 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2436 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2437 	 */
2438 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2439 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2440 	 * the link with the best RSSI outside
2441 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2442 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2443 	 */
2444 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2445 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2446 	 * the link with the best RSSI outside
2447 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2448 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2449 	 */
2450 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2451 
2452 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2453 	 * nested within the interface stats.
2454 	 */
2455 
2456 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2457 	 * Type = enum wifi_interface_mode.
2458 	 */
2459 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2460 	/* Interface MAC address. An array of 6 Unsigned int8 */
2461 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2462 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2463 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2464 	 */
2465 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2466 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2467 	 */
2468 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2469 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2470 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2471 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2472 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2473 	/* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
2474 	 * address of the AP. An array of 6 unsigned 8 bit values
2475 	 */
2476 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2477 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2478 	 * values.
2479 	 */
2480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2481 	/* Country string for this association. An array of 3 unsigned 8 bit
2482 	 * values.
2483 	 */
2484 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2485 
2486 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2487 	 * be nested within the interface stats.
2488 	 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2489 	 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
2490 	 * indicate the aggregate of all links outside
2491 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2492 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
2493 	 * indicate value of the MLO link with the best RSSI outside
2494 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2495 	 * These attributes indicate the link specific value inside
2496 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2497 	 */
2498 
2499 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2500 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2501 	/* Unsigned int 32 value corresponding to respective AC */
2502 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2503 	/* Unsigned int 32 value corresponding to respective AC */
2504 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2505 	/* Unsigned int 32 value corresponding to respective AC */
2506 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2507 	/* Unsigned int 32 value corresponding to respective AC */
2508 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2509 	/* Unsigned int 32 value corresponding to respective AC */
2510 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2511 	/* Unsigned int 32 value corresponding to respective AC */
2512 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2513 	/* Unsigned int 32 value corresponding to respective AC */
2514 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2515 	/* Unsigned int 32 value corresponding to respective AC */
2516 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2517 	/* Unsigned int 32 value corresponding to respective AC  */
2518 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2519 	/* Unsigned int 32 values corresponding to respective AC */
2520 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2521 	/* Unsigned int 32 values corresponding to respective AC */
2522 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2523 	/* Unsigned int 32 values corresponding to respective AC */
2524 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2525 	/* Unsigned int 32 values corresponding to respective AC */
2526 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2527 	/* Unsigned int 32 values corresponding to respective AC */
2528 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2529 	/* Unsigned 32 bit value. Number of peers */
2530 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2531 
2532 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2533 	 * nested within the interface stats.
2534 	 */
2535 
2536 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2537 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2538 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2539 	 * 8 bit values.
2540 	 */
2541 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2542 	/* Unsigned int 32 bit value representing capabilities corresponding
2543 	 * to respective peer.
2544 	 */
2545 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2546 	/* Unsigned 32 bit value. Number of rates */
2547 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2548 
2549 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2550 	 * are nested within the rate stat.
2551 	 */
2552 
2553 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2554 
2555 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2556 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2557 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2558 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2559 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2560 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2561 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2562 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2563 	 */
2564 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2565 
2566 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2567 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2568 
2569 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2570 	 * nested within the peer info stats.
2571 	 */
2572 
2573 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2574 	 * packets, i.e., with ACK received corresponding to the respective
2575 	 * rate.
2576 	 */
2577 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2578 	/* Unsigned int 32 bit value. Number of received data packets
2579 	 * corresponding to the respective rate.
2580 	 */
2581 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2582 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2583 	 * received corresponding to the respective rate.
2584 	 */
2585 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2586 	/* Unsigned int 32 bit value. Total number of data packet retries for
2587 	 * the respective rate.
2588 	 */
2589 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2590 	/* Unsigned int 32 bit value. Total number of short data packet retries
2591 	 * for the respective rate.
2592 	 */
2593 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2594 	/* Unsigned int 32 bit value. Total number of long data packet retries
2595 	 * for the respective rate.
2596 	 */
2597 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2598 
2599 	/* Unsigned 32 bit value. This is used to indicate radio ID of the radio
2600 	 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
2601 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
2602 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
2603 	 * of the MLO link.
2604 	 */
2605 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2606 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2607 	 * accruing over time.
2608 	 */
2609 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2610 	/* Unsigned 32 bit value. Total number of msecs the radio is
2611 	 * transmitting accruing over time.
2612 	 */
2613 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2614 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2615 	 * receive accruing over time.
2616 	 */
2617 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2618 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2619 	 * to all scan accruing over time.
2620 	 */
2621 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2622 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2623 	 * to NAN accruing over time.
2624 	 */
2625 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2626 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2627 	 * to GSCAN accruing over time.
2628 	 */
2629 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2630 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2631 	 * to roam scan accruing over time.
2632 	 */
2633 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2634 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2635 	 * to PNO scan accruing over time.
2636 	 */
2637 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2638 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2639 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2640 	 */
2641 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2642 	/* Unsigned 32 bit value. Number of channels. */
2643 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2644 
2645 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2646 	 * be nested within the channel stats.
2647 	 */
2648 
2649 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2650 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2651 	/* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
2652 	 * indicate the primary frequency of the channel when
2653 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
2654 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
2655 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
2656 	 * on which the MLO link is operating.
2657 	 */
2658 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2659 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2660 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2661 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2662 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2663 
2664 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2665 	 * nested within the radio stats.
2666 	 */
2667 
2668 	/* Unsigned int 32 bit value representing total number of msecs the
2669 	 * radio is awake on that channel accruing over time, corresponding to
2670 	 * the respective channel.
2671 	 */
2672 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2673 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2674 	 * register is busy accruing over time corresponding to the respective
2675 	 * channel.
2676 	 */
2677 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2678 
2679 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2680 
2681 	/* Signifies the nested list of channel attributes
2682 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2683 	 */
2684 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2685 
2686 	/* Signifies the nested list of peer info attributes
2687 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
2688 	 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
2689 	 * indicate on which link the peer is connected.
2690 	 */
2691 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2692 
2693 	/* Signifies the nested list of rate info attributes
2694 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2695 	 */
2696 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2697 
2698 	/* Signifies the nested list of wmm info attributes
2699 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2700 	 */
2701 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2702 
2703 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2704 	 * that more stats, e.g., peers or radio, are to follow in the next
2705 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2706 	 * Otherwise, it is set to 0.
2707 	 */
2708 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2709 
2710 	/* Unsigned 64 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_AVERAGE_TSF_OFFSET = 72,
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_DETECTED = 73,
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_AVG_NUM_FRAMES_LEAKED = 74,
2730 
2731 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2732 	 * the link with the best RSSI outside
2733 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2734 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2735 	 */
2736 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2737 
2738 	/* Unsigned 32 bit value */
2739 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2740 
2741 	/* Unsigned 32 bit value */
2742 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2743 
2744 	/* Number of msecs the radio spent in transmitting for each power level
2745 	 */
2746 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2747 
2748 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2749 	 * the link with the best RSSI outside
2750 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2751 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2752 	 */
2753 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2754 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2755 	 * the link with the best RSSI outside
2756 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2757 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2758 	 */
2759 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2760 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2761 	 * the link with the best RSSI outside
2762 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2763 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2764 	 */
2765 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2766 	/* Unsigned 32 bit value. For an MLO connection, indicates the value of
2767 	 * the link with the best RSSI outside
2768 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2769 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2770 	 */
2771 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2772 
2773 	/* Unsigned int 32 value.
2774 	 * Pending MSDUs corresponding to respective AC.
2775 	 */
2776 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2777 
2778 	/* u32 value representing total time in milliseconds for which the radio
2779 	 * is transmitting on this channel. This attribute will be nested
2780 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2781 	 */
2782 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2783 	/* u32 value representing total time in milliseconds for which the radio
2784 	 * is receiving all 802.11 frames intended for this device on this
2785 	 * channel. This attribute will be nested within
2786 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2787 	 */
2788 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2789 	/* u8 value representing the channel load percentage. Possible values
2790 	 * are 0-100.
2791 	 */
2792 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2793 	/* u8 value representing the time slicing duty cycle percentage.
2794 	 * Possible values are 0-100. For an MLO connection, indicates the value
2795 	 * of the link with the best RSSI outside
2796 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2797 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2798 	 */
2799 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2800 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2801 	 * from the associated AP and indicate buffered unicast frame(s) for us
2802 	 * in the TIM element. For an MLO connection, indicates the value of the
2803 	 * link with the best RSSI outside
2804 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2805 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2806 	 */
2807 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2808 	/* Unsigned 32 bit value. The total number of Beacon frames received
2809 	 * from the associated AP that have wrongly indicated buffered unicast
2810 	 * traffic in the TIM element for us.
2811 	 * Below scenarios will be considered as wrong TIM element beacon:
2812 	 * 1)	The related TIM element is set in the beacon for STA but STA
2813 	 *      doesn’t receive any unicast data after this beacon.
2814 	 * 2)	The related TIM element is still set in the beacon for STA
2815 	 *	after STA has indicated power save exit by QoS Null Data frame.
2816 	 * For an MLO connection, indicates the value of the link with the best
2817 	 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
2818 	 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2819 	 */
2820 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2821 
2822 	/* Signed 32 bit value. It represents the noise floor calibration value.
2823 	 * Possible values are -120~-50 dBm. For an MLO connection, indicates
2824 	 * the value of the link with the best RSSI outside
2825 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
2826 	 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
2827 	 */
2828 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
2829 
2830 	/* Attribute used for padding for 64-bit alignment */
2831 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
2832 
2833 	/* Unsigned u8 value, link ID of an MLO link. Used inside nested
2834 	 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
2835 	 * link ID of the MLO link for which the statistics are embedded in the
2836 	 * nested attribute. Used inside nested attribute
2837 	 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
2838 	 * link ID of the peer.
2839 	 */
2840 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
2841 
2842 	/* A nested array of attributes for each MLO link, each containing
2843 	 * per-link statistics of a multi link connection. The attributes used
2844 	 * inside this nested attribute are defined in enum
2845 	 * qca_wlan_vendor_attr_ll_stats_results.
2846 	 *
2847 	 * For non-MLO connection, this attribute is not present and the
2848 	 * statistics will be sent outside this attribute (without nesting).
2849 	 *
2850 	 * For MLO connection, this attribute is present and also cumulative
2851 	 * statistics of all the links will be sent outside of this attribute
2852 	 * to be compatible with legacy user space.
2853 	 */
2854 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
2855 
2856 	/* keep last */
2857 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2858 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2859 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2860 };
2861 
2862 enum qca_wlan_vendor_attr_ll_stats_type {
2863 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2864 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2865 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2866 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2867 
2868 	/* keep last */
2869 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2870 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2871 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2872 };
2873 
2874 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2875 
2876 /**
2877  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2878  *
2879  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2880  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2881  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2882  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2883  */
2884 enum qca_wlan_vendor_attr_get_supported_features {
2885 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2886 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2887 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2888 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2889 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2890 };
2891 
2892 /**
2893  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2894  *
2895  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2896  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2897  *	value
2898  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2899  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2900  */
2901 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2902 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2903 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2904 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2905 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2906 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2907 };
2908 
2909 /**
2910  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2911  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2912  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2913  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2914  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2915  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2916  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2917  */
2918 enum qca_wlan_vendor_scan_priority {
2919 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2920 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2921 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2922 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2923 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2924 };
2925 
2926 /**
2927  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2928  *
2929  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2930  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2931  *	with frequencies to be scanned (in MHz)
2932  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2933  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2934  *	rates to be included
2935  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2936  *	at non CCK rate in 2GHz band
2937  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2938  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2939  *	driver for the specific scan request
2940  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2941  *	request decoded as in enum scan_status
2942  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2943  *	scan flag is set
2944  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2945  *	randomisation
2946  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2947  *	specific BSSID to scan for.
2948  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2949  *	microseconds. This is a common value which applies across all
2950  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2951  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2952  *      other scan requests. It is a u32 attribute and takes values from enum
2953  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2954  *      If this attribute is not configured, the driver shall use
2955  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2956  */
2957 enum qca_wlan_vendor_attr_scan {
2958 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2959 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2960 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2961 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2962 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2963 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2964 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2965 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2966 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2967 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2968 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2969 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2970 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2971 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2972 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2973 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2974 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2975 };
2976 
2977 /**
2978  * enum scan_status - Specifies the valid values the vendor scan attribute
2979  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2980  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2981  *	new scan results
2982  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2983  */
2984 enum scan_status {
2985 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2986 	VENDOR_SCAN_STATUS_ABORTED,
2987 	VENDOR_SCAN_STATUS_MAX,
2988 };
2989 
2990 /**
2991  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2992  *
2993  * NL attributes for data used by
2994  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2995  *
2996  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2997  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2998  *	Unsigned 32-bit value
2999  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
3000  *	Unsigned 32-bit value
3001  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
3002  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
3003  *	combinations
3004  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
3005  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
3006  */
3007 enum qca_wlan_vendor_attr_get_concurrency_matrix {
3008 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
3009 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
3010 									= 1,
3011 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
3012 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
3013 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
3014 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
3015 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
3016 };
3017 
3018 /**
3019  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
3020  *
3021  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
3022  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
3023  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
3024  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
3025  */
3026 enum qca_wlan_vendor_attr_set_no_dfs_flag {
3027 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
3028 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
3029 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
3030 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
3031 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
3032 };
3033 
3034 /**
3035  * enum qca_vendor_attr_wisa_cmd
3036  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
3037  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
3038  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
3039  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
3040  * WISA setup vendor commands
3041  */
3042 enum qca_vendor_attr_wisa_cmd {
3043 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
3044 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
3045 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
3046 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
3047 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
3048 };
3049 
3050 enum qca_roaming_policy {
3051 	QCA_ROAMING_NOT_ALLOWED,
3052 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
3053 };
3054 
3055 /**
3056  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
3057  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
3058  *
3059  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
3060  * reasons.
3061  *
3062  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
3063  * the configured threshold.
3064  *
3065  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
3066  * beacon misses from the then connected AP.
3067  *
3068  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
3069  * by the connected AP.
3070  *
3071  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
3072  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
3073  * not poor.
3074  *
3075  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
3076  * or environment being very noisy / congested.
3077  *
3078  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
3079  * from the user (user space).
3080  *
3081  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
3082  * connected AP.
3083  *
3084  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
3085  * breaching out the configured threshold.
3086  *
3087  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
3088  * transition request.
3089  *
3090  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
3091  * there is no data activity with the AP and the current rssi falls below a
3092  * certain threshold.
3093  *
3094  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
3095  * deauthentication or disassociation frames received from the connected AP.
3096  *
3097  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
3098  * scan that happens when there is no candidate AP found during the poor
3099  * RSSI scan trigger.
3100  *
3101  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
3102  * results obtained from an external scan (not aimed at roaming).
3103  *
3104  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
3105  * connection is established when the station is connected in 2.4 Ghz band.
3106  *
3107  * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
3108  * failures to the connected AP.
3109  */
3110 enum qca_roam_reason {
3111 	QCA_ROAM_REASON_UNKNOWN,
3112 	QCA_ROAM_REASON_PER,
3113 	QCA_ROAM_REASON_BEACON_MISS,
3114 	QCA_ROAM_REASON_POOR_RSSI,
3115 	QCA_ROAM_REASON_BETTER_RSSI,
3116 	QCA_ROAM_REASON_CONGESTION,
3117 	QCA_ROAM_REASON_USER_TRIGGER,
3118 	QCA_ROAM_REASON_BTM,
3119 	QCA_ROAM_REASON_BSS_LOAD,
3120 	QCA_ROAM_REASON_WTC,
3121 	QCA_ROAM_REASON_IDLE,
3122 	QCA_ROAM_REASON_DISCONNECTION,
3123 	QCA_ROAM_REASON_PERIODIC_TIMER,
3124 	QCA_ROAM_REASON_BACKGROUND_SCAN,
3125 	QCA_ROAM_REASON_BT_ACTIVITY,
3126 	QCA_ROAM_REASON_STA_KICKOUT,
3127 };
3128 
3129 /**
3130  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
3131  *
3132  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
3133  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
3134  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
3135  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
3136  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
3137  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
3138  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
3139  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
3140  * Indicates the status of re-association requested by user space for
3141  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
3142  * Type u16.
3143  * Represents the status code from AP. Use
3144  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
3145  * real status code for failures.
3146  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
3147  * This attribute indicates that the old association was maintained when
3148  * a re-association is requested by user space and that re-association
3149  * attempt fails (i.e., cannot connect to the requested BSS, but can
3150  * remain associated with the BSS with which the association was in
3151  * place when being requested to roam). Used along with
3152  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
3153  * re-association status. Type flag.
3154  * This attribute is applicable only for re-association failure cases.
3155  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
3156  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
3157  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
3158  * seq number
3159  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
3160  * representing the reasons for the roaming. Defined by enum
3161  * qca_roam_reason.
3162  */
3163 enum qca_wlan_vendor_attr_roam_auth {
3164 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
3165 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
3166 	 * of the roamed AP for MLO roaming.
3167 	 */
3168 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
3169 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
3170 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
3171 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
3172 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
3173 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
3174 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
3175 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
3176 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
3177 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
3178 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
3179 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
3180 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
3181 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
3182 	/* A nested attribute containing per-link information of all the links
3183 	 * of MLO connection done while roaming. The attributes used inside this
3184 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
3185 	 */
3186 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
3187 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
3188 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
3189 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
3190 };
3191 
3192 /**
3193  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
3194  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
3195  *
3196  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
3197  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
3198  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
3199  */
3200 enum qca_wlan_vendor_attr_mlo_links {
3201 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
3202 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
3203 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
3204 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
3205 
3206 	/* Keep last */
3207 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
3208 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
3209 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
3210 };
3211 
3212 /**
3213  * enum qca_wlan_vendor_attr_wifi_config - wifi config
3214  *
3215  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
3216  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
3217  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
3218  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
3219  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
3220  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
3221  */
3222 enum qca_wlan_vendor_attr_wifi_config {
3223 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
3224 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
3225 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
3226 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
3227 
3228 	/* keep last */
3229 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
3230 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
3231 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
3232 };
3233 
3234 /**
3235  * enum qca_wlan_epno_type - the type of request to the EPNO command
3236  * @QCA_WLAN_EPNO: epno type request
3237  * @QCA_WLAN_PNO: pno type request
3238  */
3239 enum qca_wlan_epno_type {
3240 	QCA_WLAN_EPNO,
3241 	QCA_WLAN_PNO
3242 };
3243 
3244 /**
3245  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
3246  *
3247  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
3248  *
3249  *	NL attributes for data used by
3250  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3251  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
3252  *	Unsigned 32-bit value; pno passpoint number of networks
3253  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
3254  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3255  *	attributes. Array size =
3256  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3257  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
3258  *	Unsigned 32-bit value; network id
3259  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
3260  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
3261  *	realm, 0 if unspecified.
3262  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
3263  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
3264  *	to match, 0 if unspecified.
3265  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
3266  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
3267  *	unspecified.
3268  *
3269  *	NL attributes for data used by
3270  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3271  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
3272  *	Unsigned 32-bit value; set pno number of networks
3273  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
3274  *	Array of nested
3275  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3276  *	attributes. Array size =
3277  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
3278  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
3279  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
3280  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
3281  *	Signed 8-bit value; threshold for considering this SSID as found,
3282  *	required granularity for this threshold is 4dBm to 8dBm
3283  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
3284  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
3285  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
3286  *	Unsigned 8-bit value; auth bit field for matching WPA IE
3287  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
3288  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
3289  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
3290  *	Nested attribute to send the channel list
3291  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
3292  *	Unsigned 32-bit value; indicates the Interval between PNO scan
3293  *	cycles in msec
3294  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
3295  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
3296  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
3297  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
3298  *	This attribute is obsolete now.
3299  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
3300  *	Signed 32-bit value; the maximum score that a network
3301  *	can have before bonuses
3302  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
3303  *	Signed 32-bit value; only report when there is a network's
3304  *	score this much higher han the current connection
3305  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
3306  *	Signed 32-bit value; score bonus for all networks with
3307  *	the same network flag
3308  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
3309  *	Signed 32-bit value; score bonus for networks that are not open
3310  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
3311  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
3312  *	5GHz networks
3313  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
3314  *	Unsigned 32-bit value, representing the PNO Request ID
3315  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
3316  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
3317  */
3318 enum qca_wlan_vendor_attr_pno_config_params {
3319 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3320 
3321 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3322 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3323 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3324 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3325 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3326 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3327 
3328 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3329 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3330 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3331 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
3332 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3333 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3334 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3335 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3336 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3337 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3338 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3339 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3340 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3341 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3342 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3343 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3344 
3345 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3346 	/* keep last */
3347 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3348 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3349 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3350 };
3351 
3352 /**
3353  * enum qca_scan_freq_list_type: Frequency list types
3354  *
3355  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3356  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3357  *	a preferred frequency list for roaming.
3358  *
3359  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3360  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3361  *	a specific frequency list for roaming.
3362  */
3363 enum qca_scan_freq_list_type {
3364 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3365 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3366 };
3367 
3368 /**
3369  * enum qca_roam_scan_scheme: scan scheme
3370  *
3371  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3372  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3373  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3374  *	disconnect from the current connected AP by notifying a failure
3375  *	code in the BTM response.
3376  *
3377  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3378  *	trigger partial frequency scans. These frequencies are the ones learnt
3379  *	or maintained by the driver based on the probability of finding the
3380  *	BSSID's in the ESS for which the roaming is triggered.
3381  *
3382  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3383  *	trigger the scan on all the valid frequencies to find the better
3384  *	candidates to roam.
3385  */
3386 enum qca_roam_scan_scheme {
3387 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3388 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3389 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3390 };
3391 
3392 /**
3393  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3394  *
3395  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3396  *	List of frequencies in MHz to be considered for a roam scan.
3397  *
3398  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3399  *	Type of frequency list scheme being configured/gotten as defined by the
3400  *	enum qca_scan_freq_list_type.
3401  */
3402 enum qca_vendor_attr_scan_freq_list_scheme {
3403 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3404 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3405 
3406 	/* keep last */
3407 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3408 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3409 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3410 };
3411 
3412 /*
3413  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3414  *
3415  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3416  *	a bad packet error rates (PER).
3417  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3418  *	based on beacon misses from the connected AP.
3419  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3420  *	due to poor RSSI of the connected AP.
3421  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3422  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3423  *	Also, set if the roam has to be triggered due to the high RSSI of the
3424  *	current connected AP (better than
3425  *	QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
3426  *	the current BSSID need not be poor.
3427  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3428  *	by triggering a periodic scan to find a better AP to roam.
3429  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3430  *	when the connected channel environment is too noisy/congested.
3431  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3432  *	when BTM Request frame is received from the connected AP.
3433  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3434  *	when the channel utilization is goes above the configured threshold.
3435  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3436  *	based on the request from the user (space).
3437  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3438  *	device receives Deauthentication/Disassociation frame from connected
3439  *	AP.
3440  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3441  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3442  *	is determined to be a poor one.
3443  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3444  *	based on continuous TX Data Frame failures to the connected AP.
3445  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3446  *	based on the scan results obtained from an external scan (not
3447  *	triggered to aim roaming)
3448  *
3449  * Set the corresponding roam trigger reason bit to consider it for roam
3450  * trigger.
3451  * Userspace can set multiple bits and send to the driver. The driver shall
3452  * consider all of them to trigger/initiate a roam scan.
3453  */
3454 enum qca_vendor_roam_triggers {
3455 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3456 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3457 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3458 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3459 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3460 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3461 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3462 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3463 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3464 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3465 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3466 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3467 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3468 };
3469 
3470 /*
3471  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3472  * fail reasons. This enum value is used in
3473  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3474  *
3475  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3476  * able to trigger the scan.
3477  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3478  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3479  * scan.
3480  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3481  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3482  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3483  * status code.
3484  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3485  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3486  * frame.
3487  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3488  * with error status code.
3489  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3490  * received.
3491  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3492  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3493  * frame.
3494  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3495  * internally before transmission.
3496  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3497  * Request frame.
3498  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3499  * dropped internally.
3500  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3501  * times out.
3502  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3503  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3504  * internally.
3505  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3506  * M2 frame.
3507  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3508  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3509  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3510  * internally.
3511  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3512  * frame.
3513  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3514  * started for final beacon miss case.
3515  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3516  * received from the AP during roaming handoff.
3517  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3518  * or host is suspended and gives the indication of the last roamed AP only
3519  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3520  * progress, this ongoing roaming is aborted and the last roamed AP is
3521  * indicated to host.
3522  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3523  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3524  * out.
3525  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3526  * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
3527  * current network conditions are fine.
3528  */
3529 enum qca_vendor_roam_fail_reasons {
3530 	QCA_ROAM_FAIL_REASON_NONE = 0,
3531 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3532 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3533 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3534 	QCA_ROAM_FAIL_REASON_HOST = 4,
3535 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3536 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3537 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3538 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3539 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3540 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3541 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3542 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3543 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3544 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3545 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3546 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3547 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3548 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3549 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3550 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3551 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3552 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3553 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3554 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3555 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3556 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3557 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3558 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3559 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3560 	QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
3561 };
3562 
3563 /*
3564  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3565  * invoke fail reasons. This enum value is used in
3566  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3567  *
3568  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3569  * in roam invoke command.
3570  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3571  * enabled.
3572  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3573  * length is invalid.
3574  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3575  * in progress.
3576  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3577  * of the AP in the roam invoke command to firmware. This reason is sent by the
3578  * firmware when the given AP is configured to be ignored or SSID/security
3579  * does not match.
3580  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3581  * firmware internal reasons.
3582  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3583  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3584  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3585  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3586  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3587  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3588  */
3589 enum qca_vendor_roam_invoke_fail_reasons {
3590 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3591 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3592 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3593 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3594 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3595 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3596 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3597 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3598 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3599 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3600 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3601 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3602 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3603 
3604 };
3605 
3606 /**
3607  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3608  *
3609  * Each attribute carries a weightage in percentage (%).
3610  *
3611  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3612  *	Represents the weightage to be given for the RSSI selection
3613  *	criteria among other parameters.
3614  *
3615  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3616  *	Represents the weightage to be given for the rate selection
3617  *	criteria among other parameters.
3618  *
3619  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3620  *	Represents the weightage to be given for the band width selection
3621  *	criteria among other parameters.
3622  *
3623  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3624  *	Represents the weightage to be given for the band selection
3625  *	criteria among other parameters.
3626  *
3627  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3628  *	Represents the weightage to be given for the NSS selection
3629  *	criteria among other parameters.
3630  *
3631  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3632  *	Represents the weightage to be given for the channel congestion
3633  *	selection criteria among other parameters.
3634  *
3635  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3636  *	Represents the weightage to be given for the beamforming selection
3637  *	criteria among other parameters.
3638  *
3639  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3640  *	Represents the weightage to be given for the OCE selection
3641  *	criteria among other parameters.
3642  */
3643 enum qca_vendor_attr_roam_candidate_selection_criteria {
3644 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3645 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3646 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3647 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3648 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3649 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3650 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3651 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3652 
3653 	/* keep last */
3654 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3655 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3656 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3657 };
3658 
3659 /**
3660  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3661  *	The following attributes are used to set/get/clear the respective
3662  *	configurations to/from the driver.
3663  *	For the get, the attribute for the configuration to be queried shall
3664  *	carry any of its acceptable values to the driver. In return, the driver
3665  *	shall send the configured values within the same attribute to the user
3666  *	space.
3667  *
3668  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3669  *	Signifies to enable/disable roam control in driver.
3670  *	1-enable, 0-disable
3671  *	Enable: Mandates the driver to do the further roams using the
3672  *	configuration parameters set through
3673  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3674  *	Disable: Disables the driver/firmware roaming triggered through
3675  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3676  *	expected to continue with the default configurations.
3677  *
3678  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3679  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3680  *	Roam control status is obtained through this attribute.
3681  *
3682  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3683  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3684  *	is to be cleared in the driver.
3685  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3686  *	and shall be ignored if used with other sub commands.
3687  *	If this attribute is specified along with subcmd
3688  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3689  *	all other attributes, if there are any.
3690  *	If this attribute is not specified when the subcmd
3691  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3692  *	clear the data corresponding to the attributes specified.
3693  *
3694  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3695  *	list of frequencies and its type, represented by
3696  *	enum qca_vendor_attr_scan_freq_list_scheme.
3697  *	Frequency list and its type are mandatory for this attribute to set
3698  *	the frequencies.
3699  *	Frequency type is mandatory for this attribute to get the frequencies
3700  *	and the frequency list is obtained through
3701  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3702  *	Frequency list type is mandatory for this attribute to clear the
3703  *	frequencies.
3704  *
3705  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3706  *	Carries the value of scan period in seconds to set.
3707  *	The value of scan period is obtained with the same attribute for get.
3708  *	Clears the scan period in the driver when specified with clear command.
3709  *	Scan period is the idle time in seconds between each subsequent
3710  *	channel scans.
3711  *
3712  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3713  *	Carries the value of full scan period in seconds to set.
3714  *	The value of full scan period is obtained with the same attribute for
3715  *	get.
3716  *	Clears the full scan period in the driver when specified with clear
3717  *	command. Full scan period is the idle period in seconds between two
3718  *	successive full channel roam scans.
3719  *
3720  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3721  *	Carries a bitmap of the roam triggers specified in
3722  *	enum qca_vendor_roam_triggers.
3723  *	The driver shall enable roaming by enabling corresponding roam triggers
3724  *	based on the trigger bits sent with this attribute.
3725  *	If this attribute is not configured, the driver shall proceed with
3726  *	default behavior.
3727  *	The bitmap configured is obtained with the same attribute for get.
3728  *	Clears the bitmap configured in driver when specified with clear
3729  *	command.
3730  *
3731  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3732  *	weightage in percentage (%) to be given for each selection criteria.
3733  *	Different roam candidate selection criteria are represented by
3734  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3735  *	The driver shall select the roam candidate based on corresponding
3736  *	candidate selection scores sent.
3737  *
3738  *	An empty nested attribute is used to indicate that no specific
3739  *	preference score/criteria is configured (i.e., to disable this mechanism
3740  *	in the set case and to show that the mechanism is disabled in the get
3741  *	case).
3742  *
3743  *	Userspace can send multiple attributes out of this enum to the driver.
3744  *	Since this attribute represents the weight/percentage of preference for
3745  *	the respective selection criteria, it is preferred to configure 100%
3746  *	total weightage. The value in each attribute or cumulative weight of the
3747  *	values in all the nested attributes should not exceed 100%. The driver
3748  *	shall reject such configuration.
3749  *
3750  *	If the weights configured through this attribute are less than 100%,
3751  *	the driver shall honor the weights (x%) passed for the corresponding
3752  *	selection criteria and choose/distribute rest of the weight (100-x)%
3753  *	for the other selection criteria, based on its internal logic.
3754  *
3755  *	The selection criteria configured is obtained with the same
3756  *	attribute for get.
3757  *
3758  *	Clears the selection criteria configured in the driver when specified
3759  *	with clear command.
3760  *
3761  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3762  *	Represents value of scan frequency scheme from
3763  *      enum qca_roam_scan_scheme.
3764  *
3765  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3766  *	signifying the RSSI threshold of the current connected AP, indicating
3767  *	the driver to trigger roam only when the current connected AP's RSSI
3768  *	is lesser than this threshold.
3769  *
3770  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3771  *	signifying the RSSI threshold of the candidate AP, indicating
3772  *	the driver to trigger roam only to the candidate AP with RSSI
3773  *	better than this threshold. If RSSI thresholds for candidate APs found
3774  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3775  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3776  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3777  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3778  *	will take precedence over the value configured using
3779  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3780  *
3781  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3782  *	user triggered reason code to be sent to the AP in response to AP's
3783  *	request to trigger the roam if the roaming cannot be triggered.
3784  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3785  *
3786  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3787  *	Carries a bitmap of the roam triggers specified in
3788  *	enum qca_vendor_roam_triggers.
3789  *	Represents the roam triggers for which the specific scan scheme from
3790  *	enum qca_roam_scan_scheme has to be applied.
3791  *	It's an optional attribute. If this attribute is not configured, but
3792  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3793  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3794  *	all the roams.
3795  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3796  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3797  *	driver shall proceed with the default behavior.
3798  *
3799  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3800  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3801  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3802  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3803  *	threshold. Optional attribute. If this attribute is not included, then
3804  *	threshold value specified by the
3805  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3806  *
3807  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3808  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3809  *	band. The driver/firmware shall trigger roaming to the candidate AP
3810  *	found in 5GHz band only if it's RSSI value is better than this
3811  *	threshold. Optional attribute. If this attribute is not included, then
3812  *	threshold value specified by the
3813  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3814  *
3815  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3816  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3817  *	band. The driver/firmware shall trigger roaming to the candidate AP
3818  *	found in 6GHz band only if it's RSSI value is better than this
3819  *	threshold. Optional attribute. If this attribute is not included, then
3820  *	threshold value specified by the
3821  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3822  *
3823  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3824  *	Carries bitmask value of bits from &enum qca_set_band and represents
3825  *	all the bands in which roaming is allowed. The configuration is valid
3826  *	until next disconnection. If this attribute is not present, the
3827  *	existing configuration shall be used. By default, roaming is allowed
3828  *	on all bands supported by local device. When the value is set to
3829  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3830  *
3831  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3832  *	Optional parameter. RX link speed threshold to disable roaming.
3833  *	If the current RX link speed is above the threshold, roaming is not
3834  *	needed. If this attribute is not configured, or if it is set to 0, the
3835  *	driver will not consider the RX link speed in the roaming decision.
3836  *
3837  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
3838  *	Optional parameter. This configuration delays hand-off (in msec) by the
3839  *	specified duration to receive pending rx frames from current BSS.
3840  *
3841  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
3842  *	value.
3843  *	During the roam scan, if there are no desired APs found in the partial
3844  *	frequency list, an immediate full scan on all the supported frequencies
3845  *	is initiated as a fallback. This flag controls the frequency list
3846  *	creation for the full scan on the following lines.
3847  *	1 - Full scan to exclude the frequencies that were already scanned by
3848  *	    the previous partial scan.
3849  *	0 - Full scan to include all the supported frequencies irrespective of
3850  *	    the ones part of the earlier partial scan.
3851  *	If this flag is not specified, a full scan shall include all the
3852  *	supported frequencies irrespective of the ones part of an earlier
3853  *	partial scan.
3854  *
3855  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
3856  *	value.
3857  *	During the roam scan, if there are no desired APs found in the partial
3858  *	frequency list, an immediate full scan on all the supported frequencies
3859  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
3860  *	frequencies, including all PSC frequencies by default. This attribute
3861  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
3862  *	as following.
3863  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
3864  *	    prior discovery of any 6 GHz frequency support in the environment.
3865  *	    This discovery can happen through a prior RNR, 11k neighbor
3866  *	    request, 11v BTM request, host scan, etc.
3867  *	0 - Default behavior. Full scan to include all the supported 6 GHz
3868  *	    PSC frequencies regardless of whether 6 GHz BSSs have been
3869  *	    discovered.
3870  *	The default behavior if this flag is not specified is to include all
3871  *	the supported 6 GHz PSC frequencies in the roam full scan.
3872  *
3873  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
3874  *	This attribute signifies the RSSI offset that is added to low RSSI
3875  *	threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
3876  *	high RSSI threshold. STA is expected to trigger roam if the current
3877  *	connected AP's RSSI gets above this high RSSI threshold. STA's roam
3878  *	attempt on high RSSI threshold aims to find candidates from other
3879  *	better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
3880  *	and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
3881  *	for 2.4 GHz BSS).
3882  */
3883 enum qca_vendor_attr_roam_control {
3884 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3885 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3886 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3887 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3888 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3889 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3890 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3891 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3892 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3893 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3894 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3895 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3896 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3897 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3898 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3899 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3900 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3901 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3902 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
3903 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
3904 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
3905 	QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
3906 
3907 	/* keep last */
3908 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3909 	QCA_ATTR_ROAM_CONTROL_MAX =
3910 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3911 };
3912 
3913 /**
3914  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3915  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3916  *
3917  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3918  *	Represents the different roam sub commands referred by
3919  *	enum qca_wlan_vendor_roaming_subcmd.
3920  *
3921  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3922  *	Represents the Request ID for the specific set of commands.
3923  *	This also helps to map specific set of commands to the respective
3924  *	ID / client. e.g., helps to identify the user entity configuring the
3925  *	Blacklist BSSID and accordingly clear the respective ones with the
3926  *	matching ID.
3927  *
3928  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3929  *	32-bit value.Represents the number of whitelist SSIDs configured.
3930  *
3931  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3932  *	to carry the list of Whitelist SSIDs.
3933  *
3934  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3935  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3936  *	represent the list of SSIDs to which the firmware/driver can consider
3937  *	to roam to.
3938  *
3939  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3940  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3941  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3942  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3943  *
3944  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3945  *	value, RSSI threshold above which 5GHz RSSI is favored.
3946  *
3947  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3948  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3949  *
3950  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3951  *	value, factor by which 5GHz RSSI is boosted.
3952  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3953  *
3954  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3955  *	value, factor by which 5GHz RSSI is penalized.
3956  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3957  *
3958  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3959  *	value, maximum boost that can be applied to a 5GHz RSSI.
3960  *
3961  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3962  *	value, boost applied to current BSSID to ensure the currently
3963  *	associated BSSID is favored so as to prevent ping-pong situations.
3964  *
3965  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3966  *	value, RSSI below which "Alert" roam is enabled.
3967  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3968  *	because the RSSI is low, or because many successive beacons have been
3969  *	lost or other bad link conditions.
3970  *
3971  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3972  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3973  *	firmware is hunting for a better BSSID or white listed SSID even though
3974  *	the RSSI of the link is good. The parameters enabling the roaming are
3975  *	configured through the PARAM_A_BAND_XX attrbutes.
3976  *
3977  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3978  *	represents the BSSIDs preferred over others while evaluating them
3979  *	for the roaming.
3980  *
3981  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3982  *	32-bit value. Represents the number of preferred BSSIDs set.
3983  *
3984  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3985  *	address representing the BSSID to be preferred.
3986  *
3987  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3988  *	32-bit value, representing the modifier to be applied to the RSSI of
3989  *	the BSSID for the purpose of comparing it with other roam candidate.
3990  *
3991  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3992  *	represents the BSSIDs to get blacklisted for roaming.
3993  *
3994  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3995  *	32-bit value, represents the number of blacklisted BSSIDs.
3996  *
3997  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3998  *	address representing the Blacklisted BSSID.
3999  *
4000  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
4001  *	indicates this BSSID blacklist as a hint to the driver. The driver can
4002  *	select this BSSID in the worst case (when no other BSSIDs are better).
4003  *
4004  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
4005  *	set/get/clear the roam control config as
4006  *	defined @enum qca_vendor_attr_roam_control.
4007  *
4008  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
4009  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
4010  */
4011 enum qca_wlan_vendor_attr_roaming_config_params {
4012 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
4013 
4014 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
4015 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
4016 
4017 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
4018 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
4019 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
4020 
4021 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
4022 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
4023 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
4024 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
4025 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
4026 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
4027 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
4028 
4029 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
4030 
4031 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
4032 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
4033 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
4034 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
4035 
4036 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
4037 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
4038 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
4039 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
4040 
4041 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
4042 
4043 	/* keep last */
4044 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
4045 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
4046 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
4047 };
4048 
4049 /**
4050  * enum qca_wlan_vendor_roaming_subcmd: Referred by
4051  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
4052  *
4053  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
4054  *	configure the white list SSIDs. These are configured through
4055  *	the following attributes.
4056  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
4057  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
4058  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
4059  *
4060  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
4061  *	configure the Roam params. These parameters are evaluated on the extscan
4062  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
4063  *	params.
4064  *
4065  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
4066  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
4067  *	to enable/disable Lazy roam.
4068  *
4069  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
4070  *	preference. Contains the attribute
4071  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
4072  *	preference.
4073  *
4074  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
4075  *
4076  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
4077  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
4078  *	set the same.
4079  *
4080  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
4081  *	roam control config to the driver with the attribute
4082  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4083  *
4084  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
4085  *	roam control config from driver with the attribute
4086  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4087  *	For the get, the attribute for the configuration to be queried shall
4088  *	carry any of its acceptable value to the driver. In return, the driver
4089  *	shall send the configured values within the same attribute to the user
4090  *	space.
4091  *
4092  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
4093  *	roam control config in the driver with the attribute
4094  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
4095  *	The driver shall continue with its default roaming behavior when data
4096  *	corresponding to an attribute is cleared.
4097  */
4098 enum qca_wlan_vendor_roaming_subcmd {
4099 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
4100 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
4101 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
4102 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
4103 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
4104 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
4105 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
4106 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
4107 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
4108 };
4109 
4110 /**
4111  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
4112  *
4113  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
4114  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
4115  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
4116  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
4117  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
4118  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
4119  */
4120 enum qca_wlan_vendor_attr_get_wifi_info {
4121 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
4122 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
4123 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
4124 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
4125 
4126 	/* KEEP LAST */
4127 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
4128 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
4129 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
4130 };
4131 
4132 enum qca_wlan_vendor_attr_logger_results {
4133 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
4134 
4135 	/*
4136 	 * Unsigned 32-bit value; must match the request Id supplied by
4137 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
4138 	 */
4139 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
4140 
4141 	/*
4142 	 * Unsigned 32-bit value; used to indicate the size of memory
4143 	 * dump to be allocated.
4144 	 */
4145 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
4146 
4147 	/* keep last */
4148 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
4149 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
4150 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
4151 };
4152 
4153 /**
4154  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
4155  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
4156  */
4157 enum qca_wlan_vendor_channel_prop_flags {
4158 	/* Bits 0, 1, 2, and 3 are reserved */
4159 
4160 	/* Turbo channel */
4161 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
4162 	/* CCK channel */
4163 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
4164 	/* OFDM channel */
4165 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
4166 	/* 2.4 GHz spectrum channel. */
4167 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
4168 	/* 5 GHz spectrum channel */
4169 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
4170 	/* Only passive scan allowed */
4171 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
4172 	/* Dynamic CCK-OFDM channel */
4173 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
4174 	/* GFSK channel (FHSS PHY) */
4175 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
4176 	/* Radar found on channel */
4177 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
4178 	/* 11a static turbo channel only */
4179 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
4180 	/* Half rate channel */
4181 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
4182 	/* Quarter rate channel */
4183 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
4184 	/* HT 20 channel */
4185 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
4186 	/* HT 40 with extension channel above */
4187 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
4188 	/* HT 40 with extension channel below */
4189 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
4190 	/* HT 40 intolerant */
4191 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
4192 	/* VHT 20 channel */
4193 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
4194 	/* VHT 40 with extension channel above */
4195 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
4196 	/* VHT 40 with extension channel below */
4197 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
4198 	/* VHT 80 channel */
4199 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
4200 	/* HT 40 intolerant mark bit for ACS use */
4201 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
4202 	/* Channel temporarily blocked due to noise */
4203 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
4204 	/* VHT 160 channel */
4205 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
4206 	/* VHT 80+80 channel */
4207 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
4208 	/* HE 20 channel */
4209 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
4210 	/* HE 40 with extension channel above */
4211 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
4212 	/* HE 40 with extension channel below */
4213 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
4214 	/* HE 40 intolerant */
4215 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
4216 };
4217 
4218 /**
4219  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
4220  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
4221  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
4222  */
4223 enum qca_wlan_vendor_channel_prop_flags_2 {
4224 	/* HE 40 intolerant mark bit for ACS use */
4225 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
4226 	/* HE 80 channel */
4227 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
4228 	/* HE 160 channel */
4229 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
4230 	/* HE 80+80 channel */
4231 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
4232 };
4233 
4234 /**
4235  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
4236  * each channel. This is used by
4237  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
4238  */
4239 enum qca_wlan_vendor_channel_prop_flags_ext {
4240 	/* Radar found on channel */
4241 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
4242 	/* DFS required on channel */
4243 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
4244 	/* DFS required on channel for 2nd band of 80+80 */
4245 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
4246 	/* If channel has been checked for DFS */
4247 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
4248 	/* Excluded in 802.11d */
4249 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
4250 	/* Channel Switch Announcement received on this channel */
4251 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
4252 	/* Ad-hoc is not allowed */
4253 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
4254 	/* Station only channel */
4255 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
4256 	/* DFS radar history for slave device (STA mode) */
4257 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
4258 	/* DFS CAC valid for slave device (STA mode) */
4259 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
4260 };
4261 
4262 /**
4263  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
4264  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
4265  * information to start/stop the NUD statistics collection.
4266  */
4267 enum qca_attr_nud_stats_set {
4268 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
4269 
4270 	/*
4271 	 * Flag to start/stop the NUD statistics collection.
4272 	 * Start - If included, Stop - If not included
4273 	 */
4274 	QCA_ATTR_NUD_STATS_SET_START = 1,
4275 	/* IPv4 address of the default gateway (in network byte order) */
4276 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
4277 	/*
4278 	 * Represents the data packet type to be monitored.
4279 	 * Host driver tracks the stats corresponding to each data frame
4280 	 * represented by these flags.
4281 	 * These data packets are represented by
4282 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
4283 	 */
4284 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
4285 	/* keep last */
4286 	QCA_ATTR_NUD_STATS_SET_LAST,
4287 	QCA_ATTR_NUD_STATS_SET_MAX =
4288 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
4289 };
4290 
4291 /**
4292  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
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_STATS_PKT_INFO_TYPE: set pkt info stats
4296  *	Bitmap to Flag to Start / Stop the NUD stats collection
4297  *	Start - If included , Stop - If not included
4298  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: 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_SRC_PORT: 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_PORT: set gateway ipv4 address
4306  *	IPv4 address of Default Gateway (in network byte order)
4307  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4308  *	information to start / stop the NUD stats collection.
4309  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
4310  *	Flag to Start / Stop the NUD stats collection
4311  *	Start - If included , Stop - If not included
4312  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
4313  *	IPv4 address of Default Gateway (in network byte order)
4314  */
4315 enum qca_attr_connectivity_check_stats_set {
4316 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
4317 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
4318 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
4319 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
4320 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
4321 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
4322 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
4323 	/* keep last */
4324 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
4325 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
4326 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
4327 };
4328 
4329 /**
4330  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4331  * data types for which the stats have to get collected.
4332  */
4333 enum qca_wlan_vendor_connectivity_check_pkt_flags {
4334 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
4335 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
4336 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
4337 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
4338 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
4339 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4340 	 * to represent the stats of respective data type.
4341 	 */
4342 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
4343 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
4344 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
4345 };
4346 
4347 enum qca_attr_connectivity_check_stats {
4348 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
4349 	/* Data packet type for which the stats are collected.
4350 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4351 	 */
4352 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
4353 	/* ID corresponding to the DNS frame for which the respective DNS stats
4354 	 * are monitored (u32).
4355 	 */
4356 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
4357 	/* source / destination port on which the respective proto stats are
4358 	 * collected (u32).
4359 	 */
4360 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
4361 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
4362 	/* IPv4/IPv6 address for which the destined data packets are
4363 	 * monitored. (in network byte order)
4364 	 */
4365 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
4366 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
4367 	/* Data packet Request count received from netdev */
4368 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4369 	/* Data packet Request count sent to lower MAC from upper MAC */
4370 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4371 	/* Data packet Request count received by lower MAC from upper MAC */
4372 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4373 	/* Data packet Request count successfully transmitted by the device */
4374 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4375 	/* Data packet Response count received by lower MAC */
4376 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4377 	/* Data packet Response count received by upper MAC */
4378 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4379 	/* Data packet Response count delivered to netdev */
4380 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4381 	/* Data Packet Response count that are dropped out of order */
4382 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4383 
4384 	/* keep last */
4385 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
4386 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
4387 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
4388 };
4389 
4390 /**
4391  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4392  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4393  * NUD statistics collected when queried.
4394  */
4395 enum qca_attr_nud_stats_get {
4396 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4397 	/* ARP Request count from netdev */
4398 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4399 	/* ARP Request count sent to lower MAC from upper MAC */
4400 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4401 	/* ARP Request count received by lower MAC from upper MAC */
4402 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4403 	/* ARP Request count successfully transmitted by the device */
4404 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4405 	/* ARP Response count received by lower MAC */
4406 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4407 	/* ARP Response count received by upper MAC */
4408 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4409 	/* ARP Response count delivered to netdev */
4410 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4411 	/* ARP Response count delivered to netdev */
4412 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4413 	/*
4414 	 * Flag indicating if the station's link to the AP is active.
4415 	 * Active Link - If included, Inactive link - If not included
4416 	 */
4417 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4418 	/*
4419 	 * Flag indicating if there is any duplicate address detected (DAD).
4420 	 * Yes - If detected, No - If not detected.
4421 	 */
4422 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4423 	/*
4424 	 * List of Data types for which the stats are requested.
4425 	 * This list does not carry ARP stats as they are done by the
4426 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4427 	 */
4428 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4429 	/* keep last */
4430 	QCA_ATTR_NUD_STATS_GET_LAST,
4431 	QCA_ATTR_NUD_STATS_GET_MAX =
4432 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4433 };
4434 
4435 enum qca_wlan_btm_candidate_status {
4436 	QCA_STATUS_ACCEPT = 0,
4437 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4438 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4439 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4440 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4441 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4442 	QCA_STATUS_REJECT_UNKNOWN = 6,
4443 };
4444 
4445 enum qca_wlan_vendor_attr_btm_candidate_info {
4446 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4447 
4448 	/* 6-byte MAC address representing the BSSID of transition candidate */
4449 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4450 	/*
4451 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4452 	 * returned by the driver. It says whether the BSSID provided in
4453 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4454 	 * the driver, if not it specifies the reason for rejection.
4455 	 * Note that the user-space can overwrite the transition reject reason
4456 	 * codes provided by driver based on more information.
4457 	 */
4458 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4459 
4460 	/* keep last */
4461 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4462 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4463 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4464 };
4465 
4466 enum qca_attr_trace_level {
4467 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4468 	/*
4469 	 * Nested array of the following attributes:
4470 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4471 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4472 	 */
4473 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4474 	/*
4475 	 * Specific QCA host driver module. Please refer to the QCA host
4476 	 * driver implementation to get the specific module ID.
4477 	 */
4478 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4479 	/* Different trace level masks represented in the QCA host driver. */
4480 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4481 
4482 	/* keep last */
4483 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4484 	QCA_ATTR_TRACE_LEVEL_MAX =
4485 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4486 };
4487 
4488 /**
4489  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4490  *                                                 supported features
4491  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4492  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4493  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4494  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4495  *
4496  * enum values are used for NL attributes for data used by
4497  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4498  */
4499 enum qca_wlan_vendor_attr_get_logger_features {
4500 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4501 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4502 
4503 	/* keep last */
4504 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4505 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4506 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4507 };
4508 
4509 /**
4510  * enum qca_wlan_vendor_attr_link_properties - link properties
4511  *
4512  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4513  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4514  *	specify the number of spatial streams negotiated
4515  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4516  *	to specify negotiated rate flags i.e. ht, vht and channel width
4517  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4518  *	specify the operating frequency
4519  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4520  * (STA / AP ) for the connected link.
4521  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4522  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4523  * address of the peer represented by
4524  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4525  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4526  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4527  */
4528 enum qca_wlan_vendor_attr_link_properties {
4529 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4530 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4531 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4532 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4533 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4534 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4535 
4536 	/* KEEP LAST */
4537 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4538 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4539 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4540 };
4541 
4542 /**
4543  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4544  *
4545  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4546  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4547  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4548  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4549  *
4550  * enum values are used for NL attributes for data used by
4551  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4552  */
4553 enum qca_wlan_vendor_attr_nd_offload {
4554 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4555 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4556 
4557 	/* Keep last */
4558 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4559 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4560 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4561 };
4562 
4563 /**
4564  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4565  *
4566  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4567  *	management offload, a mechanism where the station's firmware
4568  *	does the exchange with the AP to establish the temporal keys
4569  *	after roaming, rather than having the user space wpa_supplicant do it.
4570  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4571  *	band selection based on channel selection results.
4572  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4573  *	simultaneous off-channel operations.
4574  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4575  *	Listen offload; a mechanism where the station's firmware takes care of
4576  *	responding to incoming Probe Request frames received from other P2P
4577  *	Devices whilst in Listen state, rather than having the user space
4578  *	wpa_supplicant do it. Information from received P2P requests are
4579  *	forwarded from firmware to host whenever the host processor wakes up.
4580  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4581  *	specific features.
4582  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4583  *	features.
4584  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4585  *	specific features only. If a Device sets this bit but not the
4586  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4587  *	this Device may not support all OCE AP functionalities but can support
4588  *	only OCE STA-CFON functionalities.
4589  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4590  *	managed regulatory.
4591  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4592  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4593  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4594  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4595  *	and applying thermal configuration through
4596  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4597  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4598  *	userspace.
4599  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4600  *	With Adaptive 11r feature, access points advertise the vendor
4601  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4602  *	The Adaptive 11r supported stations are expected to identify
4603  *	such vendor specific IEs and connect to the AP in FT mode though
4604  *	the profile is configured in non-FT mode.
4605  *	The driver-based SME cases also need to have this support for
4606  *	Adaptive 11r to handle the connection and roaming scenarios.
4607  *	This flag indicates the support for the same to the user space.
4608  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4609  *	concurrent network sessions on different Wi-Fi Bands. This feature
4610  *	capability is attributed to the hardware's capability to support
4611  *	the same (e.g., DBS).
4612  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4613  *	responses for the respective TWT operations are asynchronous (separate)
4614  *	event message) from the driver. If not specified, the responses are
4615  *	synchronous (in vendor command reply) to the request. Each TWT
4616  *	operation is specifically mentioned (against its respective)
4617  *	documentation) to support either of these or both modes.
4618  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4619  * 	that the driver requires add/del virtual interface path using the
4620  *	generic nl80211 commands for NDP interface create/delete and to
4621  *	register/unregister the netdev instead of creating/deleting the NDP
4622  *	interface using the vendor commands
4623  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4624  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4625  * 	(5.12 version onward), interface creation/deletion is not allowed using
4626  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4627  * 	during the register/unregister of netdev. Create and delete NDP
4628  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4629  * 	commands respectively if the driver advertises this capability set.
4630  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4631  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4632  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4633  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4634  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4635  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4636  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4637  *	station mode supports secure RTT measurement exchange. If
4638  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4639  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4640  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4641  *	mode supports secure RTT measurement exchange. If
4642  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4643  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4644  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4645  *	the device in station mode supports protection of range negotiation and
4646  *	measurement management frames. If
4647  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4648  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4649  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4650  *	the device in AP mode supports protection of range negotiation and
4651  *	measurement management frames. If
4652  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4653  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4654  * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
4655  *	in AP mode supports configuring allowed frequency list for AP operation
4656  *	with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
4657  * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
4658  *	 that the device supports enhanced audio experience over WLAN feature.
4659  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4660  */
4661 enum qca_wlan_vendor_features {
4662 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4663 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4664 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4665 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4666 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4667 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4668 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4669 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4670 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4671 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4672 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4673 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4674 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4675 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4676 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4677 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4678 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4679 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4680 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4681 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4682 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4683 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4684 	QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
4685 	QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
4686 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4687 };
4688 
4689 /**
4690  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4691  *     conditional channel switch
4692  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4693  *     value
4694  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4695  * frequency list (an array of u32 values in host byte order)
4696  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4697  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4698  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4699  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4700  */
4701 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4702 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4703 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4704 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4705 
4706 	/* Keep Last */
4707 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4708 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4709 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4710 };
4711 
4712 /**
4713  * enum wifi_logger_supported_features - values for supported logger features
4714  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4715  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4716  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4717  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4718  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4719  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4720  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4721  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4722  */
4723 enum wifi_logger_supported_features {
4724 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4725 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4726 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4727 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4728 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4729 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4730 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4731 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4732 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4733 };
4734 
4735 /**
4736  * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
4737  * capabilities features
4738  */
4739 enum qca_wlan_tdls_caps_features_supported {
4740 	WIFI_TDLS_SUPPORT = (1 << (0)),
4741 	WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
4742 	WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
4743 
4744 	/* Indicates if the TDLS session can be formed with the peer using
4745 	 * higher bandwidth than the bandwidth of the AP path.
4746 	 */
4747 	WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
4748 };
4749 
4750 /**
4751  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4752  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4753  *
4754  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4755  * Used with event to notify the primary channel number selected in ACS
4756  * operation.
4757  * Note: If both the driver and user-space application supports the 6 GHz band,
4758  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4759  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4760  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4761  * is still used if either of the driver or user space application doesn't
4762  * support the 6 GHz band.
4763  *
4764  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4765  * Used with event to notify the secondary channel number selected in ACS
4766  * operation.
4767  * Note: If both the driver and user-space application supports the 6 GHz band,
4768  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4769  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4770  * To maintain backward compatibility,
4771  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4772  * the driver or user space application doesn't support 6 GHz band.
4773  *
4774  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4775  * (a) Used with command to configure hw_mode from
4776  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4777  * (b) Also used with event to notify the hw_mode of selected primary channel
4778  * in ACS operation.
4779  *
4780  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4781  * Used with command to configure ACS operation for HT mode.
4782  * Disable (flag attribute not present) - HT disabled and
4783  * Enable (flag attribute present) - HT enabled.
4784  *
4785  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4786  * Used with command to configure ACS operation for HT40 mode.
4787  * Disable (flag attribute not present) - HT40 disabled and
4788  * Enable (flag attribute present) - HT40 enabled.
4789  *
4790  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4791  * Used with command to configure ACS operation for VHT mode.
4792  * Disable (flag attribute not present) - VHT disabled and
4793  * Enable (flag attribute present) - VHT enabled.
4794  *
4795  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4796  * mandatory with event.
4797  * If specified in command path, ACS operation is configured with the given
4798  * channel width (in MHz).
4799  * In event path, specifies the channel width of the primary channel selected.
4800  *
4801  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4802  * Used with command to configure channel list using an array of
4803  * channel numbers (u8).
4804  * Note: If both the driver and user-space application supports the 6 GHz band,
4805  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4806  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4807  *
4808  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4809  * Used with event to notify the VHT segment 0 center channel number selected in
4810  * ACS operation.
4811  * Note: If both the driver and user-space application supports the 6 GHz band,
4812  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4813  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4814  * To maintain backward compatibility,
4815  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4816  * the driver or user space application doesn't support the 6 GHz band.
4817  *
4818  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4819  * Used with event to notify the VHT segment 1 center channel number selected in
4820  * ACS operation.
4821  * Note: If both the driver and user-space application supports the 6 GHz band,
4822  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4823  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4824  * To maintain backward compatibility,
4825  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4826  * the driver or user space application doesn't support the 6 GHz band.
4827  *
4828  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4829  * Used with command to configure the channel list using an array of channel
4830  * center frequencies in MHz (u32).
4831  * Note: If both the driver and user-space application supports the 6 GHz band,
4832  * the driver first parses the frequency list and if it fails to get a frequency
4833  * list, parses the channel list specified using
4834  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4835  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4836  *
4837  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4838  * Used with event to notify the primary channel center frequency (MHz) selected
4839  * in ACS operation.
4840  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4841  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4842  *
4843  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4844  * Used with event to notify the secondary channel center 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_SECONDARY_CHANNEL.
4849  *
4850  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4851  * Used with event to notify the VHT segment 0 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_SEG0_CENTER_CHANNEL.
4856  *
4857  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4858  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4859  * selected in ACS operation.
4860  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4861  * includes this attribute along with
4862  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4863  *
4864  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4865  * Used with command to notify the driver of EDMG request for ACS
4866  * operation.
4867  *
4868  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4869  * Used with event to notify the EDMG channel number selected in ACS
4870  * operation.
4871  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4872  *
4873  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4874  * Used with event to notify the puncture pattern selected in ACS operation.
4875  * Encoding for this attribute will follow the convention used in the Disabled
4876  * Subchannel Bitmap field of the EHT Operation IE.
4877  *
4878  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4879  * Used with command to configure ACS operation for EHT mode.
4880  * Disable (flag attribute not present) - EHT disabled and
4881  * Enable (flag attribute present) - EHT enabled.
4882  *
4883  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4884  * Used with command to configure how older scan can be considered for ACS
4885  * scoring. In case scan was performed on partial set of channels configured
4886  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4887  * (in ms), then scan only remaining channels.
4888  */
4889 enum qca_wlan_vendor_attr_acs_offload {
4890 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4891 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4892 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4893 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4894 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4895 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4896 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4897 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4898 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4899 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4900 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4901 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4902 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4903 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4904 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4905 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4906 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4907 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4908 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4909 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4910 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4911 
4912 	/* keep last */
4913 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4914 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4915 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4916 };
4917 
4918 /**
4919  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4920  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4921  *
4922  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4923  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4924  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4925  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4926  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4927  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4928  */
4929 enum qca_wlan_vendor_acs_hw_mode {
4930 	QCA_ACS_MODE_IEEE80211B,
4931 	QCA_ACS_MODE_IEEE80211G,
4932 	QCA_ACS_MODE_IEEE80211A,
4933 	QCA_ACS_MODE_IEEE80211AD,
4934 	QCA_ACS_MODE_IEEE80211ANY,
4935 	QCA_ACS_MODE_IEEE80211AX,
4936 };
4937 
4938 /**
4939  * enum qca_access_policy - access control policy
4940  *
4941  * Access control policy is applied on the configured IE
4942  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4943  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4944  *
4945  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4946  *»       with the specific configuration (IE) set, i.e. allow all the
4947  *»       connections which do not match the configuration.
4948  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4949  *»       with the specific configuration (IE) set, i.e. deny all the
4950  *»       connections which do not match the configuration.
4951  */
4952 enum qca_access_policy {
4953 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4954 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4955 };
4956 
4957 /**
4958  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4959  *
4960  * The valid values for the ignore assoc disallowed
4961  *
4962  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4963  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4964  *
4965  */
4966 enum qca_ignore_assoc_disallowed {
4967 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4968 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4969 };
4970 
4971 /* Attributes for data used by
4972  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4973  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4974  */
4975 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4976 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4977 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4978 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4979 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4980 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4981 enum qca_wlan_vendor_attr_config {
4982 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4983 	/*
4984 	 * Unsigned 32-bit value to set the DTIM period.
4985 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4986 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4987 	 * DTIM beacons.
4988 	 */
4989 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
4990 	/*
4991 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4992 	 * used to calculate statistics like average the TSF offset or average
4993 	 * number of frame leaked.
4994 	 * For instance, upon Beacon frame reception:
4995 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4996 	 * For instance, when evaluating leaky APs:
4997 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4998 	 */
4999 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
5000 	/*
5001 	 * Unsigned 32-bit value to configure guard time, i.e., when
5002 	 * implementing IEEE power management based on frame control PM bit, how
5003 	 * long the driver waits before shutting down the radio and after
5004 	 * receiving an ACK frame for a Data frame with PM bit set.
5005 	 */
5006 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
5007 	/* Unsigned 32-bit value to change the FTM capability dynamically */
5008 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
5009 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
5010 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
5011 	/*
5012 	 * Unsigned 32-bit value to configure the number of continuous
5013 	 * Beacon Miss which shall be used by the firmware to penalize
5014 	 * the RSSI.
5015 	 */
5016 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
5017 	/*
5018 	 * Unsigned 8-bit value to configure the channel avoidance indication
5019 	 * behavior. Firmware to send only one indication and ignore duplicate
5020 	 * indications when set to avoid multiple Apps wakeups.
5021 	 */
5022 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
5023 	/*
5024 	 * 8-bit unsigned value to configure the maximum TX MPDU for
5025 	 * aggregation.
5026 	 */
5027 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
5028 	/*
5029 	 * 8-bit unsigned value to configure the maximum RX MPDU for
5030 	 * aggregation.
5031 	 */
5032 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
5033 	/*
5034 	 * 8-bit unsigned value to configure the Non aggregate/11g sw
5035 	 * retry threshold (0 disable, 31 max).
5036 	 */
5037 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
5038 	/*
5039 	 * 8-bit unsigned value to configure the aggregate sw
5040 	 * retry threshold (0 disable, 31 max).
5041 	 */
5042 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
5043 	/*
5044 	 * 8-bit unsigned value to configure the MGMT frame
5045 	 * retry threshold (0 disable, 31 max).
5046 	 */
5047 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
5048 	/*
5049 	 * 8-bit unsigned value to configure the CTRL frame
5050 	 * retry threshold (0 disable, 31 max).
5051 	 */
5052 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
5053 	/*
5054 	 * 8-bit unsigned value to configure the propagation delay for
5055 	 * 2G/5G band (0~63, units in us)
5056 	 */
5057 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
5058 	/*
5059 	 * Unsigned 32-bit value to configure the number of unicast TX fail
5060 	 * packet count. The peer is disconnected once this threshold is
5061 	 * reached.
5062 	 */
5063 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
5064 	/*
5065 	 * Attribute used to set scan default IEs to the driver.
5066 	 *
5067 	 * These IEs can be used by scan operations that will be initiated by
5068 	 * the driver/firmware.
5069 	 *
5070 	 * For further scan requests coming to the driver, these IEs should be
5071 	 * merged with the IEs received along with scan request coming to the
5072 	 * driver. If a particular IE is present in the scan default IEs but not
5073 	 * present in the scan request, then that IE should be added to the IEs
5074 	 * sent in the Probe Request frames for that scan request.
5075 	 */
5076 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
5077 	/* Unsigned 32-bit attribute for generic commands */
5078 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
5079 	/* Unsigned 32-bit value attribute for generic commands */
5080 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
5081 	/* Unsigned 32-bit data attribute for generic command response */
5082 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
5083 	/*
5084 	 * Unsigned 32-bit length attribute for
5085 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
5086 	 */
5087 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
5088 	/*
5089 	 * Unsigned 32-bit flags attribute for
5090 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
5091 	 */
5092 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
5093 	/*
5094 	 * Unsigned 32-bit, defining the access policy.
5095 	 * See enum qca_access_policy. Used with
5096 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
5097 	 */
5098 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
5099 	/*
5100 	 * Sets the list of full set of IEs for which a specific access policy
5101 	 * has to be applied. Used along with
5102 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
5103 	 * Zero length payload can be used to clear this access constraint.
5104 	 */
5105 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
5106 	/*
5107 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
5108 	 * corresponding configurations are applied. If the interface index is
5109 	 * not specified, the configurations are attributed to the respective
5110 	 * wiphy.
5111 	 */
5112 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
5113 	/*
5114 	 * 8-bit unsigned value to trigger QPower:
5115 	 * 1-Enable, 0-Disable
5116 	 */
5117 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
5118 	/*
5119 	 * 8-bit unsigned value to configure the driver and below layers to
5120 	 * ignore the assoc disallowed set by APs while connecting
5121 	 * 1-Ignore, 0-Don't ignore
5122 	 */
5123 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
5124 	/*
5125 	 * 32-bit unsigned value to trigger antenna diversity features:
5126 	 * 1-Enable, 0-Disable
5127 	 */
5128 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
5129 	/* 32-bit unsigned value to configure specific chain antenna */
5130 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
5131 	/*
5132 	 * 32-bit unsigned value to trigger cycle selftest
5133 	 * 1-Enable, 0-Disable
5134 	 */
5135 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
5136 	/*
5137 	 * 32-bit unsigned to configure the cycle time of selftest
5138 	 * the unit is micro-second
5139 	 */
5140 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
5141 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
5142 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
5143 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
5144 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
5145 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
5146 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
5147 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
5148 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
5149 	/* 6-byte MAC address to point out the specific peer */
5150 	QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
5151 	/* Backward compatibility with the original name */
5152 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
5153 		QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
5154 	/* 32-bit unsigned value to set window size for specific peer */
5155 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
5156 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
5157 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
5158 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
5159 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
5160 	/*
5161 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
5162 	 * station device while in disconnect state. The attribute use the
5163 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
5164 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
5165 	 * 10 MHz channel width, the station will not connect to a BSS using 20
5166 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
5167 	 * clear this constraint.
5168 	 */
5169 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
5170 	/*
5171 	 * 32-bit unsigned value to configure the propagation absolute delay
5172 	 * for 2G/5G band (units in us)
5173 	 */
5174 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
5175 	/* 32-bit unsigned value to set probe period */
5176 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
5177 	/* 32-bit unsigned value to set stay period */
5178 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
5179 	/* 32-bit unsigned value to set snr diff */
5180 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
5181 	/* 32-bit unsigned value to set probe dwell time */
5182 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
5183 	/* 32-bit unsigned value to set mgmt snr weight */
5184 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
5185 	/* 32-bit unsigned value to set data snr weight */
5186 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
5187 	/* 32-bit unsigned value to set ack snr weight */
5188 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
5189 	/*
5190 	 * 32-bit unsigned value to configure the listen interval.
5191 	 * This is in units of beacon intervals. This configuration alters
5192 	 * the negotiated listen interval with the AP during the connection.
5193 	 * It is highly recommended to configure a value less than or equal to
5194 	 * the one negotiated during the association. Configuring any greater
5195 	 * value can have adverse effects (frame loss, AP disassociating STA,
5196 	 * etc.).
5197 	 */
5198 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
5199 	/*
5200 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
5201 	 * disable operations that would cause the AP/GO to leave its operating
5202 	 * channel.
5203 	 *
5204 	 * This will restrict the scans to the AP/GO operating channel and the
5205 	 * channels of the other band, if DBS is supported.A STA/CLI interface
5206 	 * brought up after this setting is enabled, will be restricted to
5207 	 * connecting to devices only on the AP/GO interface's operating channel
5208 	 * or on the other band in DBS case. P2P supported channel list is
5209 	 * modified, to only include AP interface's operating-channel and the
5210 	 * channels of the other band if DBS is supported.
5211 	 *
5212 	 * These restrictions are only applicable as long as the AP/GO interface
5213 	 * is alive. If the AP/GO interface is brought down then this
5214 	 * setting/restriction is forgotten.
5215 	 *
5216 	 * If this variable is set on an AP/GO interface while a multi-channel
5217 	 * concurrent session is active, it has no effect on the operation of
5218 	 * the current interfaces, other than restricting the scan to the AP/GO
5219 	 * operating channel and the other band channels if DBS is supported.
5220 	 * However, if the STA is brought down and restarted then the new STA
5221 	 * connection will either be formed on the AP/GO channel or on the
5222 	 * other band in a DBS case. This is because of the scan being
5223 	 * restricted on these channels as mentioned above.
5224 	 *
5225 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
5226 	 */
5227 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
5228 
5229 	/*
5230 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
5231 	 * on an interface.
5232 	 * 1 - Enable , 0 - Disable.
5233 	 */
5234 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
5235 
5236 	/*
5237 	 * 8 bit unsigned value to globally enable/disable scan
5238 	 * 1 - Enable, 0 - Disable.
5239 	 */
5240 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
5241 
5242 	/* 8-bit unsigned value to set the total beacon miss count */
5243 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
5244 
5245 	/*
5246 	 * Unsigned 32-bit value to configure the number of continuous
5247 	 * Beacon Miss which shall be used by the firmware to penalize
5248 	 * the RSSI for BTC.
5249 	 */
5250 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
5251 
5252 	/*
5253 	 * 8-bit unsigned value to configure the driver and below layers to
5254 	 * enable/disable all fils features.
5255 	 * 0-enable, 1-disable
5256 	 */
5257 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
5258 
5259 	/* 16-bit unsigned value to configure the level of WLAN latency
5260 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
5261 	 */
5262 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
5263 
5264 	/*
5265 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
5266 	 * the connect interface. Exclusively used for the scenarios where the
5267 	 * device is used as a test bed device with special functionality and
5268 	 * not recommended for production. This helps driver to not validate the
5269 	 * RSNE passed from user space and thus allow arbitrary IE data to be
5270 	 * used for testing purposes.
5271 	 * 1-enable, 0-disable.
5272 	 * Applications set/reset this configuration. If not reset, this
5273 	 * parameter remains in use until the driver is unloaded.
5274 	 */
5275 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
5276 
5277 	/*
5278 	 * 8-bit unsigned value to trigger green Tx power saving.
5279 	 * 1-Enable, 0-Disable
5280 	 */
5281 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
5282 
5283 	/*
5284 	 * Attribute to configure disconnect IEs to the driver.
5285 	 * This carries an array of unsigned 8-bit characters.
5286 	 *
5287 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
5288 	 * frame.
5289 	 * These IEs are expected to be considered only for the next
5290 	 * immediate disconnection (disassoc/deauth frame) originated by
5291 	 * the DUT, irrespective of the entity (user space/driver/firmware)
5292 	 * triggering the disconnection.
5293 	 * The host drivers are not expected to use the IEs set through
5294 	 * this interface for further disconnections after the first immediate
5295 	 * disconnection initiated post the configuration.
5296 	 * If the IEs are also updated through cfg80211 interface (after the
5297 	 * enhancement to cfg80211_disconnect), host driver is expected to
5298 	 * take the union of IEs from both of these interfaces and send in
5299 	 * further disassoc/deauth frames.
5300 	 */
5301 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
5302 
5303 	/* 8-bit unsigned value for ELNA bypass.
5304 	 * 0 - Disable eLNA bypass.
5305 	 * 1 - Enable eLNA bypass.
5306 	 * 2 - Reset eLNA bypass configuration, the driver should
5307 	 *	revert to the default configuration of eLNA bypass.
5308 	 */
5309 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
5310 
5311 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5312 	 * to send the Beacon Report response with failure reason for the
5313 	 * scenarios where STA cannot honor the Beacon report request from AP.
5314 	 * 1-Enable, 0-Disable.
5315 	 */
5316 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
5317 
5318 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5319 	 * to send roam reason information in the reassociation request to the
5320 	 * AP. 1-Enable, 0-Disable.
5321 	 */
5322 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
5323 
5324 	/* 32-bit unsigned value to configure different PHY modes to the
5325 	 * driver/firmware. The possible values are defined in
5326 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
5327 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
5328 	 * the driver.
5329 	 */
5330 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
5331 
5332 	/* 8-bit unsigned value to configure the maximum supported channel width
5333 	 * for STA mode. If this value is configured when STA is in connected
5334 	 * state, it should not exceed the negotiated channel width. If it is
5335 	 * configured when STA is in disconnected state, the configured value
5336 	 * will take effect for the next immediate connection.
5337 	 * This configuration can be sent inside
5338 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
5339 	 * supported channel width per-MLO link.
5340 	 *
5341 	 * This uses values defined in enum nl80211_chan_width.
5342 	 */
5343 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
5344 
5345 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
5346 	 * This attribute is only applicable for STA mode. When dynamic
5347 	 * bandwidth adjustment is disabled, STA will use static channel width
5348 	 * the value of which is negotiated during connection.
5349 	 * 1-enable (default), 0-disable
5350 	 */
5351 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
5352 
5353 	/* 8-bit unsigned value to configure the maximum number of subframes of
5354 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
5355 	 * it is decided by hardware.
5356 	 */
5357 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
5358 
5359 	/* 8-bit unsigned value to configure the maximum number of subframes of
5360 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
5361 	 * it is decided by hardware.
5362 	 */
5363 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
5364 
5365 	/* 8-bit unsigned value. This attribute is used to dynamically
5366 	 * enable/disable the LDPC capability of the device. When configured in
5367 	 * the disconnected state, the updated configuration will be considered
5368 	 * for the immediately following connection attempt. If this
5369 	 * configuration is modified while the device is in the connected state,
5370 	 * the LDPC TX will be updated with this configuration immediately,
5371 	 * while the LDPC RX configuration update will take place starting from
5372 	 * the subsequent association attempt.
5373 	 * 1-Enable, 0-Disable.
5374 	 */
5375 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
5376 
5377 	/* 8-bit unsigned value. This attribute is used to dynamically
5378 	 * enable/disable the TX STBC capability of the device. When configured
5379 	 * in the disconnected state, the updated configuration will be
5380 	 * considered for the immediately following connection attempt. If the
5381 	 * connection is formed with TX STBC enabled and if this configuration
5382 	 * is disabled during that association, the TX will be impacted
5383 	 * immediately. Further connection attempts will disable TX STBC.
5384 	 * However, enabling the TX STBC for a connected session with disabled
5385 	 * capability is not allowed and will fail.
5386 	 * 1-Enable, 0-Disable.
5387 	 */
5388 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
5389 
5390 	/* 8-bit unsigned value. This attribute is used to dynamically
5391 	 * enable/disable the RX STBC capability of the device. When configured
5392 	 * in the disconnected state, the updated configuration will be
5393 	 * considered for the immediately following connection attempt. If the
5394 	 * configuration is modified in the connected state, there will be no
5395 	 * impact for the current association, but further connection attempts
5396 	 * will use the updated configuration.
5397 	 * 1-Enable, 0-Disable.
5398 	 */
5399 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
5400 
5401 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5402 	 * the number of spatial streams. When configured in the disconnected
5403 	 * state, the updated configuration will be considered for the
5404 	 * immediately following connection attempt. If the NSS is updated after
5405 	 * the connection, the updated NSS value is notified to the peer using
5406 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
5407 	 * frame. The updated NSS value after the connection shall not be
5408 	 * greater than the one negotiated during the connection. Any such
5409 	 * higher value configuration shall be returned with a failure.
5410 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
5411 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
5412 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
5413 	 * configure the asymmetric NSS configuration (such as 1X2).
5414 	 */
5415 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
5416 
5417 	/* 8-bit unsigned value to configure Optimized Power Management mode:
5418 	 * Modes are defined by enum qca_wlan_vendor_opm_mode.
5419 	 *
5420 	 * This attribute shall be configured along with
5421 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
5422 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
5423 	 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
5424 	 */
5425 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
5426 
5427 	/* 8-bit unsigned value. This attribute takes the QOS/access category
5428 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5429 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
5430 	 * is invalid for this attribute. This will override the DSCP value
5431 	 * configured in the frame with the intention to only upgrade the QOS.
5432 	 * That said, it is not intended to downgrade the QOS for the frames.
5433 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
5434 	 * to disable.
5435 	 *
5436 	 * If only UDP frames of BE or BK access category needs to be upgraded
5437 	 * without changing the access category of VO or VI UDP frames, refer to
5438 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
5439 	 *
5440 	 * This attribute is not recommended to be used as it blindly forces all
5441 	 * UDP packets to a higher access category which could impact the
5442 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
5443 	 */
5444 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
5445 
5446 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5447 	 * the number of chains to be used for transmitting data. This
5448 	 * configuration is allowed only when in connected state and will be
5449 	 * effective until disconnected. The driver rejects this configuration
5450 	 * if the number of spatial streams being used in the current connection
5451 	 * cannot be supported by this configuration.
5452 	 */
5453 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
5454 
5455 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5456 	 * the number of chains to be used for receiving data. This
5457 	 * configuration is allowed only when in connected state and will be
5458 	 * effective until disconnected. The driver rejects this configuration
5459 	 * if the number of spatial streams being used in the current connection
5460 	 * cannot be supported by this configuration.
5461 	 */
5462 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5463 
5464 	/* 8-bit unsigned value to configure ANI setting type.
5465 	 * See &enum qca_wlan_ani_setting for possible values.
5466 	 */
5467 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5468 	/* 32-bit signed value to configure ANI level. This is used when
5469 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5470 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5471 	 * is invalid, the driver will return a failure.
5472 	 */
5473 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5474 
5475 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5476 	 * the number of spatial streams used for transmitting the data. When
5477 	 * configured in the disconnected state, the configured value will
5478 	 * be considered for the following connection attempt.
5479 	 * If the NSS is updated after the connection, the updated NSS value
5480 	 * is notified to the peer using the Operating Mode Notification/Spatial
5481 	 * Multiplexing Power Save frame.
5482 	 * The TX NSS value configured after the connection shall not be greater
5483 	 * than the value negotiated during the connection. Any such higher
5484 	 * value configuration shall be treated as invalid configuration by
5485 	 * the driver. This attribute shall be configured along with
5486 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5487 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5488 	 * configuration (such as 1X2).
5489 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5490 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5491 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5492 	 */
5493 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5494 
5495 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5496 	 * the number of spatial streams used for receiving the data. When
5497 	 * configured in the disconnected state, the configured value will
5498 	 * be considered for the following connection attempt.
5499 	 * If the NSS is updated after the connection, the updated NSS value
5500 	 * is notified to the peer using the Operating Mode Notification/Spatial
5501 	 * Multiplexing Power Save frame.
5502 	 * The RX NSS value configured after the connection shall not be greater
5503 	 * than the value negotiated during the connection. Any such higher
5504 	 * value configuration shall be treated as invalid configuration by
5505 	 * the driver. This attribute shall be configured along with
5506 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5507 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5508 	 * configuration (such as 1X2).
5509 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5510 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5511 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5512 	 */
5513 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5514 
5515 	/*
5516 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5517 	 * specified interface is the primary STA interface when there are more
5518 	 * than one STA interfaces concurrently active.
5519 	 *
5520 	 * This configuration helps the firmware/hardware to support certain
5521 	 * features (e.g., roaming) on this primary interface, if the same
5522 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5523 	 *
5524 	 * This configuration is only applicable for a single STA interface on
5525 	 * a device and gives the priority for it only over other concurrent STA
5526 	 * interfaces.
5527 	 *
5528 	 * If the device is a multi wiphy/soc, this configuration applies to a
5529 	 * single STA interface across the wiphys.
5530 	 *
5531 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5532 	 */
5533 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5534 
5535 	/*
5536 	 * 8-bit unsigned value. This attribute can be used to configure the
5537 	 * driver to enable/disable FT-over-DS feature. Possible values for
5538 	 * this attribute are 1-Enable and 0-Disable.
5539 	 */
5540 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5541 
5542 	/*
5543 	 * 8-bit unsigned value. This attribute can be used to configure the
5544 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5545 	 * for this attribute are 0-Disable and 1-Enable.
5546 	 *
5547 	 * This attribute is only applicable for STA/P2P-Client interface,
5548 	 * and is optional, default behavior is APR/NS offload Enable.
5549 	 *
5550 	 * This attribute can be set in disconncted and connected state, and
5551 	 * will restore to default behavior if interface is closed.
5552 	 */
5553 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5554 
5555 	/*
5556 	 * 8-bit unsigned value. This attribute can be used to configure the
5557 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5558 	 * for this attribute are defined in the enum qca_dbam_config.
5559 	 */
5560 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5561 
5562 	/* 8-bit unsigned value. This attribute takes the QoS/access category
5563 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5564 	 * to upgrade the UDP frames of BE or BK access category to this access
5565 	 * category. This attribute will not modify UDP frames of VO or VI
5566 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
5567 	 * attribute.
5568 	 *
5569 	 * This will override the DSCP value configured in the frame with the
5570 	 * intention to only upgrade the access category. That said, it is not
5571 	 * intended to downgrade the access category for the frames.
5572 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
5573 	 * disabled, as BK is of the lowest priority and an upgrade to it does
5574 	 * not result in any changes for the frames.
5575 	 *
5576 	 * This attribute behavior is similar to
5577 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
5578 	 * only UDP frames of BE or BK access category are upgraded and not
5579 	 * UDP frames of VI or VO access category.
5580 	 *
5581 	 * This attribute is not recommended to be used as it blindly forces all
5582 	 * UDP packets of BE or BK access category to a higher access category
5583 	 * which could impact the traffic pattern of all apps using UDP and can
5584 	 * cause unknown behavior.
5585 	 */
5586 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
5587 
5588 	/* 8-bit unsigned value to configure the driver to enable/disable the
5589 	 * periodic sounding for Tx beamformer functionality. The default
5590 	 * behavior uses algorithm to do sounding based on packet stats.
5591 	 *
5592 	 * 0 - Default behavior.
5593 	 * 1 - Enable the periodic sounding for Tx beamformer.
5594 	 * This attribute is used for testing purposes.
5595 	 */
5596 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
5597 
5598 	/* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
5599 	 * Userspace sends this information to driver/firmware to configure
5600 	 * wfc state. Driver/Firmware uses this information to
5601 	 * optimize power savings, rate adaption, roaming, etc.
5602 	 *
5603 	 * 1 - wfc is on.
5604 	 * 0 - wfc is off.
5605 	 */
5606 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
5607 
5608 	/* 8-bit unsigned value to configure the driver to enable/disable the
5609 	 * EHT EML capability in management frame EHT capabilities.
5610 	 * 1 - Enable, 0 - Disable.
5611 	 */
5612 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
5613 
5614 	/* 8-bit unsigned value to configure the driver with EHT MLO max
5615 	 * simultaneous links to be used for MLO connection.
5616 	 * The range of the value is 0 to 14.
5617 	 */
5618 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
5619 
5620 	/* 8-bit unsigned value to configure the driver with EHT MLO maximum
5621 	 * number of links to be used for MLO connection.
5622 	 * The range of the value is 1 to 16.
5623 	 */
5624 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
5625 
5626 	/* 8-bit unsigned value to configure the driver with EHT MLO mode.
5627 	 * Uses enum qca_wlan_eht_mlo_mode values.
5628 	 */
5629 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
5630 
5631 	/* Nested attribute with frequencies in u32 attributes to configure a
5632 	 * list of allowed 20 MHz channel center frequencies in MHz for AP
5633 	 * operation. Whenever performing a channel selection operation, the
5634 	 * driver shall generate a new list based on this provided list by
5635 	 * filtering out channels that cannot be used at that time due to
5636 	 * regulatory or other constraints. The resulting list is used as the
5637 	 * list of all allowed channels, i.e., operation on any channel that is
5638 	 * not included is not allowed, whenever performing operations like ACS
5639 	 * and DFS.
5640 	 *
5641 	 * Userspace shall configure this before starting the AP and the
5642 	 * configuration is valid only from the next BSS start and until the
5643 	 * BSS is stopped. The driver shall clear this configuration when the
5644 	 * AP is stopped and fall back to the default behavior for subsequent
5645 	 * AP operation.
5646 	 *
5647 	 * The default behavior when this configuration is not applicable is the
5648 	 * driver can choose any of the channels supported by the hardware
5649 	 * except the channels that cannot be used due to regulatory or other
5650 	 * constraints.
5651 	 *
5652 	 * The driver shall reject this configuration if done after the AP is
5653 	 * started. This attribute can be used to specify user's choice of
5654 	 * frequencies and static puncture channel list, etc.
5655 	 */
5656 	QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
5657 
5658 	/* Nested attribute to indicate EHT MLO links to be forced active.
5659 	 * It contains link MAC address attributes. These nested attributes are
5660 	 * of the type NL80211_ATTR_MAC and are used to force enabling of the
5661 	 * MLO links corresponding to the indicated link MAC addresses.
5662 	 * Subsequently, the links corresponding to the link MAC addresses that
5663 	 * are not indicated are forced inactive.
5664 	 */
5665 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
5666 
5667 	/* 8-bit unsigned value to configure EMLSR mode entry or exit.
5668 	 * Uses enum qca_wlan_emlsr_mode values.
5669 	 */
5670 	QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
5671 
5672 	/* 8-bit unsigned value. This attribute is used to dynamically
5673 	 * enable/suspend trigger based UL MU transmission.
5674 	 * This is supported in STA mode and the device sends Operating
5675 	 * Mode Indication to inform the change as described in
5676 	 * IEEE Std 802.11ax-2021, 26.9.
5677 	 *
5678 	 * This attribute can be configured when the STA is associated
5679 	 * to an AP and the configuration is maintained until the current
5680 	 * association terminates.
5681 	 *
5682 	 * By default all UL MU transmissions are enabled.
5683 	 *
5684 	 * Uses enum qca_ul_mu_config values.
5685 	 */
5686 	QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
5687 
5688 	/* 8-bit unsigned value. Optionally specified along with
5689 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
5690 	 * state. This configuration is applicable only for the current
5691 	 * connection. This configuration not allowed in disconnected state.
5692 	 * This configuration can be sent inside
5693 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
5694 	 * supported channel width update type per-MLO link.
5695 	 *
5696 	 * valid values:
5697 	 * 0 - The maximum allowed bandwidth change is applicable for both Tx
5698 	 *	and Rx paths. The driver shall conduct OMI operation as defined
5699 	 *	in 26.9 (Operating mode indication) or OMN operation as
5700 	 *	defined in 11.40 (Notification of operating mode
5701 	 *	changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
5702 	 *	change in the maximum allowed operating bandwidth.
5703 	 * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
5704 	 *	In this case the driver doesn't need to conduct OMI/OMN
5705 	 *	operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
5706 	 *	expected to be less than the current connection maximum
5707 	 *	negotiated bandwidth.
5708 	 *	For example: Negotiated maximum bandwidth is 160 MHz and the new
5709 	 *	maximum bandwidth configured is 80 MHz, now the driver limits
5710 	 *	the maximum bandwidth to 80 MHz only in the Tx path.
5711 	 */
5712 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
5713 
5714 	/* 8-bit unsigned value to set EPCS (Emergency Preparedness
5715 	 * Communications Service) feature capability
5716 	 * 1 - Enable, 0 - Disable.
5717 	 *
5718 	 * This configuration is used for testing purposes.
5719 	 */
5720 	QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
5721 
5722 	/* 8-bit unsigned value to enable/disable EPCS priority access
5723 	 * 1 - Enable, 0 - Disable.
5724 	 * The EPCS priority access shall be enabled only when EPCS feature
5725 	 * capability is also enabled (see
5726 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
5727 	 *
5728 	 * This configuration is used for testing purposes.
5729 	 */
5730 	QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
5731 
5732 	/* 8-bit unsigned value. Used only for representing MLO link ID of a
5733 	 * link inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
5734 	 */
5735 	QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
5736 
5737 	/* Array of nested links each identified by
5738 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
5739 	 * enum qca_wlan_vendor_attr_config, explicit documentation shall be
5740 	 * added for the attributes in enum qca_wlan_vendor_attr_config to
5741 	 * support per-MLO link configuration through
5742 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
5743 	 *
5744 	 * Userspace can configure a single link or multiple links with this
5745 	 * attribute by nesting the corresponding configuration attributes and
5746 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
5747 	 *
5748 	 * Userspace can fetch the configuration attribute values for a single
5749 	 * link or multiple links with this attribute by nesting the
5750 	 * corresponding configuration attributes and
5751 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
5752 	 *
5753 	 * For STA interface, this attribute is applicable only in connected
5754 	 * state when the current connection is MLO capable. The valid values of
5755 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
5756 	 * connected AP MLD links.
5757 	 *
5758 	 * For AP interface, this configuration applicable only after adding
5759 	 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
5760 	 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
5761 	 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
5762 	 * the AP interface.
5763 	 */
5764 	QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
5765 
5766 	/* 16-bit unsigned value to configure power save inactivity timeout in
5767 	 * milliseconds.
5768 	 *
5769 	 * STA enters into power save mode (PM=1) after TX/RX inactivity of time
5770 	 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
5771 	 *
5772 	 * This attribute shall be configured along with
5773 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
5774 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
5775 	 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
5776 	 */
5777 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
5778 
5779 	/* 16-bit unsigned value to configure speculative wake interval in
5780 	 * milliseconds.
5781 	 *
5782 	 * STA speculatively wakes up to look for buffered data by AP at
5783 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
5784 	 * entering into power save. If configured zero, STA wakes up at
5785 	 * upcoming DTIM beacon.
5786 	 *
5787 	 * This attribute shall be configured along with
5788 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
5789 	 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
5790 	 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
5791 	 */
5792 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
5793 
5794 	/*
5795 	 * 16-bit unsigned value to configure TX max A-MPDU count.
5796 	 *
5797 	 * For STA interface, this attribute is applicable only in connected
5798 	 * state, peer MAC address is not required to be provided.
5799 	 *
5800 	 * For AP interface, this attribute is applicable only in started
5801 	 * state and one of the associated peer STAs must be specified with
5802 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
5803 	 * association, the peer MAC address provided is the link address of
5804 	 * the non-AP MLD.
5805 	 *
5806 	 * This attribute runtime configures the TX maximum aggregation size.
5807 	 * The value must be in range of 1 to BA window size for the specific
5808 	 * peer.
5809 	 */
5810 	QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
5811 
5812 	/*
5813 	 * 8-bit unsigned value to configure TID-to-link mapping negotiation
5814 	 * type.
5815 	 * Uses enum qca_wlan_ttlm_negotiation_support values.
5816 	 *
5817 	 * This value applies to the complete AP/non-AP MLD interface, and the
5818 	 * MLD advertises it within the Basic Multi-Link element in the
5819 	 * association frames. If a new value is configured during an active
5820 	 * connection, it will take effect in the subsequent associations and
5821 	 * is not reset during disconnection.
5822 	 *
5823 	 * This attribute is used for testing purposes.
5824 	 */
5825 	QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104,
5826 
5827 	/* 8-bit unsigned value
5828 	 *
5829 	 * This attribute configures a traffic shaping mode
5830 	 * applied during coex scenarios.
5831 	 * By default all coex traffic shaping modes are enabled,
5832 	 * i.e., shape WLAN traffic based on coex traffic pattern and priority.
5833 	 * To shape traffic, STA may enter in power save mode
5834 	 * and AP may send CTS-to-self frame.
5835 	 *
5836 	 * Uses enum qca_coex_traffic_shaping_mode values.
5837 	 */
5838 	QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105,
5839 
5840 	/* keep last */
5841 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5842 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5843 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5844 };
5845 
5846 /**
5847  * enum qca_ul_mu_config - UL MU configuration
5848  * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
5849  * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
5850  */
5851 enum qca_ul_mu_config {
5852 	QCA_UL_MU_SUSPEND = 0,
5853 	QCA_UL_MU_ENABLE = 1,
5854 };
5855 
5856 /**
5857  * enum qca_dbam_config - Specifies DBAM config mode
5858  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5859  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5860  * internal criteria are met.
5861  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5862  */
5863 enum qca_dbam_config {
5864 	QCA_DBAM_DISABLE = 0,
5865 	QCA_DBAM_ENABLE = 1,
5866 	QCA_DBAM_FORCE_ENABLE = 2,
5867 };
5868 
5869 /**
5870  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5871  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5872  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5873  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5874  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5875  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5876  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5877  */
5878 enum qca_wlan_vendor_attr_wifi_logger_start {
5879 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5880 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5881 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5882 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5883 	/* keep last */
5884 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5885 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5886 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5887 };
5888 
5889 /*
5890  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5891  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5892  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5893  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5894  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5895  */
5896 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5897 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5898 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5899 	/* keep last */
5900 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5901 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5902 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5903 };
5904 
5905 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5906 /**
5907  * enum wlan_offloaded_packets_control - control commands
5908  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5909  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5910  *
5911  */
5912 enum wlan_offloaded_packets_control {
5913 	WLAN_START_OFFLOADED_PACKETS = 1,
5914 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5915 };
5916 
5917 /**
5918  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5919  *
5920  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5921  *      the offloaded data.
5922  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5923  *      data.
5924  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5925  *      indication.
5926  */
5927 enum qca_wlan_vendor_attr_data_offload_ind {
5928 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5929 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5930 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5931 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5932 
5933 	/* keep last */
5934 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5935 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5936 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5937 };
5938 
5939 /**
5940  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5941  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5942  */
5943 enum qca_wlan_vendor_attr_offloaded_packets {
5944 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5945 	/* Takes valid value from the enum
5946 	 * qca_wlan_offloaded_packets_sending_control
5947 	 * Unsigned 32-bit value
5948 	 */
5949 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5950 	/* Unsigned 32-bit value */
5951 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5952 	/* array of u8 len: Max packet size */
5953 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5954 	/* 6-byte MAC address used to represent source MAC address */
5955 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5956 	/* 6-byte MAC address used to represent destination MAC address */
5957 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5958 	/* Unsigned 32-bit value, in milli seconds */
5959 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5960 	/* This optional unsigned 16-bit attribute is used for specifying
5961 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5962 	 */
5963 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5964 
5965 	/* keep last */
5966 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5967 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5968 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5969 };
5970 
5971 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5972 
5973 /**
5974  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5975  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5976  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5977  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5978  */
5979 enum qca_wlan_rssi_monitoring_control {
5980 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5981 	QCA_WLAN_RSSI_MONITORING_START,
5982 	QCA_WLAN_RSSI_MONITORING_STOP,
5983 };
5984 
5985 /**
5986  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5987  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5988  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5989  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5990  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5991  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5992  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5993  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5994  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5995  */
5996 enum qca_wlan_vendor_attr_rssi_monitoring {
5997 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5998 
5999 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
6000 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
6001 
6002 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
6003 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
6004 
6005 	/* attributes to be used/received in callback */
6006 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
6007 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
6008 
6009 	/* keep last */
6010 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
6011 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
6012 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
6013 };
6014 
6015 /**
6016  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
6017  * QCA_NL80211_VENDOR_SUBCMD_NDP.
6018  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
6019  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
6020  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
6021  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
6022  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
6023  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
6024  * address
6025  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
6026  * created
6027  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
6028  * NCS_SK_TYPE/PMK/SCID instead
6029  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
6030  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
6031  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
6032  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
6033  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
6034  * code: accept/reject
6035  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
6036  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
6037  * driver
6038  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
6039  * driver
6040  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
6041  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
6042  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
6043  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
6044  * PMKID
6045  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
6046  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
6047  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
6048  * update:
6049  *     BIT_0: NSS Update
6050  *     BIT_1: Channel list update
6051  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
6052  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
6053  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
6054  *     0:20 MHz,
6055  *     1:40 MHz,
6056  *     2:80 MHz,
6057  *     3:160 MHz
6058  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
6059  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
6060  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
6061  * transport port used by NDP.
6062  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
6063  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
6064  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
6065  * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
6066  * NDP remote peer supports NAN NDPE. 1:support 0:not support
6067  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
6068  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
6069  * A lower-case representation of the Service Name shall be used to
6070  * calculate the Service ID.
6071  * Array of u8: length is 6 bytes
6072  * This attribute is used and optional for ndp indication.
6073  * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
6074  * Suite
6075  * This attribute is used and optional in ndp request, ndp response, ndp
6076  * indication, and ndp confirm.
6077  * This attribute is used to indicate the Capabilities field of Cipher Suite
6078  * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
6079  * Specification v4.0, 9.5.21.2, Table 122.
6080  * Firmware can accept or ignore any of the capability bits.
6081  * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
6082  * required for NDP. NLA_FLAG attribute.
6083  * This attribute can be used in ndp request, ndp response, ndp indication, and
6084  * ndp confirm.
6085  * GTK protection required is indicated in the NDPE attribute of NAN action
6086  * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
6087  * v4.0, 9.5.16.2.
6088  * If the device and peer supports GTKSA and if GTK protection required bit is
6089  * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
6090  * Security Confirm and Data Path Security Install frames of NDP negotiation to
6091  * send and receive protected group addressed data frames from each other.
6092  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
6093  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
6094 */
6095 enum qca_wlan_vendor_attr_ndp_params {
6096 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
6097 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
6098 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
6099 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
6100 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
6101 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
6102 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
6103 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
6104 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
6105 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
6106 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
6107 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
6108 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
6109 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
6110 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
6111 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
6112 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
6113 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
6114 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
6115 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
6116 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
6117 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
6118 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
6119 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
6120 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
6121 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
6122 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
6123 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
6124 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
6125 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
6126 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
6127 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
6128 	QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
6129 	QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
6130 
6131 	/* keep last */
6132 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
6133 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
6134 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
6135 };
6136 
6137 /**
6138  * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
6139  * QCA_NL80211_VENDOR_SUBCMD_NDP.
6140  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
6141  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
6142  * data path interface.
6143  * This command was initially designed to both create and start a NAN
6144  * data path interface. However, changes to Linux 5.12 no longer allow
6145  * interface creation via vendor commands. When the driver advertises
6146  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
6147  * userspace must explicitly first create the interface using
6148  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
6149  * to start the interface.
6150  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
6151  * data path interface.
6152  * This command was initially designed to both stop and delete a NAN
6153  * data path interface. However, changes to Linux 5.12 no longer allow
6154  * interface deletion via vendor commands. When the driver advertises
6155  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
6156  * userspace must explicitly delete the interface using
6157  * NL80211_CMD_DEL_INTERFACE after calling this command.
6158  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
6159  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
6160  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
6161  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
6162  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
6163  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
6164  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
6165  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
6166  * being received
6167  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
6168  * update
6169  */
6170 enum qca_wlan_ndp_sub_cmd {
6171 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
6172 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
6173 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
6174 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
6175 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
6176 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
6177 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
6178 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
6179 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
6180 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
6181 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
6182 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
6183 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
6184 };
6185 
6186 /**
6187  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
6188  * information. These attributes are sent as part of
6189  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
6190  * attributes correspond to a single channel.
6191  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
6192  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
6193  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
6194  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
6195  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
6196  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
6197  * regulatory transmission power
6198  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
6199  * transmission power
6200  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
6201  * transmission power
6202  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
6203  * class id
6204  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
6205  * antenna gain in dbm
6206  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
6207  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
6208  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
6209  * center frequency in MHz.
6210  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
6211  * segment 0 in center freq in MHz. (this is the legacy alias)
6212  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
6213  * center frequency in MHz.
6214  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
6215  * segment 1 in center freq in MHz. (this is the legacy alias)
6216  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
6217  * flag indicating the AP power modes supported by the channel, as given by
6218  * enum qca_wlan_vendor_external_acs_chan_power_level.
6219  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
6220  * attributes for each power mode. It takes attr as defined in enum
6221  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6222  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
6223  * This indicates the overlapping 320 MHz center frequency in MHz, if the
6224  * given primary channel supports more than one 320 MHz channel bonding.
6225  *
6226  */
6227 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
6228 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
6229 
6230 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
6231 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
6232 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
6233 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
6234 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
6235 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
6236 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
6237 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
6238 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
6239 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
6240 	/*
6241 	 * A bitmask (u32) with flags specified in
6242 	 * enum qca_wlan_vendor_channel_prop_flags_2.
6243 	 */
6244 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
6245 
6246 	/*
6247 	 * Segment 0 in MHz (u32).
6248 	 *
6249 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
6250 	 * frequency index for the 20/40/80 MHz operating channel.
6251 	 * For 160 MHz bandwidth, this indicates the channel center
6252 	 * frequency of the primary 80 MHz channel.
6253 	 * For 320 MHz bandwidth, indicates the channel center frequency
6254 	 * of the primary 160 MHz channel.
6255 	 *
6256 	 * To maintain backward compatibility,
6257 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6258 	 * is also maintained.
6259 	 */
6260 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
6261 	/* Legacy alias for the Segment 0 attribute.
6262 	 *
6263 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
6264 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6265 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6266 	 * along with
6267 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
6268 	 *
6269 	 * If both the driver and user-space application supports the 6 GHz
6270 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
6271 	 * is deprecated and
6272 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6273 	 * should be used.
6274 	 *
6275 	 * To maintain backward compatibility,
6276 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
6277 	 * is still used if either of the driver or user space application
6278 	 * doesn't support the 6 GHz band.
6279 	 */
6280 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
6281 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
6282 
6283 	/*
6284 	 * Segment 1 in MHz (u32).
6285 	 *
6286 	 * For 20/40/80 MHz bandwidth, this is set to 0.
6287 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
6288 	 * 160 MHz channel.
6289 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
6290 	 * 320 MHz channel.
6291 	 *
6292 	 * To maintain backward compatibility,
6293 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6294 	 * is also maintained.
6295 	 */
6296 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
6297 	/* Legacy alias for the Segment 1 attribute.
6298 	 *
6299 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
6300 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
6301 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6302 	 * along with
6303 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
6304 	 *
6305 	 * If both the driver and user-space application supports the 6 GHz
6306 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
6307 	 * is deprecated and
6308 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6309 	 * should be considered.
6310 	 *
6311 	 * To maintain backward compatibility,
6312 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
6313 	 * is still used if either of the driver or user space application
6314 	 * doesn't support the 6 GHz band.
6315 	 */
6316 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
6317 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
6318 	/*
6319 	 * 16-bit attribute of bits indicating the AP power modes supported by
6320 	 * the channel (u16).
6321 	 * Note: Currently, only 3 bits are used in the attribute and each bit
6322 	 * corresponds to the power mode mentioned in enum
6323 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
6324 	 * set if the associated mode is supported.
6325 	 */
6326 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
6327 									= 14,
6328 	/* Array of nested attributes for each power mode. It takes attr as
6329 	 * defined in enum
6330 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
6331 	 */
6332 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
6333 	/*
6334 	 * This indicates the overlapping 320 MHz center frequency in MHz
6335 	 * (u32), if the given primary channel supports more than one
6336 	 * 320 MHz channel bonding.
6337 	 *
6338 	 * Example:
6339 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
6340 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
6341 	 * possible segment 2 frequencies for this (320 MHz center
6342 	 * frequencies):
6343 	 *
6344 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
6345 	 *    from frequency 5945 MHz - 6265 MHz
6346 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
6347 	 *    from frequency 6105 MHz - 6425 MHz
6348 	 *
6349 	 * In this case,
6350 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
6351 	 * return 6185 MHz.
6352 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
6353 	 * return 6105 MHz.
6354 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6355 	 * will return 6265 MHz.
6356 	 */
6357 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
6358 									= 16,
6359 
6360 	/* keep last */
6361 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
6362 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
6363 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
6364 };
6365 
6366 /**
6367  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
6368  * values that the vendor external ACS channel power attribute
6369  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
6370  * take.
6371  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
6372  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
6373  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
6374  */
6375 enum qca_wlan_vendor_external_acs_chan_power_level {
6376 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
6377 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
6378 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
6379 };
6380 
6381 /**
6382  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
6383  * attributes for power mode type and power values corresponding to that.
6384  * These attributes are sent as part of
6385  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
6386  */
6387 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
6388 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
6389 	/*
6390 	 * Power mode (u8) takes the values defined in enum
6391 	 * qca_wlan_vendor_external_acs_chan_power_mode
6392 	 */
6393 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
6394 									= 1,
6395 	/*
6396 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
6397 	 * present, it indicates a PSD value.
6398 	 */
6399 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
6400 	/*
6401 	 * Power value (u32) PSD/EIRP as indicated by
6402 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
6403 	 * for power mode corresponding to the
6404 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
6405 	 * Units for PSD - dBm/MHz
6406 	 * Units for EIRP - dBm
6407 	 */
6408 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
6409 									= 3,
6410 	/* keep last */
6411 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
6412 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
6413 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
6414 };
6415 
6416 /**
6417  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
6418  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
6419  * driver.
6420  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
6421  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
6422  * ACS need to be started
6423  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
6424  * driver supports spectral scanning or not
6425  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
6426  * offloaded to firmware.
6427  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
6428  * provides additional channel capability as part of scan operation.
6429  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
6430  * interface status is UP
6431  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
6432  * interface. It takes one of nl80211_iftype values.
6433  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
6434  * of chan width. ACS logic should try to get a channel with specified width
6435  * if not found then look for lower values.
6436  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
6437  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
6438  * a/b/g/n/ac.
6439  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
6440  * among which ACS should choose best frequency.
6441  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
6442  * driver which will have <channel(u8), weight(u8)> format as array of
6443  * nested values.
6444  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
6445  * for each channel. It takes attr as defined in
6446  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
6447  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
6448  * qca_wlan_vendor_attr_external_acs_policy.
6449  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
6450  * Operating Parameter (RROP) availability information (u16). It uses values
6451  * defined in enum qca_wlan_vendor_attr_rropavail_info.
6452  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
6453  * indicate if driver supports 6 GHz AFC trigger for External ACS.
6454  */
6455 enum qca_wlan_vendor_attr_external_acs_event {
6456 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
6457 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
6458 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
6459 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
6460 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
6461 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
6462 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
6463 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
6464 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
6465 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
6466 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
6467 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
6468 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
6469 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
6470 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
6471 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
6472 
6473 	/* keep last */
6474 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
6475 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
6476 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
6477 };
6478 
6479 enum qca_iface_type {
6480 	QCA_IFACE_TYPE_STA,
6481 	QCA_IFACE_TYPE_AP,
6482 	QCA_IFACE_TYPE_P2P_CLIENT,
6483 	QCA_IFACE_TYPE_P2P_GO,
6484 	QCA_IFACE_TYPE_IBSS,
6485 	QCA_IFACE_TYPE_TDLS,
6486 };
6487 
6488 /**
6489  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
6490  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
6491  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
6492  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
6493  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
6494  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
6495  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
6496  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
6497  */
6498 enum qca_wlan_vendor_attr_pcl_config {
6499 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
6500 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
6501 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
6502 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
6503 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
6504 };
6505 
6506 enum qca_set_band {
6507 	QCA_SETBAND_AUTO = 0,
6508 	QCA_SETBAND_5G = BIT(0),
6509 	QCA_SETBAND_2G = BIT(1),
6510 	QCA_SETBAND_6G = BIT(2),
6511 };
6512 
6513 /**
6514  * enum set_reset_packet_filter - set packet filter control commands
6515  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
6516  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
6517  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
6518  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
6519  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
6520  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
6521  */
6522 enum set_reset_packet_filter {
6523 	QCA_WLAN_SET_PACKET_FILTER = 1,
6524 	QCA_WLAN_GET_PACKET_FILTER = 2,
6525 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
6526 	QCA_WLAN_READ_PACKET_FILTER = 4,
6527 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
6528 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
6529 };
6530 
6531 /**
6532  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
6533  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
6534  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
6535  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
6536  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
6537  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
6538  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
6539  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
6540  *	section in packet filter buffer
6541  */
6542 enum qca_wlan_vendor_attr_packet_filter {
6543 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
6544 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
6545 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
6546 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
6547 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
6548 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
6549 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
6550 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
6551 
6552 	/* keep last */
6553 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
6554 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
6555 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
6556 };
6557 
6558 /**
6559  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
6560  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
6561  */
6562 enum qca_wlan_vendor_attr_wake_stats {
6563 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
6564 	/* Unsigned 32-bit value indicating the total count of wake event */
6565 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
6566 	/* Array of individual wake count, each index representing wake reason
6567 	 */
6568 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
6569 	/* Unsigned 32-bit value representing wake count array */
6570 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
6571 	/* Unsigned 32-bit total wake count value of driver/fw */
6572 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
6573 	/* Array of wake stats of driver/fw */
6574 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
6575 	/* Unsigned 32-bit total wake count value of driver/fw */
6576 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
6577 	/* Unsigned 32-bit total wake count value of packets received */
6578 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
6579 	/* Unsigned 32-bit wake count value unicast packets received */
6580 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
6581 	/* Unsigned 32-bit wake count value multicast packets received */
6582 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
6583 	/* Unsigned 32-bit wake count value broadcast packets received */
6584 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
6585 	/* Unsigned 32-bit wake count value of ICMP packets */
6586 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
6587 	/* Unsigned 32-bit wake count value of ICMP6 packets */
6588 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
6589 	/* Unsigned 32-bit value ICMP6 router advertisement */
6590 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
6591 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
6592 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
6593 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
6594 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
6595 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
6596 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
6597 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
6598 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
6599 	/* Unsigned 32-bit wake count value of receive side multicast */
6600 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
6601 	/* Unsigned 32-bit wake count value of a given RSSI breach */
6602 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
6603 	/* Unsigned 32-bit wake count value of low RSSI */
6604 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
6605 	/* Unsigned 32-bit value GSCAN count */
6606 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
6607 	/* Unsigned 32-bit value PNO complete count */
6608 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
6609 	/* Unsigned 32-bit value PNO match count */
6610 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
6611 	/* keep last */
6612 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
6613 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
6614 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
6615 };
6616 
6617 /**
6618  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
6619  * configured by userspace to the driver/firmware. The values will be
6620  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
6621  * The driver/firmware takes necessary actions requested by userspace
6622  * such as throttling wifi tx etc. in order to mitigate high temperature.
6623  *
6624  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
6625  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
6626  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
6627  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
6628  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
6629  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
6630  */
6631 enum qca_wlan_vendor_thermal_level {
6632 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
6633 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
6634 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
6635 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
6636 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
6637 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
6638 };
6639 
6640 /**
6641  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
6642  * cmd value. Used for NL attributes for data used by
6643  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6644  */
6645 enum qca_wlan_vendor_attr_thermal_cmd {
6646 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
6647 	/* The value of command, driver will implement different operations
6648 	 * according to this value. It uses values defined in
6649 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
6650 	 * u32 attribute.
6651 	 */
6652 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
6653 	/* Userspace uses this attribute to configure thermal level to the
6654 	 * driver/firmware, or get thermal level from the driver/firmware.
6655 	 * Used in request or response, u32 attribute,
6656 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
6657 	 */
6658 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
6659 	/* Userspace uses this attribute to configure the time in which the
6660 	 * driver/firmware should complete applying settings it received from
6661 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
6662 	 * command type. Used in request, u32 attribute, value is in
6663 	 * milliseconds. A value of zero indicates to apply the settings
6664 	 * immediately. The driver/firmware can delay applying the configured
6665 	 * thermal settings within the time specified in this attribute if
6666 	 * there is any critical ongoing operation.
6667 	 */
6668 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
6669 	/* Nested attribute, driver/firmware uses this attribute to report
6670 	 * thermal stats of different thermal levels to userspace when requested
6671 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
6672 	 * type. This attribute contains nested array of records of thermal
6673 	 * statistics of multiple levels. The attributes used inside this nested
6674 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
6675 	 */
6676 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
6677 
6678 	/* keep last */
6679 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
6680 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
6681 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
6682 };
6683 
6684 /**
6685  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
6686  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
6687  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
6688  * thermal command types sent to driver.
6689  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
6690  * get thermal shutdown configuration parameters for display. Parameters
6691  * responded from driver are defined in
6692  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
6693  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
6694  * get temperature. Host should respond with a temperature data. It is defined
6695  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
6696  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
6697  * suspend action.
6698  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
6699  * resume action.
6700  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
6701  * the driver/firmware.
6702  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
6703  * thermal level from the driver/firmware. The driver should respond with a
6704  * thermal level defined in enum qca_wlan_vendor_thermal_level.
6705  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
6706  * current thermal stats from the driver/firmware. The driver should respond
6707  * with stats of all thermal levels encapsulated in attribute
6708  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
6709  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
6710  * the current thermal stats all thermal levels maintained in the
6711  * driver/firmware and start counting from zero again.
6712  */
6713 enum qca_wlan_vendor_attr_thermal_cmd_type {
6714 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
6715 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
6716 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
6717 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
6718 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
6719 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
6720 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
6721 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
6722 };
6723 
6724 /**
6725  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
6726  * to get chip temperature by user.
6727  * enum values are used for NL attributes for data used by
6728  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
6729  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6730  */
6731 enum qca_wlan_vendor_attr_thermal_get_temperature {
6732 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
6733 	/* Temperature value (degree Celsius) from driver.
6734 	 * u32 attribute.
6735 	 */
6736 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
6737 
6738 	/* keep last */
6739 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
6740 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
6741 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
6742 };
6743 
6744 /**
6745  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
6746  * report thermal events from driver to user space.
6747  * enum values are used for NL attributes for data used by
6748  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
6749  */
6750 enum qca_wlan_vendor_attr_thermal_event {
6751 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
6752 	/* Temperature value (degree Celsius) from driver.
6753 	 * u32 attribute.
6754 	 */
6755 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
6756 	/* Indication of resume completion from power save mode.
6757 	 * NLA_FLAG attribute.
6758 	 */
6759 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
6760 	/* Thermal level from the driver.
6761 	 * u32 attribute. Possible values are defined in
6762 	 * enum qca_wlan_vendor_thermal_level.
6763 	 */
6764 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
6765 
6766 	/* keep last */
6767 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
6768 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
6769 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
6770 };
6771 
6772 /**
6773  * enum qca_vendor_element_id - QCA Vendor Specific element types
6774  *
6775  * These values are used to identify QCA Vendor Specific elements. The
6776  * payload of the element starts with the three octet OUI (OUI_QCA) and
6777  * is followed by a single octet type which is defined by this enum.
6778  *
6779  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
6780  *      This element can be used to specify preference order for supported
6781  *      channels. The channels in this list are in preference order (the first
6782  *      one has the highest preference) and are described as a pair of
6783  *      (global) Operating Class and Channel Number (each one octet) fields.
6784  *
6785  *      This extends the standard P2P functionality by providing option to have
6786  *      more than one preferred operating channel. When this element is present,
6787  *      it replaces the preference indicated in the Operating Channel attribute.
6788  *      For supporting other implementations, the Operating Channel attribute is
6789  *      expected to be used with the highest preference channel. Similarly, all
6790  *      the channels included in this Preferred channel list element are
6791  *      expected to be included in the Channel List attribute.
6792  *
6793  *      This vendor element may be included in GO Negotiation Request, P2P
6794  *      Invitation Request, and Provision Discovery Request frames.
6795  *
6796  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
6797  *      This element can be used for pre-standard publication testing of HE
6798  *      before P802.11ax draft assigns the element ID. The payload of this
6799  *      vendor specific element is defined by the latest P802.11ax draft.
6800  *      Please note that the draft is still work in progress and this element
6801  *      payload is subject to change.
6802  *
6803  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
6804  *      This element can be used for pre-standard publication testing of HE
6805  *      before P802.11ax draft assigns the element ID. The payload of this
6806  *      vendor specific element is defined by the latest P802.11ax draft.
6807  *      Please note that the draft is still work in progress and this element
6808  *      payload is subject to change.
6809  *
6810  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
6811  *      element).
6812  *      This element can be used for pre-standard publication testing of HE
6813  *      before P802.11ax draft assigns the element ID extension. The payload of
6814  *      this vendor specific element is defined by the latest P802.11ax draft
6815  *      (not including the Element ID Extension field). Please note that the
6816  *      draft is still work in progress and this element payload is subject to
6817  *      change.
6818  *
6819  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
6820  *      This element can be used for pre-standard publication testing of HE
6821  *      before P802.11ax draft assigns the element ID extension. The payload of
6822  *      this vendor specific element is defined by the latest P802.11ax draft
6823  *      (not including the Element ID Extension field). Please note that the
6824  *      draft is still work in progress and this element payload is subject to
6825  *      change.
6826  *
6827  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
6828  *      This element can be used for pre-standard publication testing of HE
6829  *      before P802.11ax draft assigns the element ID extension. The payload of
6830  *      this vendor specific element is defined by the latest P802.11ax draft
6831  *      (not including the Element ID Extension field). Please note that the
6832  *      draft is still work in progress and this element payload is subject to
6833  *      change.
6834  */
6835 enum qca_vendor_element_id {
6836 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6837 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6838 	QCA_VENDOR_ELEM_HE_OPER = 2,
6839 	QCA_VENDOR_ELEM_RAPS = 3,
6840 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6841 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6842 };
6843 
6844 /**
6845  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6846  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6847  * Specify the TSF command. Possible values are defined in
6848  * &enum qca_tsf_cmd.
6849  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6850  * This attribute contains TSF timer value. This attribute is only available
6851  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6852  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6853  * This attribute contains SOC timer value at TSF capture. This attribute is
6854  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6855  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6856  * This attribute is used to provide TSF sync interval and only applicable when
6857  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6858  * driver will use the default value. Time unit is in milliseconds.
6859  */
6860 enum qca_vendor_attr_tsf_cmd {
6861 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6862 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6863 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6864 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6865 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6866 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6867 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6868 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6869 };
6870 
6871 /**
6872  * enum qca_tsf_cmd: TSF driver commands
6873  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6874  * @QCA_TSF_GET: Get TSF capture value
6875  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6876  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6877  * will automatically send TSF report to the host. To query
6878  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6879  * initiated first.
6880  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6881  * will not automatically send TSF report to the host. If
6882  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6883  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6884  * operation needs to be initiated.
6885  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6886  * fetches TSF and host time mapping from the firmware with interval configured
6887  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6888  * interval value is not provided the driver will use the default value. The
6889  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6890  * command.
6891  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6892  */
6893 enum qca_tsf_cmd {
6894 	QCA_TSF_CAPTURE,
6895 	QCA_TSF_GET,
6896 	QCA_TSF_SYNC_GET,
6897 	QCA_TSF_AUTO_REPORT_ENABLE,
6898 	QCA_TSF_AUTO_REPORT_DISABLE,
6899 	QCA_TSF_SYNC_START,
6900 	QCA_TSF_SYNC_STOP,
6901 };
6902 
6903 /**
6904  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6905  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6906  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6907  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6908  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6909  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6910  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6911  */
6912 enum qca_vendor_attr_get_preferred_freq_list {
6913 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6914 	/* A 32-unsigned value; the interface type/mode for which the preferred
6915 	 * frequency list is requested (see enum qca_iface_type for possible
6916 	 * values); used in both south- and north-bound.
6917 	 */
6918 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6919 	/* An array of 32-unsigned values; values are frequency (MHz); used
6920 	 * in north-bound only.
6921 	 */
6922 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6923 	/* An array of nested values as per enum
6924 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6925 	 *  Each element contains frequency (MHz), weight, and flag
6926 	 *  bit mask indicating how the frequency should be used in P2P
6927 	 *  negotiation.
6928 	 */
6929 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6930 	/* keep last */
6931 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6932 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6933 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6934 };
6935 
6936 /**
6937  * enum qca_vendor_attr_probable_oper_channel - channel hint
6938  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6939  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6940  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6941  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6942  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6943  */
6944 enum qca_vendor_attr_probable_oper_channel {
6945 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6946 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6947 	 * come on this channel (see enum qca_iface_type).
6948 	 */
6949 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6950 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6951 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6952 	/* keep last */
6953 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6954 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6955 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6956 };
6957 
6958 /**
6959  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6960  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6961  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6962  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6963  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6964  */
6965 enum qca_wlan_vendor_attr_gw_param_config {
6966 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6967 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6968 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6969 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6970 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6971 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6972 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6973 };
6974 
6975 /**
6976  * enum drv_dbs_capability - DBS capability
6977  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6978  * @DRV_DBS_CAPABILITY_1X1: 1x1
6979  * @DRV_DBS_CAPABILITY_2X2: 2x2
6980  */
6981 enum drv_dbs_capability {
6982 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6983 	DRV_DBS_CAPABILITY_1X1,
6984 	DRV_DBS_CAPABILITY_2X2,
6985 };
6986 
6987 /**
6988  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6989  *
6990  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6991  */
6992 enum qca_vendor_attr_txpower_decr_db {
6993 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6994 	/*
6995 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6996 	 * a virtual interface.
6997 	 */
6998 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6999 	/* keep last */
7000 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
7001 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
7002 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
7003 };
7004 
7005 /**
7006  * enum qca_vendor_attr_ota_test - Enable OTA test
7007  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
7008  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
7009  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
7010  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
7011  */
7012 enum qca_vendor_attr_ota_test {
7013 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
7014 	/* 8-bit unsigned value to indicate if OTA test is enabled */
7015 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
7016 	/* keep last */
7017 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
7018 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
7019 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
7020 };
7021 
7022 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
7023  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
7024  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
7025  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
7026  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
7027  */
7028 enum qca_vendor_attr_txpower_scale {
7029 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
7030 	/* 8-bit unsigned value to indicate the scaling of tx power */
7031 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
7032 	/* keep last */
7033 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
7034 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
7035 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
7036 };
7037 
7038 /**
7039  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
7040  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
7041  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
7042  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
7043  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
7044  */
7045 enum qca_vendor_attr_txpower_scale_decr_db {
7046 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
7047 	/* 8-bit unsigned value to indicate the scaling of tx power */
7048 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
7049 	/* keep last */
7050 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
7051 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
7052 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
7053 };
7054 
7055 /**
7056  * enum dfs_mode - state of DFS mode
7057  * @DFS_MODE_NONE: DFS mode attribute is none
7058  * @DFS_MODE_ENABLE:  DFS mode is enabled
7059  * @DFS_MODE_DISABLE: DFS mode is disabled
7060  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
7061  */
7062 enum dfs_mode {
7063 	DFS_MODE_NONE,
7064 	DFS_MODE_ENABLE,
7065 	DFS_MODE_DISABLE,
7066 	DFS_MODE_DEPRIORITIZE
7067 };
7068 
7069 /**
7070  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
7071  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
7072  *
7073  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
7074  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
7075  *
7076  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
7077  * channel number hint for ACS operation, if valid channel is specified then
7078  * ACS operation gives priority to this channel.
7079  * Note: If both the driver and user space application supports the 6 GHz band,
7080  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
7081  * should be used.
7082  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
7083  * is still used if either of the driver or user space application doesn't
7084  * support the 6 GHz band.
7085  *
7086  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
7087  * Channel center frequency (MHz) hint for ACS operation, if a valid center
7088  * frequency is specified, ACS operation gives priority to this channel.
7089  */
7090 enum qca_wlan_vendor_attr_acs_config {
7091 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
7092 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
7093 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
7094 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
7095 
7096 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
7097 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
7098 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
7099 };
7100 
7101 /**
7102  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
7103  */
7104 enum qca_wlan_vendor_attr_get_hw_capability {
7105 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
7106 	/*
7107 	 * Antenna isolation
7108 	 * An attribute used in the response.
7109 	 * The content of this attribute is encoded in a byte array. Each byte
7110 	 * value is an antenna isolation value. The array length is the number
7111 	 * of antennas.
7112 	 */
7113 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
7114 	/*
7115 	 * Request HW capability
7116 	 * An attribute used in the request.
7117 	 * The content of this attribute is a u32 array for one or more of
7118 	 * hardware capabilities (attribute IDs) that are being requested. Each
7119 	 * u32 value has a value from this
7120 	 * enum qca_wlan_vendor_attr_get_hw_capability
7121 	 * identifying which capabilities are requested.
7122 	 */
7123 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
7124 
7125 	/* keep last */
7126 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
7127 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
7128 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
7129 };
7130 
7131 /**
7132  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
7133  *                        config params for sta roam policy
7134  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
7135  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
7136  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
7137  * If sta should skip unsafe channels or not in scanning
7138  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
7139  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
7140  */
7141 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
7142 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
7143 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
7144 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
7145 
7146 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
7147 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
7148 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
7149 };
7150 
7151 /* Attributes for FTM commands and events */
7152 
7153 /**
7154  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
7155  *
7156  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
7157  *      enum qca_wlan_vendor_attr_loc_capa_flags.
7158  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
7159  *      of measurement sessions that can run concurrently.
7160  *      Default is one session (no session concurrency).
7161  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
7162  *      peers that are supported in running sessions. For example,
7163  *      if the value is 8 and maximum number of sessions is 2, you can
7164  *      have one session with 8 unique peers, or 2 sessions with 4 unique
7165  *      peers each, and so on.
7166  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
7167  *      of bursts per peer, as an exponent (2^value). Default is 0,
7168  *      meaning no multi-burst support.
7169  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
7170  *      of measurement exchanges allowed in a single burst.
7171  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
7172  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
7173  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
7174  */
7175 enum qca_wlan_vendor_attr_loc_capa {
7176 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
7177 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
7178 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
7179 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
7180 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
7181 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
7182 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
7183 	/* keep last */
7184 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
7185 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
7186 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
7187 };
7188 
7189 /**
7190  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
7191  *
7192  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
7193  *      can be configured as an FTM responder (for example, an AP that
7194  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
7195  *      will be supported if set.
7196  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
7197  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
7198  *      will be supported if set.
7199 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
7200  *      supports immediate (ASAP) response.
7201  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
7202  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
7203  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
7204  *      requesting AOA measurements as part of an FTM session.
7205  */
7206 enum qca_wlan_vendor_attr_loc_capa_flags {
7207 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
7208 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
7209 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
7210 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
7211 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
7212 };
7213 
7214 /**
7215  * enum qca_wlan_ani_setting - ANI setting type
7216  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
7217  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
7218  */
7219 enum qca_wlan_ani_setting {
7220 	QCA_WLAN_ANI_SETTING_AUTO = 0,
7221 	QCA_WLAN_ANI_SETTING_FIXED = 1,
7222 };
7223 
7224 /**
7225  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
7226  *
7227  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
7228  * Channel number on which Access Point should restart.
7229  * Note: If both the driver and user space application supports the 6 GHz band,
7230  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
7231  * should be used.
7232  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
7233  * is still used if either of the driver or user space application doesn't
7234  * support the 6 GHz band.
7235  *
7236  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
7237  * Nested attribute to hold list of center frequencies on which AP is
7238  * expected to operate. This is irrespective of ACS configuration.
7239  * This list is a priority based one and is looked for before the AP is
7240  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
7241  * co-exist in the system.
7242  *
7243  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
7244  * Channel center frequency (MHz) on which the access point should restart.
7245  */
7246 enum qca_wlan_vendor_attr_sap_config {
7247 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
7248 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
7249 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
7250 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
7251 
7252 	/* Keep last */
7253 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
7254 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
7255 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
7256 };
7257 
7258 /**
7259  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
7260  * a single peer in a measurement session.
7261  *
7262  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
7263  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
7264  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
7265  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
7266  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
7267  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
7268  *      list of supported attributes.
7269  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
7270  *      secure measurement.
7271  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
7272  *      measurement every <value> bursts. If 0 or not specified,
7273  *      AOA measurements will be disabled for this peer.
7274  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
7275  *      the measurement frames are exchanged. Optional; if not
7276  *      specified, try to locate the peer in the kernel scan
7277  *      results cache and use frequency from there.
7278  */
7279 enum qca_wlan_vendor_attr_ftm_peer_info {
7280 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
7281 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
7282 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
7283 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
7284 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
7285 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
7286 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
7287 	/* keep last */
7288 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
7289 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
7290 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
7291 };
7292 
7293 /**
7294  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
7295  *      per-peer
7296  *
7297  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
7298  *      immediate (ASAP) response from peer.
7299  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
7300  *      LCI report from peer. The LCI report includes the absolute
7301  *      location of the peer in "official" coordinates (similar to GPS).
7302  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
7303  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
7304  *      Location civic report from peer. The LCR includes the location
7305  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
7306  *      11.24.6.7 for more information.
7307  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
7308  *      request a secure measurement.
7309  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
7310  */
7311 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
7312 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
7313 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
7314 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
7315 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
7316 };
7317 
7318 /**
7319  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
7320  *
7321  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
7322  *      to perform in a single burst.
7323  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
7324  *      perform, specified as an exponent (2^value).
7325  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
7326  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
7327  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
7328  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
7329  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
7330  */
7331 enum qca_wlan_vendor_attr_ftm_meas_param {
7332 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
7333 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
7334 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
7335 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
7336 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
7337 	/* keep last */
7338 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
7339 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
7340 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
7341 };
7342 
7343 /**
7344  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
7345  *
7346  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
7347  *       peer.
7348  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
7349  *      request for this peer.
7350  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
7351  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
7352  *      to measurement results for this peer.
7353  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
7354  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
7355  *      request failed and peer requested not to send an additional request
7356  *      for this number of seconds.
7357  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
7358  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
7359  *      9.4.2.22.10.
7360  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
7361  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
7362  *      9.4.2.22.13.
7363  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
7364  *      overridden some measurement request parameters. See
7365  *      enum qca_wlan_vendor_attr_ftm_meas_param.
7366  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
7367  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
7368  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
7369  *      results. Each entry is a nested attribute defined
7370  *      by enum qca_wlan_vendor_attr_ftm_meas.
7371  */
7372 enum qca_wlan_vendor_attr_ftm_peer_result {
7373 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
7374 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
7375 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
7376 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
7377 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
7378 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
7379 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
7380 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
7381 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
7382 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
7383 	/* keep last */
7384 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
7385 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
7386 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
7387 };
7388 
7389 /**
7390  * enum qca_wlan_vendor_attr_ftm_peer_result_status
7391  *
7392  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
7393  *      will be provided. Peer may have overridden some measurement parameters,
7394  *      in which case overridden parameters will be report by
7395  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
7396  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
7397  *      of performing the measurement request. No more results will be sent
7398  *      for this peer in this session.
7399  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
7400  *      failed, and requested not to send an additional request for number
7401  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
7402  *      attribute.
7403  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
7404  *      failed. Request was not sent over the air.
7405  */
7406 enum qca_wlan_vendor_attr_ftm_peer_result_status {
7407 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
7408 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
7409 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
7410 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
7411 };
7412 
7413 /**
7414  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
7415  *  for measurement result, per-peer
7416  *
7417  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
7418  *      measurement completed for this peer. No more results will be reported
7419  *      for this peer in this session.
7420  */
7421 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
7422 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
7423 };
7424 
7425 /**
7426  * enum qca_vendor_attr_loc_session_status: Session completion status code
7427  *
7428  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
7429  *      successfully.
7430  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
7431  *      by request.
7432  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
7433  *      was invalid and was not started.
7434  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
7435  *      and did not complete normally (for example out of resources).
7436  */
7437 enum qca_vendor_attr_loc_session_status {
7438 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
7439 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
7440 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
7441 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
7442 };
7443 
7444 /**
7445  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
7446  *
7447  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
7448  *      recorded by responder, in picoseconds.
7449  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7450  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
7451  *      initiator, in picoseconds.
7452  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7453  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
7454  *      initiator, in picoseconds.
7455  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7456  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
7457  *      responder, in picoseconds.
7458  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
7459  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
7460  *      during this measurement exchange. Optional and will be provided if
7461  *      the hardware can measure it.
7462  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
7463  *      responder. Not always provided.
7464  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7465  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
7466  *      responder. Not always provided.
7467  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7468  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
7469  *      initiator. Not always provided.
7470  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7471  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
7472  *      initiator. Not always provided.
7473  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
7474  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
7475  */
7476 enum qca_wlan_vendor_attr_ftm_meas {
7477 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
7478 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
7479 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
7480 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
7481 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
7482 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
7483 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
7484 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
7485 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
7486 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
7487 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
7488 	/* keep last */
7489 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
7490 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
7491 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
7492 };
7493 
7494 /**
7495  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
7496  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
7497  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
7498  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
7499  *     of the social channels.
7500  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
7501  *     A 32-bit unsigned value; the P2P listen offload period (ms).
7502  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
7503  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
7504  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
7505  *     A 32-bit unsigned value; number of interval times the Firmware needs
7506  *     to run the offloaded P2P listen operation before it stops.
7507  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
7508  *     An array of unsigned 8-bit characters; vendor information elements.
7509  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
7510  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
7511  *     A 32-bit unsigned value; a control flag to indicate whether listen
7512  *     results need to be flushed to wpa_supplicant.
7513  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
7514  *     A 8-bit unsigned value; reason code for P2P listen offload stop
7515  *     event.
7516  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
7517  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
7518  */
7519 enum qca_wlan_vendor_attr_p2p_listen_offload {
7520 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
7521 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
7522 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
7523 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
7524 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
7525 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
7526 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
7527 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
7528 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
7529 	/* keep last */
7530 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
7531 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
7532 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
7533 };
7534 
7535 /**
7536  * enum qca_wlan_vendor_drv_info - WLAN driver info
7537  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
7538  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
7539  * between Firmware & Host.
7540  */
7541 enum qca_wlan_vendor_drv_info {
7542 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7543 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7544 
7545 	/* keep last */
7546 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7547 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7548 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7549 };
7550 
7551 /**
7552  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
7553  *
7554  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
7555  *      CIR (channel impulse response) path for each antenna.
7556  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
7557  *      of the strongest CIR path for each antenna.
7558  */
7559 enum qca_wlan_vendor_attr_aoa_type {
7560 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
7561 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
7562 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
7563 };
7564 
7565 /**
7566  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
7567  * validate encryption engine
7568  *
7569  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
7570  *    This will be included if the request is for decryption; if not included,
7571  *    the request is treated as a request for encryption by default.
7572  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
7573  *    indicating the key cipher suite. Takes same values as
7574  *    NL80211_ATTR_KEY_CIPHER.
7575  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
7576  *    Key Id to be used for encryption
7577  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
7578  *    Key (TK) to be used for encryption/decryption
7579  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
7580  *    Packet number to be specified for encryption/decryption
7581  *    6 bytes for TKIP/CCMP/GCMP.
7582  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
7583  *    representing the 802.11 packet (header + payload + FCS) that
7584  *    needs to be encrypted/decrypted.
7585  *    Encrypted/decrypted response from the driver will also be sent
7586  *    to userspace with the same attribute.
7587  */
7588 enum qca_wlan_vendor_attr_encryption_test {
7589 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
7590 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
7591 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
7592 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
7593 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
7594 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
7595 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
7596 
7597 	/* keep last */
7598 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
7599 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
7600 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
7601 };
7602 
7603 /**
7604  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
7605  * sector for DMG RF sector operations.
7606  *
7607  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
7608  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
7609  */
7610 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
7611 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
7612 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
7613 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
7614 };
7615 
7616 /**
7617  * enum qca_wlan_vendor_attr_fw_state - State of firmware
7618  *
7619  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
7620  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
7621  */
7622 enum qca_wlan_vendor_attr_fw_state {
7623 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
7624 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
7625 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
7626 };
7627 
7628 /**
7629  * BRP antenna limit mode
7630  *
7631  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
7632  *      antenna limit, BRP will be performed as usual.
7633  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
7634  *      antennas limit. the hardware may use less antennas than the
7635  *      maximum limit.
7636  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
7637  *      use exactly the specified number of antennas for BRP.
7638  */
7639 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
7640 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
7641 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
7642 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
7643 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
7644 };
7645 
7646 /**
7647  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
7648  * DMG RF sector configuration for a single RF module.
7649  * The values are defined in a compact way which closely matches
7650  * the way it is stored in HW registers.
7651  * The configuration provides values for 32 antennas and 8 distribution
7652  * amplifiers, and together describes the characteristics of the RF
7653  * sector - such as a beam in some direction with some gain.
7654  *
7655  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
7656  *      of RF module for this configuration.
7657  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
7658  *      amplifier gain index. Unsigned 32 bit number containing
7659  *      bits for all 32 antennas.
7660  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
7661  *      amplifier gain index. Unsigned 32 bit number containing
7662  *      bits for all 32 antennas.
7663  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
7664  *      amplifier gain index. Unsigned 32 bit number containing
7665  *      bits for all 32 antennas.
7666  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
7667  *      for first 16 antennas, 2 bits per antenna.
7668  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
7669  *      for last 16 antennas, 2 bits per antenna.
7670  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
7671  *      DTYPE values (3 bits) for each distribution amplifier, followed
7672  *      by X16 switch bits for each distribution amplifier. There are
7673  *      total of 8 distribution amplifiers.
7674  */
7675 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
7676 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
7677 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
7678 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
7679 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
7680 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
7681 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
7682 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
7683 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
7684 
7685 	/* keep last */
7686 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
7687 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
7688 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
7689 };
7690 
7691 /**
7692  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
7693  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
7694  *
7695  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
7696  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
7697  *	represents the different TDLS trigger modes.
7698  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
7699  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
7700  *	of packets shall meet the criteria for implicit TDLS setup.
7701  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
7702  *	packets within a duration.
7703  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
7704  *	a TDLS setup.
7705  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
7706  *	a TDLS Discovery to the Peer.
7707  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
7708  *	discovery attempts to know the TDLS capability of the peer. A peer is
7709  *	marked as TDLS not capable if there is no response for all the attempts.
7710  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
7711  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
7712  *	number of TX / RX frames meet the criteria for TDLS teardown.
7713  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
7714  *	(u32) of Tx/Rx packets within a duration
7715  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
7716  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
7717  *	corresponding to the RSSI of the peer below which a TDLS
7718  *	setup is triggered.
7719  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
7720  *	corresponding to the RSSI of the peer above which
7721  *	a TDLS teardown is triggered.
7722  */
7723 enum qca_wlan_vendor_attr_tdls_configuration {
7724 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
7725 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
7726 
7727 	/* Attributes configuring the TDLS Implicit Trigger */
7728 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
7729 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
7730 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
7731 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
7732 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
7733 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
7734 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
7735 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
7736 
7737 	/* keep last */
7738 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
7739 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
7740 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
7741 };
7742 
7743 /**
7744  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
7745  *	the driver.
7746  *
7747  * The following are the different values for
7748  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
7749  *
7750  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
7751  *	initiate/teardown the TDLS connection to a respective peer comes
7752  *	 from the user space. wpa_supplicant provides the commands
7753  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
7754  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
7755  *	setup/teardown to the eligible peer once the configured criteria
7756  *	(such as TX/RX threshold, RSSI) is met. The attributes
7757  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
7758  *	the different configuration criteria for the TDLS trigger from the
7759  *	host driver.
7760  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
7761  *	the TDLS setup / teardown through the implicit mode, only to the
7762  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
7763  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
7764  *	External mode works on top of the implicit mode, thus the host Driver
7765  *	is expected to be configured in TDLS Implicit mode too to operate in
7766  *	External mode. Configuring External mode alone without Implicit
7767  *	mode is invalid.
7768  *
7769  * All the above implementations work as expected only when the host driver
7770  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
7771  * representing that the TDLS message exchange is not internal to the host
7772  * driver, but depends on wpa_supplicant to do the message exchange.
7773  */
7774 enum qca_wlan_vendor_tdls_trigger_mode {
7775 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
7776 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
7777 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
7778 };
7779 
7780 /**
7781  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
7782  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
7783  *	that is hard-coded in the Board Data File (BDF).
7784  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
7785  *	that is hard-coded in the Board Data File (BDF).
7786  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
7787  *	that is hard-coded in the Board Data File (BDF).
7788  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
7789  *	that is hard-coded in the Board Data File (BDF).
7790  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
7791  *	that is hard-coded in the Board Data File (BDF).
7792  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
7793  *	source of SAR power limits, thereby disabling the SAR power
7794  *	limit feature.
7795  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
7796  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7797  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
7798  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7799  *
7800  * This enumerates the valid set of values that may be supplied for
7801  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
7802  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
7803  * the response to an instance of the
7804  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7805  */
7806 enum qca_vendor_attr_sar_limits_selections {
7807 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
7808 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
7809 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
7810 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
7811 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
7812 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
7813 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7814 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
7815 };
7816 
7817 /**
7818  * enum qca_vendor_attr_sar_limits_spec_modulations -
7819  *	SAR limits specification modulation
7820  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
7821  *	CCK modulation
7822  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
7823  *	OFDM modulation
7824  *
7825  * This enumerates the valid set of values that may be supplied for
7826  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
7827  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
7828  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
7829  * command or in the response to an instance of the
7830  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7831  */
7832 enum qca_vendor_attr_sar_limits_spec_modulations {
7833 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7834 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7835 };
7836 
7837 /**
7838  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7839  *
7840  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7841  *	select which SAR power limit table should be used.  Valid
7842  *	values are enumerated in enum
7843  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7844  *	power limit selection is unchanged if this attribute is not
7845  *	present.
7846  *
7847  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7848  *	which specifies the number of SAR power limit specifications
7849  *	which will follow.
7850  *
7851  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7852  *	limit specifications. The number of specifications is
7853  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7854  *	specification contains a set of
7855  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7856  *	specification is uniquely identified by the attributes
7857  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7858  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7859  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7860  *	contains as a payload the attribute
7861  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7862  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7863  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7864  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7865  *	needed based upon the value of
7866  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7867  *
7868  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7869  *	indicate for which band this specification applies. Valid
7870  *	values are enumerated in enum %nl80211_band (although not all
7871  *	bands may be supported by a given device). If the attribute is
7872  *	not supplied then the specification will be applied to all
7873  *	supported bands.
7874  *
7875  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7876  *	to indicate for which antenna chain this specification
7877  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7878  *	attribute is not supplied then the specification will be
7879  *	applied to all chains.
7880  *
7881  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7882  *	value to indicate for which modulation scheme this
7883  *	specification applies. Valid values are enumerated in enum
7884  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7885  *	is not supplied then the specification will be applied to all
7886  *	modulation schemes.
7887  *
7888  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7889  *	value to specify the actual power limit value in units of 0.5
7890  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7891  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7892  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7893  *
7894  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7895  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7896  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7897  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7898  *
7899  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7900  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7901  */
7902 enum qca_vendor_attr_sar_limits {
7903 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7904 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7905 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7906 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7907 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7908 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7909 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7910 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7911 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7912 
7913 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7914 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7915 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7916 };
7917 
7918 /**
7919  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7920  *    offload which is an extension for LL_STATS.
7921  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7922  *    If MAC counters do not exceed the threshold, FW will report monitored
7923  *    link layer counters periodically as this setting. The first report is
7924  *    always triggered by this timer.
7925  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7926  *    For each MAC layer counter, FW holds two copies. One is the current value.
7927  *    The other is the last report. Once a current counter's increment is larger
7928  *    than the threshold, FW will indicate that counter to host even if the
7929  *    monitoring timer does not expire.
7930  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7931  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7932  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7933  *    failure code.
7934  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7935  *    1: TX packet discarded
7936  *    2: No ACK
7937  *    3: Postpone
7938  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7939  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7940  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7941  *    Threshold for all monitored parameters. If per counter dedicated threshold
7942  *    is not enabled, this threshold will take effect.
7943  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7944  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7945  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7946  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7947  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7948  *    Bit0: TX counter unit in MSDU
7949  *    Bit1: TX counter unit in MPDU
7950  *    Bit2: TX counter unit in PPDU
7951  *    Bit3: TX counter unit in byte
7952  *    Bit4: Dropped MSDUs
7953  *    Bit5: Dropped Bytes
7954  *    Bit6: MPDU retry counter
7955  *    Bit7: MPDU failure counter
7956  *    Bit8: PPDU failure counter
7957  *    Bit9: MPDU aggregation counter
7958  *    Bit10: MCS counter for ACKed MPDUs
7959  *    Bit11: MCS counter for Failed MPDUs
7960  *    Bit12: TX Delay counter
7961  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7962  *    Bit0: MAC RX counter unit in MPDU
7963  *    Bit1: MAC RX counter unit in byte
7964  *    Bit2: PHY RX counter unit in PPDU
7965  *    Bit3: PHY RX counter unit in byte
7966  *    Bit4: Disorder counter
7967  *    Bit5: Retry counter
7968  *    Bit6: Duplication counter
7969  *    Bit7: Discard counter
7970  *    Bit8: MPDU aggregation size counter
7971  *    Bit9: MCS counter
7972  *    Bit10: Peer STA power state change (wake to sleep) counter
7973  *    Bit11: Peer STA power save counter, total time in PS mode
7974  *    Bit12: Probe request counter
7975  *    Bit13: Other management frames counter
7976  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7977  *    Bit0: Idle time
7978  *    Bit1: TX time
7979  *    Bit2: time RX in current bss
7980  *    Bit3: Out of current bss time
7981  *    Bit4: Wireless medium busy time
7982  *    Bit5: RX in bad condition time
7983  *    Bit6: TX in bad condition time
7984  *    Bit7: time wlan card not available
7985  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7986  *    Bit0: Per channel SNR counter
7987  *    Bit1: Per channel noise floor counter
7988  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7989  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7990  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7991  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7992  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7993  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7994  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7995  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7996  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7997  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7998  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7999  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
8000  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
8001  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
8002  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
8003  *    aggregation stats buffer length
8004  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
8005  *    buffer for ACKed MPDUs.
8006  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
8007  *    buffer for failed MPDUs.
8008  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
8009  *    length of delay stats array.
8010  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
8011  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
8012  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
8013  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
8014  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
8015  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
8016  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
8017  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
8018  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
8019  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
8020  *    flagged as retransmissions
8021  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
8022  *    flagged as duplicated
8023  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
8024  *    packets discarded
8025  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
8026  *    stats buffer.
8027  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
8028  *    stats buffer.
8029  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
8030  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
8031  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
8032  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
8033  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
8034  *    requests received
8035  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
8036  *    frames received
8037  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
8038  *    there is no TX, nor RX, nor interference.
8039  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
8040  *    transmitting packets.
8041  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
8042  *    for receiving.
8043  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
8044  *    interference detected.
8045  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
8046  *    receiving packets with errors.
8047  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
8048  *    TX no-ACK.
8049  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
8050  *    the chip is unable to work in normal conditions.
8051  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
8052  *    receiving packets in current BSS.
8053  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
8054  *    receiving packets not in current BSS.
8055  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
8056  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
8057  *    This is a container for per antenna signal stats.
8058  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
8059  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
8060  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
8061  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
8062  */
8063 enum qca_wlan_vendor_attr_ll_stats_ext {
8064 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
8065 
8066 	/* Attributes for configurations */
8067 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
8068 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
8069 
8070 	/* Peer STA power state change */
8071 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
8072 
8073 	/* TX failure event */
8074 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
8075 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
8076 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
8077 
8078 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
8079 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
8080 
8081 	/* MAC counters */
8082 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
8083 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
8084 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
8085 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
8086 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
8087 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
8088 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
8089 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
8090 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
8091 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
8092 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
8093 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
8094 
8095 	/* Sub-attributes for PEER_AC_TX */
8096 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
8097 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
8098 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
8099 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
8100 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
8101 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
8102 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
8103 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
8104 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
8105 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
8106 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
8107 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
8108 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
8109 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
8110 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
8111 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
8112 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
8113 
8114 	/* Sub-attributes for PEER_AC_RX */
8115 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
8116 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
8117 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
8118 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
8119 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
8120 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
8121 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
8122 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
8123 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
8124 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
8125 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
8126 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
8127 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
8128 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
8129 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
8130 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
8131 
8132 	/* Sub-attributes for CCA_BSS */
8133 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
8134 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
8135 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
8136 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
8137 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
8138 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
8139 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
8140 
8141 	/* sub-attribute for BSS_RX_TIME */
8142 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
8143 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
8144 
8145 	/* Sub-attributes for PEER_SIGNAL */
8146 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
8147 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
8148 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
8149 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
8150 
8151 	/* Sub-attributes for IFACE_BSS */
8152 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
8153 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
8154 
8155 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
8156 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
8157 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
8158 };
8159 
8160 /**
8161  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
8162  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
8163  * in priority order as decided after ACS operation in userspace.
8164  *
8165  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
8166  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
8167  *
8168  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
8169  * Array of nested values for each channel with following attributes:
8170  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
8171  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
8172  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
8173  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
8174  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
8175  * Note: If both the driver and user-space application supports the 6 GHz band,
8176  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
8177  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
8178  * To maintain backward compatibility,
8179  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
8180  * is still used if either of the driver or user space application doesn't
8181  * support the 6 GHz band.
8182  *
8183  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
8184  * Primary 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_PRIMARY is deprecated and use
8187  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
8188  * To maintain backward compatibility,
8189  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
8190  * is still used if either of the driver or user space application doesn't
8191  * support the 6 GHz band.
8192  *
8193  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
8194  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
8195  * Note: If both the driver and user-space application supports the 6 GHz band,
8196  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
8197  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
8198  * To maintain backward compatibility,
8199  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
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_CENTER_SEG0: Required (u8).
8204  * VHT seg0 channel number
8205  * Note: If both the driver and user-space application supports the 6 GHz band,
8206  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
8207  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
8208  * To maintain backward compatibility,
8209  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
8210  * is still used if either of the driver or user space application
8211  * doesn't support the 6 GHz band.
8212  *
8213  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
8214  * VHT seg1 channel number
8215  * Note: If both the driver and user-space application supports the 6 GHz band,
8216  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
8217  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
8218  * To maintain backward compatibility,
8219  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
8220  * is still used if either of the driver or user space application
8221  * doesn't support the 6 GHz band.
8222  *
8223  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
8224  * Takes one of enum nl80211_chan_width values.
8225  *
8226  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
8227  * Array of nested values for each channel with following attributes:
8228  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
8229  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
8230  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
8231  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
8232  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
8233  * Note: If user-space application has no support of the 6 GHz band, this
8234  * attribute is optional.
8235  *
8236  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
8237  * Primary channel frequency in MHz
8238  * Note: If user-space application has no support of the 6 GHz band, this
8239  * attribute is optional.
8240  *
8241  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
8242  * Secondary channel frequency in MHz used for HT 40 MHz channels.
8243  * Note: If user-space application has no support of the 6 GHz band, this
8244  * attribute is optional.
8245  *
8246  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
8247  * VHT seg0 channel frequency in MHz
8248  * Note: If user-space application has no support of the 6GHz band, this
8249  * attribute is optional.
8250  *
8251  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
8252  * VHT seg1 channel frequency in MHz
8253  * Note: If user-space application has no support of the 6 GHz band, this
8254  * attribute is optional.
8255  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
8256  * Puncture Bitmap for selected primary channel. Optional if no support
8257  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
8258  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
8259  * element.
8260  */
8261 enum qca_wlan_vendor_attr_external_acs_channels {
8262 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
8263 
8264 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
8265 	 */
8266 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
8267 
8268 	/* Array of nested values for each channel with following attributes:
8269 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
8270 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
8271 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
8272 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
8273 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
8274 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
8275 	 */
8276 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
8277 	/* This (u8) will hold values of one of enum nl80211_bands */
8278 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
8279 	/* Primary channel (u8) */
8280 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
8281 	/* Secondary channel (u8) used for HT 40 MHz channels */
8282 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
8283 	/* VHT seg0 channel (u8) */
8284 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
8285 	/* VHT seg1 channel (u8) */
8286 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
8287 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
8288 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
8289 
8290 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
8291 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
8292 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
8293 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
8294 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
8295 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
8296 
8297 	/* keep last */
8298 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
8299 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
8300 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
8301 };
8302 
8303 /**
8304  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
8305  * the ACS has to be triggered. These values are used by
8306  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
8307  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
8308  */
8309 enum qca_wlan_vendor_acs_select_reason {
8310 	/* Represents the reason that the ACS triggered during the AP start */
8311 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
8312 	/* Represents the reason that DFS found with the current channel */
8313 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
8314 	/* Represents the reason that LTE co-exist in the current band. */
8315 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
8316 	/* Represents the reason that generic, uncategorized interference has
8317 	 * been found in the current channel.
8318 	 */
8319 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
8320 	/* Represents the reason that excessive 802.11 interference has been
8321 	 * found in the current channel.
8322 	 */
8323 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
8324 	/* Represents the reason that generic Continuous Wave (CW) interference
8325 	 * has been found in the current channel.
8326 	 */
8327 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
8328 	/* Represents the reason that Microwave Oven (MWO) interference has been
8329 	 * found in the current channel.
8330 	 */
8331 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
8332 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
8333 	 * (FHSS) interference has been found in the current channel. This may
8334 	 * include 802.11 waveforms.
8335 	 */
8336 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
8337 	/* Represents the reason that non-802.11 generic Frequency-Hopping
8338 	 * Spread Spectrum (FHSS) interference has been found in the current
8339 	 * channel.
8340 	 */
8341 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
8342 	/* Represents the reason that generic Wideband (WB) interference has
8343 	 * been found in the current channel. This may include 802.11 waveforms.
8344 	 */
8345 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
8346 	/* Represents the reason that non-802.11 generic Wideband (WB)
8347 	 * interference has been found in the current channel.
8348 	 */
8349 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
8350 	/* Represents the reason that Jammer interference has been found in the
8351 	 * current channel.
8352 	 */
8353 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
8354 	/* Represents the reason that ACS triggered by AFC */
8355 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
8356 };
8357 
8358 /**
8359  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
8360  *
8361  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
8362  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
8363  * to get the available value that this item can use.
8364  *
8365  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
8366  * value to specify the gpio number.
8367  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8368  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
8369  *
8370  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
8371  * value to specify the gpio output level, please refer to enum qca_gpio_value
8372  * to get the available value that this item can use.
8373  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8374  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
8375  *
8376  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
8377  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
8378  * to get the available value that this item can use.
8379  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8380  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
8381  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
8382  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
8383  * attribute is present.
8384  *
8385  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
8386  * value to specify the gpio interrupt mode, please refer to enum
8387  * qca_gpio_interrupt_mode to get the available value that this item can use.
8388  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8389  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
8390  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
8391  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
8392  * attribute is present.
8393  *
8394  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
8395  * value to specify the gpio direction, please refer to enum qca_gpio_direction
8396  * to get the available value that this item can use.
8397  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8398  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
8399  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
8400  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
8401  * attribute is present.
8402  *
8403  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
8404  * Value to specify the mux config. Meaning of a given value is dependent
8405  * on the target chipset and gpio pin. Must be of the range 0-15.
8406  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8407  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
8408  *
8409  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
8410  * Value to specify the drive, Refer to enum qca_gpio_drive.
8411  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8412  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
8413  *
8414  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
8415  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
8416  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
8417  * other parameters for the given GPIO will be obtained from internal
8418  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
8419  * specified to indicate the GPIO pin being configured.
8420  */
8421 enum qca_wlan_gpio_attr {
8422 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
8423 	/* Unsigned 32-bit attribute for GPIO command */
8424 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
8425 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
8426 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
8427 	/* Unsigned 32-bit attribute for GPIO value to configure */
8428 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
8429 	/* Unsigned 32-bit attribute for GPIO pull type */
8430 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
8431 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
8432 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
8433 	/* Unsigned 32-bit attribute for GPIO direction to configure */
8434 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
8435 	/* Unsigned 32-bit attribute for GPIO mux config */
8436 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
8437 	/* Unsigned 32-bit attribute for GPIO drive */
8438 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
8439 	/* Flag attribute for using internal gpio configuration */
8440 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
8441 
8442 	/* keep last */
8443 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
8444 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
8445 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
8446 };
8447 
8448 /**
8449  * enum gpio_cmd_type - GPIO configuration command type
8450  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
8451  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
8452  */
8453 enum qca_gpio_cmd_type {
8454 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
8455 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
8456 };
8457 
8458 /**
8459  * enum qca_gpio_pull_type - GPIO pull type
8460  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
8461  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
8462  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
8463  */
8464 enum qca_gpio_pull_type {
8465 	QCA_WLAN_GPIO_PULL_NONE = 0,
8466 	QCA_WLAN_GPIO_PULL_UP = 1,
8467 	QCA_WLAN_GPIO_PULL_DOWN = 2,
8468 	QCA_WLAN_GPIO_PULL_MAX,
8469 };
8470 
8471 /**
8472  * enum qca_gpio_direction - GPIO direction
8473  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
8474  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
8475  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
8476  */
8477 enum qca_gpio_direction {
8478 	QCA_WLAN_GPIO_INPUT = 0,
8479 	QCA_WLAN_GPIO_OUTPUT = 1,
8480 	QCA_WLAN_GPIO_DIR_MAX,
8481 };
8482 
8483 /**
8484  * enum qca_gpio_value - GPIO Value
8485  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
8486  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
8487  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
8488  */
8489 enum qca_gpio_value {
8490 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
8491 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
8492 	QCA_WLAN_GPIO_LEVEL_MAX,
8493 };
8494 
8495 /**
8496  * enum gpio_interrupt_mode - GPIO interrupt mode
8497  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
8498  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
8499  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
8500  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
8501  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
8502  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
8503  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
8504  */
8505 enum qca_gpio_interrupt_mode {
8506 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
8507 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
8508 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
8509 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
8510 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
8511 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
8512 	QCA_WLAN_GPIO_INTMODE_MAX,
8513 };
8514 
8515 /**
8516  * enum gpio_drive - GPIO drive
8517  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
8518  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
8519  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
8520  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
8521  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
8522  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
8523  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
8524  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
8525  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
8526  */
8527 enum qca_gpio_drive {
8528 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
8529 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
8530 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
8531 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
8532 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
8533 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
8534 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
8535 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
8536 	QCA_WLAN_GPIO_DRIVE_MAX,
8537 };
8538 
8539 /**
8540  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
8541  * MSDUQ depth threshold per peer per tid in the target
8542  *
8543  * Associated Vendor Command:
8544  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
8545  */
8546 enum qca_wlan_set_qdepth_thresh_attr {
8547 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
8548 	/* 6-byte MAC address */
8549 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
8550 	/* Unsigned 32-bit attribute for holding the TID */
8551 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
8552 	/* Unsigned 32-bit attribute for holding the update mask
8553 	 * bit 0 - Update high priority msdu qdepth threshold
8554 	 * bit 1 - Update low priority msdu qdepth threshold
8555 	 * bit 2 - Update UDP msdu qdepth threshold
8556 	 * bit 3 - Update Non UDP msdu qdepth threshold
8557 	 * rest of bits are reserved
8558 	 */
8559 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
8560 	/* Unsigned 32-bit attribute for holding the threshold value */
8561 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
8562 
8563 	/* keep last */
8564 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
8565 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
8566 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
8567 };
8568 
8569 /**
8570  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
8571  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
8572  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
8573  * external ACS policies to select the channels w.r.t. the PCL weights.
8574  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
8575  * their PCL weights.)
8576  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
8577  * select a channel with non-zero PCL weight.
8578  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
8579  * channel with non-zero PCL weight.
8580  *
8581  */
8582 enum qca_wlan_vendor_attr_external_acs_policy {
8583 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
8584 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
8585 };
8586 
8587 /**
8588  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
8589  */
8590 enum qca_wlan_vendor_attr_spectral_scan {
8591 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
8592 	/*
8593 	 * Number of times the chip enters spectral scan mode before
8594 	 * deactivating spectral scans. When set to 0, chip will enter spectral
8595 	 * scan mode continuously. u32 attribute.
8596 	 */
8597 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
8598 	/*
8599 	 * Spectral scan period. Period increment resolution is 256*Tclk,
8600 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
8601 	 */
8602 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
8603 	/* Spectral scan priority. u32 attribute. */
8604 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
8605 	/* Number of FFT data points to compute. u32 attribute. */
8606 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
8607 	/*
8608 	 * Enable targeted gain change before starting the spectral scan FFT.
8609 	 * u32 attribute.
8610 	 */
8611 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
8612 	/* Restart a queued spectral scan. u32 attribute. */
8613 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
8614 	/*
8615 	 * Noise floor reference number for the calculation of bin power.
8616 	 * u32 attribute.
8617 	 */
8618 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
8619 	/*
8620 	 * Disallow spectral scan triggers after TX/RX packets by setting
8621 	 * this delay value to roughly SIFS time period or greater.
8622 	 * u32 attribute.
8623 	 */
8624 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
8625 	/*
8626 	 * Number of strong bins (inclusive) per sub-channel, below
8627 	 * which a signal is declared a narrow band tone. u32 attribute.
8628 	 */
8629 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
8630 	/*
8631 	 * Specify the threshold over which a bin is declared strong (for
8632 	 * scan bandwidth analysis). u32 attribute.
8633 	 */
8634 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
8635 	/* Spectral scan report mode. u32 attribute. */
8636 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
8637 	/*
8638 	 * RSSI report mode, if the ADC RSSI is below
8639 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
8640 	 * then FFTs will not trigger, but timestamps and summaries get
8641 	 * reported. u32 attribute.
8642 	 */
8643 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
8644 	/*
8645 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
8646 	 * to ensure spectral scan reporting with normal error code.
8647 	 * u32 attribute.
8648 	 */
8649 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
8650 	/*
8651 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
8652 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
8653 	 * u32 attribute.
8654 	 */
8655 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
8656 	/*
8657 	 * Format of FFT report to software for spectral scan triggered FFTs.
8658 	 * 0: No FFT report (only spectral scan summary report)
8659 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
8660 	 * report
8661 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
8662 	 * bins (in-band) per FFT + spectral scan summary report
8663 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
8664 	 * bins (all) per FFT + spectral scan summary report
8665 	 * u32 attribute.
8666 	 */
8667 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
8668 	/*
8669 	 * Number of LSBs to shift out in order to scale the FFT bins.
8670 	 * u32 attribute.
8671 	 */
8672 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
8673 	/*
8674 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
8675 	 * in dBm power. u32 attribute.
8676 	 */
8677 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
8678 	/*
8679 	 * Per chain enable mask to select input ADC for search FFT.
8680 	 * u32 attribute.
8681 	 */
8682 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
8683 	/*
8684 	 * An unsigned 64-bit integer provided by host driver to identify the
8685 	 * spectral scan request. This attribute is included in the scan
8686 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
8687 	 * and used as an attribute in
8688 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
8689 	 * specific scan to be stopped.
8690 	 */
8691 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
8692 	/* Skip interval for FFT reports. u32 attribute */
8693 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
8694 	/* Set to report only one set of FFT results.
8695 	 * u32 attribute.
8696 	 */
8697 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
8698 	/* Debug level for spectral module in driver.
8699 	 * 0 : Verbosity level 0
8700 	 * 1 : Verbosity level 1
8701 	 * 2 : Verbosity level 2
8702 	 * 3 : Matched filterID display
8703 	 * 4 : One time dump of FFT report
8704 	 * u32 attribute.
8705 	 */
8706 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8707 	/* Type of spectral scan request. u32 attribute.
8708 	 * It uses values defined in enum
8709 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
8710 	 */
8711 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
8712 	/* This specifies the frequency span over which spectral
8713 	 * scan would be carried out. Its value depends on the
8714 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8715 	 * the relation is as follows.
8716 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8717 	 *    Not applicable. Spectral scan would happen in the
8718 	 *    operating span.
8719 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8720 	 *    Center frequency (in MHz) of the span of interest or
8721 	 *    for convenience, center frequency (in MHz) of any channel
8722 	 *    in the span of interest. For 80+80 MHz agile spectral scan
8723 	 *    request it represents center frequency (in MHz) of the primary
8724 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
8725 	 *    channel in the primary 80 MHz span. If agile spectral scan is
8726 	 *    initiated without setting a valid frequency it returns the
8727 	 *    error code
8728 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8729 	 * u32 attribute.
8730 	 */
8731 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8732 	/* Spectral scan mode. u32 attribute.
8733 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8734 	 * If this attribute is not present, it is assumed to be
8735 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8736 	 */
8737 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8738 	/* Spectral scan error code. u32 attribute.
8739 	 * It uses values defined in enum
8740 	 * qca_wlan_vendor_spectral_scan_error_code.
8741 	 * This attribute is included only in failure scenarios.
8742 	 */
8743 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8744 	/* 8-bit unsigned value to enable/disable debug of the
8745 	 * Spectral DMA ring.
8746 	 * 1-enable, 0-disable
8747 	 */
8748 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8749 	/* 8-bit unsigned value to enable/disable debug of the
8750 	 * Spectral DMA buffers.
8751 	 * 1-enable, 0-disable
8752 	 */
8753 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
8754 	/* This specifies the frequency span over which spectral scan would be
8755 	 * carried out. Its value depends on the value of
8756 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8757 	 * follows.
8758 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8759 	 *    Not applicable. Spectral scan would happen in the operating span.
8760 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8761 	 *    This attribute is applicable only for agile spectral scan
8762 	 *    requests in 80+80 MHz mode. It represents center frequency (in
8763 	 *    MHz) of the secondary 80 MHz span or for convenience, center
8764 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
8765 	 * u32 attribute.
8766 	 */
8767 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
8768 	/* This attribute specifies the bandwidth to be used for Spectral scan
8769 	 * operation. This is an u8 attribute and uses the values in enum
8770 	 * nl80211_chan_width.  This is an optional attribute.
8771 	 * If this attribute is not populated, the driver should configure the
8772 	 * Spectral scan bandwidth to the maximum value supported by the target
8773 	 * for the current operating bandwidth.
8774 	 */
8775 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
8776 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
8777 	 * recapture. Recapture can only be enabled for Scan period greater
8778 	 * than 52us.
8779 	 * If this attribute is enabled, re-triggers will be enabled in uCode
8780 	 * when AGC gain changes.
8781 	 */
8782 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
8783 
8784 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8785 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8786 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8787 };
8788 
8789 /**
8790  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8791  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8792  */
8793 enum qca_wlan_vendor_attr_spectral_diag_stats {
8794 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8795 	/* Number of spectral TLV signature mismatches.
8796 	 * u64 attribute.
8797 	 */
8798 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8799 	/* Number of spectral phyerror events with insufficient length when
8800 	 * parsing for secondary 80 search FFT report. u64 attribute.
8801 	 */
8802 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8803 	/* Number of spectral phyerror events without secondary 80
8804 	 * search FFT report. u64 attribute.
8805 	 */
8806 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8807 	/* Number of spectral phyerror events with vht operation segment 1 id
8808 	 * mismatches in search fft report. u64 attribute.
8809 	 */
8810 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8811 	/* Number of spectral phyerror events with vht operation segment 2 id
8812 	 * mismatches in search fft report. u64 attribute.
8813 	 */
8814 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
8815 
8816 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8817 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8818 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8819 };
8820 
8821 /**
8822  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8823  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8824  */
8825 enum qca_wlan_vendor_attr_spectral_cap {
8826 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8827 	/* Flag attribute to indicate phydiag capability */
8828 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8829 	/* Flag attribute to indicate radar detection capability */
8830 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8831 	/* Flag attribute to indicate spectral capability */
8832 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8833 	/* Flag attribute to indicate advanced spectral capability */
8834 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8835 	/* Spectral hardware generation. u32 attribute.
8836 	 * It uses values defined in enum
8837 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8838 	 */
8839 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8840 	/* Spectral bin scaling formula ID. u16 attribute.
8841 	 * It uses values defined in enum
8842 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8843 	 */
8844 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8845 	/* Spectral bin scaling param - low level offset.
8846 	 * s16 attribute.
8847 	 */
8848 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8849 	/* Spectral bin scaling param - high level offset.
8850 	 * s16 attribute.
8851 	 */
8852 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8853 	/* Spectral bin scaling param - RSSI threshold.
8854 	 * s16 attribute.
8855 	 */
8856 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8857 	/* Spectral bin scaling param - default AGC max gain.
8858 	 * u8 attribute.
8859 	 */
8860 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8861 	/* Flag attribute to indicate agile spectral scan capability
8862 	 * for 20/40/80 MHz modes.
8863 	 */
8864 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8865 	/* Flag attribute to indicate agile spectral scan capability
8866 	 * for 160 MHz mode.
8867 	 */
8868 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8869 	/* Flag attribute to indicate agile spectral scan capability
8870 	 * for 80+80 MHz mode.
8871 	 */
8872 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8873 	/* Number of spectral detectors used for scan in 20 MHz.
8874 	 * u32 attribute.
8875 	 */
8876 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8877 	/* Number of spectral detectors used for scan in 40 MHz.
8878 	 * u32 attribute.
8879 	 */
8880 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8881 	/* Number of spectral detectors used for scan in 80 MHz.
8882 	 * u32 attribute.
8883 	 */
8884 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8885 	/* Number of spectral detectors used for scan in 160 MHz.
8886 	 * u32 attribute.
8887 	 */
8888 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8889 	/* Number of spectral detectors used for scan in 80+80 MHz.
8890 	 * u32 attribute.
8891 	 */
8892 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8893 	/* Flag attribute to indicate agile spectral scan capability
8894 	 * for 320 MHz mode.
8895 	 */
8896 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8897 	/* Number of spectral detectors used for scan in 320 MHz.
8898 	 * u32 attribute.
8899 	 */
8900 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8901 
8902 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8903 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8904 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8905 };
8906 
8907 /**
8908  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8909  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8910  */
8911 enum qca_wlan_vendor_attr_spectral_scan_status {
8912 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8913 	/* Flag attribute to indicate whether spectral scan is enabled */
8914 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8915 	/* Flag attribute to indicate whether spectral scan is in progress*/
8916 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8917 	/* Spectral scan mode. u32 attribute.
8918 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8919 	 * If this attribute is not present, normal mode
8920 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8921 	 * requested.
8922 	 */
8923 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8924 
8925 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8926 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8927 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8928 };
8929 
8930 /**
8931  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8932  * wlan latency module.
8933  *
8934  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8935  * power saving which would causing data exchange out of service, this
8936  * would be a big impact on latency. For latency sensitive applications over
8937  * Wi-Fi are intolerant to such operations and thus would configure them
8938  * to meet their respective needs. It is well understood by such applications
8939  * that altering the default behavior would degrade the Wi-Fi functionality
8940  * w.r.t the above pointed WLAN operations.
8941  *
8942  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8943  *      Default WLAN operation level which throughput orientated.
8944  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8945  *      Use XR level to benefit XR (extended reality) application to achieve
8946  *      latency and power by via constraint scan/roaming/adaptive PS.
8947  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8948  *      Use low latency level to benefit application like concurrent
8949  *      downloading or video streaming via constraint scan/adaptive PS.
8950  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8951  *      Use ultra low latency level to benefit for gaming/voice
8952  *      application via constraint scan/roaming/adaptive PS.
8953  */
8954 enum qca_wlan_vendor_attr_config_latency_level {
8955 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8956 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8957 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8958 	/* legacy name */
8959 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8960 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8961 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8962 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8963 
8964 	/* keep last */
8965 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8966 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8967 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8968 };
8969 
8970 /**
8971  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8972  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8973  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8974  * spectral scan request types.
8975  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8976  * set the spectral parameters and start scan.
8977  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8978  * only set the spectral parameters.
8979  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8980  * only start the spectral scan.
8981  */
8982 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8983 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8984 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8985 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8986 };
8987 
8988 /**
8989  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8990  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8991  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8992  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8993  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8994  * spectral scan modes.
8995  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8996  * spectral scan in the current operating span.
8997  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8998  * spectral scan in the configured agile span.
8999  */
9000 enum qca_wlan_vendor_spectral_scan_mode {
9001 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
9002 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
9003 };
9004 
9005 /**
9006  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
9007  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
9008  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
9009  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
9010  * of a parameter is not supported.
9011  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
9012  * mode is not supported.
9013  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
9014  * has invalid value.
9015  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
9016  * is not initialized.
9017  */
9018 enum qca_wlan_vendor_spectral_scan_error_code {
9019 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
9020 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
9021 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
9022 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
9023 };
9024 
9025 /**
9026  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
9027  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
9028  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
9029  * spectral hardware generation.
9030  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
9031  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
9032  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
9033  */
9034 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
9035 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
9036 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
9037 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
9038 };
9039 
9040 /**
9041  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
9042  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
9043  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
9044  * Spectral bin scaling formula ID.
9045  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
9046  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
9047  * and RSSI threshold based formula.
9048  */
9049 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
9050 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
9051 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
9052 };
9053 
9054 /**
9055  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
9056  * RF Operating Parameter (RROP) information is available, and if so, at which
9057  * point in the application-driver interaction sequence it can be retrieved by
9058  * the application from the driver. This point may vary by architecture and
9059  * other factors. This is a u16 value.
9060  */
9061 enum qca_wlan_vendor_attr_rropavail_info {
9062 	/* RROP information is unavailable. */
9063 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
9064 	/* RROP information is available and the application can retrieve the
9065 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
9066 	 * event from the driver.
9067 	 */
9068 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
9069 	/* RROP information is available only after a vendor specific scan
9070 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
9071 	 * successfully completed. The application can retrieve the information
9072 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
9073 	 * the driver.
9074 	 */
9075 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
9076 };
9077 
9078 /**
9079  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
9080  * Representative RF Operating Parameter (RROP) information. It is sent for the
9081  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
9082  * intended for use by external Auto Channel Selection applications. It provides
9083  * guidance values for some RF parameters that are used by the system during
9084  * operation. These values could vary by channel, band, radio, and so on.
9085  */
9086 enum qca_wlan_vendor_attr_rrop_info {
9087 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
9088 
9089 	/* Representative Tx Power List (RTPL) which has an array of nested
9090 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
9091 	 */
9092 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
9093 
9094 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
9095 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
9096 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
9097 };
9098 
9099 /**
9100  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
9101  * entry instances in the Representative Tx Power List (RTPL). It provides
9102  * simplified power values intended for helping external Auto channel Selection
9103  * applications compare potential Tx power performance between channels, other
9104  * operating conditions remaining identical. These values are not necessarily
9105  * the actual Tx power values that will be used by the system. They are also not
9106  * necessarily the max or average values that will be used. Instead, they are
9107  * relative, summarized keys for algorithmic use computed by the driver or
9108  * underlying firmware considering a number of vendor specific factors.
9109  */
9110 enum qca_wlan_vendor_attr_rtplinst {
9111 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
9112 
9113 	/* Primary channel number (u8).
9114 	 * Note: If both the driver and user space application support the
9115 	 * 6 GHz band, this attribute is deprecated and
9116 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
9117 	 * maintain backward compatibility,
9118 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
9119 	 * driver or user space application or both do not support the 6 GHz
9120 	 * band.
9121 	 */
9122 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
9123 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
9124 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
9125 	/* Representative Tx power in dBm (s32) with emphasis on range. */
9126 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
9127 	/* Primary channel center frequency (u32) in MHz */
9128 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
9129 
9130 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
9131 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
9132 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
9133 };
9134 
9135 /**
9136  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
9137  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
9138  *
9139  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
9140  *  array of nested values as per attributes in
9141  *  enum qca_wlan_vendor_attr_mac_mode_info.
9142  */
9143 enum qca_wlan_vendor_attr_mac {
9144 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
9145 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
9146 
9147 	/* keep last */
9148 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
9149 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
9150 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
9151 };
9152 
9153 /**
9154  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
9155  * WiFi netdev interface on a respective MAC. Used by the attribute
9156  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
9157  *
9158  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
9159  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
9160  *  the connected Wi-Fi interface(u32).
9161  */
9162 enum qca_wlan_vendor_attr_mac_iface_info {
9163 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
9164 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
9165 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
9166 
9167 	/* keep last */
9168 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
9169 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
9170 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
9171 };
9172 
9173 /**
9174  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
9175  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
9176  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
9177  *
9178  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
9179  *  MAC (u32)
9180  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
9181  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
9182  *  in enum nl80211_band.
9183  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
9184  * interfaces associated with this MAC. Represented by enum
9185  * qca_wlan_vendor_attr_mac_iface_info.
9186  */
9187 enum qca_wlan_vendor_attr_mac_info {
9188 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
9189 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
9190 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
9191 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
9192 
9193 	/* keep last */
9194 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
9195 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
9196 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
9197 
9198 };
9199 
9200 /**
9201  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
9202  * to get thermal status from driver/firmware.
9203  * enum values are used for NL attributes encapsulated inside
9204  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
9205  *
9206  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
9207  * of a thermal level in Celsius. u32 size.
9208  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
9209  * of a thermal level in Celsius. u32 size.
9210  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
9211  * thermal level in milliseconds. u32 size.
9212  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
9213  * of times the temperature crossed into the temperature range defined by the
9214  * thermal level from both higher and lower directions. u32 size.
9215  */
9216 enum qca_wlan_vendor_attr_thermal_stats {
9217 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
9218 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
9219 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
9220 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
9221 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
9222 
9223 	/* keep last */
9224 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
9225 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
9226 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
9227 };
9228 
9229 /**
9230  * enum he_fragmentation_val - HE fragmentation support values
9231  * Indicates level of dynamic fragmentation that is supported by
9232  * a STA as a recipient.
9233  * HE fragmentation values are defined as per 11ax spec and are used in
9234  * HE capability IE to advertise the support. These values are validated
9235  * in the driver to check the device capability and advertised in the HE
9236  * capability element.
9237  *
9238  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
9239  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
9240  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
9241  *	within an A-MPDU that is not an S-MPDU.
9242  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
9243  *	contained within an MPDU or S-MPDU and support for up to one dynamic
9244  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
9245  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
9246  *	MPDU or S-MPDU.
9247  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
9248  *	contained within an MPDU or S-MPDU and support for multiple dynamic
9249  *	fragments for each MSDU and for each A-MSDU if supported by the
9250  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
9251  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
9252  */
9253 enum he_fragmentation_val {
9254 	HE_FRAG_DISABLE,
9255 	HE_FRAG_LEVEL1,
9256 	HE_FRAG_LEVEL2,
9257 	HE_FRAG_LEVEL3,
9258 };
9259 
9260 /**
9261  * enum he_mcs_config - HE MCS support configuration
9262  *
9263  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
9264  * These values are used in driver to configure the HE MCS map to advertise
9265  * Tx/Rx MCS map in HE capability and these values are applied for all the
9266  * streams supported by the device. To configure MCS for different bandwidths,
9267  * vendor command needs to be sent using this attribute with appropriate value.
9268  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
9269  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
9270  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
9271  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
9272  *
9273  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
9274  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
9275  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
9276  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
9277  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
9278  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
9279  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
9280  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
9281  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
9282  */
9283 enum he_mcs_config {
9284 	HE_80_MCS0_7 = 0,
9285 	HE_80_MCS0_9 = 1,
9286 	HE_80_MCS0_11 = 2,
9287 	HE_160_MCS0_7 = 4,
9288 	HE_160_MCS0_9 = 5,
9289 	HE_160_MCS0_11 = 6,
9290 	HE_80p80_MCS0_7 = 8,
9291 	HE_80p80_MCS0_9 = 9,
9292 	HE_80p80_MCS0_11 = 10,
9293 };
9294 
9295 /**
9296  * enum qca_wlan_ba_session_config - BA session configuration
9297  *
9298  * Indicates the configuration values for BA session configuration attribute.
9299  *
9300  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
9301  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
9302  */
9303 enum qca_wlan_ba_session_config {
9304 	QCA_WLAN_ADD_BA = 1,
9305 	QCA_WLAN_DELETE_BA = 2,
9306 };
9307 
9308 /**
9309  * enum qca_wlan_ac_type - access category type
9310  *
9311  * Indicates the access category type value.
9312  *
9313  * @QCA_WLAN_AC_BE: BE access category
9314  * @QCA_WLAN_AC_BK: BK access category
9315  * @QCA_WLAN_AC_VI: VI access category
9316  * @QCA_WLAN_AC_VO: VO access category
9317  * @QCA_WLAN_AC_ALL: All ACs
9318  */
9319 enum qca_wlan_ac_type {
9320 	QCA_WLAN_AC_BE = 0,
9321 	QCA_WLAN_AC_BK = 1,
9322 	QCA_WLAN_AC_VI = 2,
9323 	QCA_WLAN_AC_VO = 3,
9324 	QCA_WLAN_AC_ALL = 4,
9325 };
9326 
9327 /**
9328  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
9329  *
9330  * Indicates the HE LTF configuration value.
9331  *
9332  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
9333  * the mandatory HE-LTF based on the GI setting
9334  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
9335  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
9336  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
9337  */
9338 enum qca_wlan_he_ltf_cfg {
9339 	QCA_WLAN_HE_LTF_AUTO = 0,
9340 	QCA_WLAN_HE_LTF_1X = 1,
9341 	QCA_WLAN_HE_LTF_2X = 2,
9342 	QCA_WLAN_HE_LTF_4X = 3,
9343 };
9344 
9345 /**
9346  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
9347  *
9348  * Indicates the HE trigger frame MAC padding duration value.
9349  *
9350  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
9351  * process the trigger frame.
9352  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
9353  * trigger frame.
9354  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
9355  * trigger frame.
9356  */
9357 enum qca_wlan_he_mac_padding_dur {
9358 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
9359 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
9360 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
9361 };
9362 
9363 /**
9364  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
9365  *
9366  * Indicates the HE Operating mode control channel width setting value.
9367  *
9368  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
9369  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
9370  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
9371  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
9372  */
9373 enum qca_wlan_he_om_ctrl_ch_bw {
9374 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
9375 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
9376 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
9377 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
9378 };
9379 
9380 /**
9381  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
9382  *
9383  * Indicates the frame types to use for keep alive data.
9384  *
9385  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
9386  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
9387  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
9388  */
9389 enum qca_wlan_keep_alive_data_type {
9390 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
9391 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
9392 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
9393 };
9394 
9395 /**
9396  * enum eht_mcs_config - EHT MCS support configuration
9397  *
9398  * Configures the EHT Tx/Rx MCS map in EHT Capability element.
9399  * These values are used in the driver to configure the EHT MCS map to advertise
9400  * Tx/Rx MCS map in EHT capability and these values are applied for all the
9401  * streams supported by the device.
9402  * @EHT_MCS0_7: EHT MCS 0 to 7 support
9403  * @EHT_MCS0_9: EHT MCS 0 to 9 support
9404  * @EHT_MCS0_11: EHT MCS 0 to 11 support
9405  * @EHT_MCS0_13: EHT MCS 0 to 13 support
9406  */
9407 enum eht_mcs_config {
9408 	EHT_MCS0_7 = 0,
9409 	EHT_MCS0_9 = 1,
9410 	EHT_MCS0_11 = 2,
9411 	EHT_MCS0_13 = 3,
9412 };
9413 
9414 /**
9415  * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
9416  * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
9417  * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
9418  * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
9419  * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
9420  * multi-link multi radio mode.
9421  * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
9422  * multi-link multi radio mode.
9423  */
9424 enum qca_wlan_eht_mlo_mode {
9425 	QCA_WLAN_EHT_MODE_INVALID = 0,
9426 	QCA_WLAN_EHT_MLSR = 1,
9427 	QCA_WLAN_EHT_EMLSR = 2,
9428 	QCA_WLAN_EHT_NON_STR_MLMR = 3,
9429 	QCA_WLAN_EHT_STR_MLMR = 4,
9430 };
9431 
9432 /**
9433  * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
9434  * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
9435  * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
9436  */
9437 enum qca_wlan_emlsr_mode {
9438 	QCA_WLAN_EMLSR_MODE_ENTER = 0,
9439 	QCA_WLAN_EMLSR_MODE_EXIT = 1,
9440 };
9441 
9442 /**
9443  * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation
9444  * support
9445  * @QCA_WLAN_TTLM_DISABLE: TTLM disabled
9446  * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set,
9447  * both DL and UL
9448  * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or
9449  * different link set
9450  */
9451 enum qca_wlan_ttlm_negotiation_support {
9452 	QCA_WLAN_TTLM_DISABLE = 0,
9453 	QCA_WLAN_TTLM_SAME_LINK_SET = 1,
9454 	QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2,
9455 };
9456 
9457 /**
9458  * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode
9459  * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled
9460  * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled
9461  */
9462 enum qca_coex_traffic_shaping_mode {
9463 	QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0,
9464 	QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1,
9465 };
9466 
9467 /**
9468  * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
9469  * EHT operating mode control transmit request. These attributes are
9470  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
9471  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
9472  *
9473  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
9474  * indicates the maximum number of spatial streams, NSS, that the STA
9475  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
9476  * and is set to NSS - 1.
9477  *
9478  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
9479  * indicates the operating channel width supported by the STA for both
9480  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
9481  *
9482  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
9483  * indicates the all trigger based UL MU operations by the STA.
9484  * 0 - UL MU operations are enabled by the STA.
9485  * 1 - All triggered UL MU transmissions are suspended by the STA.
9486  *
9487  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
9488  * indicates the maximum number of space-time streams, NSTS, that
9489  * the STA supports in transmission and is set to NSTS - 1.
9490  *
9491  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
9492  * combined with the UL MU Disable subfield and the recipient's setting
9493  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
9494  * capabilities to determine which HE TB PPDUs are possible by the
9495  * STA to transmit.
9496  * 0 - UL MU data operations are enabled by the STA.
9497  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
9498  * bit is not set, else UL MU Tx is suspended.
9499  *
9500  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9501  * Control subfield combined with the Rx NSS subfield in the OM Control subfield
9502  * indicates NSS - 1, where NSS is the maximum number of spatial streams that
9503  * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
9504  *
9505  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
9506  * 320 MHz operating channel width supported by the EHT STA for both reception
9507  * and transmission.
9508  *
9509  * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
9510  * Control subfield combined with the Tx NSTS subfield in OM Control subfield
9511  * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
9512  * that the STA supports in transmission for PPDU bandwidths less than or equal
9513  * to 80 MHz.
9514  */
9515 enum qca_wlan_vendor_attr_omi_tx {
9516 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
9517 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
9518 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
9519 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
9520 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
9521 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
9522 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
9523 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
9524 	QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
9525 
9526 	/* keep last */
9527 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
9528 	QCA_WLAN_VENDOR_ATTR_OMI_MAX =
9529 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
9530 };
9531 
9532 /* deprecated legacy names */
9533 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
9534 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
9535 #define qca_wlan_vendor_attr_he_omi_tx \
9536 	qca_wlan_vendor_attr_omi_tx
9537 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
9538 	QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
9539 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
9540 	QCA_WLAN_VENDOR_ATTR_OMI_MAX
9541 
9542 /**
9543  * enum qca_wlan_vendor_phy_mode - Different PHY modes
9544  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
9545  *
9546  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
9547  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
9548  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
9549  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
9550  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
9551  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
9552  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
9553  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
9554  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
9555  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
9556  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
9557  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
9558  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
9559  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
9560  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
9561  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
9562  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
9563  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
9564  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
9565  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
9566  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
9567  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
9568  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
9569  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
9570  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
9571  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
9572  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
9573  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
9574  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
9575  */
9576 enum qca_wlan_vendor_phy_mode {
9577 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
9578 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
9579 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
9580 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
9581 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
9582 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
9583 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
9584 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
9585 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
9586 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
9587 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9588 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9589 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9590 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9591 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9592 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9593 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9594 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9595 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9596 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9597 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9598 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9599 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9600 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9601 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9602 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9603 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9604 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9605 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9606 };
9607 
9608 /* Attributes for data used by
9609  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9610  */
9611 enum qca_wlan_vendor_attr_wifi_test_config {
9612 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9613 	/* 8-bit unsigned value to configure the driver to enable/disable
9614 	 * WMM feature. This attribute is used to configure testbed device.
9615 	 * 1-enable, 0-disable
9616 	 */
9617 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9618 
9619 	/* 8-bit unsigned value to configure the driver to accept/reject
9620 	 * the addba request from peer. This attribute is used to configure
9621 	 * the testbed device.
9622 	 * 1-accept addba, 0-reject addba
9623 	 */
9624 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9625 
9626 	/* 8-bit unsigned value to configure the driver to send or not to
9627 	 * send the addba request to peer.
9628 	 * This attribute is used to configure the testbed device.
9629 	 * 1-send addba, 0-do not send addba
9630 	 */
9631 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9632 
9633 	/* 8-bit unsigned value to indicate the HE fragmentation support.
9634 	 * Uses enum he_fragmentation_val values.
9635 	 * This attribute is used to configure the testbed device to
9636 	 * allow the advertised hardware capabilities to be downgraded
9637 	 * for testing purposes.
9638 	 */
9639 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9640 
9641 	/* 8-bit unsigned value to indicate the HE MCS support.
9642 	 * Uses enum he_mcs_config values.
9643 	 * This attribute is used to configure the testbed device to
9644 	 * allow the advertised hardware capabilities to be downgraded
9645 	 * for testing purposes.
9646 	 */
9647 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
9648 
9649 	/* 8-bit unsigned value to configure the driver to allow or not to
9650 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
9651 	 * This attribute is used to configure the testbed device.
9652 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
9653 	 */
9654 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
9655 
9656 	/* 8-bit unsigned value to configure the driver to add a
9657 	 * new BA session or delete the existing BA session for
9658 	 * given TID. ADDBA command uses the buffer size and tid
9659 	 * configuration if user specifies the values else default
9660 	 * value for buffer size is used for all tids if the tid
9661 	 * also not specified. For DEL_BA command TID value is
9662 	 * required to process the command.
9663 	 * Uses enum qca_wlan_ba_session_config values.
9664 	 * This attribute is used to configure the testbed device.
9665 	 */
9666 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9667 
9668 	/* 16-bit unsigned value to configure the buffer size in addba
9669 	 * request and response frames.
9670 	 * This attribute is used to configure the testbed device.
9671 	 * The range of the value is 0 to 256.
9672 	 */
9673 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9674 
9675 	/* 8-bit unsigned value to configure the buffer size in addba
9676 	 * request and response frames.
9677 	 * This attribute is used to configure the testbed device.
9678 	 */
9679 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9680 
9681 	/* 8-bit unsigned value to configure the no ack policy.
9682 	 * To configure no ack policy, access category value
9683 	 * is required to process the command.
9684 	 * This attribute is used to configure the testbed device.
9685 	 * 1 - enable no ack, 0 - disable no ack
9686 	 */
9687 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9688 
9689 	/* 8-bit unsigned value to configure the AC for no ack policy
9690 	 * This attribute is used to configure the testbed device.
9691 	 * uses the enum qca_wlan_ac_type values
9692 	 */
9693 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9694 
9695 	/* 8-bit unsigned value to configure the HE LTF
9696 	 * This attribute is used to configure the testbed device.
9697 	 * Uses the enum qca_wlan_he_ltf_cfg values.
9698 	 */
9699 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9700 
9701 	/* 8-bit unsigned value to configure the tx beamformee.
9702 	 * This attribute is used to configure the testbed device.
9703 	 * 1 - enable, 0 - disable.
9704 	 */
9705 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9706 
9707 	/* 8-bit unsigned value to configure the tx beamformee number of
9708 	 * space-time streams.
9709 	 * This attribute is used to configure the testbed device.
9710 	 * The range of the value is 0 to 8
9711 	 */
9712 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9713 
9714 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
9715 	 * This attribute is used to configure the testbed device.
9716 	 * Uses the enum qca_wlan_ac_type values.
9717 	 */
9718 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9719 
9720 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9721 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
9722 	 * is required to process the command.
9723 	 * This attribute is used to configure the testbed device.
9724 	 */
9725 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9726 
9727 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
9728 	 * given AC.
9729 	 * To configure MU EDCA ECW min value, MU EDCA access category value
9730 	 * is required to process the command.
9731 	 * This attribute is used to configure the testbed device.
9732 	 */
9733 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9734 
9735 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
9736 	 * given AC.
9737 	 * To configure MU EDCA ECW max value, MU EDCA access category value
9738 	 * is required to process the command.
9739 	 * This attribute is used to configure the testbed device.
9740 	 */
9741 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9742 
9743 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
9744 	 * To configure MU EDCA timer value, MU EDCA access category value
9745 	 * is required to process the command.
9746 	 * This attribute is used to configure the testbed device.
9747 	 */
9748 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9749 
9750 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
9751 	 * duration.
9752 	 * This attribute is used to configure the testbed device.
9753 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
9754 	 */
9755 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9756 
9757 	/* 8-bit unsigned value to override the MU EDCA params to defaults
9758 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
9759 	 * the default values else use the MU EDCA params from AP beacon.
9760 	 * This attribute is used to configure the testbed device.
9761 	 * 1 - enable override, 0 - disable.
9762 	 */
9763 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9764 
9765 	/* 8-bit unsigned value to configure the support for receiving
9766 	 * an MPDU that contains an operating mode control subfield.
9767 	 * This attribute is used to configure the testbed device.
9768 	 * 1-enable, 0-disable.
9769 	 */
9770 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9771 
9772 	/* Nested attribute values required to setup the TWT session.
9773 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9774 	 * information to set up the session. It contains broadcast flags,
9775 	 * set_up flags, trigger value, flow type, flow ID, wake interval
9776 	 * exponent, protection, target wake time, wake duration, wake interval
9777 	 * mantissa. These nested attributes are used to setup a host triggered
9778 	 * TWT session.
9779 	 */
9780 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9781 
9782 	/* This nested attribute is used to terminate the current TWT session.
9783 	 * It does not currently carry any attributes.
9784 	 */
9785 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9786 
9787 	/* This nested attribute is used to suspend the current TWT session.
9788 	 * It does not currently carry any attributes.
9789 	 */
9790 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9791 
9792 	/* Nested attribute values to indicate the request for resume.
9793 	 * This attribute is used to resume the TWT session.
9794 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9795 	 * parameters required to resume the TWT session.
9796 	 */
9797 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9798 
9799 	/* 8-bit unsigned value to set the HE operating mode control
9800 	 * (OM CTRL) Channel Width subfield.
9801 	 * The Channel Width subfield indicates the operating channel width
9802 	 * supported by the STA for both reception and transmission.
9803 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9804 	 * This setting is cleared with the
9805 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9806 	 * flag attribute to reset defaults.
9807 	 * This attribute is used to configure the testbed device.
9808 	 */
9809 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9810 
9811 	/* 8-bit unsigned value to configure the number of spatial
9812 	 * streams in HE operating mode control field.
9813 	 * This setting is cleared with the
9814 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9815 	 * flag attribute to reset defaults.
9816 	 * This attribute is used to configure the testbed device.
9817 	 */
9818 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9819 
9820 	/* Flag attribute to configure the UL MU disable bit in
9821 	 * HE operating mode control field.
9822 	 * This setting is cleared with the
9823 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9824 	 * flag attribute to reset defaults.
9825 	 * This attribute is used to configure the testbed device.
9826 	 */
9827 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9828 
9829 	/* Flag attribute to clear the previously set HE operating mode
9830 	 * control field configuration.
9831 	 * This attribute is used to configure the testbed device to reset
9832 	 * defaults to clear any previously set HE operating mode control
9833 	 * field configuration.
9834 	 */
9835 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9836 
9837 	/* 8-bit unsigned value to configure HE single user PPDU
9838 	 * transmission. By default this setting is disabled and it
9839 	 * is disabled in the reset defaults of the device configuration.
9840 	 * This attribute is used to configure the testbed device.
9841 	 * 1-enable, 0-disable
9842 	 */
9843 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9844 
9845 	/* 8-bit unsigned value to configure action frame transmission
9846 	 * in HE trigger based PPDU transmission.
9847 	 * By default this setting is disabled and it is disabled in
9848 	 * the reset defaults of the device configuration.
9849 	 * This attribute is used to configure the testbed device.
9850 	 * 1-enable, 0-disable
9851 	 */
9852 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9853 
9854 	/* Nested attribute to indicate HE operating mode control field
9855 	 * transmission. It contains operating mode control field Nss,
9856 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9857 	 * These nested attributes are used to send HE operating mode control
9858 	 * with configured values.
9859 	 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
9860 	 * This attribute is used to configure the testbed device.
9861 	 */
9862 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
9863 
9864 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
9865 	 * support for the reception of a frame that carries an HE variant
9866 	 * HT Control field.
9867 	 * This attribute is used to configure the testbed device.
9868 	 * 1-enable, 0-disable
9869 	 */
9870 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9871 
9872 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
9873 	 * This attribute is used to configure the testbed device.
9874 	 * 1-enable, 0-disable
9875 	 */
9876 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9877 
9878 	/* 8-bit unsigned value to configure HE testbed defaults.
9879 	 * This attribute is used to configure the testbed device.
9880 	 * 1-set the device HE capabilities to testbed defaults.
9881 	 * 0-reset the device HE capabilities to supported config.
9882 	 */
9883 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9884 
9885 	/* 8-bit unsigned value to configure twt request support.
9886 	 * This attribute is used to configure the testbed device.
9887 	 * 1-enable, 0-disable.
9888 	 */
9889 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9890 
9891 	/* 8-bit unsigned value to configure protection for Management
9892 	 * frames when PMF is enabled for the association.
9893 	 * This attribute is used to configure the testbed device.
9894 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9895 	 */
9896 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9897 
9898 	/* Flag attribute to inject Disassociation frame to the connected AP.
9899 	 * This attribute is used to configure the testbed device.
9900 	 */
9901 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9902 
9903 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9904 	 * subfield in the MIC control field of the FTE in FT Reassociation
9905 	 * Request frame.
9906 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9907 	 * This attribute is used to configure the testbed device.
9908 	 * This attribute can be configured when STA is in disconnected or
9909 	 * associated state and the configuration is valid until the next
9910 	 * disconnection.
9911 	 */
9912 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9913 
9914 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9915 	 * Switch Announcement) when STA is in connected state.
9916 	 * 0 - Default behavior, 1 - Ignore CSA.
9917 	 * This attribute is used to configure the testbed device.
9918 	 * This attribute can be configured when STA is in disconnected or
9919 	 * associated state and the configuration is valid until the next
9920 	 * disconnection.
9921 	 */
9922 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9923 
9924 	/* Nested attribute values required to configure OCI (Operating Channel
9925 	 * Information). Attributes defined in enum
9926 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9927 	 * This attribute is used to configure the testbed device.
9928 	 * This attribute can be configured when STA is in disconnected or
9929 	 * associated state and the configuration is valid until the next
9930 	 * disconnection.
9931 	 */
9932 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9933 
9934 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9935 	 * Query timeout. If this configuration is enabled STA shall not send
9936 	 * Deauthentication frmae when SA Query times out (mainly, after a
9937 	 * channel switch when OCV is enabled).
9938 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9939 	 * This attribute is used to configure the testbed device.
9940 	 * This attribute can be configured only when STA is in associated state
9941 	 * and the configuration is valid until the disconnection.
9942 	 */
9943 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9944 
9945 	/* 8-bit unsigned value to configure the driver/firmware to start or
9946 	 * stop transmitting FILS discovery frames.
9947 	 * 0 - Stop transmitting FILS discovery frames
9948 	 * 1 - Start transmitting FILS discovery frames
9949 	 * This attribute is used to configure the testbed device.
9950 	 * This attribute can be configured only in AP mode and the
9951 	 * configuration is valid until AP restart.
9952 	 */
9953 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9954 
9955 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9956 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9957 	 * information field.
9958 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9959 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9960 	 * This attribute is used to configure the testbed device.
9961 	 */
9962 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9963 
9964 	/* 16-bit unsigned value to configure the driver with a specific BSS
9965 	 * max idle period to advertise in the BSS Max Idle Period element
9966 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9967 	 * This attribute is used to configure the testbed device.
9968 	 */
9969 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9970 
9971 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9972 	 * for data transmission.
9973 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9974 	 * This attribute is used to configure the testbed device.
9975 	 */
9976 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9977 
9978 	/* 8-bit unsigned value to configure the driver to disable data and
9979 	 * management response frame transmission to test the BSS max idle
9980 	 * feature.
9981 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9982 	 * This attribute is used to configure the testbed device.
9983 	 */
9984 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9985 
9986 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9987 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9988 	 * information field.
9989 	 * 0 - Disable Punctured Preamble Rx subfield
9990 	 * 1 - Enable Punctured Preamble Rx subfield
9991 	 * This attribute is used to configure the testbed device.
9992 	 */
9993 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9994 
9995 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9996 	 * requirement mismatch for 6 GHz connection.
9997 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9998 	 * This attribute is used to configure the testbed device.
9999 	 */
10000 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
10001 
10002 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
10003 	 * connection with all security modes.
10004 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
10005 	 * modes.
10006 	 * This attribute is used for testing purposes.
10007 	 */
10008 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
10009 
10010 	/* 8-bit unsigned value to configure the driver to transmit data with
10011 	 * ER SU PPDU type.
10012 	 *
10013 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
10014 	 * This attribute is used for testing purposes.
10015 	 */
10016 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
10017 
10018 	/* 8-bit unsigned value to configure the driver to use Data or
10019 	 * Management frame type for keep alive data.
10020 	 * Uses enum qca_wlan_keep_alive_data_type values.
10021 	 *
10022 	 * This attribute is used for testing purposes.
10023 	 */
10024 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
10025 
10026 	/* 8-bit unsigned value to configure the driver to use scan request
10027 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
10028 	 * driver saves this configuration and applies this setting to all user
10029 	 * space scan requests until the setting is cleared. If this
10030 	 * configuration is set, the driver uses the BSSID value from the scan
10031 	 * request to set the RA(A1) in the Probe Request frames during the
10032 	 * scan.
10033 	 *
10034 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
10035 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
10036 	 * This attribute is used for testing purposes.
10037 	 */
10038 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
10039 
10040 	/* 8-bit unsigned value to configure the driver to enable/disable the
10041 	 * BSS max idle period support.
10042 	 *
10043 	 * 0 - Disable the BSS max idle support.
10044 	 * 1 - Enable the BSS max idle support.
10045 	 * This attribute is used for testing purposes.
10046 	 */
10047 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
10048 
10049 	/* 8-bit unsigned value to configure the driver/firmware to enable or
10050 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
10051 	 * capabilities information field.
10052 	 * 0 - Disable Rx control frame to MultiBSS subfield
10053 	 * 1 - Enable Rx control frame to MultiBSS subfield
10054 	 * This attribute is used to configure the testbed device.
10055 	 */
10056 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
10057 
10058 	/* 8-bit unsigned value to configure the driver/firmware to enable or
10059 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
10060 	 * information field.
10061 	 * 0 - Disable Broadcast TWT support subfield
10062 	 * 1 - Enable Broadcast TWT support subfield
10063 	 * This attribute is used to configure the testbed device.
10064 	 */
10065 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
10066 
10067 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
10068 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
10069 	 * and if the FW supports this capability too, then the STA host
10070 	 * advertises this capability to AP over assoc request frame. This
10071 	 * attribute will not have any effect on legacy devices with no 802.11be
10072 	 * support.
10073 	 * 0 - Default behavior
10074 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
10075 	 * This attribute is used to configure the testbed device.
10076 	 */
10077 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
10078 
10079 	/* 8-bit unsigned value to configure the driver to enable/disable the
10080 	 * periodic sounding for Tx beamformer functionality. The default
10081 	 * behavior uses algorithm to do sounding based on packet stats.
10082 	 *
10083 	 * 0 - Default behavior.
10084 	 * 1 - Enable the periodic sounding for Tx beamformer.
10085 	 * This attribute is used for testing purposes.
10086 	 */
10087 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
10088 
10089 	/* 8-bit unsigned value to configure beamformee SS EHT capability
10090 	 * to indicate the maximum number of spatial streams that the STA
10091 	 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
10092 	 * The range of the value is 3 to 7.
10093 	 * This attribute is used to configure the testbed device.
10094 	 */
10095 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
10096 
10097 	/* 8-bit unsigned value to configure beamformee SS EHT capability
10098 	 * to indicate the maximum number of spatial streams that the STA
10099 	 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
10100 	 * The range of the value is 3 to 7.
10101 	 * This attribute is used to configure the testbed device.
10102 	 */
10103 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
10104 
10105 	/* 8-bit unsigned value to configure beamformee SS EHT capability
10106 	 * to indicate the maximum number of spatial streams that the STA
10107 	 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
10108 	 * The range of the value is 3 to 7.
10109 	 * This attribute is used to configure the testbed device.
10110 	 */
10111 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
10112 
10113 	/* 8-bit unsigned value to configure the driver to exclude station
10114 	 * profile in Probe Request frame Multi-Link element.
10115 	 * 0 - Default behavior, sends the Probe Request frame with station
10116 	 * profile data included in the Multi-Link element.
10117 	 * 1 - Exclude station profile in Probe Request frame Multi-Link
10118 	 * element.
10119 	 * This attribute is used to configure the testbed device.
10120 	 */
10121 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
10122 
10123 	/* 8-bit unsigned value to configure EHT testbed defaults.
10124 	 * This attribute is used to configure the testbed device.
10125 	 * 1 - Set the device EHT capabilities to testbed defaults.
10126 	 * 0 - Reset the device EHT capabilities to supported config.
10127 	 */
10128 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
10129 
10130 	/* 8-bit unsigned value to indicate the EHT MCS support.
10131 	 * Uses enum eht_mcs_config values.
10132 	 * This attribute is used to configure the testbed device to
10133 	 * allow the advertised hardware capabilities to be downgraded
10134 	 * for testing purposes.
10135 	 */
10136 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
10137 
10138 	/* 8-bit unsigned value to configure EHT TB Sounding Feedback
10139 	 * Rate Limit capability.
10140 	 * This attribute is used to configure the testbed device.
10141 	 * 0 - Indicates no maximum supported data rate limitation.
10142 	 * 1 - Indicates the maximum supported data rate is the lower of
10143 	 * the 1500 Mb/s and the maximum supported data rate.
10144 	 */
10145 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
10146 
10147 	/* 8-bit unsigned value to configure the support for receiving an MPDU
10148 	 * that contains an EHT operating mode control subfield.
10149 	 * This attribute is used to configure the testbed device.
10150 	 * 1-enable, 0-disable.
10151 	 */
10152 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
10153 
10154 	/* 8-bit unsigned value to configure the driver with EMLSR padding delay
10155 	 * subfield value.
10156 	 *
10157 	 * 0 - 0 us
10158 	 * 1 - 32 us
10159 	 * 2 - 64 us
10160 	 * 3 - 128 us
10161 	 * 4 - 256 us
10162 	 * 5-255 - Reserved
10163 	 *
10164 	 * This attribute is used for testing purposes.
10165 	 */
10166 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
10167 
10168 	/*
10169 	 * 8-bit unsigned value to indicate the firmware to force the active MLO
10170 	 * links to power save mode for the configured number of beacon periods.
10171 	 * This allows the firmware to suspend STA links for X beacon periods
10172 	 * and remain asleep even if the AP advertises TIM as opposed to regular
10173 	 * power save mode where STA links wake up if the AP indicates that it
10174 	 * has buffered data to send.
10175 	 * This attribute is used to configure the testbed device.
10176 	 */
10177 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
10178 
10179 	/*
10180 	 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
10181 	 * to enable simultaneous transmission of PPDUs on all active links.
10182 	 * 0 - Default behavior
10183 	 * 1 - Enter STR mode for simultaneous data transmission on all links
10184 	 */
10185 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
10186 
10187 	/* Nested attribute to indicate EHT MLO links on which powersave to be
10188 	 * enabled. It contains link ID attributes. These nested attributes are
10189 	 * of the type u8 and are used to enable the powersave on associated
10190 	 * MLO links corresponding to the link IDs provided in the command.
10191 	 * This attribute is used to configure the testbed device.
10192 	 */
10193 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
10194 
10195 	/* 8-bit unsigned value to configure the MLD ID of the BSS whose link
10196 	 * info is requested in the ML Probe Request frame. In the MLO-MBSSID
10197 	 * testcase, STA can request information of non-Tx BSS through Tx BSS
10198 	 * by configuring non-Tx BSS MLD ID within the ML probe request that
10199 	 * is transmitted via host initiated scan request.
10200 	 *
10201 	 * This attribute is used for testing purposes.
10202 	 */
10203 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
10204 
10205 	/* keep last */
10206 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
10207 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
10208 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
10209 };
10210 
10211 /**
10212  * enum qca_wlan_twt_operation - Operation of the config TWT request
10213  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
10214  * The response for the respective operations can be either synchronous or
10215  * asynchronous (wherever specified). If synchronous, the response to this
10216  * operation is obtained in the corresponding vendor command reply to the user
10217  * space. For the asynchronous case the response is obtained as an event with
10218  * the same operation type.
10219  *
10220  * Drivers shall support either of these modes but not both simultaneously.
10221  * This support for asynchronous mode is advertised through the flag
10222  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
10223  * the driver shall support synchronous mode.
10224  *
10225  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
10226  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10227  * qca_wlan_vendor_attr_twt_setup. Depending upon the
10228  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
10229  * synchronous or asynchronous operation.
10230  *
10231  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
10232  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10233  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
10234  *
10235  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
10236  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10237  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
10238  * This terminate can either get triggered by the user space or can as well be
10239  * a notification from the firmware if it initiates a terminate.
10240  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10241  * the request from user space can either be a synchronous or asynchronous
10242  * operation.
10243  *
10244  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
10245  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10246  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
10247  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
10248  * this is either a synchronous or asynchronous operation.
10249  *
10250  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
10251  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
10252  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
10253  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
10254  * request.
10255  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10256  * capability, this is either a synchronous or asynchronous operation.
10257  *
10258  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
10259  * combination of suspend and resume in a single request. Required parameters
10260  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
10261  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
10262  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
10263  * capability, this is either a synchronous or asynchronous operation.
10264  *
10265  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
10266  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
10267  * session is setup. It's a synchronous operation.
10268  *
10269  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
10270  * Valid only after the TWT session is setup. It's a synchronous operation.
10271  *
10272  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
10273  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
10274  * operation.
10275  *
10276  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
10277  * ready for a new TWT session setup after it issued a twt teardown.
10278  *
10279  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
10280  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
10281  * the enum qca_wlan_vendor_attr_twt_set_param.
10282  *
10283  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
10284  * related information for example TWT required bit in AP capabilities etc.
10285  * The reason for the notification is sent using
10286  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
10287  */
10288 enum qca_wlan_twt_operation {
10289 	QCA_WLAN_TWT_SET = 0,
10290 	QCA_WLAN_TWT_GET = 1,
10291 	QCA_WLAN_TWT_TERMINATE = 2,
10292 	QCA_WLAN_TWT_SUSPEND = 3,
10293 	QCA_WLAN_TWT_RESUME = 4,
10294 	QCA_WLAN_TWT_NUDGE = 5,
10295 	QCA_WLAN_TWT_GET_STATS = 6,
10296 	QCA_WLAN_TWT_CLEAR_STATS = 7,
10297 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
10298 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
10299 	QCA_WLAN_TWT_SET_PARAM = 10,
10300 	QCA_WLAN_TWT_NOTIFY = 11,
10301 };
10302 
10303 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
10304  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
10305  *
10306  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
10307  * u8 attribute. Specify the TWT operation of this request. Possible values
10308  * are defined in enum qca_wlan_twt_operation. The parameters for the
10309  * respective operation is specified through
10310  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
10311  *
10312  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
10313  * parameters configured for TWT. These parameters are represented by
10314  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
10315  * enum qca_wlan_vendor_attr_twt_set_param or
10316  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
10317  *
10318  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
10319  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
10320  * The values used by this attribute are defined in
10321  * enum qca_wlan_vendor_twt_status.
10322  */
10323 enum qca_wlan_vendor_attr_config_twt {
10324 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
10325 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
10326 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
10327 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
10328 
10329 	/* keep last */
10330 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
10331 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
10332 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
10333 };
10334 
10335 /**
10336  * qca_wlan_twt_setup_state: Represents the TWT session states.
10337  *
10338  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
10339  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
10340  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
10341  */
10342 enum qca_wlan_twt_setup_state {
10343 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
10344 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
10345 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
10346 };
10347 
10348 /**
10349  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
10350  * TWT (Target Wake Time) setup request. These attributes are sent as part of
10351  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
10352  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10353  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10354  *
10355  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
10356  * Disable (flag attribute not present) - Individual TWT
10357  * Enable (flag attribute present) - Broadcast TWT.
10358  * Individual means the session is between the STA and the AP.
10359  * This session is established using a separate negotiation between
10360  * STA and AP.
10361  * Broadcast means the session is across multiple STAs and an AP. The
10362  * configuration parameters are announced in Beacon frames by the AP.
10363  * This is used in
10364  * 1. TWT SET Request and Response
10365  * 2. TWT GET Response
10366  *
10367  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
10368  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
10369  * specify the TWT request type. This is used in TWT SET operation.
10370  *
10371  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
10372  * Enable (flag attribute present) - TWT with trigger support.
10373  * Disable (flag attribute not present) - TWT without trigger support.
10374  * Trigger means the AP will send the trigger frame to allow STA to send data.
10375  * Without trigger, the STA will wait for the MU EDCA timer before
10376  * transmitting the data.
10377  * This is used in
10378  * 1. TWT SET Request and Response
10379  * 2. TWT GET Response
10380  *
10381  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
10382  * 0 - Announced TWT - In this mode, STA may skip few service periods to
10383  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
10384  * NULL frame to AP.
10385  * 1 - Unannounced TWT - The STA will wakeup during every SP.
10386  * This is a required parameter for
10387  * 1. TWT SET Request and Response
10388  * 2. TWT GET Response
10389  *
10390  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
10391  * Flow ID is the unique identifier for each TWT session.
10392  * If not provided then dialog ID will be set to zero.
10393  * This is an optional parameter for
10394  * 1. TWT SET Request and Response
10395  * 2. TWT GET Request and Response
10396  * 3. TWT TERMINATE Request and Response
10397  * 4. TWT SUSPEND Request and Response
10398  * Flow Id values from 0 to 254 represent a single TWT session
10399  * Flow ID value of 255 represents all twt sessions for the following
10400  * 1. TWT TERMINATE Request and Response
10401  * 2. TWT SUSPEND Request and Response
10402  * 4. TWT CLEAR STATISTICS request
10403  * 5. TWT GET STATISTICS request and response
10404  * If an invalid dialog id is provided, status
10405  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10406  *
10407  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
10408  * This attribute (exp) is used along with the mantissa to derive the
10409  * wake interval using the following formula:
10410  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
10411  * Wake interval is the interval between 2 successive SP.
10412  * This is a required parameter for
10413  * 1. TWT SET Request and Response
10414  * 2. TWT GET Response
10415  *
10416  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
10417  * Enable (flag attribute present) - Protection required.
10418  * Disable (flag attribute not present) - Protection not required.
10419  * If protection is enabled, then the AP will use protection
10420  * mechanism using RTS/CTS to self to reserve the airtime.
10421  * This is used in
10422  * 1. TWT SET Request and Response
10423  * 2. TWT GET Response
10424  *
10425  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
10426  * This attribute is used as the SP offset which is the offset from
10427  * TSF after which the wake happens. The units are in microseconds. If
10428  * this attribute is not provided, then the value will be set to zero.
10429  * This is an optional parameter for
10430  * 1. TWT SET Request and Response
10431  * 2. TWT GET Response
10432  *
10433  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
10434  * This is the duration of the service period. This is specified as
10435  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
10436  * This is a required parameter for
10437  * 1. TWT SET Request and Response
10438  * 2. TWT GET Response
10439  *
10440  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
10441  * This attribute is used to configure wake interval mantissa.
10442  * The units are in TU.
10443  * This is a required parameter for
10444  * 1. TWT SET Request and Response
10445  * 2. TWT GET Response
10446  *
10447  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
10448  * This field is applicable for TWT response only.
10449  * This contains status values in enum qca_wlan_vendor_twt_status
10450  * and is passed to the userspace. This is used in TWT SET operation.
10451  * This is a required parameter for
10452  * 1. TWT SET Response
10453  * 2. TWT TERMINATE Response
10454  * 3. TWT SUSPEND Response
10455  * 4. TWT RESUME Response
10456  * 5. TWT NUDGE Response
10457  *
10458  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
10459  * This field is applicable for TWT response only.
10460  * This field contains response type from the TWT responder and is
10461  * passed to the userspace. The values for this field are defined in
10462  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
10463  * response.
10464  *
10465  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
10466  * In TWT setup command this field contains absolute TSF that will
10467  * be used by TWT requester during setup.
10468  * In TWT response this field contains absolute TSF value of the
10469  * wake time received from the TWT responder and is passed to
10470  * the userspace.
10471  * This is an optional parameter for
10472  * 1. TWT SET Request
10473  * This is a required parameter for
10474  * 1. TWT SET Response
10475  * 2. TWT GET Response
10476  *
10477  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
10478  * Enable (flag attribute present) - Indicates that the TWT responder
10479  * supports reception of TWT information frame from the TWT requestor.
10480  * Disable (flag attribute not present) - Indicates that the responder
10481  * doesn't support reception of TWT information frame from requestor.
10482  * This is used in
10483  * 1. TWT SET Response
10484  * 2. TWT GET Response
10485  *
10486  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
10487  * Represents the MAC address of the peer for which the TWT session
10488  * is being configured. This is used in AP mode to represent the respective
10489  * client
10490  * In AP mode, this is a required parameter in response for
10491  * 1. TWT SET
10492  * 2. TWT GET
10493  * 3. TWT TERMINATE
10494  * 4. TWT SUSPEND
10495  * In STA mode, this is an optional parameter in request and response for
10496  * the above four TWT operations.
10497  * In AP mode, this is a required parameter in request for
10498  * 1. TWT GET
10499  * 2. TWT TERMINATE
10500  *
10501  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
10502  * Minimum tolerance limit of wake interval parameter in microseconds.
10503  *
10504  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
10505  * Maximum tolerance limit of wake interval parameter in microseconds.
10506  *
10507  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
10508  * Minimum tolerance limit of wake duration parameter in microseconds.
10509  *
10510  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
10511  * Maximum tolerance limit of wake duration parameter in microseconds.
10512  *
10513  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
10514  * TWT state for the given dialog id. The values for this are represented
10515  * by enum qca_wlan_twt_setup_state.
10516  * This is obtained through TWT GET operation.
10517  *
10518  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
10519  * This attribute is used to configure wake interval mantissa.
10520  * The unit is microseconds. This attribute, when specified, takes
10521  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
10522  * This parameter is used for
10523  * 1. TWT SET Request and Response
10524  * 2. TWT GET Response
10525  *
10526  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
10527  * This attribute is used to configure Broadcast TWT ID.
10528  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
10529  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
10530  * This parameter is used for
10531  * 1. TWT SET Request
10532  * 2. TWT TERMINATE Request
10533  *
10534  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
10535  * This attribute is used to configure Broadcast TWT recommendation.
10536  * The Broadcast TWT Recommendation subfield contains a value that indicates
10537  * recommendations on the types of frames that are transmitted by TWT
10538  * scheduled STAs and scheduling AP during the broadcast TWT SP.
10539  * The allowed values are 0 - 3.
10540  * This parameter is used for
10541  * 1. TWT SET Request
10542  *
10543  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
10544  * This attribute is used to configure Broadcast TWT Persistence.
10545  * The Broadcast TWT Persistence subfield indicates the number of
10546  * TBTTs during which the Broadcast TWT SPs corresponding to this
10547  * broadcast TWT Parameter set are present. The number of beacon intervals
10548  * during which the Broadcast TWT SPs are present is equal to the value in the
10549  * Broadcast TWT Persistence subfield plus 1 except that the value 255
10550  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
10551  * This parameter is used for
10552  * 1. TWT SET Request
10553  *
10554  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
10555  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
10556  * from TWT response frame.
10557  * This parameter is used for
10558  * 1. TWT SET Response
10559  * 2. TWT GET Response
10560  *
10561  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
10562  * This attribute is used to configure the announce timeout value (in us) in
10563  * firmware. This timeout value is only applicable for announced TWT. If
10564  * timeout value is non-zero then firmware waits upto timeout value to use
10565  * data frame as announcement frame. If timeout value is 0 then firmware sends
10566  * explicit QoS NULL frame as announcement frame on SP start. Default value in
10567  * firmware is 0.
10568  * This parameter is used for
10569  * 1. TWT SET Request
10570  */
10571 enum qca_wlan_vendor_attr_twt_setup {
10572 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
10573 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
10574 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
10575 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
10576 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
10577 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
10578 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
10579 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
10580 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
10581 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
10582 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
10583 
10584 	/* TWT Response only attributes */
10585 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
10586 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
10587 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
10588 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
10589 
10590 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
10591 
10592 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
10593 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
10594 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
10595 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
10596 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
10597 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
10598 
10599 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
10600 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
10601 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
10602 
10603 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
10604 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
10605 
10606 	/* keep last */
10607 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
10608 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
10609 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
10610 };
10611 
10612 /**
10613  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
10614  * TWT operation
10615  *
10616  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
10617  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
10618  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
10619  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
10620  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
10621  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
10622  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
10623  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
10624  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
10625  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
10626  * request/response frame
10627  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
10628  * frame
10629  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
10630  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
10631  * unknown reason
10632  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
10633  * suspend state
10634  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
10635  * invalid IE in the received TWT frame
10636  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
10637  * the responder are not in the specified range
10638  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
10639  * session due to request from the responder. Used on the TWT_TERMINATE
10640  * notification from the firmware.
10641  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
10642  * session due to roaming. Used on the TWT_TERMINATE notification from the
10643  * firmware.
10644  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
10645  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
10646  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
10647  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
10648  * request due to roaming in progress.
10649  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
10650  * setup request due to channel switch in progress.
10651  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
10652  * request due to scan in progress.
10653  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
10654  * terminate an existing TWT session on power save exit request from userspace.
10655  * Used on the TWT_TERMINATE notification from the driver/firmware.
10656  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
10657  * required bit in its capabilities.
10658  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
10659  * the TWT required bit(1->0) in its capabilities.
10660  */
10661 enum qca_wlan_vendor_twt_status {
10662 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
10663 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
10664 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
10665 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
10666 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
10667 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
10668 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
10669 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
10670 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
10671 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
10672 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
10673 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
10674 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
10675 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
10676 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
10677 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
10678 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
10679 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
10680 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
10681 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
10682 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
10683 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
10684 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
10685 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
10686 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
10687 };
10688 
10689 /**
10690  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
10691  * TWT (Target Wake Time) resume request. These attributes are sent as part of
10692  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
10693  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10694  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10695  *
10696  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
10697  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
10698  * These attributes are used as the SP offset which is the offset from TSF after
10699  * which the wake happens. The units are in microseconds. Please note that
10700  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
10701  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
10702  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
10703  * will be set to zero.
10704  *
10705  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
10706  * This attribute represents the next TWT subfield size.
10707  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10708  * and 4 for 64 bits.
10709  *
10710  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
10711  * Flow ID is the unique identifier for each TWT session. This attribute
10712  * represents the respective TWT session to resume.
10713  * Flow Id values from 0 to 254 represent a single TWT session
10714  * Flow ID value of 255 represents all TWT sessions.
10715  * If an invalid dialog id is provided, status
10716  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10717  *
10718  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
10719  * Represents the MAC address of the peer to which TWT Resume is
10720  * being sent. This is used in AP mode to represent the respective
10721  * client and is a required parameter. In STA mode, this is an optional
10722  * parameter
10723  *
10724  */
10725 enum qca_wlan_vendor_attr_twt_resume {
10726 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
10727 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
10728 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
10729 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
10730 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
10731 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
10732 
10733 	/* keep last */
10734 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
10735 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
10736 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
10737 };
10738 
10739 /**
10740  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
10741  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
10742  * and resume in a single request. These attributes are sent as part of
10743  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10744  *
10745  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10746  * Flow ID is the unique identifier for each TWT session. This attribute
10747  * represents the respective TWT session to suspend and resume.
10748  *
10749  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10750  * Flow ID is the unique identifier for each TWT session. This attribute
10751  * represents the respective TWT session to suspend and resume.
10752  * Flow Id values from 0 to 254 represent a single TWT session
10753  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
10754  * and response.
10755  * If an invalid dialog id is provided, status
10756  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10757  *
10758  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
10759  * This attribute is used as the SP offset which is the offset from
10760  * TSF after which the wake happens. The units are in microseconds.
10761  *
10762  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
10763  * This attribute represents the next TWT subfield size.
10764  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10765  * and 4 for 64 bits.
10766  *
10767  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
10768  * Represents the MAC address of the peer to which TWT Suspend and Resume is
10769  * being sent. This is used in AP mode to represent the respective
10770  * client and is a required parameter. In STA mode, this is an optional
10771  * parameter.
10772  *
10773  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
10774  * This field contains absolute TSF value of the time at which twt
10775  * sesion will be resumed.
10776  *
10777  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
10778  * This field will be used when device supports Flexible TWT.
10779  * This field contains an offset value by which to shift the starting time
10780  * of the next service period. The value of offset can be negative or positive.
10781  * If provided, this attribute will override
10782  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10783  */
10784 enum qca_wlan_vendor_attr_twt_nudge {
10785 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10786 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10787 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10788 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10789 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10790 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
10791 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
10792 
10793 	/* keep last */
10794 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10795 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10796 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10797 };
10798 
10799 /**
10800  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10801  * TWT (Target Wake Time) get statistics and clear statistics request.
10802  * These attributes are sent as part of
10803  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10804  *
10805  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10806  * Flow ID is the unique identifier for each TWT session. This attribute
10807  * represents the respective TWT session for get and clear TWT statistics.
10808  * Flow Id values from 0 to 254 represent a single TWT session
10809  * Flow ID value of 255 represents all TWT sessions in
10810  * 1) TWT GET STATISTICS request and response
10811  * 2) TWT CLEAR STATISTICS request
10812  *
10813  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10814  * Represents the MAC address of the peer for which TWT Statistics
10815  * is required.
10816  * In AP mode this is used to represent the respective
10817  * client and is a required parameter for
10818  * 1) TWT GET STATISTICS request and response
10819  * 2) TWT CLEAR STATISTICS request and response
10820  * In STA mode, this is an optional parameter.
10821  *
10822  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10823  * This is the duration of the service period in microseconds.
10824  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10825  *
10826  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10827  * Average of actual wake duration observed so far. Unit is microseconds.
10828  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10829  *
10830  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10831  * Number of TWT service period elapsed so far.
10832  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10833  *
10834  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10835  * This is the minimum value of wake duration observed across
10836  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10837  * microseconds.
10838  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10839  *
10840  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10841  * This is the maximum value of wake duration observed across
10842  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10843  * microseconds.
10844  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10845  *
10846  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10847  * Average number of MPDU's transmitted successfully across
10848  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10849  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10850  *
10851  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10852  * Average number of MPDU's received successfully across
10853  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10854  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10855  *
10856  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10857  * Average number of bytes transmitted successfully across
10858  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10859  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10860  *
10861  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
10862  * Average number of bytes received successfully across
10863  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10864  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10865  *
10866  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10867  * Status of the TWT GET STATISTICS request.
10868  * This contains status values in enum qca_wlan_vendor_twt_status
10869  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10870  */
10871 enum qca_wlan_vendor_attr_twt_stats {
10872 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10873 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10874 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10875 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10876 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10877 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10878 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10879 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10880 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10881 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10882 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10883 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10884 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10885 
10886 	/* keep last */
10887 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10888 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10889 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10890 };
10891 
10892 /**
10893  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
10894  * supported by the device and peer.
10895  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10896  *
10897  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10898  * TWT non-scheduling STA. This capability is advertised in the HE
10899  * capability/Extended capabilities information element in the
10900  * Association request frame by the device.
10901  *
10902  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
10903  * by the TWT scheduling AP. This capability is advertised in the extended
10904  * capabilities/HE capabilities information element.
10905  *
10906  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
10907  * for the broadcast TWT functionality. On responder side, this	indicates
10908  * support for the role of broadcast TWT scheduling functionality. This
10909  * capability is advertised in the HE capabilities information element.
10910  *
10911  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
10912  * This capability is advertised in the HE capabilities information element.
10913  *
10914  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10915  * that it mandates the associated HE STAs to support TWT. This capability is
10916  * advertised by AP in the HE Operation Parameters field of the HE operation
10917  * information element.
10918  */
10919 enum qca_wlan_twt_capa {
10920 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10921 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10922 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10923 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
10924 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
10925 
10926 };
10927 
10928 /**
10929  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
10930  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10931  * operation.
10932  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10933  * Represents the MAC address of the peer for which the TWT capabilities
10934  * are being queried. This is used in AP mode to represent the respective
10935  * client. In STA mode, this is an optional parameter.
10936  *
10937  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10938  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10939  * enum qca_wlan_twt_capa.
10940  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10941  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10942  * enum qca_wlan_twt_capa.
10943  */
10944 enum qca_wlan_vendor_attr_twt_capability {
10945 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10946 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10947 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10948 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10949 
10950 	/* keep last */
10951 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10952 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10953 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10954 };
10955 
10956 /**
10957  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10958  * TWT (Target Wake Time) related parameters. It is used when
10959  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10960  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10961  *
10962  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10963  * This attribute configures AC parameters to be used for all TWT
10964  * sessions in AP mode.
10965  * Uses the enum qca_wlan_ac_type values.
10966  */
10967 enum qca_wlan_vendor_attr_twt_set_param {
10968 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10969 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10970 
10971 	/* keep last */
10972 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10973 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10974 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10975 };
10976 
10977 /**
10978  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10979  * the TWT responder
10980  *
10981  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10982  * parameters that are different from TWT requesting STA suggested
10983  * or demanded TWT parameters
10984  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10985  * parameters that are different from TWT requesting STA TWT suggested
10986  * or demanded parameters
10987  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10988  * setup
10989  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10990  * setup.
10991  */
10992 enum qca_wlan_vendor_twt_setup_resp_type {
10993 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10994 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10995 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10996 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10997 };
10998 
10999 /**
11000  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
11001  * Represents the setup type being requested for TWT.
11002  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
11003  * parameters but relying on AP to fill the parameters during the negotiation.
11004  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
11005  * values which the AP may accept or AP may provide alternative parameters
11006  * which the STA may accept.
11007  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
11008  * alternate parameters than the requested ones.
11009  */
11010 enum qca_wlan_vendor_twt_setup_req_type {
11011 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
11012 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
11013 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
11014 };
11015 
11016 /**
11017  * enum qca_wlan_throughput_level - Current throughput level
11018  *
11019  * Indicates the current level of throughput calculated by driver. The driver
11020  * may choose different thresholds to decide whether the throughput level is
11021  * low or medium or high based on variety of parameters like physical link
11022  * capacity of current connection, number of pakcets being dispatched per
11023  * second etc. The throughput level events might not be consistent with the
11024  * actual current throughput value being observed.
11025  *
11026  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
11027  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
11028  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
11029  */
11030 enum qca_wlan_throughput_level {
11031 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
11032 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
11033 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
11034 };
11035 
11036 /**
11037  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
11038  * report throughput changes from driver to user space. enum values are used
11039  * for NL attributes sent with
11040  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
11041  */
11042 enum qca_wlan_vendor_attr_throughput_change {
11043 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
11044 	/*
11045 	 * Indicates the direction of throughput in which the change is being
11046 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
11047 	 */
11048 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
11049 
11050 	/*
11051 	 * Indicates the newly observed throughput level.
11052 	 * qca_wlan_throughput_level describes the possible range of values.
11053 	 * u8 attribute.
11054 	 */
11055 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
11056 
11057 	/*
11058 	 * Indicates the driver's guidance on the new value to be set to
11059 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
11060 	 * may optionally include this attribute.
11061 	 */
11062 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
11063 
11064 	/*
11065 	 * Indicates the driver's guidance on the new value to be set to
11066 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
11067 	 * values are from -31 to 31. Driver may optionally include this
11068 	 * attribute.
11069 	 */
11070 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
11071 
11072 	/*
11073 	 * Indicates the driver's guidance on the new value to be set to
11074 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
11075 	 * optionally include this attribute.
11076 	 */
11077 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
11078 
11079 	/* keep last */
11080 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
11081 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
11082 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
11083 };
11084 
11085 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
11086  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
11087  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
11088  */
11089 enum qca_wlan_nan_ext_subcmd_type {
11090 	/* Subcmd of type NAN Enable Request */
11091 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
11092 	/* Subcmd of type NAN Disable Request */
11093 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
11094 };
11095 
11096 /**
11097  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
11098  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
11099  */
11100 enum qca_wlan_vendor_attr_nan_params {
11101 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
11102 	/* Carries NAN command for firmware component. Every vendor command
11103 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
11104 	 * payload containing the NAN command. NLA_BINARY attribute.
11105 	 */
11106 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
11107 	/* Indicates the type of NAN command sent with
11108 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
11109 	 * describes the possible range of values. This attribute is mandatory
11110 	 * if the command being issued is either
11111 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
11112 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
11113 	 */
11114 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
11115 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
11116 	 * band. This attribute is mandatory when command type is
11117 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
11118 	 */
11119 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
11120 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
11121 	 * band. This attribute is optional and should be included when command
11122 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
11123 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
11124 	 */
11125 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
11126 
11127 	/* keep last */
11128 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
11129 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
11130 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
11131 };
11132 
11133 /**
11134  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
11135  * transport modes and is used by attribute
11136  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
11137  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11138  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
11139  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
11140  * data. The data shall be encapsulated within
11141  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
11142  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
11143  */
11144 enum qca_wlan_vendor_cfr_data_transport_modes {
11145 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
11146 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
11147 };
11148 
11149 /**
11150  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
11151  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
11152  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
11153  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
11154  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
11155  * with phase
11156  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
11157  */
11158 enum qca_wlan_vendor_cfr_method {
11159 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
11160 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
11161 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
11162 };
11163 
11164 /**
11165  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
11166  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
11167  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
11168  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
11169  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
11170  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
11171  * is provided by one or more of below attributes:
11172  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
11173  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
11174  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
11175  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
11176  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
11177  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
11178  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11179  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
11180  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
11181  */
11182 enum qca_wlan_vendor_cfr_capture_type {
11183 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
11184 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
11185 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
11186 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
11187 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
11188 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
11189 };
11190 
11191 /**
11192  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
11193  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
11194  * Channel Frequency Response capture parameters and enable periodic CFR
11195  * capture.
11196  *
11197  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
11198  * MAC address of peer. This is for CFR version 1 only.
11199  *
11200  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
11201  * Enable peer CFR Capture. This attribute is mandatory to
11202  * enable peer CFR capture. If this attribute is not present,
11203  * peer CFR capture is disabled.
11204  *
11205  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
11206  * BW of measurement, attribute uses the values in enum nl80211_chan_width
11207  * Supported values: 20, 40, 80, 80+80, 160.
11208  * Note that all targets may not support all bandwidths.
11209  * This attribute is mandatory for version 1 if attribute
11210  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11211  *
11212  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
11213  * Periodicity of CFR measurement in msec.
11214  * Periodicity should be a multiple of Base timer.
11215  * Current Base timer value supported is 10 msecs (default).
11216  * 0 for one shot capture.
11217  * This attribute is mandatory for version 1 if attribute
11218  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11219  *
11220  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
11221  * Method used to capture Channel Frequency Response.
11222  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
11223  * This attribute is mandatory for version 1 if attribute
11224  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
11225  *
11226  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
11227  * Enable periodic CFR capture.
11228  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
11229  * If this attribute is not present, periodic CFR capture is disabled.
11230  *
11231  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
11232  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
11233  * can't be enabled at same time. This attribute is mandatory if target
11234  * support both versions and use one of them.
11235  *
11236  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
11237  * This attribute is mandatory for version 2 if
11238  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
11239  * Bits 15:0 Bit fields indicating which group to be enabled.
11240  * Bits 31:16 Reserved for future use.
11241  *
11242  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
11243  * CFR capture duration in microsecond. This attribute is mandatory for
11244  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
11245  *
11246  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
11247  * CFR capture interval in microsecond. This attribute is mandatory for
11248  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
11249  *
11250  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
11251  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
11252  * This attribute is mandatory for version 2.
11253  *
11254  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
11255  * Bit fields indicating which user in the current UL MU
11256  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
11257  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
11258  * then the CFR capture will happen for user index 0 in the current
11259  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
11260  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
11261  * This is for CFR version 2 only.
11262  *
11263  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
11264  * Indicates the number of consecutive Rx packets to be skipped
11265  * before CFR capture is enabled again.
11266  * This is for CFR version 2 only.
11267  *
11268  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
11269  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
11270  *
11271  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
11272  * the following GROUP attributes:
11273  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
11274  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
11275  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
11276  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
11277  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
11278  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
11279  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
11280  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
11281  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
11282  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
11283  *
11284  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
11285  * Target support multiple groups for some configurations. Group number could be
11286  * any value between 0 and 15. This is for CFR version 2 only.
11287  *
11288  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
11289  * Transmitter address which is used to filter packets, this MAC address takes
11290  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
11291  * This is for CFR version 2 only.
11292  *
11293  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
11294  * Receiver address which is used to filter packets, this MAC address takes
11295  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
11296  * This is for CFR version 2 only.
11297  *
11298  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
11299  * Mask of transmitter address which is used to filter packets.
11300  * This is for CFR version 2 only.
11301  *
11302  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
11303  * Mask of receiver address which is used to filter packets.
11304  * This is for CFR version 2 only.
11305  *
11306  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
11307  * Indicates packets with a specific NSS will be filtered for CFR capture.
11308  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
11309  * be done for packets matching the NSS specified within this bitmask.
11310  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
11311  *     bit 0 : NSS 1
11312  *     bit 1 : NSS 2
11313  *     ...
11314  *     bit 7 : NSS 8
11315  *
11316  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
11317  * Indicates packets with a specific BW will be filtered for CFR capture.
11318  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
11319  * will be done for packets matching the bandwidths specified within this
11320  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
11321  * numerated in enum nl80211_band (although not all bands may be supported
11322  * by a given device).
11323  *
11324  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
11325  * Management packets matching the subtype filter categories will be
11326  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
11327  * represents the corresponding mgmt subtype value as per
11328  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
11329  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
11330  * This is for CFR version 2 only
11331  *
11332  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
11333  * Control packets matching the subtype filter categories will be
11334  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
11335  * represents the corresponding control subtype value as per
11336  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
11337  * This is for CFR version 2 only.
11338  *
11339  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
11340  * Data packets matching the subtype filter categories will be
11341  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
11342  * represents the corresponding data subtype value as per
11343  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
11344  * This is for CFR version 2 only.
11345  *
11346  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
11347  * Userspace can use this attribute to specify the driver about which transport
11348  * mode shall be used by the driver to send CFR data to userspace. Uses values
11349  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
11350  * not present, driver shall choose the default transport mechanism which is
11351  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
11352  *
11353  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
11354  * Userspace can use this attribute to specify the nl port id of the application
11355  * which receives the CFR data and processes it further so that the drivers can
11356  * unicast the NL events to a specific application. Optionally included when
11357  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
11358  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
11359  * shall multicast the netlink events when this attribute is not included.
11360  *
11361  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
11362  * This attribute will be used by the driver to encapsulate and send CFR data
11363  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
11364  * asynchronous event when the driver is configured to send CFR data using NL
11365  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
11366  *
11367  */
11368 enum qca_wlan_vendor_peer_cfr_capture_attr {
11369 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
11370 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
11371 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
11372 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
11373 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
11374 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
11375 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
11376 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
11377 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
11378 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
11379 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
11380 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
11381 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
11382 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
11383 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
11384 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
11385 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
11386 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
11387 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
11388 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
11389 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
11390 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
11391 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
11392 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
11393 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
11394 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
11395 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
11396 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
11397 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
11398 
11399 	/* Keep last */
11400 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
11401 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
11402 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
11403 };
11404 
11405 /**
11406  * enum qca_coex_config_profiles - This enum defines different types of
11407  * traffic streams that can be prioritized one over the other during coex
11408  * scenarios.
11409  * The types defined in this enum are categorized in the below manner.
11410  * 0 - 31 values corresponds to WLAN
11411  * 32 - 63 values corresponds to BT
11412  * 64 - 95 values corresponds to Zigbee
11413  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
11414  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
11415  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
11416  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
11417  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
11418  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
11419  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
11420  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
11421  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
11422  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
11423  * @QCA_BT_A2DP: Prioritize BT A2DP
11424  * @QCA_BT_BLE: Prioritize BT BLE
11425  * @QCA_BT_SCO: Prioritize BT SCO
11426  * @QCA_ZB_LOW: Prioritize Zigbee Low
11427  * @QCA_ZB_HIGH: Prioritize Zigbee High
11428  */
11429 enum qca_coex_config_profiles {
11430 	/* 0 - 31 corresponds to WLAN */
11431 	QCA_WIFI_STA_DISCOVERY = 0,
11432 	QCA_WIFI_STA_CONNECTION = 1,
11433 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
11434 	QCA_WIFI_STA_DATA = 3,
11435 	QCA_WIFI_STA_ALL = 4,
11436 	QCA_WIFI_SAP_DISCOVERY = 5,
11437 	QCA_WIFI_SAP_CONNECTION = 6,
11438 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
11439 	QCA_WIFI_SAP_DATA = 8,
11440 	QCA_WIFI_SAP_ALL = 9,
11441 	QCA_WIFI_CASE_MAX = 31,
11442 	/* 32 - 63 corresponds to BT */
11443 	QCA_BT_A2DP = 32,
11444 	QCA_BT_BLE = 33,
11445 	QCA_BT_SCO = 34,
11446 	QCA_BT_CASE_MAX = 63,
11447 	/* 64 - 95 corresponds to Zigbee */
11448 	QCA_ZB_LOW = 64,
11449 	QCA_ZB_HIGH = 65,
11450 	QCA_ZB_CASE_MAX = 95,
11451 	/* 0xff is default value if the u8 profile value is not set. */
11452 	QCA_PROFILE_DEFAULT_VALUE = 255
11453 };
11454 
11455 /**
11456  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
11457  * This enum defines the valid set of values of coex configuration types. These
11458  * values may used by attribute
11459  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
11460  *
11461  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
11462  *	weights to default values.
11463  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
11464  *	weights with configurability value.
11465  */
11466 enum qca_vendor_attr_coex_config_types {
11467 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
11468 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
11469 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
11470 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
11471 };
11472 
11473 /**
11474  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
11475  * attributes
11476  * Attributes for data used by
11477  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
11478  *
11479  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
11480  * Indicate config type.
11481  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
11482  *
11483  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
11484  *	Indicate the Priority 1 profiles.
11485  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11486  *	In same priority level, maximum to 4 profiles can be set here.
11487  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
11488  *	Indicate the Priority 2 profiles.
11489  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11490  *	In same priority level, maximum to 4 profiles can be set here.
11491  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
11492  *	Indicate the Priority 3 profiles.
11493  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11494  *	In same priority level, maximum to 4 profiles can be set here.
11495  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
11496  *	Indicate the Priority 4 profiles.
11497  *	the profiles are 8-bit values from enum qca_coex_config_profiles
11498  *	In same priority level, maximum to 4 profiles can be set here.
11499  * NOTE:
11500  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
11501  * arrangement:
11502  *	1: In the same u32 attribute(priority x), the profiles enum values own
11503  *	same priority level.
11504  *	2: 0xff is default value if the u8 profile value is not set.
11505  *	3: max to 4 rules/profiles in same priority level.
11506  *	4: max to 4 priority level (priority 1 - priority 4)
11507  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
11508  *	hybrid rules not support.
11509  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
11510  *	remain blank to reset all parameters.
11511  * For example:
11512  *
11513  *	If the attributes as follow:
11514  *	priority 1:
11515  *	------------------------------------
11516  *	|  0xff  |    0   |   1   |    2   |
11517  *	------------------------------------
11518  *	priority 2:
11519  *	-------------------------------------
11520  *	|  0xff  |  0xff  |  0xff  |   32   |
11521  *	-------------------------------------
11522  *	priority 3:
11523  *	-------------------------------------
11524  *	|  0xff  |  0xff  |  0xff  |   65   |
11525  *	-------------------------------------
11526  *	then it means:
11527  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11528  *		owns same priority level.
11529  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
11530  *		has priority over BT_A2DP and ZB_HIGH.
11531  *	3: BT_A2DP has priority over ZB_HIGH.
11532  */
11533 
11534 enum qca_vendor_attr_coex_config_three_way {
11535 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
11536 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
11537 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
11538 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
11539 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
11540 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
11541 
11542 	/* Keep last */
11543 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
11544 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
11545 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
11546 };
11547 
11548 /**
11549  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
11550  * This enum defines the valid set of values of peer stats cache types. These
11551  * values are used by attribute
11552  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
11553  *
11554  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
11555  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
11556  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
11557  * statistics
11558  */
11559 enum qca_vendor_attr_peer_stats_cache_type {
11560 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
11561 
11562 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
11563 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
11564 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
11565 };
11566 
11567 /**
11568  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
11569  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
11570  * Attributes are required to flush peer rate statistics from driver to
11571  * user application.
11572  *
11573  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
11574  * Indicate peer stats cache type.
11575  * The statistics types are 32-bit values from
11576  * qca_vendor_attr_peer_stats_cache_type
11577  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
11578  * of size 6, representing peer mac address.
11579  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
11580  * containing buffer of statistics to send event to application layer entity.
11581  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
11582  * representing cookie for peer unique session.
11583  */
11584 enum qca_wlan_vendor_attr_peer_stats_cache_params {
11585 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
11586 
11587 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
11588 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
11589 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
11590 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
11591 
11592 	/* Keep last */
11593 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
11594 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
11595 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
11596 };
11597 
11598 /**
11599  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
11600  * this enum defines all the possible state of zigbee, which can be
11601  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
11602  *
11603  * @ZIGBEE_IDLE: zigbee in idle state
11604  * @ZIGBEE_FORM_NETWORK: zibee forming network
11605  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
11606  * @ZIGBEE_JOIN: zigbee joining network
11607  * @ZIGBEE_NETWORK_UP: zigbee network is up
11608  * @ZIGBEE_HMI: zigbee in HMI mode
11609  */
11610 enum qca_mpta_helper_attr_zigbee_state {
11611 	ZIGBEE_IDLE = 0,
11612 	ZIGBEE_FORM_NETWORK = 1,
11613 	ZIGBEE_WAIT_JOIN = 2,
11614 	ZIGBEE_JOIN = 3,
11615 	ZIGBEE_NETWORK_UP = 4,
11616 	ZIGBEE_HMI = 5,
11617 };
11618 
11619 /**
11620  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
11621  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
11622  */
11623 enum qca_mpta_helper_vendor_attr {
11624 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
11625 	/* Optional attribute used to update zigbee state.
11626 	 * enum qca_mpta_helper_attr_zigbee_state.
11627 	 * NLA_U32 attribute.
11628 	 */
11629 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
11630 	/* Optional attribute used to configure wlan duration for Shape-OCS
11631 	 * during interrupt.
11632 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
11633 	 * Value range 0 ~ 300 (ms).
11634 	 * NLA_U32 attribute.
11635 	 */
11636 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
11637 	/* Optional attribute used to configure non wlan duration for Shape-OCS
11638 	 * during interrupt.
11639 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
11640 	 * Value range 0 ~ 300 (ms).
11641 	 * NLA_U32 attribute.
11642 	 */
11643 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
11644 	/* Optional attribute used to configure wlan duration for Shape-OCS
11645 	 * monitor period.
11646 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
11647 	 * Value range 0 ~ 300 (ms)
11648 	 * NLA_U32 attribute
11649 	 */
11650 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
11651 	/* Optional attribute used to configure non wlan duration for Shape-OCS
11652 	 * monitor period.
11653 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
11654 	 * Value range 0 ~ 300 (ms)
11655 	 * NLA_U32 attribute
11656 	 */
11657 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
11658 	/* Optional attribute used to configure ocs interrupt duration.
11659 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
11660 	 * Value range 1000 ~ 20000 (ms)
11661 	 * NLA_U32 attribute
11662 	 */
11663 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
11664 	/* Optional attribute used to configure ocs monitor duration.
11665 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
11666 	 * Value range 1000 ~ 20000 (ms)
11667 	 * NLA_U32 attribute
11668 	 */
11669 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
11670 	/* Optional attribute used to notify wlan FW current zigbee channel.
11671 	 * Value range 11 ~ 26
11672 	 * NLA_U32 attribute
11673 	 */
11674 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
11675 	/* Optional attribute used to configure wlan mute duration.
11676 	 * Value range 0 ~ 400 (ms)
11677 	 * NLA_U32 attribute
11678 	 */
11679 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
11680 
11681 	/* keep last */
11682 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
11683 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
11684 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
11685 };
11686 
11687 /**
11688  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
11689  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
11690  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
11691  *
11692  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
11693  * to request the driver to start reporting Beacon frames.
11694  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
11695  * to request the driver to stop reporting Beacon frames.
11696  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
11697  * userspace to report received Beacon frames.
11698  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
11699  * to indicate that the driver is going to pause reporting Beacon frames.
11700  */
11701 enum qca_wlan_vendor_beacon_reporting_op_types {
11702 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
11703 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
11704 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
11705 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
11706 };
11707 
11708 /**
11709  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
11710  * types of reasons for which the driver is pausing reporting Beacon frames.
11711  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
11712  *
11713  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
11714  * reasons.
11715  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
11716  * driver/firmware is starting a scan.
11717  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
11718  * driver/firmware disconnects from the ESS and indicates the disconnection to
11719  * userspace (non-seamless roaming case). This reason code will be used by the
11720  * driver/firmware to indicate stopping of beacon report events. Userspace
11721  * will need to start beacon reporting again (if desired) by sending vendor
11722  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
11723  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
11724  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
11725  * completed.
11726  */
11727 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
11728 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
11729 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
11730 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
11731 };
11732 
11733 /*
11734  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
11735  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
11736  */
11737 enum qca_wlan_vendor_attr_beacon_reporting_params {
11738 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
11739 	/* Specifies the type of operation that the vendor command/event is
11740 	 * intended for. Possible values for this attribute are defined in
11741 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
11742 	 */
11743 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
11744 	/* Optionally set by userspace to request the driver to report Beacon
11745 	 * frames using asynchronous vendor events when the
11746 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11747 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11748 	 * If this flag is not set, the driver will only update Beacon frames
11749 	 * in cfg80211 scan cache but not send any vendor events.
11750 	 */
11751 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
11752 	/* Optionally used by userspace to request the driver/firmware to
11753 	 * report Beacon frames periodically when the
11754 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11755 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
11756 	 * u32 attribute, indicates the period of Beacon frames to be reported
11757 	 * and in the units of beacon interval.
11758 	 * If this attribute is missing in the command, then the default value
11759 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
11760 	 * Zero is an invalid value.
11761 	 * If a valid value is received for this attribute, the driver will
11762 	 * update the cfg80211 scan cache periodically as per the value
11763 	 * received in this attribute in addition to updating the cfg80211 scan
11764 	 * cache when there is significant change in Beacon frame IEs.
11765 	 */
11766 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
11767 	/* Used by the driver to encapsulate the SSID when the
11768 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11769 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11770 	 * u8 array with a maximum size of 32.
11771 	 *
11772 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
11773 	 * will be taken from the SSID element of the received Beacon frame.
11774 	 *
11775 	 * When generating beacon report from Multiple BSSID Beacon frame and
11776 	 * if the BSSID of the current connected BSS matches the BSSID of the
11777 	 * transmitting BSS, the SSID will be taken from the SSID element of
11778 	 * the received Beacon frame.
11779 	 *
11780 	 * When generating beacon report from Multiple BSSID Beacon frame and
11781 	 * if the BSSID of the current connected BSS matches the BSSID of one
11782 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
11783 	 * field included in the nontransmitted BSS profile whose derived BSSI
11784 	 * is same as the BSSID of the current connected BSS. When there is no
11785 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11786 	 * of current connected* BSS, this attribute will not be present.
11787 	 */
11788 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11789 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
11790 	 * is currently connected to when the
11791 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11792 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11793 	 * fixed size of 6 bytes.
11794 	 *
11795 	 * When generating beacon report from a Multiple BSSID beacon and the
11796 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
11797 	 * a Multiple BSSID set, this BSSID will be that particular
11798 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
11799 	 * transmitting address of the Beacon frame).
11800 	 */
11801 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11802 	/* Used by the driver to encapsulate the frequency in MHz on which
11803 	 * the Beacon frame was received when the
11804 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11805 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11806 	 * u32 attribute.
11807 	 */
11808 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11809 	/* Used by the driver to encapsulate the Beacon interval
11810 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11811 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11812 	 * u16 attribute. The value will be copied from the Beacon frame and
11813 	 * the units are TUs.
11814 	 */
11815 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11816 	/* Used by the driver to encapsulate the Timestamp field from the
11817 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
11818 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11819 	 * u64 attribute.
11820 	 */
11821 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11822 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11823 	 * Beacon frame is received in the driver when the
11824 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11825 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11826 	 * the units of nanoseconds. This value is expected to have accuracy of
11827 	 * about 10 ms.
11828 	 */
11829 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11830 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
11831 	 * which this event is generated when the
11832 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11833 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11834 	 */
11835 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11836 	/* Used by the driver to specify the reason for the driver/firmware to
11837 	 * pause sending beacons to userspace when the
11838 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11839 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11840 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11841 	 * attribute.
11842 	 */
11843 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11844 	/* Used by the driver to specify whether the driver will automatically
11845 	 * resume reporting beacon events to userspace later (for example after
11846 	 * the ongoing off-channel activity is completed etc.) when the
11847 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11848 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11849 	 */
11850 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11851 	/* Optionally set by userspace to request the driver not to resume
11852 	 * beacon reporting after a pause is completed, when the
11853 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11854 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11855 	 * If this flag is set, the driver will not resume beacon reporting
11856 	 * after any pause in beacon reporting is completed. Userspace has to
11857 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11858 	 * to initiate beacon reporting again. If this flag is set in the recent
11859 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11860 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11861 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11862 	 * set by the driver. Setting this flag until and unless there is a
11863 	 * specific need is not recommended as there is a chance of some beacons
11864 	 * received after pause command and next start command being not
11865 	 * reported.
11866 	 */
11867 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
11868 
11869 	/* Keep last */
11870 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11871 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11872 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11873 };
11874 
11875 /**
11876  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11877  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11878  *
11879  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11880  * a virtual device.
11881  *
11882  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11883  * a physical device.
11884  */
11885 enum qca_vendor_oem_device_type {
11886 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11887 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11888 };
11889 
11890 /*
11891  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
11892  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11893  *
11894  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11895  * used to set/query the data to/from the firmware. On query, the same
11896  * attribute is used to carry the respective data in the reply sent by the
11897  * driver to userspace. The request to set/query the data and the format of the
11898  * respective data from the firmware are embedded in the attribute. The
11899  * maximum size of the attribute payload is 1024 bytes.
11900  *
11901  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11902  * based on this field. This optional attribute is included to specify whether
11903  * the device type is a virtual device or a physical device for the command.
11904  * This attribute can be omitted for a virtual device (default) command.
11905  * This u8 attribute is used to carry information for the device type using
11906  * values defined by enum qca_vendor_oem_device_type.
11907  *
11908  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11909  * attribute when the data is queried from the firmware.
11910  *
11911  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11912  * is set when the userspace queries data from the firmware. This attribute
11913  * should not be set when userspace sets the OEM data to the firmware.
11914  */
11915 enum qca_wlan_vendor_attr_oem_data_params {
11916 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11917 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11918 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
11919 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
11920 
11921 	/* keep last */
11922 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11923 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11924 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11925 };
11926 
11927 /**
11928  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11929  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11930  *
11931  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11932  * Nested attribute containing multiple ranges with following attributes:
11933  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11934  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11935  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
11936  *
11937  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11938  * Starting center frequency in MHz.
11939  *
11940  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11941  * Ending center frequency in MHz.
11942  *
11943  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11944  * s32 attribute, optional. It is a per frequency range attribute.
11945  * The maximum TX power limit from user space is to be applied on an
11946  * unrestricted interface for corresponding frequency range. It is also
11947  * possible that the actual TX power may be even lower than this cap due to
11948  * other considerations such as regulatory compliance, SAR, etc. In absence of
11949  * this attribute the driver shall follow current behavior which means
11950  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11951  * power derived by the driver based on regulatory/SAR during interface up.
11952  *
11953  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11954  * u32 attribute, optional. Indicates all the interface types which are
11955  * restricted for all frequency ranges provided in
11956  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11957  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11958  * This attribute encapsulates bitmasks of interface types defined in
11959  * enum nl80211_iftype. If an interface is marked as restricted the driver must
11960  * move to a safe channel and if no safe channel is available the driver shall
11961  * terminate that interface functionality. In absence of this attribute,
11962  * interface (SAP/P2P) can still continue operating on an unsafe channel with
11963  * TX power limit derived from either
11964  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11965  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11966  * is not provided.
11967  */
11968 enum qca_wlan_vendor_attr_avoid_frequency_ext {
11969 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11970 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11971 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11972 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
11973 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11974 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
11975 
11976 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11977 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11978 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11979 };
11980 
11981 /*
11982  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11983  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11984  */
11985 enum qca_wlan_vendor_attr_add_sta_node_params {
11986 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11987 	/* 6 byte MAC address of STA */
11988 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11989 	/* Authentication algorithm used by the station of size u16;
11990 	 * defined in enum nl80211_auth_type.
11991 	 */
11992 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11993 
11994 	/*
11995 	 * This flag attribute is set if the node being added is an
11996 	 * MLD STA node.
11997 	 */
11998 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3,
11999 
12000 	/* keep last */
12001 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
12002 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
12003 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
12004 };
12005 
12006 /**
12007  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
12008  * This enum defines the valid set of values of BT coex chain mode.
12009  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
12010  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12011  *
12012  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
12013  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
12014  * separated, hybrid mode.
12015  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
12016  * separated, fixed FDD mode.
12017  */
12018 enum qca_btc_chain_mode {
12019 	QCA_BTC_CHAIN_SHARED = 0,
12020 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
12021 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
12022 };
12023 
12024 /* deprecated legacy name */
12025 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
12026 
12027 /**
12028  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
12029  * chain mode.
12030  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
12031  *
12032  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
12033  * Indicates the BT coex chain mode, are 32-bit values from
12034  * enum qca_btc_chain_mode. This attribute is mandatory.
12035  *
12036  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
12037  * If set, vdev should be restarted when BT coex chain mode is updated.
12038  * This attribute is optional.
12039  */
12040 enum qca_vendor_attr_btc_chain_mode {
12041 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
12042 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
12043 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
12044 
12045 	/* Keep last */
12046 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
12047 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
12048 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
12049 };
12050 
12051 /**
12052  * enum qca_vendor_wlan_sta_flags - Station feature flags
12053  * Bits will be set to 1 if the corresponding features are enabled.
12054  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
12055  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
12056     for the station
12057  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
12058     for the station
12059  */
12060 enum qca_vendor_wlan_sta_flags {
12061 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
12062 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
12063 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
12064 };
12065 
12066 /**
12067  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
12068  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
12069  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
12070  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
12071  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
12072  */
12073 enum qca_vendor_wlan_sta_guard_interval {
12074 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
12075 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
12076 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
12077 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
12078 };
12079 
12080 /**
12081  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
12082  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
12083  *
12084  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
12085  * Required attribute in request for AP mode only, 6-byte MAC address,
12086  * corresponding to the station's MAC address for which information is
12087  * requested. For STA mode this is not required as the info always correspond
12088  * to the self STA and the current/last association.
12089  *
12090  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
12091  * Optionally used in response, u32 attribute, contains a bitmap of different
12092  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
12093  *
12094  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
12095  * Optionally used in response, u32 attribute, possible values are defined in
12096  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
12097  * Guard interval used by the station.
12098  *
12099  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
12100  * Optionally used in response, u32 attribute, used in AP mode only.
12101  * Value indicates the number of data frames received from station with retry
12102  * bit set to 1 in FC.
12103  *
12104  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
12105  * Optionally used in response, u32 attribute, used in AP mode only.
12106  * Counter for number of data frames with broadcast or multicast address in
12107  * the destination address received from the station.
12108  *
12109  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
12110  * Optionally used in response, u32 attribute, used in both STA and AP modes.
12111  * Value indicates the number of data frames successfully transmitted only
12112  * after retrying the packets and for which the TX status has been updated
12113  * back to host from target.
12114  *
12115  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
12116  * Optionally used in response, u32 attribute, used in both STA and AP mode.
12117  * Value indicates the number of data frames not transmitted successfully even
12118  * after retrying the packets for the number of times equal to the total number
12119  * of retries allowed for that packet and for which the TX status has been
12120  * updated back to host from target.
12121  *
12122  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
12123  * Optionally used in response, u32 attribute, used in AP mode only.
12124  * Counter in the target for the number of data frames successfully transmitted
12125  * to the station.
12126  *
12127  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
12128  * Optionally used in response, u32 attribute, used in AP mode only.
12129  * Value indicates the number of data frames successfully transmitted only
12130  * after retrying the packets.
12131  *
12132  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
12133  * Optionally used in response, u32 attribute, used in both STA & AP mode.
12134  * Value indicates the number of data frames not transmitted successfully even
12135  * after retrying the packets for the number of times equal to the total number
12136  * of retries allowed for that packet.
12137  *
12138  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
12139  * the STA mode only. Represent the number of probe requests sent by the STA
12140  * while attempting to roam on missing certain number of beacons from the
12141  * connected AP. If queried in the disconnected state, this represents the
12142  * count for the last connected state.
12143  *
12144  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
12145  * the STA mode. Represent the number of probe responses received by the station
12146  * while attempting to roam on missing certain number of beacons from the
12147  * connected AP. When queried in the disconnected state, this represents the
12148  * count when in last connected state.
12149  *
12150  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
12151  * STA mode only. Represents the total number of frames sent out by STA
12152  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
12153  * only for the connect session. Represents the count of last connected session,
12154  * when queried in the disconnected state.
12155  *
12156  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
12157  * Total number of RTS sent out by the STA. This data is maintained per connect
12158  * session. Represents the count of last connected session, when queried in the
12159  * disconnected state.
12160  *
12161  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
12162  * STA mode.Represent the number of RTS transmission failure that reach retry
12163  * limit. This data is maintained per connect session. Represents the count of
12164  * last connected session, when queried in the disconnected state.
12165  *
12166  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
12167  * the STA mode. Represent the total number of non aggregated frames transmitted
12168  * by the STA. This data is maintained per connect session. Represents the count
12169  * of last connected session, when queried in the disconnected state.
12170  *
12171  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
12172  * STA mode. Represent the total number of aggregated frames transmitted by the
12173  * STA. This data is maintained per connect session. Represents the count of
12174  * last connected session, when queried in the disconnected state.
12175  *
12176  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
12177  * the STA mode. Represents the number of received frames with a good PLCP. This
12178  * data is maintained per connect session. Represents the count of last
12179  * connected session, when queried in the disconnected state.
12180  *
12181  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
12182  * used in the STA mode. Represents the number of occasions that no valid
12183  * delimiter is detected by A-MPDU parser. This data is maintained per connect
12184  * session. Represents the count of last connected session, when queried in the
12185  * disconnected state.
12186  *
12187  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
12188  * STA mode. Represents the number of frames for which CRC check failed in the
12189  * MAC. This data is maintained per connect session. Represents the count of
12190  * last connected session, when queried in the disconnected state.
12191  *
12192  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
12193  * STA mode. Represents the number of unicast ACKs received with good FCS. This
12194  * data is maintained per connect session. Represents the count of last
12195  * connected session, when queried in the disconnected state.
12196  *
12197  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
12198  * mode. Represents the number of received Block Acks. This data is maintained
12199  * per connect session. Represents the count of last connected session, when
12200  * queried in the disconnected state.
12201  *
12202  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
12203  * mode. Represents the number of beacons received from the connected BSS. This
12204  * data is maintained per connect session. Represents the count of last
12205  * connected session, when queried in the disconnected state.
12206  *
12207  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
12208  * STA mode. Represents the number of beacons received by the other BSS when in
12209  * connected state (through the probes done by the STA). This data is maintained
12210  * per connect session. Represents the count of last connected session, when
12211  * queried in the disconnected state.
12212  *
12213  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
12214  * the STA mode. Represents the number of received DATA frames with good FCS and
12215  * matching Receiver Address when in connected state. This data is maintained
12216  * per connect session. Represents the count of last connected session, when
12217  * queried in the disconnected state.
12218  *
12219  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
12220  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
12221  * when in the connected state. This data is maintained per connect session.
12222  * Represents the count of last connected session, when queried in the
12223  * disconnected state.
12224  *
12225  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
12226  * STA mode. This represents the target power in dBm for the transmissions done
12227  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
12228  * connect session. Represents the count of last connected session, when
12229  * queried in the disconnected state.
12230  *
12231  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
12232  * STA mode. This represents the Target power in dBm for transmissions done to
12233  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12234  * session. Represents the count of last connected session, when queried in the
12235  * disconnected state.
12236  *
12237  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
12238  * STA mode. This represents the Target power in dBm for transmissions done to
12239  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
12240  * Represents the count of last connected session, when queried in the
12241  * disconnected state.
12242  *
12243  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
12244  * STA mode. This represents the Target power in dBm for transmissions done to
12245  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
12246  * session. Represents the count of last connected session, when queried in
12247  * the disconnected state.
12248  *
12249  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
12250  * STA mode. This represents the Target power in dBm for for transmissions done
12251  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
12252  * Represents the count of last connected session, when queried in the
12253  * disconnected state.
12254  *
12255  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
12256  * in the STA mode. This represents the Nested attribute representing the
12257  * overflow counts of each receive buffer allocated to the hardware during the
12258  * STA's connection. The number of hw buffers might vary for each WLAN
12259  * solution and hence this attribute represents the nested array of all such
12260  * HW buffer count. This data is maintained per connect session. Represents
12261  * the count of last connected session, when queried in the disconnected state.
12262  *
12263  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
12264  * allowed as per the regulatory requirements for the current or last connected
12265  * session. Used in the STA mode.
12266  *
12267  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
12268  * (dBm) used by the station in its latest unicast frame while communicating
12269  * to the AP in the connected state. When queried in the disconnected state,
12270  * this represents the TX power used by the STA with last AP communication
12271  * when in connected state.
12272  *
12273  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
12274  * level used to adjust the RX sensitivity. Represents the current ANI level
12275  * when queried in the connected state. When queried in the disconnected
12276  * state, this corresponds to the latest ANI level at the instance of
12277  * disconnection.
12278  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
12279  * only. This represents the number of group addressed robust management frames
12280  * received from this station with an invalid MIC or a missing MME when PMF is
12281  * enabled.
12282  *
12283  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
12284  * only. This represents the number of group addressed robust management frames
12285  * received from this station with the packet number less than or equal to the
12286  * last received packet number when PMF is enabled.
12287  *
12288  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
12289  * mode only. This represents the number of Beacon frames received from this
12290  * station with an invalid MIC or a missing MME when beacon protection is
12291  * enabled.
12292  *
12293  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
12294  * only. This represents number of Beacon frames received from this station with
12295  * the packet number less than or equal to the last received packet number when
12296  * beacon protection is enabled.
12297  *
12298  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
12299  * STA mode only. Driver uses this attribute to populate the connection failure
12300  * reason codes and the values are defined in
12301  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
12302  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
12303  * connection failure from driver. The driver shall not include this attribute
12304  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
12305  * connection failure observed in the last attempted connection.
12306  *
12307  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
12308  * used by the station in its last TX frame while communicating to the AP in the
12309  * connected state. When queried in the disconnected state, this represents the
12310  * rate used by the STA in the last TX frame to the AP when it was connected.
12311  * This attribute is used for STA mode only.
12312  *
12313  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
12314  * This represents the rate index used by the STA for the last TX frame to the
12315  * AP. When queried in the disconnected state, this gives the last RIX used by
12316  * the STA in the last TX frame to the AP when it was connected.
12317  *
12318  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
12319  * mode only. This represents the number of times the STA TSF goes out of sync
12320  * from the AP after the connection. If queried in the disconnected state, this
12321  * gives the count of TSF out of sync for the last connection.
12322  *
12323  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
12324  * mode only. This represents the roam trigger reason for the last roaming
12325  * attempted by the firmware. This can be queried either in connected state or
12326  * disconnected state. Each bit of this attribute represents the different
12327  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
12328  *
12329  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
12330  * only. This represents the roam fail reason for the last failed roaming
12331  * attempt by the firmware. Different roam failure reason codes are specified
12332  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
12333  * connected state or disconnected state.
12334  *
12335  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
12336  * STA mode only. This represents the roam invoke fail reason for the last
12337  * failed roam invoke. Different roam invoke failure reason codes
12338  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
12339  * queried either in connected state or disconnected state.
12340  *
12341  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
12342  * This represents the average congestion duration of uplink frames in MAC
12343  * queue in unit of ms. This can be queried either in connected state or
12344  * disconnected state.
12345  *
12346  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
12347  * attribute, used in AP mode. This represents the MPDU packet count per MCS
12348  * rate value of TX packets. Every index of this nested attribute corresponds
12349  * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
12350  * queried in connected state.
12351  *
12352  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
12353  * attribute, used in AP mode. This represents the MPDU packet count per MCS
12354  * rate value of RX packets. Every index of this nested attribute corresponds
12355  * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
12356  * queried in connected state.
12357  */
12358 enum qca_wlan_vendor_attr_get_sta_info {
12359 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
12360 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
12361 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
12362 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
12363 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
12364 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
12365 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
12366 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
12367 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
12368 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
12369 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
12370 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
12371 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
12372 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
12373 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
12374 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
12375 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
12376 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
12377 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
12378 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
12379 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
12380 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
12381 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
12382 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
12383 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
12384 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
12385 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
12386 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
12387 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
12388 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
12389 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
12390 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
12391 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
12392 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
12393 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
12394 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
12395 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
12396 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
12397 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
12398 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
12399 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
12400 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
12401 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
12402 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
12403 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
12404 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
12405 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
12406 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
12407 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
12408 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
12409 
12410 	/* keep last */
12411 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
12412 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
12413 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
12414 };
12415 
12416 /**
12417  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
12418  * Used when the driver triggers the STA to disconnect from the AP.
12419  *
12420  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
12421  * disconnection with the AP due to unspecified reasons.
12422  *
12423  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
12424  * disconnection with the AP due to a roaming failure. This roaming is triggered
12425  * internally (host driver/firmware).
12426  *
12427  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
12428  * the AP when the user/external triggered roaming fails.
12429  *
12430  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
12431  * by the host driver whenever gateway reachability failure is detected and the
12432  * driver disconnects with AP.
12433  *
12434  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
12435  * the AP on a channel switch announcement from it with an unsupported channel.
12436  *
12437  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
12438  * with indoor channels disabled and if the STA is connected on one of these
12439  * disabled channels, the host driver disconnected the STA with this reason
12440  * code.
12441  *
12442  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
12443  * explicit request from the user to disable the current operating channel.
12444  *
12445  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
12446  * the internal host driver/firmware recovery.
12447  *
12448  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
12449  * a timeout for the key installations from the user space.
12450  *
12451  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
12452  * STA on a band change request from the user space to a different band from the
12453  * current operation channel/band.
12454  *
12455  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
12456  * interface down trigger from the user space.
12457  *
12458  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
12459  * STA on getting continuous transmission failures for multiple Data frames.
12460  *
12461  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
12462  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
12463  * represents inactivity from AP on such transmissions.
12464 
12465  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
12466  * disconnection when SA Query times out (AP does not respond to SA Query).
12467  *
12468  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
12469  * STA on missing the beacons continuously from the AP.
12470  *
12471  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
12472  * able to move to the channel mentioned by the AP in CSA.
12473  *
12474  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
12475  */
12476 enum qca_disconnect_reason_codes {
12477 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
12478 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
12479 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
12480 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
12481 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
12482 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
12483 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
12484 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
12485 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
12486 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
12487 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
12488 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
12489 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
12490 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
12491 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
12492 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
12493 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
12494 };
12495 
12496 /**
12497  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
12498  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
12499  *
12500  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
12501  * This attribute represents the driver specific reason codes (local
12502  * driver/firmware initiated reasons for disconnection) defined
12503  * in enum qca_disconnect_reason_codes.
12504  */
12505 enum qca_wlan_vendor_attr_driver_disconnect_reason {
12506 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
12507 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
12508 
12509 	/* keep last */
12510 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
12511 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
12512 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
12513 };
12514 
12515 /**
12516  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
12517  *
12518  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
12519  */
12520 enum qca_wlan_tspec_operation {
12521 	QCA_WLAN_TSPEC_ADD = 0,
12522 	QCA_WLAN_TSPEC_DEL = 1,
12523 	QCA_WLAN_TSPEC_GET = 2,
12524 };
12525 
12526 /**
12527  * enum qca_wlan_tspec_direction - Direction in TSPEC
12528  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
12529  *
12530  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
12531  */
12532 enum qca_wlan_tspec_direction {
12533 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
12534 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
12535 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
12536 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
12537 };
12538 
12539 /**
12540  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
12541  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
12542  *
12543  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
12544  */
12545 enum qca_wlan_tspec_ack_policy {
12546 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
12547 	QCA_WLAN_TSPEC_NO_ACK = 1,
12548 	/* Reserved */
12549 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
12550 };
12551 
12552 /**
12553  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
12554  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
12555  *
12556  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
12557  * u8 attribute. Specify the TSPEC operation of this request. Possible values
12558  * are defined in enum qca_wlan_tspec_operation.
12559  * Mandatory attribute for all kinds of config TSPEC requests.
12560  *
12561  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
12562  * u8 attribute. TS ID. Possible values are 0-7.
12563  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
12564  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
12565  *
12566  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
12567  * u8 attribute. Direction of data carried by the TS. Possible values are
12568  * defined in enum qca_wlan_tspec_direction.
12569  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12570  *
12571  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
12572  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
12573  * with the TS. set - enabled, not set - disabled.
12574  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12575  *
12576  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
12577  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
12578  * belonging to this TS. Possible values are 0-7.
12579  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12580  *
12581  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
12582  * u8 attribute. Indicate whether MAC acknowledgements are required for
12583  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
12584  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
12585  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12586  *
12587  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
12588  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
12589  * belonging to this TS.
12590  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12591  *
12592  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
12593  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
12594  * belonging to this TS.
12595  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12596  *
12597  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
12598  * u32 attribute. Specify the minimum interval in microseconds between the
12599  * start of two successive SPs.
12600  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12601  *
12602  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
12603  * u32 attribute. Specify the maximum interval in microseconds between the
12604  * start of two successive SPs.
12605  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12606  *
12607  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
12608  * u32 attribute. Specify the minimum interval in microseconds that can elapse
12609  * without arrival or transfer of an MPDU belonging to the TS before this TS
12610  * is deleted by the MAC entity at the HC.
12611  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12612  *
12613  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
12614  * u32 attribute. Specify the minimum interval in microseconds that can elapse
12615  * without arrival or transfer of an MSDU belonging to the TS before the
12616  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
12617  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
12618  * interval is always less than or equal to the inactivity interval.
12619  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12620  *
12621  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
12622  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
12623  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12624  * bounds of this TSPEC.
12625  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12626  *
12627  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
12628  * u32 attribute. Indicate the average data rate in bps specified at the MAC
12629  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
12630  * bounds of this TSPEC.
12631  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12632  *
12633  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
12634  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
12635  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
12636  * the bounds of this TSPEC.
12637  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12638  *
12639  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
12640  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
12641  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
12642  * value of 0 indicates that there are no bursts.
12643  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12644  *
12645  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
12646  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
12647  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
12648  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
12649  *
12650  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
12651  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
12652  * and above the stated application rates required to transport an MSDU/A-MSDU
12653  * belonging to the TS in this TSPEC.
12654  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12655  */
12656 enum qca_wlan_vendor_attr_config_tspec {
12657 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
12658 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
12659 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
12660 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
12661 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
12662 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
12663 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
12664 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
12665 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
12666 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
12667 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
12668 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
12669 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
12670 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
12671 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
12672 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
12673 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
12674 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
12675 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
12676 
12677 	/* keep last */
12678 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
12679 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
12680 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
12681 };
12682 
12683 /**
12684  * enum qca_wlan_medium_assess_type - Type of medium assess request
12685  *
12686  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
12687  */
12688 enum qca_wlan_medium_assess_type {
12689 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
12690 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
12691 };
12692 
12693 /**
12694  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
12695  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
12696  *
12697  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
12698  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
12699  * Specify the type of medium assess request and indicate its type in response.
12700  * Possible values are defined in enum qca_wlan_medium_assess_type.
12701  *
12702  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
12703  * u32 attribute. Mandatory in CCA request.
12704  * Specify the assessment period in terms of seconds. Assessment result will be
12705  * sent as the response to the CCA request after the assessment period.
12706  *
12707  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
12708  * u32 attribute. Mandatory in response to CCA request.
12709  * Total timer tick count of the assessment cycle.
12710  *
12711  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
12712  * u32 attribute. Mandatory in response to CCA request.
12713  * Timer tick count of idle time in the assessment cycle.
12714  *
12715  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
12716  * u32 attribute. Mandatory in response to CCA request.
12717  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
12718  *
12719  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
12720  * u32 attribute. Mandatory in response to CCA request.
12721  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
12722  *
12723  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
12724  * s32 attribute. Mandatory in response to CCA request.
12725  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
12726  *
12727  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
12728  * s32 attribute. Mandatory in response to CCA request.
12729  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12730  *
12731  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12732  * u8 attribute. Mandatory in congestion report request.
12733  * 1-enable 0-disable.
12734  *
12735  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12736  * u8 attribute. Mandatory in congestion report enable request and will be
12737  * ignored if present in congestion report disable request. Possible values are
12738  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12739  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12740  * congestion percentage reaches the configured threshold.
12741  *
12742  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12743  * u8 attribute. Optional in congestion report enable request and will be
12744  * ignored if present in congestion report disable request.
12745  * Specify the interval of congestion report event in terms of seconds. Possible
12746  * values are 1-255. Default value 1 will be used if this attribute is omitted
12747  * or using invalid values.
12748  *
12749  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12750  * u8 attribute. Mandatory in congestion report event.
12751  * Indicate the actual congestion percentage. Possible values are 0-100.
12752  */
12753 enum qca_wlan_vendor_attr_medium_assess {
12754 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12755 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12756 
12757 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12758 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12759 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12760 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12761 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12762 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12763 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12764 
12765 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12766 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12767 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12768 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12769 
12770 	/* keep last */
12771 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12772 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12773 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12774 };
12775 
12776 /**
12777  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12778  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12779  *
12780  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12781  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12782  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12783  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
12784  *
12785  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12786  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
12787  *
12788  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12789  * u8 attribute, required. indicates group id of Tx VDEV
12790  *
12791  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12792  * Nested attribute. This attribute shall be used by the driver to send
12793  * group information. The attributes defined in enum
12794  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12795  * are nested in this attribute.
12796  */
12797 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12798 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12799 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
12800 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12801 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12802 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
12803 
12804 	/* keep last */
12805 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12806 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12807 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12808 };
12809 
12810 /**
12811  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12812  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12813  *
12814  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12815  * u32 attribute, required. contains interface index.
12816  *
12817  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12818  * u8 attribute, required. 0 - means vdev is in down state.
12819  * 1- means vdev is in up state.
12820  */
12821 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12822 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12823 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12824 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12825 
12826 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12827 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12828 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12829 };
12830 
12831 /**
12832  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12833  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12834  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12835  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12836  * frame
12837  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12838  * Request frame.
12839  */
12840 enum qca_wlan_vendor_oci_override_frame_type {
12841 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12842 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12843 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12844 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12845 };
12846 
12847 /**
12848  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12849  *
12850  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12851  * STA interface has to be given while selecting the connection policies
12852  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12853  * An interface is set as primary through the attribute
12854  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12855  * applicable if the primary interface has not been set earlier.
12856  *
12857  * The intention is not to downgrade the primary STA performance, such as:
12858  * - Do not reduce the number of TX/RX chains of primary connection.
12859  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12860  *   chains.
12861  * - If using MCC, should set the MCC duty cycle of the primary connection to
12862  *   be higher than the secondary connection.
12863  *
12864  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12865  * subsequent STA connection shall be chosen to balance with the existing
12866  * concurrent STA's performance.
12867  * Such as
12868  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12869  *   capability.
12870  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12871  *   to the secondary.
12872  * - Prefer BSSID candidates which will help provide the best "overall"
12873  *   performance for all the STA connections.
12874  */
12875 enum qca_wlan_concurrent_sta_policy_config {
12876 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12877 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12878 };
12879 
12880 /**
12881  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
12882  *
12883  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12884  * interface.
12885  *
12886  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12887  * to meet gaming audio latency requirements.
12888  *
12889  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12890  * concurrencies to meet lossless audio streaming requirements.
12891  *
12892  * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
12893  * XR (eXtended Reality) requirements.
12894  */
12895 enum qca_wlan_concurrent_ap_policy_config {
12896 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12897 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12898 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
12899 	QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
12900 };
12901 
12902 /**
12903  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12904  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12905  *
12906  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
12907  * u8 attribute. Configures the concurrent STA policy configuration.
12908  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
12909 
12910  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12911  * u8 attribute. Configures the concurrent AP policy configuration.
12912  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
12913  */
12914 enum qca_wlan_vendor_attr_concurrent_policy {
12915 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12916 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12917 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
12918 
12919 	/* keep last */
12920 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12921 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12922 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
12923 
12924 };
12925 
12926 /* Compatibility defines for previously used enum
12927  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12928  * in any new implementation.
12929  */
12930 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12931 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12932 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12933 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12934 #define qca_wlan_vendor_attr_concurrent_sta_policy \
12935 	qca_wlan_vendor_attr_concurrent_policy
12936 
12937 /**
12938  * enum qca_sta_connect_fail_reason_codes - Defines values carried
12939  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12940  * attribute.
12941  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
12942  * for unicast probe request.
12943  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12944  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12945  * ath request.
12946  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12947  * received from AP.
12948  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
12949  * request.
12950  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12951  * assoc request.
12952  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
12953  * received from AP.
12954  */
12955 enum qca_sta_connect_fail_reason_codes {
12956 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12957 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12958 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12959 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12960 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12961 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12962 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12963 };
12964 
12965 /**
12966  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12967  * OCI override request. These attributes are used inside nested attribute
12968  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12969  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12970  *
12971  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12972  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12973  * attribute to specify the frame type in which the OCI is to be overridden.
12974  *
12975  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12976  * OCI frequency (in MHz) to override in the specified frame type.
12977  */
12978 enum qca_wlan_vendor_attr_oci_override {
12979 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12980 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12981 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12982 
12983 	/* keep last */
12984 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12985 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12986 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12987 };
12988 
12989 /**
12990  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12991  * filters defined in this enum are used in attribute
12992  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12993  *
12994  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12995  * shall filter the channels which are not usable because of coexistence with
12996  * cellular radio.
12997  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12998  * shall filter the channels which are not usable because of existing active
12999  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
13000  *
13001  */
13002 enum qca_wlan_vendor_usable_channels_filter {
13003 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
13004 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
13005 };
13006 
13007 /**
13008  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
13009  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
13010  *
13011  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
13012  * u32 attribute, required. Indicates the center frequency of the primary
13013  * channel in MHz.
13014  *
13015  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
13016  * u32 attribute. Indicates the center frequency of the primary segment of the
13017  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
13018  * 160 MHz, and 320 MHz channels.
13019  *
13020  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
13021  * u32 attribute. Indicates the center frequency of the secondary segment of
13022  * 80+80 channel in MHz. This attribute is required only when
13023  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
13024  *
13025  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
13026  * u32 attribute, required. Indicates the bandwidth of the channel, possible
13027  * values are defined in enum nl80211_chan_width.
13028  *
13029  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
13030  * u32 attribute, required. Indicates all the interface types for which this
13031  * channel is usable. This attribute encapsulates bitmasks of interface types
13032  * defined in enum nl80211_iftype.
13033  *
13034  */
13035 enum qca_wlan_vendor_attr_chan_info {
13036 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
13037 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
13038 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
13039 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
13040 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
13041 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
13042 
13043 	/* keep last */
13044 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
13045 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
13046 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
13047 };
13048 
13049 /**
13050  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
13051  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
13052  *
13053  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
13054  * u32 attribute. Indicates the bands from which the channels should be reported
13055  * in response. This attribute encapsulates bit masks of bands defined in enum
13056  * nl80211_band. Optional attribute, if not present in the request the driver
13057  * shall return channels from all supported bands.
13058  *
13059  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
13060  * u32 attribute. Indicates all the interface types for which the usable
13061  * channels information is requested. This attribute encapsulates bitmasks of
13062  * interface types defined in enum nl80211_iftype. Optional attribute, if not
13063  * present in the request the driver shall send information of all supported
13064  * interface modes.
13065  *
13066  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
13067  * u32 attribute. This attribute carries information of all filters that shall
13068  * be applied while populating usable channels information by the driver. This
13069  * attribute carries bit masks of different filters defined in enum
13070  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
13071  * in the request the driver shall send information of channels without applying
13072  * any of the filters that can be configured through this attribute.
13073  *
13074  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
13075  * Nested attribute. This attribute shall be used by the driver to send
13076  * usability information of each channel. The attributes defined in enum
13077  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
13078  */
13079 enum qca_wlan_vendor_attr_usable_channels {
13080 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
13081 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
13082 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
13083 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
13084 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
13085 
13086 	/* keep last */
13087 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
13088 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
13089 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
13090 };
13091 
13092 /**
13093  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
13094  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
13095  *
13096  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
13097  *	the list of radar history entries.
13098  *	Each entry contains freq, timestamp, and radar signal detect flag.
13099  *	The driver shall add an entry when CAC has finished, or radar signal
13100  *	has been detected post AP beaconing. The driver shall maintain at least
13101  *	8 entries in order to save CAC result for a 160 MHz channel.
13102  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
13103  *	Channel frequency in MHz.
13104  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
13105  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
13106  *	or radar detection.
13107  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
13108  *	This flag indicates radar signal has been detected.
13109  */
13110 enum qca_wlan_vendor_attr_radar_history {
13111 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
13112 
13113 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
13114 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
13115 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
13116 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
13117 
13118 	/* keep last */
13119 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
13120 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
13121 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
13122 };
13123 
13124 /**
13125  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
13126  *
13127  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
13128  *	target exited MCC state and cleared the quota information. In the
13129  *	command it clears MCC quota setting and restores adaptive scheduling.
13130  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
13131  *      will not be changed.
13132  *      This quota type is present in command/event.
13133  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
13134  *      and the target may change the quota based on the data activity.
13135  *      This quota type is only present in event.
13136  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
13137  *      by the target for low latency.
13138  *      This quota type is only present in command.
13139  */
13140 enum qca_wlan_vendor_mcc_quota_type {
13141 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
13142 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
13143 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
13144 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
13145 };
13146 
13147 /**
13148  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
13149  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
13150  * quota information or as a command to set the required MCC quota for an
13151  * interface.
13152  *
13153  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
13154  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
13155  * In a command this specifies the MCC quota type to be set for the interface.
13156  * In an event this provides the current quota type in force.
13157  * This is required in a command and an event.
13158  *
13159  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
13160  * the list of channel quota entries.
13161  * In an event each entry contains the frequency and respective time quota for
13162  * all the MCC interfaces.
13163  * In a command it specifies the interface index and respective time quota.
13164  * In a command only one entry (ifindex, quota pair) may be specified.
13165  *
13166  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
13167  * Channel frequency in MHz. This is present only in an event.
13168  *
13169  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
13170  * Channel time quota expressed as percentage.
13171  * This is present in an event and a command.
13172  * In an command, the user shall specify the quota to be allocated for the
13173  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
13174  * In an event this provides the existing quota for the channel.
13175  *
13176  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
13177  * Specifies the interface index (netdev) for which the corresponding
13178  * configurations are applied. This is required in a command only. Only one
13179  * interface index may be specified. If not specified, the configuration is
13180  * rejected.
13181  *
13182  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
13183  * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
13184  * low latency mode. The firmware will do optimization for low
13185  * latency in Multi-Channel concurrency state if enabled. And all existing
13186  * user quota setting will be overwritten by the target.
13187  * 0 - disable(default), 1 - enable.
13188  * It is only present in a command with quota type of
13189  * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
13190  */
13191 enum qca_wlan_vendor_attr_mcc_quota {
13192 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
13193 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
13194 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
13195 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
13196 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
13197 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
13198 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
13199 
13200 	/* keep last */
13201 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
13202 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
13203 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
13204 };
13205 
13206 /**
13207  * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
13208  * are used by the attribute
13209  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
13210  *
13211  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
13212  *  invoke roam.
13213  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
13214  *  detection failed when the roam trigger.
13215  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
13216  */
13217 
13218 enum qca_wlan_roam_stats_invoke_reason {
13219 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
13220 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
13221 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
13222 };
13223 
13224 /**
13225  * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
13226  * values are used by the attribute
13227  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
13228  *
13229  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
13230  *  roam by kickout.
13231  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
13232  *  trigger by kickout.
13233  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
13234  *  roam trigger by kickout.
13235  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
13236  *  roam trigger by kickout.
13237  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
13238  *  disappeared, and all TX is failing when roam trigger by kickout.
13239  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
13240  *   timeout when roam trigger by kickout.
13241  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
13242  *  peer has roamed to a repeater.
13243  */
13244 enum qca_wlan_roam_stats_tx_failures_reason {
13245 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
13246 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
13247 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
13248 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
13249 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
13250 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
13251 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
13252 };
13253 
13254 /**
13255  * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
13256  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
13257  *
13258  * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
13259  *  detailed reason for roam scan being aborted.
13260  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
13261  *  started due to high data RSSI during LOW-RSSI roaming.
13262  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
13263  *  started due to good link speed during LOW-RSSI roaming.
13264  * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
13265  *  due to high data RSSI during background roaming.
13266  * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
13267  *  started due to high beacon RSSI during background roaming
13268  */
13269 enum qca_wlan_roam_stats_abort_reason {
13270 	QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
13271 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
13272 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
13273 	QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
13274 	QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
13275 };
13276 
13277 /**
13278  * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
13279  * These values are used by the attribute
13280  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
13281  *
13282  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
13283  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
13284  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
13285  *  This is generally used in BTM events to indicate BTM frame exchange logs.
13286  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
13287  *  from 2.4 GHz to 5 GHz or 6 GHz
13288  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
13289  *  5 GHz to 6 GHz
13290  */
13291 enum qca_wlan_roam_stats_scan_type {
13292 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
13293 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
13294 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
13295 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
13296 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
13297 };
13298 
13299 /**
13300  * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
13301  * These values are used by the attribute
13302  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
13303  *
13304  * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
13305  *  detailed roam scan type.
13306  * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
13307  * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
13308  */
13309 enum qca_wlan_roam_stats_scan_dwell_type {
13310 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
13311 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
13312 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
13313 };
13314 
13315 /**
13316  * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
13317  * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
13318  */
13319 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
13320 	/* 32-bit unsigned value to indicate center frequency of the primary
13321 	 * channel in MHz for each roam scan channel.
13322 	 */
13323 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
13324 	/* 8-bit unsigned value to indicate channel scan type for each
13325 	 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
13326 	 */
13327 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
13328 	/* 32-bit unsigned value to indicate maximum scan time in milliseconds
13329 	 * for each roam scan channel.
13330 	 */
13331 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
13332 
13333 	/* keep last */
13334 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
13335 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
13336 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
13337 };
13338 
13339 /**
13340  * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
13341  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
13342  *
13343  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame
13344  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame
13345  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
13346  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
13347  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
13348  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
13349  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
13350  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
13351  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame
13352  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame
13353  */
13354 enum qca_wlan_roam_stats_frame_subtype {
13355 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1,
13356 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2,
13357 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
13358 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
13359 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
13360 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
13361 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
13362 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
13363 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9,
13364 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10,
13365 };
13366 
13367 /* Compatibility defines for previously used names.
13368  * These values should not be used in any new implementation.
13369  */
13370 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \
13371 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP
13372 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \
13373 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP
13374 
13375 /**
13376  * enum roam_frame_status - Specifies the valid values the vendor roam frame
13377  * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
13378  *
13379  * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
13380  *  sent or received successfully.
13381  * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
13382  *  receiving failed.
13383  */
13384 enum qca_wlan_roam_stats_frame_status {
13385 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
13386 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
13387 };
13388 
13389 /**
13390  * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
13391  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
13392  */
13393 enum qca_wlan_vendor_attr_roam_stats_frame_info {
13394 	/* 8-bit unsigned value to indicate the frame subtype during
13395 	 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
13396 	 */
13397 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
13398 	/* 8-bit unsigned value to indicate the frame is successful or failed
13399 	 * during roaming, one of the values in
13400 	 * qca_wlan_roam_stats_frame_status.
13401 	 */
13402 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
13403 	/* 64-bit unsigned value to indicate the timestamp for frame of
13404 	 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
13405 	 * when sent or received during roaming, timestamp in milliseconds
13406 	 * from system boot.
13407 	 */
13408 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
13409 	/* This attribute indicates a 6-byte MAC address representing
13410 	 * the BSSID of the AP.
13411 	 * For non-MLO scenario, it indicates the AP BSSID.
13412 	 * For MLO scenario, it indicates the AP BSSID which may be the primary
13413 	 * link BSSID or a nonprimary link BSSID.
13414 	 */
13415 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5,
13416 
13417 
13418 	/* keep last */
13419 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
13420 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
13421 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
13422 };
13423 
13424 /**
13425  * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
13426  * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
13427  */
13428 enum qca_wlan_vendor_attr_roam_stats_info {
13429 	/* 64-bit unsigned value to indicate the timestamp when roam was
13430 	 * triggered by the firmware, timestamp in milliseconds from system
13431 	 * boot.
13432 	 */
13433 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
13434 	/* 32-bit unsigned value to indicate the roam trigger reason for the
13435 	 * last roaming attempted by the firmware. This can be queried either
13436 	 * in a connected state or disconnected state. The values of this
13437 	 * attribute represent the roam trigger reason codes, which
13438 	 * are defined in enum qca_roam_reason.
13439 	 */
13440 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
13441 	/* 8-bit unsigned value to indicate percentage of packets for which
13442 	 * the RX rate is lower than the RX rate threshold in total RX packets,
13443 	 * used for roaming trigger by per.
13444 	 */
13445 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
13446 	/* 8-bit unsigned value to indicate percentage of packets for which
13447 	 * the TX rate is lower than TX rate threshold in total TX packets,
13448 	 * used for roaming trigger by per.
13449 	 */
13450 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
13451 	/* 32-bit unsigned value to indicate final beacon miss count for
13452 	 * trigger reason of beacon miss.
13453 	 */
13454 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
13455 	/* 32-bit unsigned value to indicate consecutive beacon miss count
13456 	 * for trigger reason of beacon miss.
13457 	 */
13458 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
13459 	/* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
13460 	 * reason of beacon miss, 0 - success, 1 - fail.
13461 	 * If QOS-NULL TX status is successful, beacon miss final count and
13462 	 * consecutive beacon miss count will be reset to zero, and roam will
13463 	 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
13464 	 * count and consecutive beacon miss count continue to calculate until
13465 	 * roaming trigger by beacon miss.
13466 	 */
13467 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
13468 	/* 8-bit signed value to indicate connected AP RSSI in dBm
13469 	 * for trigger reason of poor RSSI.
13470 	 */
13471 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
13472 	/* 8-bit signed value to indicate RSSI threshold value in dBm
13473 	 * for trigger reason of poor RSSI.
13474 	 */
13475 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
13476 	/* 8-bit unsigned value to indicate RX link speed status
13477 	 * for trigger reason of poor RSSI, 0 - good link speed,
13478 	 * 1 - bad link speed.
13479 	 */
13480 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
13481 	/* 8-bit signed value to indicate connected AP RSSI in dBm
13482 	 * for trigger reason of better RSSI.
13483 	 */
13484 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
13485 	/* 8-bit signed value to indicate RSSI threshold value in dBm
13486 	 * for trigger reason of better RSSI.
13487 	 */
13488 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
13489 	/* 32-bit unsigned value to indicate RX throughput in bytes per second
13490 	 * for trigger reason of congestion.
13491 	 */
13492 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
13493 	/* 32-bit unsigned value to indicate TX throughput in bytes per second
13494 	 * for trigger reason of congestion.
13495 	 */
13496 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
13497 	/* 8-bit unsigned value to indicate roamable AP count
13498 	 * for trigger reason of congestion.
13499 	 */
13500 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
13501 	/* 8-bit unsigned value to indicate invoke reason, one of the values
13502 	 * defined in qca_wlan_roam_stats_invoke_reason.
13503 	 */
13504 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
13505 	/* 8-bit unsigned value to indicate request mode for trigger reason
13506 	 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
13507 	 */
13508 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
13509 	/* 32-bit unsigned value to indicate disassociate time in milliseconds
13510 	 * for trigger reason of BTM.
13511 	 */
13512 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
13513 	/* 32-bit unsigned value to indicate preferred candidate list valid
13514 	 * interval in milliseconds for trigger reason of BTM.
13515 	 */
13516 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
13517 	/* 8-bit unsigned value to indicate the number of preferred
13518 	 * candidates for trigger reason of BTM.
13519 	 */
13520 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
13521 	/* 8-bit unsigned value to indicate response status for trigger
13522 	 * reason of BTM, values are defined in IEEE Std 802.11-2020,
13523 	 * Table 9-428 (BTM status code definitions).
13524 	 */
13525 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
13526 	/* 32-bit unsigned value to indicate BSS termination timeout value
13527 	 * in milliseconds for trigger reason of BTM.
13528 	 */
13529 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
13530 	/* 32-bit unsigned value to indicate MBO associate retry timeout
13531 	 * value in milliseconds for trigger reason of BTM.
13532 	 */
13533 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
13534 	/* 8-bit unsigned value to indicate dialog token number
13535 	 * for trigger reason of BTM.
13536 	 */
13537 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
13538 	/* 8-bit unsigned value to indicate percentage of connected AP
13539 	 * channel congestion utilization for trigger reason of BSS load.
13540 	 */
13541 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
13542 	/* 8-bit unsigned value to indicate disconnection type
13543 	 * for trigger reason of disconnection. 1 - Deauthentication,
13544 	 * 2 - Disassociation.
13545 	 */
13546 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
13547 	/* 16-bit unsigned value to indicate deauthentication or disassociation
13548 	 * reason for trigger reason of disconnection, values are defined
13549 	 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
13550 	 */
13551 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
13552 	/* 32-bit unsigned value to indicate milliseconds of roam scan
13553 	 * periodicity when needing to roam to find a better AP for trigger
13554 	 * reason of periodic timer.
13555 	 */
13556 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
13557 	/* 8-bit signed value to indicate connected AP RSSI in dBm for
13558 	 * trigger reason of background scan.
13559 	 */
13560 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
13561 	/* 8-bit signed value to indicate data RSSI in dBm for trigger reason
13562 	 * of background scan.
13563 	 */
13564 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
13565 	/* 8-bit signed value to indicate data RSSI threshold in dBm
13566 	 * for trigger reason of background scan.
13567 	 */
13568 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
13569 	/* 32-bit unsigned value to indicate consecutive TX failure threshold
13570 	 * for trigger reason of TX failures.
13571 	 */
13572 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
13573 	/* 8-bit unsigned value to indicate TX failure reason for trigger
13574 	 * reason of TX failures, one of the values defined in
13575 	 *  qca_wlan_roam_stats_tx_failures_reason.
13576 	 */
13577 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
13578 	/* 8-bit unsigned value to indicate detail abort reason. One of the
13579 	 * values in enum qca_wlan_roam_stats_abort_reason.
13580 	 */
13581 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
13582 	/* 8-bit signed value to indicate data RSSI in dBm when aborting the
13583 	 * roam scan.
13584 	 */
13585 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
13586 	/* 8-bit signed value to indicate data RSSI threshold in dBm when
13587 	 * aborting the roam scan.
13588 	 */
13589 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
13590 	/* 8-bit unsigned value to indicate data RSSI threshold in RX link
13591 	 * speed status when aborting the roam scan.
13592 	 * 0 - good link speed, 1 - bad link speed
13593 	 */
13594 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
13595 	/* 8-bit unsigned value to indicate roaming scan type.
13596 	 * One of the values in enum qca_wlan_roam_stats_scan_type.
13597 	 */
13598 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
13599 	/* 8-bit unsigned value to indicate roaming result, used in STA mode
13600 	 * only.
13601 	 * 0-Roaming is successful, 1-Roaming is failed
13602 	 */
13603 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
13604 	/* 8-bit unsigned value to indicate the roam fail reason for the
13605 	 * last failed roaming attempt by the firmware. Different roam failure
13606 	 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
13607 	 * This can be queried either in connected state or disconnected state.
13608 	 */
13609 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
13610 	/* Nested attribute. Indicate roam scan info for each channel, the
13611 	 * attributes defined in enum
13612 	 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
13613 	 * this attribute.
13614 	 */
13615 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
13616 	/* 32-bit unsigned value to indicate total scan time during roam scan
13617 	 * all channels, time in milliseconds.
13618 	 */
13619 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
13620 	/* Nested attribute. This attribute shall be used by the driver to
13621 	 * send roam information of each subtype. The attributes defined in
13622 	 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
13623 	 * this attribute.
13624 	 */
13625 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
13626 	/* 6-byte MAC address used by the driver to send roam stats information
13627 	 * of the original AP BSSID. The original AP is the connected AP before
13628 	 * roam happens, regardless of the roam resulting in success or failure.
13629 	 * This attribute is only present when
13630 	 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13631 	 * 0 (success) or 1 (failure).
13632 	 * For non-MLO scenario, it indicates the original connected AP BSSID.
13633 	 * For MLO scenario, it indicates the original BSSID of the link
13634 	 * for which the reassociation occurred during the roam.
13635 	 */
13636 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
13637 	/* 6-byte MAC address used by the driver to send roam stats information
13638 	 * of the roam candidate AP BSSID when roam failed. This is only present
13639 	 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13640 	 * 1 (failure). If the firmware updates more than one candidate AP BSSID
13641 	 * to the driver, the driver only fills the last candidate AP BSSID and
13642 	 * reports it to user space.
13643 	 * For non-MLO scenario, it indicates the last candidate AP BSSID.
13644 	 * For MLO scenario, it indicates the AP BSSID which may be the primary
13645 	 * link BSSID or a nonprimary link BSSID.
13646 	 */
13647 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
13648 	/* 6-byte MAC address used by the driver to send roam stats information
13649 	 * of the roamed AP BSSID when roam succeeds. This is only present when
13650 	 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
13651 	 * 0 (success).
13652 	 * For non-MLO scenario, it indicates the new AP BSSID to which has
13653 	 * been successfully roamed.
13654 	 * For MLO scenario, it indicates the new AP BSSID of the link on
13655 	 * which the reassociation occurred during the roam.
13656 	 */
13657 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
13658 
13659 	/* keep last */
13660 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
13661 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
13662 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
13663 };
13664 
13665 /**
13666  * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
13667  * report cached roam info from the driver to user space, enum values are used
13668  * for netlink attributes sent with the
13669  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
13670  */
13671 enum qca_wlan_vendor_attr_roam_cached_stats {
13672 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
13673 	/* Nested attribute, this attribute contains nested array roam info
13674 	 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
13675 	 */
13676 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
13677 
13678 	/* keep last */
13679 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
13680 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
13681 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
13682 };
13683 
13684 /**
13685  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
13686  * radio configurations present in each radio combination.
13687  *
13688  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
13689  * the band info in the radio configuration. Uses the enum qca_set_band values.
13690  *
13691  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
13692  * the number of antennas info in the radio configuration.
13693  */
13694 enum qca_wlan_vendor_attr_supported_radio_cfg {
13695 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
13696 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
13697 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
13698 
13699 	/* keep last */
13700 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
13701 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
13702 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
13703 };
13704 
13705 /**
13706  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
13707  * radio combinations supported by the device.
13708  *
13709  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
13710  * provides the radio configurations present in the radio combination.
13711  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
13712  * This attribute provides the values for radio combination matrix.
13713  * For standalone config, the number of config values is one and the config
13714  * carries the band and antenna information for standalone configuration. For
13715  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
13716  * configuration the number of config values is two and the config carries the
13717  * band and antenna information for each simultaneous radio.
13718  */
13719 enum qca_wlan_vendor_attr_radio_combination {
13720 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
13721 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
13722 
13723 	/* keep last */
13724 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
13725 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
13726 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
13727 };
13728 
13729 /**
13730  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
13731  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
13732  *
13733  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
13734  * provides the radio combinations supported by the device.
13735  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
13736  * For example, in the radio combination matrix for a device which has two
13737  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
13738  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
13739  * combinations is 5 and the radio combinations are
13740  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
13741  * {{5 GHz 2X2}}, //Standalone 5 GHz
13742  * {{6 GHz 2X2}}, //Standalone 6 GHz
13743  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
13744  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
13745  * The band and antenna info together as nested data provides one radio config.
13746  * Standalone configuration has one config with band and antenna nested data.
13747  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
13748  * have two nested band and antenna info data.
13749  */
13750 enum qca_wlan_vendor_attr_radio_combination_matrix {
13751 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
13752 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
13753 
13754 	/* keep last */
13755 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
13756 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
13757 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
13758 };
13759 
13760 /**
13761  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
13762  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
13763  *
13764  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
13765  * Enable mDNS offload. This attribute is mandatory to enable
13766  * mDNS offload feature. If this attribute is not present, mDNS offload
13767  * is disabled.
13768  *
13769  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
13770  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
13771  * attribute is mandatory when enabling the feature, and not required when
13772  * disabling the feature.
13773  *
13774  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
13775  * the following attributes:
13776  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
13777  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
13778  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
13779  *
13780  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
13781  * It consists of a hostname and ".local" as the domain name. The character
13782  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
13783  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
13784  * supported per vdev.
13785  * For example: myphone.local
13786  *
13787  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
13788  * u16 attribute. It specifies the total number of resource records present
13789  * in the answer section of the answer payload. This attribute is needed by the
13790  * firmware to populate the mDNS response frame for mNDS queries without having
13791  * to parse the answer payload.
13792  *
13793  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
13794  * attribute sent by the mdnsResponder from userspace. It contains resource
13795  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
13796  * payload is passed down to firmware and is transmitted in response to
13797  * mDNS queries.
13798  * The maximum size of the answer payload supported is 512 bytes.
13799  */
13800 enum qca_wlan_vendor_attr_mdns_offload {
13801 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
13802 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
13803 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
13804 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
13805 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
13806 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
13807 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
13808 
13809 	/* keep last */
13810 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
13811 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
13812 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
13813 };
13814 
13815 /**
13816  * enum qca_vendor_attr_diag_event_type  - Attributes used by
13817  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
13818  *
13819  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
13820  * driver/firmware during Connection request from Userspace. Uses the
13821  * following attributes of enum qca_wlan_vendor_attr_diag:
13822  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13823  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
13824  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13825  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
13826  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13827  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
13828  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
13829  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
13830  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
13831  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13832  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
13833  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
13834  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13835  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13836  *
13837  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
13838  * driver/firmware when a connection is failed. Uses the
13839  * following attributes of enum qca_wlan_vendor_attr_diag:
13840  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13841  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13842  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13843  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13844  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13845  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13846  *
13847  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
13848  * driver/firmware during Authentication request from a device. 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_AUTH_ALGO,
13854  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
13855  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13856  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13857  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13858  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13859  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13860  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13861  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13862  *
13863  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
13864  * driver/firmware when device receives an authentication response. Uses the
13865  * following attributes of enum qca_wlan_vendor_attr_diag:
13866  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13867  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13868  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13869  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
13870  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13871  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13872  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13873  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13874  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13875  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13876  *
13877  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
13878  * driver/firmware when device sends an association request. Uses the
13879  * following attributes of enum qca_wlan_vendor_attr_diag:
13880  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13881  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13882  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13883  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13884  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13885  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13886  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13887  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13888  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13889  *
13890  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
13891  * driver/firmware when device receives an association response. Uses the
13892  * following attributes of enum qca_wlan_vendor_attr_diag:
13893  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13894  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13895  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13896  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13897  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13898  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13899  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13900  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13901  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
13902  *
13903  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
13904  * driver/userspace when device receives a deauthentication response. Uses the
13905  * following attributes of enum qca_wlan_vendor_attr_diag:
13906  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13907  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13908  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13909  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13910  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13911  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13912  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13913  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13914  *
13915  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
13916  * driver/userspace when device sends a deauthentication request. Uses the
13917  * following attributes of enum qca_wlan_vendor_attr_diag:
13918  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13919  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13920  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13921  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13922  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13923  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13924  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13925  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13926  *
13927  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
13928  * driver/firmware when device receives a disassociation response. Uses the
13929  * following attributes of enum qca_wlan_vendor_attr_diag:
13930  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13931  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13932  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13933  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13934  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13935  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13936  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13937  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13938  *
13939  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
13940  * driver/firmware when device sends a disassociation request. Uses the
13941  * following attributes of enum qca_wlan_vendor_attr_diag:
13942  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13943  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13944  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13945  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13946  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13947  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13948  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13949  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13950  *
13951  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
13952  * driver/firmware when device did not receive beacon packets during connection.
13953  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
13954  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13955  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13956  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13957  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13958  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13959  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13960  *
13961  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
13962  * driver/firmware when Roaming scan is triggered. Uses the following
13963  * attributes of enum qca_wlan_vendor_attr_diag:
13964  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13965  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
13966  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
13967  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13968  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13969  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
13970  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
13971  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13972  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13973  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13974  *
13975  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
13976  * driver/firmware Roam scanning is processed. Uses the following
13977  * attributes of enum qca_wlan_vendor_attr_diag:
13978  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13979  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13980  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
13981  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
13982  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13983  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13984  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13985  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13986  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
13987  *
13988  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
13989  * driver/firmware to provide Roam information of the current AP. Uses the
13990  * following attributes of enum qca_wlan_vendor_attr_diag:
13991  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13992  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13993  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13994  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13995  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13996  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
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_ROAM_SCORE_CAND_AP: Diag event sent from
14002  * driver/firmware to provide Roam information of the candid AP. Uses the
14003  * following attributes of enum qca_wlan_vendor_attr_diag:
14004  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14005  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14006  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
14007  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
14008  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
14009  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
14010  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
14011  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
14012  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14013  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14014  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14015  *
14016  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
14017  * driver/firmware to provide Roam result after selecting a candidate. Uses the
14018  * following attributes of enum qca_wlan_vendor_attr_diag:
14019  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14020  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
14021  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14022  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14023  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14024  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14025  *
14026  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
14027  * driver/firmware to indicate Roam Cancellation due to higher priority events.
14028  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14029  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14030  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14031  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
14032  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14033  *
14034  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
14035  * /firmware when STA sends a BTM request frame. Uses the following attributes
14036  * of enum qca_wlan_vendor_attr_diag:
14037  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14038  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
14039  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
14040  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
14041  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
14042  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
14043  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14044  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14045  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14046  *
14047  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
14048  * driver/firmware when STA queries about BTM transition. Uses the following
14049  * attributes of enum qca_wlan_vendor_attr_diag:
14050  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14051  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
14052  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
14053  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14054  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14055  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14056  *
14057  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
14058  * /firmware when STA receives BTM response frame. Uses the following
14059  * attributes of enum qca_wlan_vendor_attr_diag:
14060  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14061  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
14062  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
14063  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
14064  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
14065  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14066  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14067  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14068  *
14069  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
14070  * driver/firmware to provide BTM request candidate information. Uses the
14071  * following attributes of enum qca_wlan_vendor_attr_diag:
14072  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14073  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14074  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
14075  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
14076  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14077  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14078  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14079  *
14080  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
14081  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
14082  * enum qca_wlan_vendor_attr_diag:
14083  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14084  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
14085  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
14086  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
14087  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14088  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14089  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14090  *
14091  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
14092  * driver/firmware to indicate DHCP discovery to AP. Uses the following
14093  * attributes of enum qca_wlan_vendor_attr_diag:
14094  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14095  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14096  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14097  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14098  *
14099  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
14100  * driver/firmware to indicate DHCP offering to AP. Uses the following
14101  * attributes of enum qca_wlan_vendor_attr_diag:
14102  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14103  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14104  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14105  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14106  *
14107  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
14108  * driver/firmware to indicate driver sent DHCP packets. Uses the following
14109  * attributes of enum qca_wlan_vendor_attr_diag:
14110  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14111  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14112  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14113  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14114  *
14115  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
14116  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
14117  * attributes of enum qca_wlan_vendor_attr_diag:
14118  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14119  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14120  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14121  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14122  *
14123  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
14124  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
14125  * following attributes of enum qca_wlan_vendor_attr_diag:
14126  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14127  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14128  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14129  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14130  *
14131  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
14132  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
14133  * enum qca_wlan_vendor_attr_diag:
14134  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14135  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14136  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14137  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14138  *
14139  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
14140  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
14141  * enum qca_wlan_vendor_attr_diag:
14142  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14143  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14144  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14145  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14146  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14147  *
14148  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
14149  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
14150  * enum qca_wlan_vendor_attr_diag:
14151  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14152  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14153  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14154  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14155  *
14156  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
14157  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
14158  * enum qca_wlan_vendor_attr_diag:
14159  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14160  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14161  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14162  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14163  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14164  *
14165  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
14166  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
14167  * enum qca_wlan_vendor_attr_diag:
14168  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14169  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14170  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14171  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14172  *
14173  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
14174  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
14175  * enum qca_wlan_vendor_attr_diag:
14176  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14177  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14178  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14179  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
14180  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14181  *
14182  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
14183  * /firmware to indicate device sent EAP request. Uses the following attributes
14184  * of enum qca_wlan_vendor_attr_diag:
14185  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14186  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
14187  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
14188  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14189  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14190  *
14191  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
14192  * /firmware to indicate device received EAP response. Uses the following
14193  * attributes of enum qca_wlan_vendor_attr_diag:
14194  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14195  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
14196  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
14197  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14198  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14199  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14200  *
14201  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
14202  * /firmware to indicate EAP frame transmission is success. Uses the following
14203  * attributes of enum qca_wlan_vendor_attr_diag:
14204  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14205  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14206  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14207  *
14208  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
14209  * /firmware to indicate EAP frame transmission is failed. Uses the following
14210  * attributes of enum qca_wlan_vendor_attr_diag:
14211  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
14212  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14213  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
14214  *
14215  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
14216  * /firmware to indicate Reassocation request. Uses the following attributes
14217  * of enum qca_wlan_vendor_attr_diag:
14218  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
14219  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14220  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
14221  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
14222  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
14223  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14224  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
14225  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
14226  *
14227  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
14228  * /firmware to indicate Reassocation response. Uses the following attributes
14229  * of enum qca_wlan_vendor_attr_diag:
14230  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
14231  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
14232  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
14233  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
14234  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
14235  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
14236  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
14237  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
14238  */
14239 enum qca_vendor_attr_diag_event_type {
14240 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
14241 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
14242 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
14243 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
14244 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
14245 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
14246 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
14247 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
14248 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
14249 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
14250 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
14251 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
14252 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
14253 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
14254 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
14255 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
14256 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
14257 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
14258 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
14259 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
14260 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
14261 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
14262 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
14263 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
14264 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
14265 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
14266 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
14267 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
14268 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
14269 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
14270 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
14271 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
14272 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
14273 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
14274 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
14275 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
14276 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
14277 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
14278 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
14279 
14280 	/* keep last */
14281 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
14282 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
14283 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
14284 };
14285 
14286 /**
14287  * enum qca_wlan_vendor_tx_status - Used by attribute
14288  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
14289  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
14290  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
14291  * is not received.
14292  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
14293  * acknowledged.
14294  */
14295 enum qca_wlan_vendor_tx_status {
14296 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
14297 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
14298 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
14299 };
14300 
14301 /**
14302  * enum qca_roam_sub_reason - Used by attribute
14303  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
14304  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
14305  * timer expiry
14306  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
14307  * to no candidate found during LOW RSSI trigger.
14308  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
14309  * Imminent timeout
14310  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
14311  * failure
14312  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
14313  * emergency like deauth/disassoc.
14314  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
14315  * BSS transition management request.
14316  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
14317  * Roam scan triggered due to Low RSSI periodic timer
14318  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
14319  * Roam trigger due to periodic timer after no candidate found during CU
14320  * inactivity timer scan.
14321  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
14322  * found in high CU roam trigger.
14323  */
14324 enum qca_roam_sub_reason {
14325 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
14326 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
14327 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
14328 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
14329 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
14330 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
14331 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
14332 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
14333 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
14334 };
14335 
14336 /*
14337  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
14338  * to send diag data to the userspace. The attributes defined in this enum are
14339  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
14340  *
14341  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
14342  * by driver/firmware to send diag data. Each instance of this nested attribute
14343  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
14344  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
14345  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
14346  * nested attribute can be sent with one vendor command
14347  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
14348  *
14349  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
14350  * attribute indicates the type of the diag event from driver/firmware. Uses
14351  * values from enum qca_vendor_attr_diag_event_type.
14352  *
14353  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
14354  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
14355  * API to send time of the day in microseconds to userspace.
14356  *
14357  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
14358  * This attribute indicates firmware timestamp in microseconds.
14359  *
14360  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
14361  * indicates wlan interface index.
14362  *
14363  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
14364  * indicates 6-byte MAC address representing the BSSID of the AP.
14365  *
14366  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
14367  * indicates the 6-byte MAC address representing the BSSID hint sent in
14368  * the connect request.
14369  *
14370  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
14371  * indicates the SSID in u8 array with a maximum length of 32.
14372  *
14373  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
14374  * indicates the frequency of AP in MHz.
14375  *
14376  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
14377  * indicates frequency hint given in the connect request in MHz.
14378  *
14379  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
14380  * This attribute indicates RSSI of the 802.11 frame in dBm.
14381  *
14382  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
14383  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
14384  * Table 12-10—Integrity and key wrap algorithms.
14385  *
14386  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
14387  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
14388  * Table 12-10—Integrity and key wrap algorithms.
14389  *
14390  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
14391  * attribute indicates Group management cipher suite defined in IEEE Std
14392  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
14393  *
14394  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
14395  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
14396  * Table 9-151—AKM suite selectors.
14397  *
14398  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
14399  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
14400  * Section 9.4.1.1 Authentication Algorithm Number field.
14401  *
14402  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
14403  * indicates bluetooth COEX is active or not.
14404  *
14405  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
14406  * attribute indicates SAE authentication frame type. The possible values are
14407  * 1 - SAE commit frame
14408  * 2 - SAE confirm frame
14409  *
14410  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
14411  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
14412  * Table 9-49—Reason codes.
14413  *
14414  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
14415  * attribute indicates sequence number of the frame defined in IEEE Std
14416  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
14417  * field.
14418  *
14419  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
14420  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
14421  * 9-50—Status codes.
14422  *
14423  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
14424  * Uses enum qca_wlan_vendor_tx_status.
14425  *
14426  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
14427  * indicates if frame transmission is retried.
14428  *
14429  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
14430  * Uses enum qca_roam_reason.
14431  *
14432  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
14433  * Uses enum qca_roam_sub_reason.
14434  *
14435  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
14436  * indicates channel utilization in percentage.
14437  *
14438  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
14439  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
14440  *
14441  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
14442  * This attribute indicates current RSSI threshold in dBm.
14443  *
14444  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
14445  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
14446  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
14447  *
14448  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
14449  * This attribute indicates number of scanned candidate APs.
14450  *
14451  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
14452  * attribute indicates roam AP rank computed based on connection preference.
14453  *
14454  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
14455  * This attribute indicates expected throughput in kbps.
14456  *
14457  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
14458  * This attribute indicates the preference value of candidate AP / connected AP
14459  * calculated in the firmware.
14460  *
14461  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
14462  * indicates connection/roaming is successful or not.
14463  *
14464  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
14465  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
14466  * IE present in the BTM frame.
14467  *
14468  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
14469  * This attribute indicates BTM WTC duration in milliseconds.
14470  *
14471  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
14472  * indicates dialog token value of BTM query/request/response frames.
14473  *
14474  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
14475  * attribute indicates the Transition Reason field indicates the reason why
14476  * a transition attempt occurred and contains one of the values defined in IEEE
14477  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
14478  *
14479  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
14480  * indicates BTM mode defined in IEEE Std 802.11‐2020
14481  * Figure 9-924—Request Mode field format.
14482  *
14483  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
14484  * This attribute indicates the Disassociation Timer field which is the number
14485  * of beacon transmission times (TBTTs) until the serving AP will send a
14486  * Disassociation frame to this STA.
14487  *
14488  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
14489  * This attribute indicates BTM validity interval field in TBTTs defined in
14490  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
14491  * Action field format.
14492  *
14493  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
14494  * This attribute indicates BTM candidate list entries.
14495  *
14496  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
14497  * This attribute indicates network preference for BTM transition defined in
14498  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
14499  *
14500  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
14501  * This attribute indicates BTM transition status code defined in IEEE Std
14502  * 802.11‐2020 Table 9-428—BTM status code definitions.
14503  *
14504  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
14505  * This attribute indicates BSS termination delay defined in IEEE Std
14506  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
14507  *
14508  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
14509  * This attribute indicates 6-byte MAC address representing the BSSID of the
14510  * BSS that the non-AP STA transitions to.
14511  *
14512  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
14513  * indicates EAP frame type. The methods are enumerated by IANA at
14514  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
14515  *
14516  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
14517  * indicates EAP frame length.
14518  *
14519  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
14520  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
14521  * (Time from boot but not the time spent in suspend) to send in microseconds
14522  * to userspace.
14523  *
14524  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
14525  * indicates the association id received in the (re)association response frame
14526  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
14527  */
14528 enum qca_wlan_vendor_attr_diag {
14529 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
14530 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
14531 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
14532 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
14533 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
14534 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
14535 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
14536 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
14537 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
14538 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
14539 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
14540 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
14541 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
14542 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
14543 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
14544 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
14545 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
14546 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
14547 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
14548 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
14549 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
14550 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
14551 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
14552 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
14553 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
14554 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
14555 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
14556 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
14557 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
14558 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
14559 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
14560 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
14561 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
14562 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
14563 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
14564 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
14565 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
14566 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
14567 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
14568 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
14569 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
14570 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
14571 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
14572 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
14573 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
14574 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
14575 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
14576 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
14577 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
14578 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
14579 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
14580 
14581 	/* keep last */
14582 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
14583 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
14584 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
14585 };
14586 
14587 /**
14588  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
14589  * data types to be sent over the monitor interface.
14590  */
14591 enum qca_wlan_vendor_monitor_data_frame_type {
14592 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
14593 
14594 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
14595 	not set */
14596 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
14597 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
14598 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
14599 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
14600 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
14601 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
14602 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
14603 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
14604 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
14605 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
14606 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
14607 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
14608 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
14609 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
14610 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
14611 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
14612 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
14613 };
14614 
14615 /**
14616  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
14617  * mgmt types to be sent over the monitor interface.
14618  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
14619  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
14620  * except the Beacons. Valid only in the Connect state.
14621  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
14622  * BSSID Beacons. Valid only in the Connect state.
14623  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
14624  * the Beacons obtained during the scan (off channel and connected channel)
14625  * when in connected state.
14626  */
14627 
14628 enum qca_wlan_vendor_monitor_mgmt_frame_type {
14629 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
14630 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
14631 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
14632 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
14633 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
14634 };
14635 
14636 /**
14637  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
14638  * ctrl types to be sent over the monitor interface.
14639  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
14640  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
14641  */
14642 enum qca_wlan_vendor_monitor_ctrl_frame_type {
14643 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
14644 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
14645 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
14646 };
14647 
14648 /**
14649  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
14650  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
14651  * monitor mode.
14652  *
14653  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
14654  * Represents the tx data packet type to be monitored (u32). These data packets
14655  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14656  *
14657  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
14658  * Represents the tx data packet type to be monitored (u32). These data packets
14659  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
14660  *
14661  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
14662  * Represents the tx data packet type to be monitored (u32). These mgmt packets
14663  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
14664  *
14665  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
14666  * Represents the tx data packet type to be monitored (u32). These mgmt packets
14667  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
14668  *
14669  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
14670  * Represents the tx data packet type to be monitored (u32). These ctrl packets
14671  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14672  *
14673  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
14674  * Represents the tx data packet type to be monitored (u32). These ctrl packets
14675  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
14676  *
14677  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
14678  * u32 attribute, An interval only for the connected beacon interval, which
14679  * expects that the connected BSSID's beacons shall be sent on the monitor
14680  * interface only on this specific interval.
14681  */
14682 enum qca_wlan_vendor_attr_set_monitor_mode {
14683 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
14684 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
14685 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
14686 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
14687 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
14688 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
14689 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
14690 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
14691 
14692 	/* keep last */
14693 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
14694 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
14695 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
14696 
14697 };
14698 
14699 /**
14700  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
14701  * Bits will be set to 1 if the corresponding state is enabled.
14702  *
14703  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14704  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14705  */
14706 enum qca_wlan_vendor_roam_scan_state {
14707 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14708 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14709 };
14710 
14711 /**
14712  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14713  * Bits will be set to 1 if the corresponding event is notified.
14714  *
14715  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14716  * carries the trigger reason. When set, it is expected that the roam event
14717  * carries the respective reason via the attribute
14718  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14719  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14720  *
14721  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14722  * carries the roam fail reason. When set, it is expected that the roam event
14723  * carries the respective reason via the attribute
14724  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14725  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14726  *
14727  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14728  * event carries the roam invoke fail reason. When set, it is expected that
14729  * the roam event carries the respective reason via the attribute
14730  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14731  *
14732  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14733  * carries the roam scan state. When set, it is expected that the roam event
14734  * carries the respective scan state via the attribute
14735  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14736  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14737  */
14738 enum qca_wlan_vendor_roam_event_type {
14739 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14740 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14741 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14742 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14743 };
14744 
14745 /**
14746  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14747  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14748  *
14749  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14750  * representing the BSSID of the AP to which the Roam is attempted.
14751  *
14752  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14753  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14754  * attempted.
14755  *
14756  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
14757  * on which the roam is attempted.
14758  *
14759  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14760  * STA mode only. This represents the roam fail reason for the last failed
14761  * roaming attempt by the firmware for the specific BSSID. Different roam
14762  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14763  */
14764 enum qca_wlan_vendor_attr_roam_events_candidate_info {
14765 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14766 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14767 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14768 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14769 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14770 
14771 	/* keep last */
14772 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14773 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14774 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14775 };
14776 
14777 /**
14778  * enum qca_wlan_vendor_attr_roam_events - Used by the
14779  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14780  * roam events to the driver or notify these events from the driver.
14781  *
14782  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14783  * driver/firmware to enable/disable the notification of roam events. It's a
14784  * mandatory attribute and used only in the request from the userspace to the
14785  * host driver. 1-Enable, 0-Disable.
14786  * If the roaming is totally offloaded to the firmware, this request when
14787  * enabled shall mandate the firmware to notify all the relevant roam events
14788  * represented by the below attributes. If the host is in the suspend mode,
14789  * the behavior of the firmware to notify these events is guided by
14790  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14791  * these events in the suspend state, the firmware is expected to wake up the
14792  * host before the respective events are notified. Please note that such a
14793  * request to get the events in the suspend state will have a definite power
14794  * implication.
14795  *
14796  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14797  * that the roam events need to be notified in the suspend state too. By
14798  * default, these roam events are notified in the resume state. With this flag,
14799  * the roam events are notified in both resume and suspend states.
14800  * This attribute is used in the request from the userspace to the host driver.
14801  *
14802  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14803  * Represents the different roam event types, signified by the enum
14804  * qca_wlan_vendor_roam_event_type.
14805  * Each bit of this attribute represents the different roam even types reported
14806  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14807  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14808  *
14809  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14810  * mode only. This represents the roam trigger reason for the last roaming
14811  * attempted by the firmware. Each bit of this attribute represents the
14812  * different roam trigger reason code which are defined in enum
14813  * qca_vendor_roam_triggers.
14814  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14815  *
14816  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
14817  * STA mode only. This represents the roam invoke fail reason for the last
14818  * failed roam invoke. Different roam invoke failure reason codes
14819  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
14820  *
14821  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
14822  * for which the roam is attempted. Each entry is a nested attribute defined
14823  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
14824  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14825  *
14826  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
14827  * the scan state on which the roam events need to be notified. The values for
14828  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
14829  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14830  *
14831  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
14832  * u32 values. List of frequencies in MHz considered for a roam scan.
14833  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14834  */
14835 
14836 enum qca_wlan_vendor_attr_roam_events {
14837 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
14838 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
14839 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
14840 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
14841 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
14842 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
14843 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
14844 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
14845 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
14846 
14847 	/* keep last */
14848 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
14849 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
14850 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
14851 };
14852 
14853 /*
14854  * enum qca_wlan_ratemask_params_type - Rate mask config type.
14855  *
14856  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
14857  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
14858  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
14859  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
14860  */
14861 enum qca_wlan_ratemask_params_type {
14862 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
14863 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
14864 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
14865 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
14866 };
14867 
14868 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
14869  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
14870  * This is used to set the rate mask value to be used in rate selection.
14871  *
14872  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
14873  * Array of nested containing attributes
14874  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
14875  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
14876  *
14877  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
14878  * the different phy types to which the rate mask config is to be applied.
14879  * The values for this attribute are referred from enum
14880  * qca_wlan_vendor_ratemask_params_type.
14881  *
14882  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
14883  * A bit value of 1 represents rate is enabled and a value of 0
14884  * represents rate is disabled.
14885  * For HE targets, 12 bits correpond to one NSS setting.
14886  * b0-13  => NSS1, MCS 0-13
14887  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
14888  * For VHT targets, 10 bits correspond to one NSS setting.
14889  * b0-9   => NSS1, MCS 0-9
14890  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
14891  * For HT targets, 8 bits correspond to one NSS setting.
14892  * b0-7  => NSS1, MCS 0-7
14893  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
14894  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
14895  */
14896 
14897 enum qca_wlan_vendor_attr_ratemask_params {
14898 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
14899 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
14900 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
14901 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
14902 
14903 	/* keep last */
14904 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
14905 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
14906 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
14907 };
14908 
14909 /**
14910  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
14911  * the policy to flush pending frames, configured via
14912  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
14913  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
14914  *
14915  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
14916  * the flush policy configured before. This command basically disables the
14917  * flush config set by the user.
14918  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
14919  * the flush policy to be immediate. All pending packets for the peer/TID are
14920  * flushed when this command/policy is received.
14921  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
14922  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
14923  * are flushed when the end of TWT SP is reached.
14924  */
14925 enum qca_wlan_vendor_flush_pending_policy  {
14926 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
14927 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
14928 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
14929 };
14930 
14931 /**
14932  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
14933  * flushing pending traffic in firmware.
14934  *
14935  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
14936  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
14937  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
14938  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
14939  * flush packets with access category. This is optional. See below.
14940  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
14941  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
14942  * bit to 1 to act upon the TID. This is optional. Either this attribute or
14943  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
14944  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
14945  * it is an error.
14946  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
14947  * packets corresponding to the peer/TID provided. It is a u32 value,
14948  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
14949  * value is honored only when TID mask is provided. This is not honored when AC
14950  * mask is provided.
14951  */
14952 enum qca_wlan_vendor_attr_flush_pending {
14953 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
14954 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
14955 	QCA_WLAN_VENDOR_ATTR_AC = 2,
14956 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
14957 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
14958 	/* keep last */
14959 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
14960 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
14961 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
14962 };
14963 
14964 /**
14965  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
14966  *	for) or drop existing PASN security association for the listed the
14967  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
14968  *	to userspace.
14969  *
14970  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
14971  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
14972  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
14973  *	the driver to userspace to inform that the existing PASN keys of the
14974  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
14975  *	not valid anymore.
14976  */
14977 enum qca_wlan_vendor_pasn_action {
14978 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
14979 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
14980 };
14981 
14982 /**
14983  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
14984  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
14985  *
14986  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
14987  *	event from the driver to userspace and represents the local MAC address
14988  *	to be used for PASN handshake. When this attribute is present, userspace
14989  *	shall use the source address specified in this attribute by the driver
14990  *	for PASN handshake with peer device.
14991  *	This attribute is required in a command response from userspace to the
14992  *	driver and represents the MAC address that was used in PASN handshake
14993  *	with the peer device.
14994  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
14995  *	peer device to which PASN handshake is requested in an event from the
14996  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14997  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
14998  *	Indicates the MAC address of the peer device for which the keys are to
14999  *	be invalidated in an event from the driver to userspace when
15000  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
15001  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
15002  *	Indicates the MAC address of the peer device for which the status is
15003  *	being sent in a status report from userspace to the driver.
15004  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
15005  *	in the event from the driver to userspace. When set, userspace is
15006  *	required to derive LTF key seed from KDK and set it to the driver.
15007  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
15008  *	attribute is used in the command response from userspace to the driver.
15009  *	If present, it indicates the successful PASN handshake with the peer. If
15010  *	this flag is not present, it indicates that the PASN handshake with the
15011  *	peer device failed.
15012  */
15013 enum qca_wlan_vendor_attr_pasn_peer {
15014 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
15015 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
15016 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
15017 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
15018 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
15019 
15020 	/* keep last */
15021 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
15022 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
15023 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
15024 };
15025 
15026 /**
15027  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
15028  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
15029  *
15030  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
15031  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
15032  *	from the driver to userspace.
15033  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
15034  *	details for each peer and used in both an event and a command response.
15035  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
15036  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
15037  */
15038 enum qca_wlan_vendor_attr_pasn {
15039 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
15040 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
15041 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
15042 
15043 	/* keep last */
15044 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
15045 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
15046 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
15047 };
15048 
15049 /**
15050  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
15051  *	the ranging security context derived from PASN for each peer. Used in
15052  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
15053  *
15054  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
15055  *	context for the peer.
15056  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
15057  *	context for the peer.
15058  */
15059 enum qca_wlan_vendor_secure_ranging_ctx_action {
15060 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
15061 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
15062 };
15063 
15064 /**
15065  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
15066  *	used for deriving PASN keys to the driver. Used in
15067  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
15068  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
15069  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
15070  */
15071 enum qca_wlan_vendor_sha_type {
15072 	QCA_WLAN_VENDOR_SHA_256,
15073 	QCA_WLAN_VENDOR_SHA_384,
15074 };
15075 
15076 /**
15077  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
15078  *	to set security context for the PASN peer from userspace to the driver.
15079  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
15080  *
15081  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
15082  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
15083  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
15084  *	was used during the PASN handshake.
15085  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
15086  *	the peer device for which secure ranging context is being configured.
15087  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
15088  *	hash algorithm to be used, possible values are defined in enum
15089  *	qca_wlan_vendor_sha_type.
15090  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
15091  *	the temporal key generated from the PASN handshake. The length of this
15092  *	attribute is dependent on the value of
15093  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
15094  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
15095  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
15096  *	(e.g., 0x000FAC04).
15097  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
15098  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
15099  *	The length of this attribute is dependent on the value of
15100  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
15101  *
15102  */
15103 enum qca_wlan_vendor_attr_secure_ranging_ctx {
15104 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
15105 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
15106 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
15107 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
15108 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
15109 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
15110 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
15111 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
15112 
15113 	/* keep last */
15114 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
15115 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
15116 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
15117 };
15118 
15119 /**
15120  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
15121  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
15122  * nested attribute. The packets that match a filter will be replied with
15123  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
15124  *
15125  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
15126  * u32 attribute. Destination IPv4 address in network byte order, the
15127  * IPv4 packets with different address will be filtered out.
15128  * This attribute is optional.
15129  *
15130  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
15131  * Flag attribute. If it's present, indicates that
15132  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
15133  * address; while if not, indicates that the address is a unicast/multicast
15134  * address.
15135  * This attribute is optional.
15136  *
15137  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
15138  * NLA_BINARY attribute, length is 16 bytes.
15139  * Destination IPv6 address in network byte order, the IPv6 packets
15140  * with different destination address will be filtered out.
15141  * This attribute is optional.
15142  *
15143  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
15144  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
15145  * Packets on both IPv4 and IPv6 will be processed if both are configured.
15146  *
15147  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
15148  * u16 attribute. Destination UDP port, the packets with different destination
15149  * UDP port will be filtered out.
15150  * This attribute is mandatory.
15151  *
15152  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
15153  * u32 attribute. Represents the offset (in UDP payload) of the data
15154  * to be matched.
15155  * This attribute is mandatory.
15156  *
15157  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
15158  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
15159  * Binary data that is compared bit-by-bit against the data (specified
15160  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
15161  * payload, the packets don't match will be filtered out.
15162  * This attribute is mandatory.
15163  */
15164 enum qca_wlan_vendor_attr_coap_offload_filter {
15165 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
15166 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
15167 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
15168 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
15169 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
15170 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
15171 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
15172 
15173 	/* keep last */
15174 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
15175 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
15176 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
15177 };
15178 
15179 /**
15180  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
15181  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
15182  *
15183  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
15184  * u32 attribute. Source address (in network byte order) for replying
15185  * the matching broadcast/multicast IPv4 packets.
15186  * This attribute is optional.
15187  *
15188  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
15189  * NLA_BINARY attribute, length is 16 bytes.
15190  * Source address (in network byte order) for replying the matching
15191  * multicast IPv6 packets.
15192  * This attribute is optional.
15193  *
15194  * For broadcast/multicast offload reply, one of
15195  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
15196  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
15197  * configured according to version of the IP address(es) configured in
15198  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
15199  * while for unicast case, firmware will take the destination IP address
15200  * in the received matching packet as the source address for replying.
15201  *
15202  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
15203  * Nested attribute. Filter for the received UDP packets, only the matching
15204  * packets will be replied and cached.
15205  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
15206  * attributes.
15207  * This attribute is mandatory.
15208  *
15209  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
15210  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15211  * CoAP message (UDP payload) to be sent upon receiving matching packets.
15212  * Firmware is responsible for adding any necessary protocol headers.
15213  * This attribute is mandatory.
15214  *
15215  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
15216  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
15217  * A cached message will be dropped by firmware if it's expired.
15218  * This attribute is optional. A default value of 40000 will be used in the
15219  * absence of it.
15220  */
15221 enum qca_wlan_vendor_attr_coap_offload_reply {
15222 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
15223 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
15224 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
15225 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
15226 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
15227 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
15228 
15229 	/* keep last */
15230 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
15231 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
15232 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
15233 };
15234 
15235 /**
15236  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
15237  * CoAP message (UDP) transmitting on IPv4.
15238  *
15239  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
15240  * u32 attribute. Source address (in network byte order) for transmitting
15241  * packets on IPv4.
15242  * This attribute is mandatory.
15243  *
15244  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
15245  * u16 attribute. Source UDP port.
15246  * This attribute is optional, a random port is taken if it's not present.
15247  *
15248  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
15249  * u32 attribute. Destination IPv4 address (in network byte order).
15250  * This attribute is mandatory.
15251  *
15252  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
15253  * Flag attribute. If it's present, indicates that
15254  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
15255  * address; while if not, indicates that the address is unicast/multicast
15256  * address.
15257  * This attribute is optional.
15258  *
15259  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
15260  * u16 attribute. Destination UDP port.
15261  * This attribute is mandatory.
15262  */
15263 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
15264 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
15265 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
15266 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
15267 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
15268 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
15269 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
15270 
15271 	/* keep last */
15272 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
15273 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
15274 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
15275 };
15276 
15277 /**
15278  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
15279  * CoAP message (UDP) transmitting on IPv6.
15280  *
15281  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
15282  * NLA_BINARY attribute, length is 16 bytes.
15283  * Source address (in network byte order) for transmitting packets on IPv6.
15284  * This attribute is mandatory.
15285  *
15286  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
15287  * u16 attribute. Source UDP port.
15288  * This attribute is optional, a random port is taken if it's not present.
15289  *
15290  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
15291  * NLA_BINARY attribute, length is 16 bytes.
15292  * Destination IPv6 address (in network byte order).
15293  * This attribute is mandatory.
15294  *
15295  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
15296  * u16 attribute. Destination UDP port.
15297  * This attribute is mandatory.
15298  */
15299 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
15300 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
15301 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
15302 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
15303 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
15304 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
15305 
15306 	/* keep last */
15307 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
15308 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
15309 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
15310 };
15311 
15312 /**
15313  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
15314  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
15315  *
15316  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
15317  * Nested attribute. The IPv4 source/destination address/port for offload
15318  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
15319  * of supported attributes.
15320  * This attribute is optional.
15321  *
15322  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
15323  * Nested attribute. The IPv6 source/destination address/port for offload
15324  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
15325  * of supported attributes.
15326  * This attribute is optional.
15327  *
15328  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
15329  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
15330  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
15331  * configured.
15332  *
15333  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
15334  * u32 attribute. Period in milliseconds for the periodic transmitting.
15335  * This attribute is mandatory.
15336  *
15337  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
15338  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15339  * CoAP message (UDP payload) to be periodically transmitted. Firmware
15340  * is responsible for adding any necessary protocol headers.
15341  * This attribute is mandatory.
15342  */
15343 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
15344 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
15345 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
15346 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
15347 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
15348 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
15349 
15350 	/* keep last */
15351 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
15352 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
15353 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
15354 };
15355 
15356 /**
15357  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
15358  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
15359  *
15360  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
15361  * u64 attribute. Received time (since system booted in microseconds) of
15362  * the cached CoAP message.
15363  * This attribute is mandatory.
15364  *
15365  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
15366  * u32 attribute. Source IPv4 address (in network byte order) of the cached
15367  * CoAP message.
15368  * This attribute is optional.
15369  *
15370  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
15371  * NLA_BINARY attribute, length is 16 bytes.
15372  * Source IPv6 address (in network byte order) of the cached CoAP message.
15373  * This attribute is optional.
15374  *
15375  * At most and at least one of
15376  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
15377  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
15378  * an entry.
15379  *
15380  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
15381  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
15382  * The cached CoAP message (UDP payload). If the actual message size is
15383  * greater than the maximum size, it will be truncated and leaving only
15384  * the first 1152 bytes.
15385  * This attribute is mandatory.
15386  */
15387 enum qca_wlan_vendor_attr_coap_offload_cache_info {
15388 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
15389 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
15390 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
15391 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
15392 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
15393 
15394 	/* keep last */
15395 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
15396 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
15397 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
15398 };
15399 
15400 /**
15401  * enum qca_wlan_vendor_coap_offload_action - Actions for
15402  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15403  *
15404  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
15405  * Enable CoAP offload reply.
15406  * If it's enabled, firmware will start offload processing on each suspend
15407  * and stop on each resume.
15408  *
15409  * Offload reply on match works as follows:
15410  * Reply the packets that match the filter with the given CoAP
15411  * message (with necessary protocol headers), increase the CoAP message
15412  * ID in the given CoAP message by one for the next use after each successful
15413  * transmission, and try to store the information of the received packet,
15414  * including the received time, source IP address, and CoAP message (UDP
15415  * payload).
15416  *
15417  * Firmware has a limit to the maximum stored entries, it takes the source IP
15418  * address as the key of an entry, and keeps at most one entry for each key.
15419  * A packet won't be stored if no entry for the same key is present and the
15420  * total number of the existing unexpired entries reaches the maximum value.
15421  *
15422  * If any configured item is changed, user space should disable offload reply
15423  * first and then issue a new enable request.
15424  *
15425  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
15426  * Disable CoAP offload reply and return information of any cached CoAP
15427  * messages.
15428  *
15429  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
15430  * Enable CoAP offload periodic transmitting.
15431  * If it's enabled, firmware will start offload periodic transmitting on
15432  * each suspend and stop on each resume.
15433  *
15434  * Offload periodic transmitting works as follows:
15435  * Send the given CoAP message (with necessary protocol headers) with the given
15436  * source/destination IP address/UDP port periodically based on the given
15437  * period and increase the CoAP message ID in the given CoAP message by one
15438  * for the next use after each successful transmission.
15439  *
15440  * If any configured item is changed, user space should disable offload
15441  * periodic transmitting first and then issue a new enable request.
15442  *
15443  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
15444  * Disable CoAP offload periodic transmitting.
15445  *
15446  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
15447  * Get information of the CoAP messages cached during offload reply
15448  * processing. The cache is cleared after retrieval.
15449  */
15450 enum qca_wlan_vendor_coap_offload_action {
15451 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
15452 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
15453 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
15454 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
15455 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
15456 };
15457 
15458 /**
15459  * enum qca_wlan_vendor_attr_coap_offload - Used by the
15460  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
15461  * This is used to set parameters for CoAP offload processing, or get
15462  * cached CoAP messages from firmware.
15463  *
15464  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
15465  * u32 attribute. Action to take in this vendor command.
15466  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
15467  * This attribute is mandatory.
15468  *
15469  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
15470  * u32 attribute. Represents the Request ID for the CoAP offload
15471  * configuration, which can help to identify the user entity starting
15472  * the CoAP offload processing and accordingly stop the respective
15473  * ones/get the cached CoAP messages with the matching ID.
15474  * This attribute is mandatory.
15475  *
15476  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
15477  * Nested attribute. Parameters for offload reply.
15478  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
15479  * supported attributes.
15480  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15481  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
15482  * otherwise.
15483  *
15484  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
15485  * Nested attribute. Parameters for offload periodic transmitting.
15486  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
15487  * supported attributes.
15488  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
15489  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
15490  * otherwise.
15491  *
15492  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
15493  * Array of nested attributes. Information of the cached CoAP messages,
15494  * where each entry is taken from
15495  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
15496  * This attribute is used for reporting the cached CoAP messages
15497  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
15498  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
15499  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
15500  * cached item if this attribute is not present.
15501  */
15502 enum qca_wlan_vendor_attr_coap_offload {
15503 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
15504 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
15505 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
15506 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
15507 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
15508 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
15509 
15510 	/* keep last */
15511 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
15512 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
15513 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
15514 };
15515 
15516 /**
15517  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
15518  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
15519  * Service (SCS) rule.
15520  *
15521  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
15522  * Represents the unique id of SCS rule to be configured.
15523 
15524  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
15525  * Represents the request type: add, remove, or change.
15526  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
15527  * Type definitions).
15528  *
15529  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
15530  * in case of add/change request type.
15531  * Represents the output traffic identifier (TID) to be assigned to the flow
15532  * matching the rule.
15533  *
15534  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
15535  * attribute in case of add/change request type.
15536  * Represents type of classifier parameters present in SCS rule.
15537  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
15538  * Only classifier types 4 and 10 are supported for SCS.
15539  *
15540  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
15541  * in case of add/change request type when classifier type is TCLAS4.
15542  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
15543  *
15544  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
15545  * attribute in case of add/change request type when classifier type is TCLAS4
15546  * and version attribute is IPv4.
15547  * Represents the source IPv4 address in the rule which is to be compared
15548  * against the source IP address in the IPv4 header.
15549  *
15550  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
15551  * attribute in case of add/change request type when classifier type is TCLAS4
15552  * and version attribute is IPv4.
15553  * Represents the destination IPv4 address in the rule which is to be compared
15554  * against the destination IP address in the IPv4 header.
15555  *
15556  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
15557  * attribute in case of add/change request type when classifier type is TCLAS4
15558  * and version attribute is IPv6.
15559  * Represents the source IPv6 address in the rule which is to be compared
15560  * against the source IP address in the IPv6 header.
15561  *
15562  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
15563  * attribute in case of add/change request type when classifier type is TCLAS4
15564  * and version attribute is IPv6.
15565  * Represents the destination IPv6 address in the rule which is to be compared
15566  * against the destination IP address in the IPv6 header.
15567  *
15568  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
15569  * in case of add/change request type when classifier type is TCLAS4.
15570  * Represents the source port number in the rule which is to be compared against
15571  * the source port number in the protocol header.
15572  *
15573  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
15574  * in case of add/change request type when classifier type is TCLAS4.
15575  * Represents the destination port number in the rule which is to be compared
15576  * against the destination port number in the protocol header.
15577  *
15578  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
15579  * in case of add/change request type when classifier type is TCLAS4.
15580  * Represents the DSCP value in the rule which is to be compared against the
15581  * DSCP field present in the IP header.
15582  *
15583  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
15584  * attribute in case of add/change request type when classifier type is TCLAS4.
15585  * Represents the protocol/next header in the rule which is to be compared
15586  * against the protocol/next header field present in the IPv4/IPv6 header.
15587  *
15588  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
15589  * attribute of size 3 bytes present in case of add/change request type
15590  * when classifier type is TCLAS4 and version is IPv6.
15591  * Represents the flow label value in the rule which is to be compared against
15592  * the flow label field present in the IPv6 header.
15593  *
15594  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
15595  * attribute in case of add/change request type when classifier type is TCLAS10.
15596  * Represents the protocol instance number in the rule.
15597  *
15598  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
15599  * attribute in case of add/change request type when classifier type is TCLAS10.
15600  * Represents the protocol/next header in the rule which is to be compared
15601  * against the protocol/next header field present in the IPv4/IPv6 header.
15602  *
15603  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
15604  * attribute of variable length present when request type is add/change and
15605  * classifier type is TCLAS10.
15606  * Represents the mask to be used for masking the header contents of the header
15607  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
15608  * attribute.
15609  *
15610  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
15611  * attribute of variable length present when request type is add/change and
15612  * classifier type is TCLAS10.
15613  * Represents the value to be compared against after masking the header contents
15614  * of the header specified by the
15615  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
15616  * filter mask specified by the
15617  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
15618  *
15619  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
15620  * attribute.
15621  * Represents the service class id of the configured SCS rule.
15622  *
15623  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
15624  * MAC address.
15625  * Represents the destination MAC address in the rule.
15626  *
15627  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
15628  * Represents the netdevice interface index in the rule.
15629  */
15630 enum qca_wlan_vendor_attr_scs_rule_config {
15631 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
15632 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
15633 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
15634 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
15635 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
15636 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
15637 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
15638 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
15639 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
15640 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
15641 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
15642 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
15643 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
15644 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
15645 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
15646 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
15647 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
15648 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
15649 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
15650 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
15651 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
15652 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
15653 
15654 	/* Keep last */
15655 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
15656 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
15657 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
15658 };
15659 
15660 /**
15661  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
15662  * used in the firmware.
15663  *
15664  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
15665  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
15666  *
15667  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
15668  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
15669  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
15670  * groups.
15671  *
15672  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
15673  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
15674  * CTL group but user can choose up to 3 SAR set index only, as the top half
15675  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
15676  * the SAR index (3 to 5) is used for DBS mode.
15677  */
15678 enum qca_wlan_vendor_sar_version {
15679 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
15680 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
15681 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
15682 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
15683 };
15684 
15685 /**
15686  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
15687  * CTL grouping is enabled or disabled in the firmware.
15688  *
15689  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
15690  * is enabled in firmware.
15691  *
15692  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
15693  * is disabled in firmware.
15694  *
15695  */
15696 enum qca_wlan_vendor_sar_ctl_group_state {
15697 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
15698 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
15699 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
15700 };
15701 
15702 /**
15703  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15704  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15705  * supported by the firmware.
15706 
15707  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15708  * u32 attribute. This field describes current SAR version supported by the
15709  * firmware.
15710  * See enum qca_wlan_vendor_sar_version for more information.
15711  * This attribute is mandatory.
15712 
15713  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15714  * u32 attribute. This field describes whether CTL groups are enabled
15715  * or disabled in the firmware.
15716  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15717  * This attribute is optional.
15718  */
15719 
15720 enum qca_wlan_vendor_attr_sar_capability {
15721 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15722 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15723 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15724 
15725 	/* Keep last */
15726 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15727 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15728 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15729 };
15730 
15731 /**
15732  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15733  * These statistics are sent from the driver in a response when userspace
15734  * queries to get the statistics using the operation
15735  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15736  * by the driver when the SR feature is enabled, when the driver receives
15737  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15738  *
15739  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15740  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15741  * This represents the number of non-SRG TX opportunities.
15742  *
15743  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15744  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15745  * This represents the number of non-SRG PPDUs tried to transmit.
15746  *
15747  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15748  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15749  * This represents the number of non-SRG PPDUs successfully transmitted.
15750  *
15751  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15752  * Mandatory only when SRG is supported by the AP and optional otherwise.
15753  * This represents the number of SRG TX opportunities.
15754  *
15755  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15756  * Mandatory only when SRG is supported by the AP and optional otherwise.
15757  * This represents the number of SRG PPDUs tried to transmit.
15758  *
15759  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15760  * Mandatory only when SRG is supported by the AP and optional otherwise.
15761  * This represents the number of SRG PPDUs successfully transmitted.
15762  */
15763 enum qca_wlan_vendor_attr_sr_stats {
15764 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
15765 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
15766 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
15767 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
15768 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
15769 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
15770 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
15771 
15772 	/* Keep last */
15773 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
15774 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
15775 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
15776 };
15777 
15778 /**
15779  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
15780  * Spatial Reuse feature.
15781  *
15782  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
15783  * roaming to an AP that doesn't support/supports SR feature, respectively.
15784  *
15785  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
15786  * to change in concurrent interfaces that are supported by the driver.
15787  */
15788 enum qca_wlan_sr_reason_code {
15789 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
15790 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
15791 };
15792 
15793 /**
15794  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
15795  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
15796  *
15797  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
15798  * driver to enable the Spatial Reuse feature. Attributes
15799  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15800  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
15801  * operation.
15802  *
15803  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
15804  * driver to disable the Spatial Reuse feature.
15805  *
15806  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
15807  * asynchronous event sent to userspace when the SR feature is disabled.
15808  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
15809  * and sent along with the asynchronous event.
15810  *
15811  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
15812  * asynchronous event when the SR feature is enabled again after the SR feature
15813  * was suspended by the driver earlier. The enable reason is
15814  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
15815  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15816  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
15817  *
15818  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
15819  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15820  * reuse transmissions. Userspace sends this operation to the driver.
15821  * The driver/firmware upon receiving this operation shall prohibit PSR-based
15822  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15823  *
15824  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
15825  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15826  * reuse transmissions. Userspace sends this operation to the driver.
15827  * The driver/firmware upon receiving this operation shall allow PSR-based
15828  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15829  *
15830  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
15831  * driver to get the SR statistics and the driver sends a synchronous response
15832  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
15833  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
15834  *
15835  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
15836  * driver to clear the SR statistics and upon receiving this operation
15837  * the driver/firmware shall clear the SR statistics.
15838  *
15839  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
15840  * driver to get the SR parameters and the driver sends the synchronous response
15841  * with the following required attributes:
15842  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15843  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15844  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15845  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15846  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15847  *
15848  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
15849  * asynchronous event to userspace to update any changes in SR parameters.
15850  * The following attributes are used with this operation:
15851  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15852  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15853  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15854  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15855  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15856  */
15857 enum qca_wlan_sr_operation {
15858 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
15859 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
15860 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
15861 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
15862 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
15863 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
15864 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
15865 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
15866 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
15867 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
15868 };
15869 
15870 /**
15871  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
15872  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
15873  *
15874  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
15875  * This attribute is optionally set in response to
15876  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
15877  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
15878  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
15879  * about HESIGA_Spatial_reuse_value15_allowed.
15880  *
15881  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
15882  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
15883  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
15884  * allowed or not at non-AP STAs that are associated with the AP. If present
15885  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
15886  *
15887  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
15888  * attribute. This attribute is used in response to
15889  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15890  * Min Offset field which contains an unsigned integer that is added to -82 dBm
15891  * to generate the value of the SRG OBSS PD Min parameter.
15892  *
15893  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15894  * attribute. This attribute is used in response to
15895  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15896  * Max Offset field which contains an unsigned integer that is added to -82 dBm
15897  * to generate the value of the SRG OBSS PD Max parameter.
15898  *
15899  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15900  * attribute. This attribute is used in response to
15901  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
15902  * PD Max Offset field which contains an unsigned integer that is added to -82
15903  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
15904  *
15905  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15906  * Userspace optionally sends this attribute with
15907  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15908  * preferred SRG PD threshold. The driver shall send this attribute to
15909  * userspace in SR resume event to indicate the PD threshold being used for SR.
15910  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
15911  * the driver shall indicate the userspace the newly configured SRG PD threshold
15912  * using an asynchronous event.
15913  *
15914  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15915  * Userspace optionally sends this attribute with
15916  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15917  * preferred non-SRG PD threshold. The driver shall send this attribute to
15918  * userspace in SR resume event to indicate the PD threshold being used for SR.
15919  * When there is change in non-SRG PD threshold (for example, due to roaming,
15920  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
15921  * threshold using an asynchronous event.
15922  *
15923  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
15924  * values are defined in enum qca_wlan_sr_reason_code. This
15925  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
15926  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
15927  */
15928 enum qca_wlan_vendor_attr_sr_params {
15929 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
15930 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
15931 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
15932 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
15933 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
15934 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
15935 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
15936 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
15937 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
15938 
15939 	/* keep last */
15940 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
15941 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
15942 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
15943 };
15944 
15945 /**
15946  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
15947  * command QCA_NL80211_VENDOR_SUBCMD_SR.
15948  *
15949  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
15950  * from userspace to the driver. Possible values are defined in enum
15951  * qca_wlan_sr_operation.
15952  *
15953  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
15954  * configuration parameters. The possible attributes inside this attribute are
15955  * defined in enum qca_wlan_vendor_attr_sr_params.
15956  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15957  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
15958  * also in response from the driver to userspace when the response is sent for
15959  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
15960  * The driver uses this attribute in asynchronous events in which the operation
15961  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
15962  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
15963  *
15964  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
15965  * statistics. These attributes used inside this are defined in enum
15966  * qca_wlan_vendor_attr_sr_stats.
15967  * This attribute is used in response from the driver to a command in which
15968  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15969  * %QCA_WLAN_SR_OPERATION_GET_STATS.
15970  */
15971 enum qca_wlan_vendor_attr_sr {
15972 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
15973 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
15974 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
15975 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
15976 
15977 	/* Keep last */
15978 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
15979 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
15980 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
15981 };
15982 
15983 /**
15984  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
15985  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
15986  *
15987  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
15988  * used by the peer on the link that corresponds to the link used for sending
15989  * the event notification.
15990  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
15991  * MLD MAC address of the peer.
15992  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
15993  * used to pass ifindex of the primary netdev.
15994  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
15995  * used to pass ifindex of the MLD netdev.
15996  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
15997  * used to indicate the number of links that the non-AP MLD negotiated to be
15998  * used in the ML connection.
15999  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
16000  * attribute, contains information regarding links of the non-AP MLD.
16001  * User applications need to know all the links of a non-AP MLD that are
16002  * participating in the ML association. The possible attributes inside this
16003  * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
16004  */
16005 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
16006 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
16007 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
16008 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
16009 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
16010 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
16011 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
16012 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
16013 
16014 	/* keep last */
16015 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
16016 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
16017 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
16018 };
16019 
16020 /**
16021  * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
16022  * non-AP MLD link parameters used by the attribute
16023  * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
16024  *
16025  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
16026  * to pass the netdev ifindex of the non-AP MLD link.
16027  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
16028  * the non-AP MLD link.
16029  */
16030 enum qca_wlan_vendor_attr_mlo_link_info {
16031 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
16032 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
16033 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
16034 
16035 	/* keep last */
16036 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
16037 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
16038 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
16039 };
16040 
16041 /**
16042  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
16043  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
16044  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
16045  * and PSD information.
16046  *
16047  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
16048  * u32. This attribute is used to indicate the start of the queried frequency
16049  * range in MHz.
16050  *
16051  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
16052  * This attribute is used to indicate the end of the queried frequency range
16053  * in MHz.
16054  *
16055  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
16056  * This attribute will contain the PSD information for a single range as
16057  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
16058  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
16059  *
16060  * The PSD power info (dBm/MHz) from user space should be multiplied
16061  * by a factor of 100 when sending to the driver to preserve granularity
16062  * up to 2 decimal places.
16063  * Example:
16064  *     PSD power value: 10.21 dBm/MHz
16065  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
16066  *
16067  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
16068  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
16069  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
16070  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16071  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16072  *
16073  * The following set of attributes will be used to exchange frequency and
16074  * corresponding PSD information for AFC between the user space and the driver.
16075  */
16076 enum qca_wlan_vendor_attr_afc_freq_psd_info {
16077 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
16078 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
16079 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
16080 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
16081 
16082 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
16083 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
16084 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
16085 };
16086 
16087 /**
16088  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
16089  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
16090  * channel list and corresponding EIRP information.
16091  *
16092  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
16093  * This attribute is used to indicate queried channel from
16094  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
16095  *
16096  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
16097  * This attribute is used to configure the EIRP power info corresponding
16098  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
16099  * The EIRP power info(dBm) from user space should be multiplied
16100  * by a factor of 100 when sending to Driver to preserve granularity up to
16101  * 2 decimal places.
16102  * Example:
16103  *     EIRP power value: 34.23 dBm
16104  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
16105  *
16106  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
16107  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16108  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
16109  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16110  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
16111  *
16112  * The following set of attributes will be used to exchange Channel and
16113  * corresponding EIRP information for AFC between the user space and Driver.
16114  */
16115 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
16116 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
16117 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
16118 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
16119 
16120 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
16121 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
16122 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
16123 };
16124 
16125 /**
16126  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
16127  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16128  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
16129  * channel, and EIRP related information.
16130  *
16131  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
16132  * This attribute is used to indicate the operating class, as listed under
16133  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
16134  *
16135  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
16136  * for updating the channel number and EIRP power information.
16137  * It uses the attributes defined in
16138  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
16139  *
16140  * Operating class information packing format for
16141  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16142  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16143  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
16144  *
16145  * m - Total number of operating classes.
16146  * n, j - Number of queried channels for the corresponding operating class.
16147  *
16148  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16149  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16150  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16151  *      .....
16152  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16153  *  ....
16154  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16155  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16156  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16157  *      ....
16158  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16159  *
16160  * Operating class information packing format for
16161  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
16162  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
16163  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16164  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
16165  *
16166  * m - Total number of operating classes.
16167  * n, j - Number of channels for the corresponding operating class.
16168  *
16169  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
16170  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
16171  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16172  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16173  *      .....
16174  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
16175  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
16176  *  ....
16177  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
16178  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
16179  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
16180  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
16181  *      ....
16182  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
16183  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
16184  *
16185  * The following set of attributes will be used to exchange operating class
16186  * information for AFC between the user space and the driver.
16187  */
16188 enum qca_wlan_vendor_attr_afc_opclass_info {
16189 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
16190 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
16191 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
16192 
16193 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
16194 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
16195 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
16196 };
16197 
16198 /**
16199  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
16200  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
16201  *
16202  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
16203  * driver to userspace in order to query the new AFC power values.
16204  *
16205  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
16206  * complete event will be sent from the driver to userspace to indicate
16207  * processing of the AFC response.
16208  *
16209  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
16210  * will be sent from the driver to userspace to indicate last received
16211  * AFC response data has been cleared on the AP due to invalid data
16212  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
16213  *
16214  * The following enum defines the different event types that will be
16215  * used by the driver to help trigger corresponding AFC functionality in user
16216  * space.
16217  */
16218 enum qca_wlan_vendor_afc_event_type {
16219 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
16220 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
16221 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
16222 };
16223 
16224 /**
16225  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
16226  * deployment type.
16227  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
16228  *
16229  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
16230  *
16231  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
16232  *
16233  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
16234  *
16235  * The following enum defines different deployment modes that the AP might
16236  * come up in. This information will be essential to retrieve deployment-type
16237  * specific SP power values for AFC operation.
16238  */
16239 enum qca_wlan_vendor_afc_ap_deployment_type {
16240 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
16241 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
16242 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
16243 };
16244 
16245 /**
16246  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
16247  * indicate AFC response status.
16248  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
16249  *
16250  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
16251  *
16252  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
16253  * command was not received within the expected time of the AFC expiry event
16254  * being triggered.
16255  *
16256  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
16257  * parsing error by the driver.
16258  *
16259  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
16260  * error.
16261  *
16262  * The following enum defines the status codes that the driver will use to
16263  * indicate whether the AFC data is valid or not.
16264  */
16265 enum qca_wlan_vendor_afc_evt_status_code {
16266 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
16267 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
16268 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
16269 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
16270 };
16271 
16272 /**
16273  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
16274  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
16275  * support sending only a single request to the user space at a time.
16276  *
16277  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
16278  * Used with event to notify the type of AFC event received.
16279  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
16280  *
16281  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
16282  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16283  * otherwise unused.
16284  *
16285  * This attribute is used to indicate the AP deployment type in the AFC request.
16286  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
16287  *
16288  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
16289  * Unique request identifier generated by the AFC client for every
16290  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
16291  * The user space application is responsible for ensuring no duplicate values
16292  * are in-flight with the server, e.g., by delaying a request, should the same
16293  * value be received from different radios in parallel.
16294  *
16295  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
16296  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16297  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
16298  *
16299  * This attribute indicates the AFC spec version information. This will
16300  * indicate the AFC version AFC client must use to query the AFC data.
16301  * Bits 15:0  - Minor version
16302  * Bits 31:16 - Major version
16303  *
16304  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
16305  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
16306  * otherwise unused.
16307  * This attribute indicates the minimum desired power (in dBm) for
16308  * the queried spectrum.
16309  *
16310  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
16311  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16312  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16313  *
16314  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
16315  * This attribute is used to indicate if there were any errors parsing the
16316  * AFC response.
16317  *
16318  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
16319  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16320  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16321  *
16322  * This attribute indicates the AFC response code. The AFC response codes are
16323  * in the following categories:
16324  * -1: General Failure.
16325  * 0: Success.
16326  * 100 - 199: General errors related to protocol.
16327  * 300 - 399: Error events specific to message exchange
16328  *            for the Available Spectrum Inquiry.
16329  *
16330  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
16331  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16332  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16333  *
16334  * This attribute indicates the date until which the current response is
16335  * valid for in UTC format.
16336  * Date format: bits 7:0   - DD (Day 1-31)
16337  *              bits 15:8  - MM (Month 1-12)
16338  *              bits 31:16 - YYYY (Year)
16339  *
16340  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
16341  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16342  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16343  *
16344  * This attribute indicates the time until which the current response is
16345  * valid for in UTC format.
16346  * Time format: bits 7:0   - SS (Seconds 0-59)
16347  *              bits 15:8  - MM (Minutes 0-59)
16348  *              bits 23:16 - HH (Hours 0-23)
16349  *              bits 31:24 - Reserved
16350  *
16351  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
16352  * for updating the list of frequency ranges to be queried.
16353  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16354  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16355  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16356  * It uses the attributes defined in
16357  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
16358  *
16359  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
16360  * for updating the list of operating classes and corresponding channels to be
16361  * queried.
16362  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
16363  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
16364  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
16365  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
16366  */
16367 enum qca_wlan_vendor_attr_afc_event {
16368 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
16369 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
16370 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
16371 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
16372 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
16373 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
16374 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
16375 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
16376 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
16377 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
16378 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
16379 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
16380 
16381 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
16382 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
16383 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
16384 };
16385 
16386 /**
16387  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
16388  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
16389  * will support sending only a single AFC response to the driver at a time.
16390  *
16391  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
16392  * This attribute will be used to send a single Spectrum Inquiry response object
16393  * from the 'availableSpectrumInquiryResponses' array object from the response
16394  * JSON.
16395  *
16396  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
16397  *
16398  * This attribute indicates the period (in seconds) for which the response
16399  * data received is valid for.
16400  *
16401  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
16402  *
16403  * This attribute indicates the request ID for which the corresponding
16404  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
16405  *
16406  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
16407  *
16408  * This attribute indicates the date until which the current response is
16409  * valid for in UTC format.
16410  * Date format: bits 7:0   - DD (Day 1-31)
16411  *              bits 15:8  - MM (Month 1-12)
16412  *              bits 31:16 - YYYY (Year)
16413  *
16414  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
16415  *
16416  * This attribute indicates the time until which the current response is
16417  * valid for in UTC format.
16418  * Time format: bits 7:0   - SS (Seconds 0-59)
16419  *              bits 15:8  - MM (Minutes 0-59)
16420  *              bits 23:16 - HH (Hours 0-23)
16421  *              bits 31:24 - Reserved
16422  *
16423  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
16424  *
16425  * This attribute indicates the AFC response code. The AFC response codes are
16426  * in the following categories:
16427  * -1: General Failure.
16428  * 0: Success.
16429  * 100 - 199: General errors related to protocol.
16430  * 300 - 399: Error events specific to message exchange
16431  *            for the Available Spectrum Inquiry.
16432  *
16433  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
16434  * for PSD info of all the queried frequency ranges. It uses the attributes
16435  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
16436  *
16437  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
16438  * attributes for EIRP info of all queried operating class/channels. It uses
16439  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
16440  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
16441  *
16442  */
16443 enum qca_wlan_vendor_attr_afc_response {
16444 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
16445 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
16446 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
16447 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
16448 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
16449 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
16450 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
16451 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
16452 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
16453 
16454 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
16455 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
16456 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
16457 };
16458 
16459 /**
16460  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
16461  *
16462  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
16463  *
16464  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
16465  * beaconing at higher beacon interval with Rx disabled.
16466  */
16467 enum qca_wlan_dozed_ap_state {
16468 	QCA_WLAN_DOZED_AP_DISABLE = 0,
16469 	QCA_WLAN_DOZED_AP_ENABLE = 1,
16470 };
16471 
16472 /**
16473  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
16474  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
16475  * configuration.
16476  *
16477  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
16478  * Configures the doze state for an AP interface. Possible values are defined
16479  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
16480  * gets triggered asynchronously to provide updated AP interface configuration.
16481  *
16482  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
16483  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
16484  * command, which is used later to maintain synchronization between commands
16485  * and asynchronous events.
16486  *
16487  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
16488  * Used in event to indicate the next TBTT TSF timer value after applying the
16489  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
16490  * the first beacon after entering or exiting dozed mode.
16491  *
16492  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
16493  * Used with event to inform the periodicity of beacon transmission that would
16494  * be skipped at all TBTTs in between.
16495  */
16496 enum qca_wlan_vendor_attr_dozed_ap {
16497 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
16498 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
16499 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
16500 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
16501 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
16502 
16503 	/* Keep last */
16504 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
16505 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
16506 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
16507 };
16508 
16509 /**
16510  * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
16511  * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
16512  * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
16513  * capture running status.
16514  * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
16515  * capture running status.
16516  **/
16517 
16518 enum qca_wlan_vendor_monitor_mode_status {
16519 	QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
16520 	QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
16521 };
16522 
16523 /**
16524  * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
16525  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
16526  * information regarding the local packet capture over the monitor mode.
16527  *
16528  * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
16529  * represents the status of the start capture commands. The values used with
16530  * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
16531  * is returned by the driver in the response to the command.
16532  */
16533 
16534 enum qca_wlan_vendor_attr_get_monitor_mode {
16535 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
16536 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
16537 
16538 	/* Keep last */
16539 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
16540 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
16541 	QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
16542 };
16543 
16544 /**
16545  * enum qca_wlan_vendor_link_state_op_types - Defines different types of
16546  * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
16547  * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
16548  *
16549  * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
16550  * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
16551  */
16552 enum qca_wlan_vendor_link_state_op_types {
16553 	QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
16554 	QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
16555 };
16556 
16557 /**
16558  * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
16559  * links state control modes. This enum is used by
16560  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
16561  *
16562  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
16563  * by the driver.
16564  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
16565  * user space.
16566  * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
16567  * desired number of MLO links to operate in active state at any given time.
16568  * The driver will choose which MLO links should operate in the active state.
16569  * See enum qca_wlan_vendor_link_state for active state definition.
16570  */
16571 enum qca_wlan_vendor_link_state_control_modes {
16572 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
16573 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
16574 	QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
16575 };
16576 
16577 /**
16578  * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
16579  * links state operation modes. This enum is used by
16580  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
16581  *
16582  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
16583  * mode, the driver selects the operating mode of the links, without any
16584  * guidance from the user space.
16585  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
16586  * operation mode the driver should select MLO links that will achieve low
16587  * latency.
16588  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
16589  * throughput operation mode the driver should select MLO links that will
16590  * achieve higher throughput.
16591  * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
16592  * operation mode the driver should select MLO links that will achieve low
16593  * power.
16594  */
16595 enum qca_wlan_vendor_link_state_operation_modes {
16596 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
16597 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
16598 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
16599 	QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
16600 };
16601 
16602 /**
16603  * enum qca_wlan_vendor_link_state - Represents the possible link states of an
16604  * MLO link.
16605  *
16606  * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
16607  * be used for data transmission but it can have TIDs mapped to it. It will be
16608  * in doze state always and does not monitor the beacons.
16609  * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
16610  * used for data TX/RX and monitors the beacons to check TIM bit indication.
16611  * It may enter doze state and comes out based on the transmit data traffic and
16612  * TIM bit indication in the beacon.
16613  */
16614 enum qca_wlan_vendor_link_state {
16615 	QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
16616 	QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
16617 };
16618 
16619 /**
16620  * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
16621  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
16622  *
16623  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
16624  * MLO link.
16625  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
16626  * enum qca_wlan_vendor_link_state for possible MLO link states.
16627  */
16628 
16629 enum qca_wlan_vendor_attr_link_state_config {
16630 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
16631 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
16632 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
16633 
16634 	/* Keep last */
16635 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
16636 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
16637 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
16638 };
16639 
16640 /**
16641  * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
16642  * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
16643  *
16644  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
16645  * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
16646  * Required only in a command. Possible values for this attribute are defined in
16647  * enum qca_wlan_vendor_link_state_op_types.
16648  *
16649  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
16650  * links control mode type. Optional attribute in a command when
16651  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16652  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16653  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16654  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16655  * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
16656  *
16657  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
16658  * Indicates the state of the each MLO link affiliated with the interface.
16659  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16660  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16661  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16662  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
16663  * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16664  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16665  * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
16666  *
16667  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
16668  * Represents the number of active state links. See enum
16669  * qca_wlan_vendor_link_state for active state definition.
16670  * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
16671  * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
16672  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
16673  * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
16674  *
16675  * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
16676  * links operation mode type. Optional attribute in a command when
16677  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16678  * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
16679  * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
16680  * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
16681  * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
16682  * modes.
16683  */
16684 enum qca_wlan_vendor_attr_mlo_link_state {
16685 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
16686 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
16687 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
16688 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
16689 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
16690 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
16691 
16692 	/* keep last */
16693 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
16694 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
16695 	QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
16696 };
16697 
16698 /**
16699  * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
16700  * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16701  *
16702  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
16703  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16704  * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
16705  * bitmask of the link IDs in which a bit set means that the TID is mapped with
16706  * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
16707  * traffic for that link.
16708  *
16709  * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
16710  * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
16711  * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
16712  * bitmask of the link IDs in which a bit set means that the TID is mapped with
16713  * that link ID in downlink traffic. Otherwise, the TID is not mapped to
16714  * downlink traffic for that link.
16715  */
16716 enum qca_wlan_vendor_attr_tid_link_map_status {
16717 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
16718 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
16719 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
16720 
16721 	/* keep last */
16722 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
16723 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
16724 	QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
16725 };
16726 
16727 /*
16728  * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
16729  * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
16730  *
16731  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
16732  * AP MLD address with which this TID-to-link negotiation mapping is
16733  * established/updated.
16734  *
16735  * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
16736  * nested attributes containing TID-to-links mapping information. This will have
16737  * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
16738  * map information. If this attribute is not present the default TID-to-link
16739  * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
16740  * downlink traffic.
16741  * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
16742  */
16743 enum qca_wlan_vendor_attr_tid_to_link_map {
16744 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
16745 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
16746 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
16747 
16748 	/* keep last */
16749 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
16750 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
16751 	QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
16752 };
16753 
16754 /**
16755  * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
16756  * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
16757  *
16758  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
16759  * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
16760  *
16761  * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
16762  * A bitmap of the removed setup links link IDs.
16763  */
16764 enum qca_wlan_vendor_attr_link_reconfig {
16765 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
16766 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
16767 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
16768 
16769 	/* keep last */
16770 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
16771 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
16772 	QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
16773 };
16774 
16775 /**
16776  * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
16777  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
16778  *
16779  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
16780  * Indicates the MLO link id on which the TDLS discovery response
16781  * frame is to be transmitted.
16782  */
16783 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
16784 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
16785 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
16786 
16787 	/* Keep last */
16788 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
16789 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
16790 	QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
16791 };
16792 
16793 /**
16794  * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
16795  *
16796  * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
16797  * for all stations.
16798  *
16799  * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
16800  * establish the session.
16801  *
16802  * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
16803  * established.
16804  *
16805  * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
16806  * session is established using MCC.
16807  *
16808  * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
16809  * established, but is temporarily dropped currently.
16810  *
16811  * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
16812  */
16813 enum qca_wlan_vendor_tdls_state {
16814 	QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
16815 	QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
16816 	QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
16817 	QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
16818 	QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
16819 	QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
16820 };
16821 
16822 /**
16823  * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
16824  *
16825  * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
16826  *
16827  * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
16828  *
16829  * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
16830  *
16831  * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
16832  *
16833  * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
16834  * than through direct link.
16835  *
16836  * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
16837  * session anymore.
16838  */
16839 
16840 enum qca_wlan_vendor_tdls_reason {
16841 	QCA_WLAN_TDLS_REASON_SUCCESS = 0,
16842 	QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
16843 	QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
16844 	QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
16845 	QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
16846 	QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
16847 };
16848 
16849 /**
16850  * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
16851  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
16852  *
16853  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
16854  * station to enable the TDLS session. Optional attribute. The driver sends the
16855  * TDLS session result as an asynchronous response using the command
16856  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
16857  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
16858  *
16859  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
16860  * channel on which the TDLS session to be established. Required only when
16861  * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16862  *
16863  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
16864  * Indicates the global operating class of the TDLS session to be established.
16865  * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16866  *
16867  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
16868  * the maximum latency of the WLAN packets to be transmitted/received in
16869  * milliseconds on TDLS session. Required only when
16870  * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
16871  *
16872  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
16873  * Indicates the minimum bandwidth to be used to establish the TDLS session
16874  * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
16875  * present.
16876  */
16877 enum qca_wlan_vendor_attr_tdls_enable {
16878 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
16879 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
16880 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
16881 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
16882 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
16883 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
16884 
16885 	/* keep last */
16886 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
16887 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
16888 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
16889 };
16890 
16891 /**
16892  * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
16893  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
16894  *
16895  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
16896  * station to disable the TDLS session. Optional attribute.
16897  */
16898 enum qca_wlan_vendor_attr_tdls_disable {
16899 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
16900 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
16901 
16902 	/* keep last */
16903 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
16904 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
16905 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
16906 };
16907 
16908 /**
16909  * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
16910  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
16911  *
16912  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
16913  * peer station. Optional attribute. Used in
16914  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
16915  *
16916  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
16917  * TDLS session state with the peer specified in
16918  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
16919  * enum qca_wlan_vendor_tdls_state. Used in
16920  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16921  *
16922  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
16923  * reason for the TDLS session state indicated in
16924  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
16925  * qca_wlan_vendor_tdls_reason. Used in
16926  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16927  *
16928  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
16929  * channel of the TDLS session established with
16930  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16931  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16932  *
16933  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
16934  * Indicates the global operating class of the TDLS session established with
16935  * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
16936  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
16937  *
16938  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
16939  * the current number of active TDLS sessions. This is indicated in the response
16940  * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16941  * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16942  *
16943  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
16944  * whether the driver can initiate new TDLS session. This is indicated in the
16945  * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
16946  * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
16947  */
16948 enum qca_wlan_vendor_attr_tdls_get_status {
16949 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
16950 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
16951 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
16952 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
16953 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
16954 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
16955 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
16956 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
16957 
16958 	/* keep last */
16959 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
16960 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
16961 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
16962 };
16963 
16964 /**
16965  * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
16966  * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
16967  *
16968  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
16969  * peer station. Required attribute.
16970  *
16971  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
16972  * the current TDLS state. Required attribute. Uses the values from
16973  * enum qca_wlan_vendor_tdls_state.
16974  *
16975  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
16976  * reason of the current TDLS session state. Required attribute. Uses the values
16977  * from enum qca_wlan_vendor_tdls_reason.
16978  *
16979  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
16980  * TDLS session channel. Required attribute.
16981  *
16982  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
16983  * Indicates the TDLS session global operating class. Required attribute.
16984  */
16985 enum qca_wlan_vendor_attr_tdls_state {
16986 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
16987 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
16988 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
16989 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
16990 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
16991 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
16992 
16993 	/* keep last */
16994 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
16995 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
16996 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
16997 };
16998 
16999 /*
17000  * enum qca_wlan_vendor_opm_mode - Modes supported by
17001  * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
17002  *
17003  * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
17004  * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
17005  * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
17006  * 	to configure power save inactivity timeout and speculative wake up
17007  * 	interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
17008  * 	%QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
17009  */
17010 
17011 enum qca_wlan_vendor_opm_mode {
17012 	QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
17013 	QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
17014 	QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
17015 };
17016 
17017 /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport
17018  * switch types.
17019  *
17020  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
17021  * via non-WLAN transport (ex: bluetooth).
17022  *
17023  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
17024  * WLAN transport.
17025  */
17026 enum qca_wlan_audio_transport_switch_type {
17027 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
17028 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
17029 };
17030 
17031 /**
17032  * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
17033  * transport switch request.
17034  *
17035  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
17036  * has been rejected. For ex: when transport switch is requested from WLAN
17037  * to non-WLAN transport, user space modules and peers would evaluate the switch
17038  * request and may not be ready for switch and hence switch to non-WLAN transport
17039  * gets rejected.
17040  *
17041  * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport
17042  * has been completed. This is sent only in command path. Ex: when host driver
17043  * had requested for audio transport switch and userspace modules as well as
17044  * peers are ready for the switch, userspace module switches the transport and
17045  * sends subcommand with status completed to host driver.
17046  */
17047 enum qca_wlan_audio_transport_switch_status {
17048 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
17049 	QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
17050 };
17051 
17052 /**
17053  * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
17054  * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
17055  *
17056  * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
17057  * the transport switch type from one of the values in enum
17058  * qca_wlan_audio_transport_switch_type. This is mandatory param in both
17059  * command and event path. This attribute is included in both requests and
17060  * responses.
17061  *
17062  * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
17063  * the transport switch status from one of the values in enum
17064  * qca_wlan_audio_transport_switch_status. This is optional param and used in
17065  * both command and event path. This attribute must not be included in requests.
17066  */
17067 enum qca_wlan_vendor_attr_audio_transport_switch {
17068 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
17069 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
17070 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
17071 	/* keep last */
17072 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
17073 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
17074 	QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
17075 };
17076 
17077 /*
17078  * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency
17079  * types.
17080  *
17081  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency
17082  * from: An MSDU is presented to the driver
17083  * to: the MSDU is queued into TCL SRNG
17084  *
17085  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency
17086  * from: the MSDU is queued into TCL SRNG
17087  * to: the MSDU is released by the driver
17088  *
17089  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency
17090  * from: the MSDU is presented to the hardware
17091  * to: the MSDU is released by the hardware
17092  *
17093  * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency
17094  * The time spent on Clear Channel Assessment, the maximum value is 50000 (us)
17095  * from: A PPDU is presented to the hardware LMAC
17096  * to: over-the-air transmission is started for the PPDU
17097  */
17098 enum qca_wlan_vendor_tx_latency_type {
17099 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0,
17100 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1,
17101 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2,
17102 	QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3,
17103 };
17104 
17105 /**
17106  * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes
17107  * used inside nested attributes
17108  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and
17109  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS.
17110  *
17111  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute.
17112  * Indicates the latency type.
17113  * See enum qca_wlan_vendor_tx_latency_type for the supported types.
17114  *
17115  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute.
17116  * Indicates the granularity (in microseconds) of the distribution for the
17117  * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value
17118  * must be positive.
17119  * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is
17120  * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple
17121  * of 1000, and the maximum allowed value is 15000 (us).
17122  *
17123  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute.
17124  * Indicates the average of the latency (in microseconds) for the type
17125  * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle.
17126  * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0;
17127  * otherwise, it represents the quotient of <accumulated latency of the
17128  * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted
17129  * MSDUs/MPDUs in a cycle>.
17130  *
17131  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION:
17132  * Array of u32, 4 elements in total, represents the latency distribution for
17133  * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE).
17134  * Each element holds the count of MSDUs/PPDUs (according to the latency type)
17135  * within a range:
17136  * element[0]: latency >= 0 && latency < granularity
17137  * element[1]: latency >= granularity && latency < granularity * 2
17138  * element[2]: latency >= granularity * 2 && latency < granularity * 3
17139  * element[3]: latency >= granularity * 3
17140  */
17141 enum qca_wlan_vendor_attr_tx_latency_bucket {
17142 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0,
17143 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1,
17144 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2,
17145 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3,
17146 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4,
17147 
17148 	/* keep last */
17149 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST,
17150 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX =
17151 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1,
17152 };
17153 
17154 /**
17155  * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes
17156  * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS.
17157  *
17158  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address.
17159  * Indicates link MAC address of the remote peer. For example, when running
17160  * in station mode, it's the BSSID of the link; while when running in AP
17161  * mode, it's the link MAC address of the remote station.
17162  *
17163  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS:
17164  * Array of nested attribute.
17165  * Represents the transmit latency statistics for the link specified by
17166  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
17167  * Each entry represents the statistics for one of the types defined in
17168  * enum qca_wlan_vendor_tx_latency_type.
17169  * Each defined type has and must have one entry.
17170  * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes.
17171  */
17172 enum qca_wlan_vendor_attr_tx_latency_link {
17173 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0,
17174 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1,
17175 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2,
17176 
17177 	/* keep last */
17178 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST,
17179 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX =
17180 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1,
17181 };
17182 
17183 /**
17184  * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions
17185  * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY.
17186  *
17187  * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE:
17188  * Disable transmit latency monitoring.
17189  *
17190  * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE:
17191  * Enable transmit latency monitoring.
17192  *
17193  * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET:
17194  * Get transmit latency statistics of the last cycle (period is specified by
17195  * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD).
17196  */
17197 enum qca_wlan_vendor_tx_latency_action {
17198 	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0,
17199 	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1,
17200 	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2,
17201 };
17202 
17203 /**
17204  * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by
17205  * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report
17206  * per-link transmit latency statistics.
17207  *
17208  * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY:
17209  * 1) used as a command to enable the feature
17210  * Precondition(s):
17211  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17212  *	%QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE
17213  * Mandatory attribute(s):
17214  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
17215  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD,
17216  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes
17217  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17218  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY.
17219  * Notes:
17220  *	The driver will monitor the transmit latency for the active links
17221  *	and save the statistics for each cycle (period is set by
17222  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled.
17223  * 	Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical
17224  *	report is required.
17225  *
17226  * 2) used as a command to disable the feature
17227  * Precondition(s):
17228  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17229  *	%QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE
17230  * Mandatory attribute(s):
17231  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
17232  *
17233  * 3) used as a command to retrieve the statistics for all the active links on
17234  *    the requested interface
17235  * Precondition(s):
17236  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17237  *	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
17238  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present.
17239  * Mandatory attribute(s):
17240  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION
17241  * Notes:
17242  *	The driver returns failure directly if the feature is not enabled or
17243  *	there is no active link.
17244  *	The driver returns the statistics of the last cycle in the case of
17245  *	success.
17246  *
17247  * 4) used as a command to retrieve the statistics for the specified links
17248  * Precondition(s):
17249  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is
17250  *	QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and
17251  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present.
17252  * Mandatory attribute(s):
17253  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION,
17254  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute
17255  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE.
17256  * Notes:
17257  *	The driver returns failure directly if the feature is not enabled or
17258  *	any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS)
17259  *	does not exist or is not in active state.
17260  *
17261  * 5) used as a command response for #3 or #4
17262  * Precondition(s):
17263  *	Userspace issues command #3 or #4, and the driver gets corresponding
17264  *	statistics successfully.
17265  * Mandatory attribute(s):
17266  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
17267  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
17268  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
17269  *	attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17270  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
17271  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
17272  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
17273  *
17274  * 6) used as an asynchronous event to report the statistics periodically
17275  * Precondition(s):
17276  *	Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in
17277  *	#1.
17278  *	One or more links are in active state.
17279  * Mandatory attribute(s):
17280  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes
17281  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE,
17282  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested
17283  *	attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE,
17284  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY,
17285  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and
17286  *	%QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION.
17287  *
17288  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute
17289  *
17290  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute.
17291  * Action to take in this vendor command.
17292  * See enum qca_wlan_vendor_tx_latency_action for supported actions.
17293  *
17294  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute.
17295  * Enable (flag attribute present) - The driver needs to report transmit latency
17296  * statistics at the end of each statistical period.
17297  * Disable (flag attribute not present) - The driver doesn't need to report
17298  * transmit latency statistics periodically.
17299  *
17300  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute.
17301  * Indicates statistical period for transmit latency in terms of milliseconds,
17302  * the minimal allowed value is 100 and the maximum allowed value is 60000.
17303  *
17304  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute.
17305  * Each entry represents the latency buckets configuration for one of the types
17306  * defined in enum qca_wlan_vendor_tx_latency_type.
17307  * Each defined type has and must have one entry.
17308  * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of
17309  * supported attributes.
17310  *
17311  * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute.
17312  * Information of the links, each entry represents for one link.
17313  * See enum qca_wlan_vendor_attr_tx_latency_link for the list of
17314  * supported attributes for each entry.
17315  */
17316 enum qca_wlan_vendor_attr_tx_latency {
17317 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0,
17318 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1,
17319 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2,
17320 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3,
17321 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4,
17322 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5,
17323 
17324 	/* keep last */
17325 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST,
17326 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX =
17327 	QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1,
17328 };
17329 #endif
17330