xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 8b3dca18206e1a0461492f082fa6e270b092c035)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2022 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: Ext tdls enable
95  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
96  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
97  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
98  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
99  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
100  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
101  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
102  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
103  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
104  * roaming and auth information.
105  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
106  *
107  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
108  *	invoke the ACS function in device and pass selected channels to
109  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
110  *
111  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
112  * driver.
113  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
114  *	started CAC on DFS channel
115  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
116  * 	completed the CAC check on DFS channel
117  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
118  * 	check was aborted by the driver
119  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
120  * 	driver completed NOP
121  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
122  * 	driver detected radar signal on the current operating channel
123  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
124  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
125  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
126  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
127  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
128  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
129  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
130  *	extscan reset ssid hotlist
131  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
132  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
133  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
134  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
135  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
136  *	reset passpoint list
137  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
138  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
139  *	passpoint network found
140  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
141  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
142  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
143  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
144  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
145  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
146 	list
147  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
148  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
149  *	to the host driver. This command sets the band through either
150  *	the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
151  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
152  *	refers enum qca_set_band as unsigned integer values and
153  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
154  *	values. Also, the acceptable values for
155  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
156  *	values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
157  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
158  *	recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
159  *	implementations configure using both the attributes, the configurations
160  *	through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
161  *	precedence.
162  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
163  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
164  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
165  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
166  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
167  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
168  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
169  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
170  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
171  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
172  *	start the P2P Listen Offload function in device and pass the listen
173  *	channel, period, interval, count, number of device types, device
174  *	types and vendor information elements to device driver and firmware.
175  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
176  *	indicate stop request/response of the P2P Listen Offload function in
177  *	device. As an event, it indicates either the feature stopped after it
178  *	was already running or feature has actually failed to start.
179  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
180  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
181  *     beaconing, this sub command provides the driver, the frequencies on the
182  *     5 GHz to check for any radar activity. Driver selects one channel from
183  *     this priority list provided through
184  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
185  *     to check for radar activity on it. If no radar activity is detected
186  *     during the channel availability check period, driver internally switches
187  *     to the selected frequency of operation. If the frequency is zero, driver
188  *     internally selects a channel. The status of this conditional switch is
189  *     indicated through an event using the same sub command through
190  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
191  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
192  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
193  *      indication period and threshold for MAC layer counters.
194  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
195  *	in the host driver. The different TDLS configurations are defined
196  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
197  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
198  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
199  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
200  *	require methods to set SAR limits on TX power of WLAN/WWAN.
201  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
202  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
203  *      configuration of vendor ACS.
204  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
205  *      requisite information leading to a power save failure. The information
206  *      carried as part of this event is represented by the
207  *      enum qca_attr_chip_power_save_failure attributes.
208  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
209  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
210  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
211  *      statistics are represented by the enum qca_attr_nud_stats_get
212  *      attributes.
213  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
214  *      the BSS transition status, whether accept or reject, for a list of
215  *      candidate BSSIDs provided by the userspace. This uses the vendor
216  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
217  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
218  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
219  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
220  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
221  *      the driver shall specify array of
222  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
223  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
224  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
225  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
226  *      specific QCA module. The trace levels are represented by
227  *      enum qca_attr_trace_level attributes.
228  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
229  *      Protocol antenna limit in different modes. See enum
230  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
231  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
232  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
233  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
234  *      identifying the operation in success case. In failure cases an
235  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
236  *      describing the reason for the failure is returned.
237  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
238  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
239  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
240  *      be stopped.
241  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
242  *     specific interface. This can be used to modify some of the low level
243  *     scan parameters (off channel dwell time, home channel time) in the
244  *     driver/firmware. These parameters are maintained within the host
245  *     driver.
246  *     This command is valid only when the interface is in the connected
247  *     state.
248  *     These scan parameters shall be reset by the driver/firmware once
249  *     disconnected. The attributes used with this command are defined in
250  *     enum qca_wlan_vendor_attr_active_tos.
251  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
252  *      driver has detected an internal failure. This event carries the
253  *      information indicating the reason that triggered this detection. The
254  *      attributes for this command are defined in
255  *      enum qca_wlan_vendor_attr_hang.
256  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
257  *     of spectral parameters used. The spectral scan parameters are specified
258  *     by enum qca_wlan_vendor_attr_spectral_scan.
259  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
260  *     for spectral scan functionality. The debug stats are specified by
261  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
262  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
263  *     scan system capabilities. The capabilities are specified
264  *     by enum qca_wlan_vendor_attr_spectral_cap.
265  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
266  *     status of spectral scan. The status values are specified
267  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
268  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
269  *     peer pending packets. Specify the peer MAC address in
270  *     QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
271  *     in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
272  *     in enum qca_wlan_vendor_attr_flush_pending.
273  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
274  *     RF Operating Parameter (RROP) information. The attributes for this
275  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
276  *     intended for use by external Auto Channel Selection applications.
277  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
278  *	(SAR) power limits. This is a companion to the command
279  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
280  *	settings currently in use. The attributes returned by this command are
281  *	defined by enum qca_vendor_attr_sar_limits.
282  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
283  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
284  *      This works both as a query (user space asks the current mode) or event
285  *      interface (driver advertizing the current mode to the user space).
286  *      Driver does not trigger this event for temporary hardware mode changes.
287  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
288  *      channel change etc ) are updated with this event. Attributes for this
289  *      interface are defined in enum qca_wlan_vendor_attr_mac.
290  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
291  *	per peer per TID. Attributes for this command are define in
292  *	enum qca_wlan_set_qdepth_thresh_attr
293  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
294  *	guide for WLAN driver. Request to suspend of driver and FW if the
295  *	temperature is higher than the suspend threshold; resume action is
296  *	requested to driver if the temperature is lower than the resume
297  *	threshold. In user poll mode, request temperature data by user. For test
298  *	purpose, getting thermal shutdown configuration parameters is needed.
299  *	Attributes for this interface are defined in
300  *	enum qca_wlan_vendor_attr_thermal_cmd.
301  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
302  *	driver. Thermal temperature and indication of resume completion are
303  *	reported as thermal events. The attributes for this command are defined
304  *	in enum qca_wlan_vendor_attr_thermal_event.
305  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
306  *	test configuration. Attributes for this command are defined in
307  *	enum qca_wlan_vendor_attr_wifi_test_config.
308  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
309  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
310  *	carried a payload which was a binary blob of data. The command was not
311  *	extendable to send more information. The newer version carries the
312  *	legacy blob encapsulated within an attribute and can be extended with
313  *	additional vendor attributes that can enhance the NAN command
314  *	interface.
315  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
316  *	configure parameters per peer to capture Channel Frequency Response
317  *	(CFR) and enable Periodic CFR capture. The attributes for this command
318  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
319  *	can also be used to send CFR data from the driver to userspace when
320  *	netlink events are used to send CFR data.
321  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
322  *	The returned firmware state is specified in the attribute
323  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
324  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
325  *	is used by host driver to flush per-peer cached statistics to user space
326  *	application. This interface is used as an event from host driver to
327  *	user space application. Attributes for this event are specified in
328  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
329  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
330  *	sent as event from host driver.
331  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
332  *	improve the success rate of Zigbee joining network.
333  *	Due to PTA master limitation, zigbee joining network success rate is
334  *	low while wlan is working. Wlan host driver need to configure some
335  *	parameters including Zigbee state and specific WLAN periods to enhance
336  *	PTA master. All this parameters are delivered by the NetLink attributes
337  *	defined in "enum qca_mpta_helper_vendor_attr".
338  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
339  *	implement Beacon frame reporting feature.
340  *
341  *	Userspace can request the driver/firmware to periodically report
342  *	received Beacon frames whose BSSID is same as the current connected
343  *	BSS's MAC address.
344  *
345  *	In case the STA seamlessly (without sending disconnect indication to
346  *	userspace) roams to a different BSS, Beacon frame reporting will be
347  *	automatically enabled for the Beacon frames whose BSSID is same as the
348  *	MAC address of the new BSS. Beacon reporting will be stopped when the
349  *	STA is disconnected (when the disconnect indication is sent to
350  *	userspace) and need to be explicitly enabled by userspace for next
351  *	connection.
352  *
353  *	When a Beacon frame matching configured conditions is received, and if
354  *	userspace has requested to send asynchronous beacon reports, the
355  *	driver/firmware will encapsulate the details of the Beacon frame in an
356  *	event and send it to userspace along with updating the BSS information
357  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
358  *	scan cache with the information from the received Beacon frame but
359  *	will not send any active report to userspace.
360  *
361  *	The userspace can request the driver/firmware to stop reporting Beacon
362  *	frames. If the driver/firmware is not able to receive Beacon frames
363  *	due to other Wi-Fi operations such as off-channel activities, etc.,
364  *	the driver/firmware will send a pause event to userspace and stop
365  *	reporting Beacon frames. Whether the beacon reporting will be
366  *	automatically resumed or not by the driver/firmware later will be
367  *	reported to userspace using the
368  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
369  *	reporting shall be resumed for all the cases except either when
370  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
371  *	in the command which triggered the current beacon reporting or during
372  *	any disconnection case as indicated by setting
373  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
374  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
375  *	driver.
376  *
377  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
378  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
379  *	flag not set, the next first
380  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
381  *	shall be considered as un-pause event.
382  *
383  *	All the attributes used with this command are defined in
384  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
385  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
386  *	interop issues with the DUT. This sub command is used to transfer the
387  *	ap info between driver and user space. This works both as a command
388  *	or event. As a command, it configs the stored list of aps from user
389  *	space to firmware; as an event, it indicates the ap info detected by
390  *	firmware to user space for persistent storage. The attributes defined
391  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
392  *	parameters.
393  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
394  *	binary blobs from application/service to firmware. The attributes
395  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
396  *	deliver the parameters.
397  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
398  *	to send/receive avoid frequency data using
399  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
400  *	This new command is alternative to existing command
401  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
402  *	is using stream of bytes instead of structured data using vendor
403  *	attributes. User space sends unsafe frequency ranges to the driver using
404  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
405  *	reception of this command, the driver shall check if an interface is
406  *	operating on an unsafe frequency and the driver shall try to move to a
407  *	safe channel when needed. If the driver is not able to find a safe
408  *	channel the interface can keep operating on an unsafe channel with the
409  *	TX power limit derived based on internal configurations	like
410  *	regulatory/SAR rules.
411  *
412  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
413  *	add the STA node details in driver/firmware. Attributes for this event
414  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
415  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
416  *	coex chain mode from application/service.
417  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
418  *	to deliver the parameters.
419  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
420  *	get information of a station from driver to userspace. This command can
421  *	be used in both STA and AP modes. For STA mode, it provides information
422  *	of the current association when in connected state or the last
423  *	association when in disconnected state. For AP mode, only information
424  *	of the currently connected stations is available. This command uses
425  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
426  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
427  *	Host drivers can request the user space entity to set the SAR power
428  *	limits with this event. Accordingly, the user space entity is expected
429  *	to set the SAR power limits. Host drivers can retry this event to the
430  *	user space for the SAR power limits configuration from user space. If
431  *	the driver does not get the SAR power limits from user space for all
432  *	the retried attempts, it can configure a default SAR power limit.
433  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
434  *	is used to update the information about the station from the driver to
435  *	userspace. Uses attributes from enum
436  *	qca_wlan_vendor_attr_update_sta_info.
437  *
438  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
439  *	The host driver initiates the disconnection for scenarios such as beacon
440  *	miss, NUD failure, peer kick out, etc. The disconnection indication
441  *	through cfg80211_disconnected() expects the reason codes from enum
442  *	ieee80211_reasoncode which does not signify these various reasons why
443  *	the driver has triggered the disconnection. This event will be used to
444  *	send the driver specific reason codes by the host driver to userspace.
445  *	Host drivers should trigger this event and pass the respective reason
446  *	code immediately prior to triggering cfg80211_disconnected(). The
447  *	attributes used with this event are defined in enum
448  *	qca_wlan_vendor_attr_driver_disconnect_reason.
449  *
450  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
451  *	add/delete TSPEC for each AC. One command is for one specific AC only.
452  *	This command can only be used in STA mode and the STA must be
453  *	associated with an AP when the command is issued. Uses attributes
454  *	defined in enum qca_wlan_vendor_attr_config_tspec.
455  *
456  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
457  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
458  *
459  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
460  *	the host driver. The band configurations obtained are referred through
461  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
462  *
463  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
464  *	assessment.
465  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
466  *
467  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
468  *	used to update SSID information in hostapd when it is updated in the
469  *	driver. Uses the attribute NL80211_ATTR_SSID.
470  *
471  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
472  *	the driver to send opaque data from the firmware to userspace. The
473  *	driver sends an event to userspace whenever such data is received from
474  *	the firmware.
475  *
476  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
477  *	send this opaque data for this event.
478  *
479  *	The format of the opaque data is specific to the particular firmware
480  *	version and there is no guarantee of the format remaining same.
481  *
482  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
483  *	The host driver selects Tx VDEV, and notifies user. The attributes
484  *	used with this event are defined in enum
485  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
486  *	This event contains Tx VDEV group information contains other VDEVs
487  *	interface index and status information.
488  *
489  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
490  *	configure the concurrent session policies when multiple STA interfaces
491  *	are (getting) active. The attributes used by this command are defined
492  *	in enum qca_wlan_vendor_attr_concurrent_sta_policy.
493  *
494  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
495  *	to query usable channels for different interface types such as STA,
496  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
497  *	channels in the response based on country code, different static
498  *	configurations, concurrency combinations, etc. The attributes used
499  *	with this command are defined in
500  *	enum qca_wlan_vendor_attr_usable_channels.
501  *
502  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
503  *	to get DFS radar history from the driver to userspace. The driver
504  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
505  *	array of nested entries.
506  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
507  *	enable/disable mDNS offload to the firmware. The attributes used with
508  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
509  *
510  * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
511  *	important debug events that are required for various issues. The
512  *	attributes used with this command are defined in
513  *	enum qca_wlan_vendor_attr_diag.
514  *	This command is defined for temporary usage until this interface is
515  *	moved to the existing diag infra with cnss diag events. This command
516  *	will be deprecated soon and it is not recommended to do any further
517  *	enhancements to this command.
518  *
519  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
520  *     to set packet monitor mode that aims to send the specified set of TX and
521  *     RX frames on the current client interface to an active monitor interface.
522  *     If this Monitor mode is set, the driver will send the configured frames,
523  *     from the interface on which the command is issued, to an active monitor
524  *     interface. The attributes used with this command are defined in
525  *     enum qca_wlan_vendor_attr_set_monitor_mode.
526  *
527  *     Though the monitor mode is configured for the respective data/mgmt/ctrl
528  *     frames, it is up to the respective WLAN driver/firmware/hardware designs
529  *     to consider the possibility of sending these frames over the monitor
530  *     interface. For example, the control frames are handled with in the
531  *     hardware and thus passing such frames over the monitor interface is left
532  *     to the respective designs.
533  *
534  *     Also, this monitor mode is governed to behave accordingly in
535  *     suspend/resume states. If the firmware handles any of such frames
536  *     in suspend state without waking up the host and if the monitor mode
537  *     is configured to notify all such frames, then the firmware is expected
538  *     to resume the host and forward the respective frames to the monitor
539  *     interface. Please note that such a request to get the frames over the
540  *     monitor interface will have a definite power implications.
541  *
542  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
543  *     as a request to set the driver/firmware with the parameters to trigger
544  *     the roaming events, and also used by the driver/firmware to pass on the
545  *     various roam events to userspace.
546  *     Applicable only for the STA mode. The attributes used with this command
547  *     are defined in enum qca_wlan_vendor_attr_roam_events.
548  *
549  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
550  *     rate mask config for a list of phy types. Userspace shall provide
551  *     an array of the vendor attributes defined in
552  *     enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
553  *
554  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
555  *	when two interfaces are active on the same band, using two different
556  *	home channels, and only supported by a single radio. In this scenario
557  *	the device must split the use of the radio between the two interfaces.
558  *	The percentage of time allocated to a given interface is the quota.
559  *	Depending on the configuration, the quota can either be fixed or
560  *	dynamic.
561  *
562  *	When used as an event, the device will report the quota type, and for
563  *	all interfaces operating in MCC it will report the current quota.
564  *	When used as a command, the device can be configured for a specific
565  *	quota type, and in the case of a fixed quota, the quota to apply to one
566  *	of the interfaces.
567  *
568  *	Applications can use the event to do TX bitrate control based on the
569  *	information, and can use the command to explicitly set the quota to
570  *	enhance performance in specific scenarios.
571  *
572  *	The attributes used with this command are defined in
573  *	enum qca_wlan_vendor_attr_mcc_quota.
574  *
575  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
576  *	user space that the driver is ready for operations again after
577  *	recovering from internal failures. This occurs following a failure
578  *	that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
579  *
580  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
581  *	get the WLAN radio combinations matrix supported by the device which
582  *	provides the device simultaneous radio configurations such as
583  *	standalone, dual band simultaneous, and single band simultaneous.
584  *
585  *	The attributes used with this command are defined in
586  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
587  *
588  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
589  *	security negotiation and key generation to user space.
590  *
591  *	When used as an event, the driver requests userspace to trigger the PASN
592  *	authentication or dropping of a PTKSA for the indicated peer devices.
593  *	When used as a command response, userspace indicates a consolidated
594  *	status report for all the peers that were requested for.
595  *
596  *	The attributes used with this command are defined in
597  *	enum qca_wlan_vendor_attr_pasn.
598  *
599  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
600  *	secure ranging context such as TK and LTF keyseed for each peer
601  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
602  *
603  *	The attributes used with this command are defined in
604  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
605  *
606  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
607  *	enable/disable offload processing in firmware during system/runtime
608  *	suspend for CoAP messages (see RFC7252: The Constrained Application
609  *	Protocol) and fetch information of the CoAP messages cached during
610  *	offload processing.
611  *
612  *	The attributes used with this command are defined in
613  *	enum qca_wlan_vendor_attr_coap_offload.
614  *
615  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
616  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
617  *
618  *	The attributes used with this event are defined in
619  *	enum qca_wlan_vendor_attr_scs_rule_config.
620  *
621  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
622  *	supported by the WLAN firmware.
623  *
624  *	The attributes used with this command are defined in
625  *	enum qca_wlan_vendor_attr_sar_capability.
626  */
627 
628 enum qca_nl80211_vendor_subcmds {
629 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
630 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
631 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
632 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
633 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
634 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
635 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
636 
637 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
638 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
639 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
640 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
641 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
642 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
643 
644 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
645 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
646 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
647 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
648 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
649 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
650 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
651 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
652 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
653 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
654 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
655 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
656 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
657 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
658 
659 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
660 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
661 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
662 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
663 
664 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
665 
666 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
667 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
668 
669 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
670 
671 	/* Get Concurrency Matrix */
672 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
673 
674 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
675 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
676 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
677 
678 	/* Deprecated */
679 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
680 
681 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
682 
683 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
684 
685 	/* Off loaded DFS events */
686 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
687 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
688 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
689 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
690 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
691 
692 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
693 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
694 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
695 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
696 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
697 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
698 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
699 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
700 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
701 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
702 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
703 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
704 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
705 
706 	/* Wi-Fi Configuration subcommands */
707 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
708 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
709 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
710 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
711 
712 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
713 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
714 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
715 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
716 
717 	/* NS Offload enable/disable cmd */
718 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
719 
720 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
721 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
722 
723 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
724 
725 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
726 	/* OCB commands */
727 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
728 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
729 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
730 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
731 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
732 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
733 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
734 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
735 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
736 
737 	/* subcommand to get link properties */
738 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
739 	/* LFR Subnet Detection */
740 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
741 
742 	/* DBS subcommands */
743 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
744 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
745 
746 	/* Vendor setband command */
747 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
748 
749 	/* Vendor scan commands */
750 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
751 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
752 
753 	/* OTA test subcommand */
754 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
755 	/* Tx power scaling subcommands */
756 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
757 	/* Tx power scaling in db subcommands */
758 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
759 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
760 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
761 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
762 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
763 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
764 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
765 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
766 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
767 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
768 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
769 
770 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
771 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
772 	/* FTM/indoor location subcommands */
773 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
774 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
775 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
776 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
777 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
778 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
779 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
780 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
781 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
782 
783 	/* Encrypt/Decrypt command */
784 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
785 
786 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
787 	/* DMG low level RF sector operations */
788 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
789 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
790 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
791 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
792 
793 	/* Configure the TDLS mode from user space */
794 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
795 
796 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
797 
798 	/* Vendor abort scan command */
799 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
800 
801 	/* Set Specific Absorption Rate(SAR) Power Limits */
802 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
803 
804 	/* External Auto channel configuration setting */
805 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
806 
807 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
808 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
809 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
810 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
811 
812 	/* Set the trace level for QDF */
813 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
814 
815 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
816 
817 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
818 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
819 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
820 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
821 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
822 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
823 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
824 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
825 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
826 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
827 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
828 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
829 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
830 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
831 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
832 	/* Wi-Fi test configuration subcommand */
833 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
834 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
835 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
836 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
837 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
838 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
839 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
840 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
841 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
842 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
843 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
844 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
845 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
846 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
847 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
848 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
849 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
850 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
851 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
852 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
853 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
854 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
855 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
856 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
857 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
858 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
859 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
860 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
861 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
862 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
863 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
864 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
865 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
866 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
867 	/* 206..212 - reserved for QCA */
868 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
869 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
870 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
871 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
872 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
873 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
874 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
875 };
876 
877 enum qca_wlan_vendor_tos {
878 	QCA_WLAN_VENDOR_TOS_BK = 0,
879 	QCA_WLAN_VENDOR_TOS_BE = 1,
880 	QCA_WLAN_VENDOR_TOS_VI = 2,
881 	QCA_WLAN_VENDOR_TOS_VO = 3,
882 };
883 
884 /**
885  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
886  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
887  */
888 enum qca_wlan_vendor_attr_active_tos {
889 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
890 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
891 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
892 	/* Flag attribute representing the start (attribute included) or stop
893 	 * (attribute not included) of the respective TOS.
894 	 */
895 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
896 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
897 };
898 
899 enum qca_wlan_vendor_hang_reason {
900 	/* Unspecified reason */
901 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
902 	/* No Map for the MAC entry for the received frame */
903 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
904 	/* peer deletion timeout happened */
905 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
906 	/* peer unmap timeout */
907 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
908 	/* Scan request timed out */
909 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
910 	/* Consecutive Scan attempt failures */
911 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
912 	/* Unable to get the message buffer */
913 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
914 	/* Current command processing is timedout */
915 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
916 	/* Timeout for an ACK from FW for suspend request */
917 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
918 	/* Timeout for an ACK from FW for resume request */
919 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
920 	/* Transmission timeout for consecutive data frames */
921 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
922 	/* Timeout for the TX completion status of data frame */
923 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
924 	/* DXE failure for tx/Rx, DXE resource unavailability */
925 	QCA_WLAN_HANG_DXE_FAILURE = 12,
926 	/* WMI pending commands exceed the maximum count */
927 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
928 	/* Timeout for peer STA connection accept command's response from the
929 	 * FW in AP mode. This command is triggered when a STA (peer) connects
930 	 * to AP (DUT).
931 	 */
932 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
933 	/* Timeout for the AP connection accept command's response from the FW
934 	 * in STA mode. This command is triggered when the STA (DUT) connects
935 	 * to an AP (peer).
936 	 */
937 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
938 	/* Timeout waiting for the response to the MAC HW mode change command
939 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
940 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
941 	 * Channel Concurrency) mode.
942 	 */
943 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
944 	/* Timeout waiting for the response from FW to configure the MAC HW's
945 	 * mode. This operation is to configure the single/two MACs in either
946 	 * SCC/MCC/DBS mode.
947 	 */
948 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
949 	/* Timeout waiting for response of VDEV start command from the FW */
950 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
951 	/* Timeout waiting for response of VDEV restart command from the FW */
952 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
953 	/* Timeout waiting for response of VDEV stop command from the FW */
954 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
955 	/* Timeout waiting for response of VDEV delete command from the FW */
956 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
957 	/* Timeout waiting for response of peer all delete request command to
958 	 * the FW on a specific VDEV.
959 	 */
960 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
961 	/* WMI sequence mismatch between WMI command and Tx completion */
962 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
963 	/* Write to Device HAL register failed */
964 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
965 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
966 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
967 	/* Bus failure */
968 	QCA_WLAN_HANG_BUS_FAILURE = 26,
969 	/* tasklet/credit latency found */
970 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
971 };
972 
973 /**
974  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
975  * QCA_NL80211_VENDOR_SUBCMD_HANG.
976  */
977 enum qca_wlan_vendor_attr_hang {
978 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
979 	/*
980 	 * Reason for the Hang - Represented by enum
981 	 * qca_wlan_vendor_hang_reason.
982 	 */
983 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
984 	/* The binary blob data associated with the hang reason specified by
985 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
986 	 * contain the required dump to analyze the reason for the hang.
987 	 * NLA_BINARY attribute, the max size is 1024 bytes.
988 	 */
989 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
990 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
991 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
992 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
993 };
994 
995 /**
996  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
997  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
998  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
999  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
1000     level needs to be updated.
1001  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
1002  * to be set.
1003  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
1004  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
1005  */
1006 enum qca_vendor_attr_set_trace_level {
1007 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1008 	/*
1009 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1010 	* attributes.
1011 	*/
1012 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1013 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1014 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1015 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1016 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1017 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1018 };
1019 
1020 /**
1021  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1022  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1023  * station information. The information obtained through these
1024  * commands signify the current info in connected state and
1025  * latest cached information during the connected state , if queried
1026  * when in disconnected state.
1027  *
1028  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1029  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1030  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1031  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1032  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1033  */
1034 enum qca_wlan_vendor_attr_get_station {
1035 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1036 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1037 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1038 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1039 
1040 	/* keep last */
1041 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1042 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1043 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1044 };
1045 
1046 /**
1047  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1048  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1049  *
1050  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1051  * Used in STA mode. This attribute represents the list of channel center
1052  * frequencies in MHz (u32) the station has learnt during the last connection
1053  * or roaming attempt. This information shall not signify the channels for
1054  * an explicit scan request from the user space. Host drivers can update this
1055  * information to the user space in both connected and disconnected state.
1056  * In the disconnected state this information shall signify the channels
1057  * scanned in the last connection/roam attempt that lead to the disconnection.
1058  */
1059 enum qca_wlan_vendor_attr_update_sta_info {
1060 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1061 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1062 
1063 	/* keep last */
1064 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1065 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1066 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1067 };
1068 
1069 /**
1070  * enum qca_wlan_802_11_mode - dot11 mode
1071  * @QCA_WLAN_802_11_MODE_11B: mode B
1072  * @QCA_WLAN_802_11_MODE_11G: mode G
1073  * @QCA_WLAN_802_11_MODE_11N: mode N
1074  * @QCA_WLAN_802_11_MODE_11A: mode A
1075  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1076  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1077  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1078  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1079  */
1080 enum qca_wlan_802_11_mode {
1081 	QCA_WLAN_802_11_MODE_11B,
1082 	QCA_WLAN_802_11_MODE_11G,
1083 	QCA_WLAN_802_11_MODE_11N,
1084 	QCA_WLAN_802_11_MODE_11A,
1085 	QCA_WLAN_802_11_MODE_11AC,
1086 	QCA_WLAN_802_11_MODE_11AX,
1087 	QCA_WLAN_802_11_MODE_11BE,
1088 	QCA_WLAN_802_11_MODE_INVALID,
1089 };
1090 
1091 /**
1092  * enum qca_wlan_auth_type - Authentication key management type
1093  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1094  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1095  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1096  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1097  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1098  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1099  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1100  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1101  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1102  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1103  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1104  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1105  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1106  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1107  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1108  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1109  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1110  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1111  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1112  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1113  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1114  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1115  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1116  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1117  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1118  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1119  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1120  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1121  */
1122 enum qca_wlan_auth_type {
1123 	QCA_WLAN_AUTH_TYPE_INVALID,
1124 	QCA_WLAN_AUTH_TYPE_OPEN,
1125 	QCA_WLAN_AUTH_TYPE_SHARED,
1126 	QCA_WLAN_AUTH_TYPE_WPA,
1127 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1128 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1129 	QCA_WLAN_AUTH_TYPE_RSN,
1130 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1131 	QCA_WLAN_AUTH_TYPE_FT,
1132 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1133 	QCA_WLAN_AUTH_TYPE_SHA256,
1134 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1135 	QCA_WLAN_AUTH_TYPE_WAI,
1136 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1137 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1138 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1139 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1140 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1141 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1142 	QCA_WLAN_AUTH_TYPE_SAE,
1143 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1144 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1145 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1146 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1147 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1148 	QCA_WLAN_AUTH_TYPE_OWE,
1149 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1150 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1151 };
1152 
1153 /**
1154  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1155  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1156  *
1157  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1158  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1159  *  Get the standard NL attributes Nested with this attribute.
1160  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1161  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1162  *  NL80211_ATTR_STA_INFO
1163  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1164  *  Get the standard NL attributes Nested with this attribute.
1165  *  Ex : Query HT/VHT Capability advertized by the AP.
1166  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1167  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1168  *  Number of successful Roam attempts before a
1169  *  disconnect, Unsigned 32 bit value
1170  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1171  *  Authentication Key Management Type used for the connected session.
1172  *  Signified by enum qca_wlan_auth_type
1173  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1174  *  connected Session, signified by enum qca_wlan_802_11_mode
1175  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1176  *  HS20 Indication Element
1177  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1178  *  Status Code Corresponding to the Association Failure.
1179  *  Unsigned 32 bit value.
1180  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1181  *  Max phy rate of remote station
1182  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1183  *  TX packets to remote station
1184  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1185  *  TX bytes to remote station
1186  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1187  *  RX packets from remote station
1188  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1189  *  RX bytes from remote station
1190  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1191  *  Last TX rate with remote station
1192  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1193  *  Last RX rate with remote station
1194  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1195  *  Remote station enable/disable WMM
1196  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1197  *  Remote station connection mode
1198  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1199  *  Remote station AMPDU enable/disable
1200  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1201  *  Remote station TX Space-time block coding enable/disable
1202  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1203  *  Remote station RX Space-time block coding enable/disable
1204  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1205  *  Remote station channel width
1206  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1207  *  Remote station short GI enable/disable
1208  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1209  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1210  *  containing the raw information elements from Beacon frames. Represents
1211  *  the Beacon frames of the current BSS in the connected state. When queried
1212  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1213  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1214  *  disconnect reason for the last disconnection if the disconnection is
1215  *  triggered from the host driver. The values are referred from
1216  *  enum qca_disconnect_reason_codes. If the disconnect is from
1217  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1218  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1219  *  Applicable in AP mode only. It contains the raw information elements
1220  *  from assoc request frame of the given peer station. User queries with the
1221  *  mac address of peer station when it disconnects. Host driver sends
1222  *  assoc request frame of the given station. Host driver doesn't provide
1223  *  the IEs when the peer station is still in connected state.
1224  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1225  * sending HE operation info.
1226  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1227  *
1228  */
1229 enum qca_wlan_vendor_attr_get_station_info {
1230 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1231 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1232 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1233 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1234 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1235 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1236 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1237 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1238 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1239 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1240 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1241 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1242 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1243 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1244 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1245 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1246 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1247 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1248 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1249 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1250 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1251 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1252 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1253 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1254 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1255 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1256 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1257 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1258 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1259 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1260 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1261 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1262 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1263 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1264 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1265 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1266 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1267 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1268 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1269 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1270 
1271 	/* keep last */
1272 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1273 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1274 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1275 };
1276 
1277 /**
1278  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1279  *
1280  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1281  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1282  *	value
1283  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1284  *	keep as unsigned for now
1285  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1286  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1287  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1288  *	in KBPS
1289  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1290  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1291  */
1292 enum qca_wlan_vendor_attr_tdls_enable {
1293 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1294 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1295 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1296 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1297 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1298 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1299 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1300 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1301 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1302 };
1303 
1304 /**
1305  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1306  *
1307  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1308  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1309  *	8-bit value
1310  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1311  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1312  */
1313 enum qca_wlan_vendor_attr_tdls_disable {
1314 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1315 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1316 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1317 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1318 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1319 };
1320 
1321 /**
1322  * qca_chip_power_save_failure_reason: Power save failure reason
1323  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1324  * due to protocol/module.
1325  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1326  * due to hardware
1327  */
1328 enum qca_chip_power_save_failure_reason {
1329 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1330 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1331 };
1332 
1333 /**
1334  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1335  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1336  * information leading to the power save failure.
1337  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1338  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1339  * represented by enum qca_chip_power_save_failure_reason
1340  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1341  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1342  */
1343 enum qca_attr_chip_power_save_failure {
1344 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1345 
1346 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1347 
1348 	/* keep last */
1349 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1350 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1351 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1352 };
1353 
1354 
1355 /**
1356  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1357  *
1358  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1359  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1360  *	8-bit value
1361  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1362  *	unsigned 32-bit value
1363  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1364  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1365  *	unsigned 32-bit value
1366  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1367  *	class, unsigned 32-bit value
1368  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1369  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1370  */
1371 enum qca_wlan_vendor_attr_tdls_get_status {
1372 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1373 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1374 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1375 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1376 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1377 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1378 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1379 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1380 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1381 };
1382 
1383 /**
1384  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1385  *
1386  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1387  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1388  *	8-bit value
1389  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1390  *	unsigned 32-bit value
1391  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1392  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1393  *	unsigned 32-bit value
1394  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1395  *	operating class, unsigned 32-bit value
1396  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1397  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1398  */
1399 enum qca_wlan_vendor_attr_tdls_state {
1400 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1401 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1402 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1403 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1404 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1405 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1406 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1407 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1408 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1409 };
1410 
1411 /* enum's to provide TDLS capabilities */
1412 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1413 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1414 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1415 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1416 
1417 	/* keep last */
1418 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1419 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1420 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1421 };
1422 
1423 enum qca_wlan_vendor_attr {
1424 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1425 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1426 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1427 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1428 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1429 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1430 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1431 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1432 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1433 	/*
1434 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1435 	 * by enum qca_roaming_policy.
1436 	 */
1437 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1438 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1439 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1440 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1441 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1442 	/*
1443 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1444 	 * Unsigned 32-bit value.
1445 	 */
1446 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1447 	/* Unsigned 32-bit value */
1448 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1449 	/* Unsigned 32-bit value */
1450 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1451 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1452 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1453 	 * is deprecated. Recommendation is to use
1454 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1455 	 * using both the attributes, the ones configured through
1456 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1457 	 */
1458 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1459 	/* Dummy (NOP) attribute for 64 bit padding */
1460 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1461 	/*
1462 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1463 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1464 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1465 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1466 	 */
1467 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1468 	/*
1469 	 * Indoor location capabilities, returned by
1470 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1471 	 * see enum qca_wlan_vendor_attr_loc_capa.
1472 	 */
1473 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1474 	/*
1475 	 * Array of nested attributes containing information about each peer
1476 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1477 	 * for supported attributes for each peer.
1478 	 */
1479 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1480 	/*
1481 	 * Array of nested attributes containing measurement results for
1482 	 * one or more peers, reported by the
1483 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1484 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1485 	 * attributes.
1486 	 */
1487 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1488 	/* Flag attribute for enabling or disabling responder functionality. */
1489 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1490 	/*
1491 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1492 	 * command to specify the LCI report that will be sent by
1493 	 * the responder during a measurement exchange. The format is
1494 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1495 	 */
1496 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1497 	/*
1498 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1499 	 * command to specify the location civic report that will
1500 	 * be sent by the responder during a measurement exchange.
1501 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1502 	 */
1503 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1504 	/*
1505 	 * Session/measurement completion status code,
1506 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1507 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1508 	 * see enum qca_vendor_attr_loc_session_status.
1509 	 */
1510 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1511 	/*
1512 	 * Initial dialog token used by responder (0 if not specified),
1513 	 * unsigned 8 bit value.
1514 	 */
1515 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1516 	/*
1517 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1518 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1519 	 * AOA measurements are needed as part of an FTM session.
1520 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1521 	 * enum qca_wlan_vendor_attr_aoa_type.
1522 	 */
1523 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1524 	/*
1525 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1526 	 * by indoor location measurements. Refers to the antenna
1527 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1528 	 */
1529 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1530 	/*
1531 	 * AOA measurement data. Its contents depends on the AOA measurement
1532 	 * type and antenna array mask:
1533 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1534 	 * phase of the strongest CIR path for each antenna in the measured
1535 	 * array(s).
1536 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1537 	 * values, phase and amplitude of the strongest CIR path for each
1538 	 * antenna in the measured array(s).
1539 	 */
1540 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1541 	/*
1542 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1543 	 * to specify the chain number (unsigned 32 bit value) to inquire
1544 	 * the corresponding antenna RSSI value */
1545 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1546 	/*
1547 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1548 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1549 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1550 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1551 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1552 	/*
1553 	 *  TSF timer value, unsigned 64 bit value.
1554 	 * May be returned by various commands.
1555 	 */
1556 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1557 	/*
1558 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1559 	 * 0..127 for sector indices or 65535 as special value used to
1560 	 * unlock sector selection in
1561 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1562 	 */
1563 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1564 	/*
1565 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1566 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1567 	 */
1568 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1569 	/*
1570 	 * Bitmask of DMG RF modules for which information is requested. Each
1571 	 * bit corresponds to an RF module with the same index as the bit
1572 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1573 	 * all DMG chips currently have up to 8 RF modules.
1574 	 */
1575 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1576 	/*
1577 	 * Array of nested attributes where each entry is DMG RF sector
1578 	 * configuration for a single RF module.
1579 	 * Attributes for each entry are taken from enum
1580 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1581 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1582 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1583 	 */
1584 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1585 	/*
1586 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1587 	 * to report frame aggregation statistics to userspace.
1588 	 */
1589 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1590 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1591 	/*
1592 	 * Unsigned 8-bit value representing MBO transition reason code as
1593 	 * provided by the AP used by subcommand
1594 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1595 	 * specified by the userspace in the request to the driver.
1596 	 */
1597 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1598 	/*
1599 	 * Array of nested attributes, BSSID and status code, used by subcommand
1600 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1601 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1602 	 * The userspace space specifies the list/array of candidate BSSIDs in
1603 	 * the order of preference in the request. The driver specifies the
1604 	 * status code, for each BSSID in the list, in the response. The
1605 	 * acceptable candidates are listed in the order preferred by the
1606 	 * driver.
1607 	 */
1608 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1609 	/*
1610 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1611 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1612 	 */
1613 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1614 	/*
1615 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1616 	 * to define the number of antennas to use for BRP.
1617 	 * different purpose in each ANT_LIMIT_MODE:
1618 	 * DISABLE - ignored
1619 	 * EFFECTIVE - upper limit to number of antennas to be used
1620 	 * FORCE - exact number of antennas to be used
1621 	 * unsigned 8 bit value
1622 	 */
1623 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1624 	/*
1625 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1626 	 * to report the corresponding antenna index to the chain RSSI value
1627 	 */
1628 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1629 	/*
1630 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1631 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1632 	 * With a determinate group of antennas, the driver specifies the
1633 	 * EVM value for each antenna ID, and application extract them
1634 	 * in user space.
1635 	 */
1636 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1637 	/*
1638 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1639 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1640 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1641 	 */
1642 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1643 
1644 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1645 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1646 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1647 	 * This attribute shall consider the bitmask combinations to define
1648 	 * the respective Band combinations and always takes precedence over
1649 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1650 	 */
1651 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1652 
1653 	/* keep last */
1654 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1655 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1656 };
1657 
1658 enum qca_wlan_vendor_attr_extscan_config_params {
1659 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1660 
1661 	/* Unsigned 32-bit value */
1662 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1663 
1664 	/*
1665 	 * Attributes for data used by
1666 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1667 	 */
1668 
1669 	/* Unsigned 32-bit value */
1670 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1671 	= 2,
1672 	/* Unsigned 32-bit value */
1673 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1674 	= 3,
1675 
1676 	/*
1677 	 * Attributes for input params used by
1678 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1679 	 */
1680 
1681 	/* Unsigned 32-bit value; channel frequency */
1682 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1683 	/* Unsigned 32-bit value; dwell time in ms. */
1684 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1685 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1686 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1687 	/* Unsigned 8-bit value; channel class */
1688 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1689 
1690 	/* Unsigned 8-bit value; bucket index, 0 based */
1691 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1692 	/* Unsigned 8-bit value; band. */
1693 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1694 	/* Unsigned 32-bit value; desired period, in ms. */
1695 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1696 	/* Unsigned 8-bit value; report events semantics. */
1697 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1698 	/*
1699 	 * Unsigned 32-bit value. Followed by a nested array of
1700 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1701 	 */
1702 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1703 
1704 	/*
1705 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1706 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1707 	 */
1708 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1709 
1710 	/* Unsigned 32-bit value; base timer period in ms. */
1711 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1712 	/*
1713 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1714 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1715 	 */
1716 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1717 	/*
1718 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1719 	 * up AP.
1720 	 */
1721 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1722 	= 16,
1723 
1724 	/*
1725 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1726 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1727 	 * of the array is determined by NUM_BUCKETS.
1728 	 */
1729 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1730 
1731 	/*
1732 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1733 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1734 	 */
1735 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1736 
1737 	/* Unsigned 8-bit value */
1738 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1739 	= 19,
1740 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1741 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1742 	= 20,
1743 
1744 	/* An array of 6 x unsigned 8-bit value */
1745 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1746 	/* Signed 32-bit value */
1747 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1748 	/* Signed 32-bit value */
1749 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1750 	/* Unsigned 32-bit value */
1751 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1752 
1753 	/*
1754 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1755 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1756 	 * array is determined by NUM_AP.
1757 	 */
1758 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1759 
1760 	/*
1761 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1762 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1763 	 */
1764 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1765 
1766 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1767 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1768 	= 27,
1769 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1770 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1771 	= 28,
1772 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1773 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1774 	/*
1775 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1776 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1777 	 */
1778 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1779 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1780 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1781 	= 31,
1782 	/*
1783 	 * Unsigned 32-bit value. If max_period is non zero or different than
1784 	 * period, then this bucket is an exponential backoff bucket.
1785 	 */
1786 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1787 	/* Unsigned 32-bit value. */
1788 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1789 	/*
1790 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1791 	 * scans to perform for a given period.
1792 	 */
1793 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1794 	/*
1795 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1796 	 * many scans.
1797 	 */
1798 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1799 	= 35,
1800 
1801 	/*
1802 	 * Attributes for data used by
1803 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1804 	 */
1805 
1806 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1807 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1808 	= 36,
1809 	/*
1810 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1811 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1812 	 * size of the array is determined by NUM_SSID.
1813 	 */
1814 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1815 	/*
1816 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1817 	 * attributes.
1818 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1819 	 */
1820 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1821 
1822 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1823 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1824 	/* Unsigned 8-bit value */
1825 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1826 	/* Signed 32-bit value */
1827 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1828 	/* Signed 32-bit value */
1829 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1830 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1831 	 */
1832 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1833 
1834 	/* keep last */
1835 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1836 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1837 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1838 };
1839 
1840 enum qca_wlan_vendor_attr_extscan_results {
1841 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1842 
1843 	/*
1844 	 * Unsigned 32-bit value; must match the request Id supplied by
1845 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1846 	 */
1847 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1848 
1849 	/*
1850 	 * Unsigned 32-bit value; used to indicate the status response from
1851 	 * firmware/driver for the vendor sub-command.
1852 	 */
1853 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1854 
1855 	/*
1856 	 * EXTSCAN Valid Channels attributes */
1857 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1858 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1859 	/*
1860 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1861 	 * representing channel numbers.
1862 	 */
1863 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1864 
1865 	/* EXTSCAN Capabilities attributes */
1866 
1867 	/* Unsigned 32-bit value */
1868 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1869 	/* Unsigned 32-bit value */
1870 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1871 	/* Unsigned 32-bit value */
1872 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1873 	= 7,
1874 	/* Unsigned 32-bit value */
1875 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1876 	= 8,
1877 	/* Signed 32-bit value */
1878 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1879 	= 9,
1880 	/* Unsigned 32-bit value */
1881 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1882 	/* Unsigned 32-bit value */
1883 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1884 	= 11,
1885 	/* Unsigned 32-bit value */
1886 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1887 	= 12,
1888 
1889 	/*
1890 	 * EXTSCAN Attributes used with
1891 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1892 	 */
1893 
1894 	/* Unsigned 32-bit value */
1895 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1896 
1897 	/*
1898 	 * EXTSCAN attributes used with
1899 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1900 	 */
1901 
1902 	/*
1903 	 * An array of NUM_RESULTS_AVAILABLE x
1904 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1905 	 */
1906 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1907 
1908 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1909 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1910 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1911 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1912 	/* An array of 6 x unsigned 8-bit value */
1913 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1914 	/* Unsigned 32-bit value; channel frequency in MHz */
1915 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1916 	/* Signed 32-bit value */
1917 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1918 	/* Unsigned 32-bit value */
1919 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1920 	/* Unsigned 32-bit value */
1921 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1922 	/* Unsigned 16-bit value */
1923 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1924 	/* Unsigned 16-bit value */
1925 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1926 	/* Unsigned 32-bit value; size of the IE DATA blob */
1927 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
1928 	/*
1929 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
1930 	 * information elements found in the beacon; this data should be a
1931 	 * packed list of wifi_information_element objects, one after the
1932 	 * other.
1933 	 */
1934 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
1935 
1936 	/*
1937 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
1938 	 * available.
1939 	 */
1940 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
1941 
1942 	/*
1943 	 * EXTSCAN attributes for
1944 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
1945 	 */
1946 	/* Unsigned 8-bit value */
1947 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
1948 	/* Unsigned 32-bit value */
1949 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
1950 
1951 	/*
1952 	 * EXTSCAN attributes for
1953 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
1954 	 */
1955 	/*
1956 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1957 	 * to indicate number of results.
1958 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
1959 	 * list of results.
1960 	 */
1961 
1962 	/*
1963 	 * EXTSCAN attributes for
1964 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
1965 	 */
1966 	/* An array of 6 x unsigned 8-bit value */
1967 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
1968 	/* Unsigned 32-bit value */
1969 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
1970 	= 30,
1971 	/* Unsigned 32-bit value. */
1972 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
1973 	= 31,
1974 	/*
1975 	 * A nested array of signed 32-bit RSSI values. Size of the array is
1976 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
1977 	 */
1978 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
1979 	= 32,
1980 
1981 	/*
1982 	 * EXTSCAN attributes used with
1983 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
1984 	 */
1985 	/*
1986 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
1987 	 * to indicate number of extscan cached results returned.
1988 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
1989 	 *  the list of extscan cached results.
1990 	 */
1991 
1992 	/*
1993 	 * An array of NUM_RESULTS_AVAILABLE x
1994 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
1995 	 */
1996 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
1997 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
1998 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
1999 	/*
2000 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
2001 	 */
2002 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
2003 	/*
2004 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2005 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
2006 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2007 	 * list of wifi scan results returned for each cached result block.
2008 	 */
2009 
2010 	/*
2011 	 * EXTSCAN attributes for
2012 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2013 	 */
2014 	/*
2015 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2016 	 * number of results.
2017 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2018 	 * list of wifi scan results returned for each
2019 	 * wifi_passpoint_match_result block.
2020 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2021 	 */
2022 
2023 	/*
2024 	 * EXTSCAN attributes for
2025 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2026 	 */
2027 	/* Unsigned 32-bit value */
2028 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2029 	= 36,
2030 	/*
2031 	 * A nested array of
2032 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2033 	 * attributes. Array size =
2034 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2035 	 */
2036 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2037 
2038 	/* Unsigned 32-bit value; network block id for the matched network */
2039 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2040 	/*
2041 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2042 	 * list of wifi scan results returned for each
2043 	 * wifi_passpoint_match_result block.
2044 	 */
2045 	/* Unsigned 32-bit value */
2046 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2047 	/*
2048 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2049 	 * ANQP data in the information_element format.
2050 	 */
2051 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2052 
2053 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2054 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2055 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2056 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2057 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2058 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2059 	= 43,
2060 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2061 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2062 	= 44,
2063 
2064 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2065 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2066 
2067 	/* keep last */
2068 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2069 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2070 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2071 };
2072 
2073 /**
2074  * enum qca_vendor_interop_issues_ap_type - interop issues type
2075  * This enum defines the valid set of values of interop issues type. These
2076  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2077  *
2078  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2079  * when the STA's Qpower feature is enabled.
2080  */
2081 enum qca_vendor_interop_issues_ap_type {
2082 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2083 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2084 };
2085 
2086 /**
2087  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2088  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2089  *
2090  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2091  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2092  * 32-bit unsigned value, The type defined in enum
2093  * qca_vendor_interop_issues_ap_type are used.
2094  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2095  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2096  * it is present and mandatory for the command but is not used for
2097  * the event since only a single BSSID is reported in an event.
2098  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2099  * 6-byte MAC address. It is used within the nested
2100  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2101  * and without such encapsulation in the event case.
2102  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2103  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2104  */
2105 enum qca_vendor_attr_interop_issues_ap {
2106 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2107 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2108 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2109 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2110 	/* keep last */
2111 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2112 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2113 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2114 };
2115 
2116 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2117 
2118 /**
2119  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
2120  *
2121  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
2122  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
2123  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
2124  *	Aggresive stats gathering
2125  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
2126  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
2127  */
2128 enum qca_wlan_vendor_attr_ll_stats_set {
2129 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2130 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2131 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
2132 	/* keep last */
2133 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2134 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2135 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
2136 };
2137 
2138 /**
2139  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
2140  *
2141  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
2142  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
2143  *	provided by the caller issuing the GET stats command. When reporting
2144  *	the stats results, the driver uses the same value to indicate which
2145  *	GET request the results correspond to.
2146  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
2147  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2148  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2149  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
2150  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
2151  */
2152 enum qca_wlan_vendor_attr_ll_stats_get {
2153 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2154 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
2155 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
2156 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2157 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2158 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
2159 };
2160 
2161 /**
2162  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
2163  *
2164  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
2165  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
2166  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
2167  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2168  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2169  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
2170  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
2171  */
2172 enum qca_wlan_vendor_attr_ll_stats_clr {
2173 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2174 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
2175 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
2176 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
2177 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
2178 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2179 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2180 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
2181 };
2182 
2183 /**
2184  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2185  *
2186  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2187  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2188  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2189  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2190  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2191  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2192  */
2193 enum qca_wlan_vendor_attr_ll_stats_results_type {
2194 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2195 
2196 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2197 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2198 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2199 
2200 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2201 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2202 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2203 };
2204 
2205 enum qca_wlan_vendor_attr_ll_stats_results {
2206 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2207 	/* Unsigned 32bit value. Used by the driver; must match the request id
2208 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2209 	 */
2210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2211 
2212 	/* Unsigned 32 bit value */
2213 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2214 	/* Unsigned 32 bit value */
2215 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2216 	/* Unsigned 32 bit value */
2217 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2218 	/* Unsigned 32 bit value */
2219 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2220 	/* Signed 32 bit value */
2221 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2222 	/* Signed 32 bit value */
2223 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2224 	/* Signed 32 bit value */
2225 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2226 
2227 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2228 	 * nested within the interface stats.
2229 	 */
2230 
2231 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2232 	 * Type = enum wifi_interface_mode.
2233 	 */
2234 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2235 	/* Interface MAC address. An array of 6 Unsigned int8 */
2236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2237 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2238 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2239 	 */
2240 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2241 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2242 	 */
2243 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2244 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2245 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2246 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2247 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2248 	/* BSSID. An array of 6 unsigned 8 bit values */
2249 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2250 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2251 	 * values.
2252 	 */
2253 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2254 	/* Country string for this association. An array of 3 unsigned 8 bit
2255 	 * values.
2256 	 */
2257 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2258 
2259 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2260 	 * be nested within the interface stats.
2261 	 */
2262 
2263 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2264 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2265 	/* Unsigned int 32 value corresponding to respective AC */
2266 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2267 	/* Unsigned int 32 value corresponding to respective AC */
2268 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2269 	/* Unsigned int 32 value corresponding to respective AC */
2270 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2271 	/* Unsigned int 32 value corresponding to respective AC */
2272 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2273 	/* Unsigned int 32 value corresponding to respective AC */
2274 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2275 	/* Unsigned int 32 value corresponding to respective AC */
2276 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2277 	/* Unsigned int 32 value corresponding to respective AC */
2278 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2279 	/* Unsigned int 32 value corresponding to respective AC */
2280 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2281 	/* Unsigned int 32 value corresponding to respective AC  */
2282 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2283 	/* Unsigned int 32 values corresponding to respective AC */
2284 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2285 	/* Unsigned int 32 values corresponding to respective AC */
2286 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2287 	/* Unsigned int 32 values corresponding to respective AC */
2288 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2289 	/* Unsigned int 32 values corresponding to respective AC */
2290 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2291 	/* Unsigned int 32 values corresponding to respective AC */
2292 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2293 	/* Unsigned 32 bit value. Number of peers */
2294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2295 
2296 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2297 	 * nested within the interface stats.
2298 	 */
2299 
2300 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2301 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2302 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2303 	 * 8 bit values.
2304 	 */
2305 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2306 	/* Unsigned int 32 bit value representing capabilities corresponding
2307 	 * to respective peer.
2308 	 */
2309 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2310 	/* Unsigned 32 bit value. Number of rates */
2311 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2312 
2313 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2314 	 * are nested within the rate stat.
2315 	 */
2316 
2317 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2318 
2319 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2320 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2321 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2322 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2323 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2325 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2326 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2327 	 */
2328 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2329 
2330 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2331 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2332 
2333 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2334 	 * nested within the peer info stats.
2335 	 */
2336 
2337 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2338 	 * packets, i.e., with ACK received corresponding to the respective
2339 	 * rate.
2340 	 */
2341 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2342 	/* Unsigned int 32 bit value. Number of received data packets
2343 	 * corresponding to the respective rate.
2344 	 */
2345 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2346 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2347 	 * received corresponding to the respective rate.
2348 	 */
2349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2350 	/* Unsigned int 32 bit value. Total number of data packet retries for
2351 	 * the respective rate.
2352 	 */
2353 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2354 	/* Unsigned int 32 bit value. Total number of short data packet retries
2355 	 * for the respective rate.
2356 	 */
2357 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2358 	/* Unsigned int 32 bit value. Total number of long data packet retries
2359 	 * for the respective rate.
2360 	 */
2361 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2362 
2363 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2364 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2365 	 * accruing over time.
2366 	 */
2367 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2368 	/* Unsigned 32 bit value. Total number of msecs the radio is
2369 	 * transmitting accruing over time.
2370 	 */
2371 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2372 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2373 	 * receive accruing over time.
2374 	 */
2375 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2376 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2377 	 * to all scan accruing over time.
2378 	 */
2379 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2380 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2381 	 * to NAN accruing over time.
2382 	 */
2383 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2384 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2385 	 * to GSCAN accruing over time.
2386 	 */
2387 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2388 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2389 	 * to roam scan accruing over time.
2390 	 */
2391 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2392 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2393 	 * to PNO scan accruing over time.
2394 	 */
2395 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2396 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2397 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2398 	 */
2399 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2400 	/* Unsigned 32 bit value. Number of channels. */
2401 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2402 
2403 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2404 	 * be nested within the channel stats.
2405 	 */
2406 
2407 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2408 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2409 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2410 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2411 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2412 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2413 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2414 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2415 
2416 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2417 	 * nested within the radio stats.
2418 	 */
2419 
2420 	/* Unsigned int 32 bit value representing total number of msecs the
2421 	 * radio is awake on that channel accruing over time, corresponding to
2422 	 * the respective channel.
2423 	 */
2424 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2425 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2426 	 * register is busy accruing over time corresponding to the respective
2427 	 * channel.
2428 	 */
2429 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2430 
2431 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2432 
2433 	/* Signifies the nested list of channel attributes
2434 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2435 	 */
2436 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2437 
2438 	/* Signifies the nested list of peer info attributes
2439 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2440 	 */
2441 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2442 
2443 	/* Signifies the nested list of rate info attributes
2444 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2445 	 */
2446 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2447 
2448 	/* Signifies the nested list of wmm info attributes
2449 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2450 	 */
2451 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2452 
2453 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2454 	 * that more stats, e.g., peers or radio, are to follow in the next
2455 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2456 	 * Otherwise, it is set to 0.
2457 	 */
2458 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2459 
2460 	/* Unsigned 64 bit value */
2461 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2462 
2463 	/* Unsigned 32 bit value */
2464 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2465 
2466 	/* Unsigned 32 bit value */
2467 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2468 
2469 	/* Unsigned 32 bit value */
2470 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2471 
2472 	/* Unsigned 32 bit value */
2473 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2474 
2475 	/* Unsigned 32 bit value */
2476 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2477 
2478 	/* Number of msecs the radio spent in transmitting for each power level
2479 	 */
2480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2481 
2482 	/* Unsigned 32 bit value */
2483 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2484 	/* Unsigned 32 bit value */
2485 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2486 	/* Unsigned 32 bit value */
2487 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2488 	/* Unsigned 32 bit value */
2489 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2490 
2491 	/* Unsigned int 32 value.
2492 	 * Pending MSDUs corresponding to respective AC.
2493 	 */
2494 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2495 
2496 	/* u32 value representing total time in milliseconds for which the radio
2497 	 * is transmitting on this channel. This attribute will be nested
2498 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2499 	 */
2500 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2501 	/* u32 value representing total time in milliseconds for which the radio
2502 	 * is receiving all 802.11 frames intended for this device on this
2503 	 * channel. This attribute will be nested within
2504 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2505 	 */
2506 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2507 	/* u8 value representing the channel load percentage. Possible values
2508 	 * are 0-100.
2509 	 */
2510 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2511 	/* u8 value representing the time slicing duty cycle percentage.
2512 	 * Possible values are 0-100.
2513 	 */
2514 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2515 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2516 	 * from the associated AP and indicate buffered unicast frame(s) for us
2517 	 * in the TIM element.
2518 	 */
2519 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2520 	/* Unsigned 32 bit value. The total number of Beacon frames received
2521 	 * from the associated AP that have wrongly indicated buffered unicast
2522 	 * traffic in the TIM element for us.
2523 	 * Below scenarios will be considered as wrong TIM element beacon:
2524 	 * 1) The related TIM element is set in the beacon for STA but STA
2525 	 *    doesn’t receive any unicast data after this beacon.
2526 	 * 2) The related TIM element is still set in the beacon for STA
2527 	 *    after STA has indicated power save exit by QoS Null Data frame.
2528 	 */
2529 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2530 
2531 	/* keep last */
2532 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2533 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2534 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2535 };
2536 
2537 enum qca_wlan_vendor_attr_ll_stats_type {
2538 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2539 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2540 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2541 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2542 
2543 	/* keep last */
2544 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2545 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2546 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2547 };
2548 
2549 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2550 
2551 /**
2552  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2553  *
2554  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2555  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2556  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2557  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2558  */
2559 enum qca_wlan_vendor_attr_get_supported_features {
2560 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2561 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2562 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2563 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2564 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2565 };
2566 
2567 /**
2568  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2569  *
2570  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2571  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2572  *	value
2573  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2574  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2575  */
2576 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2577 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2578 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2579 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2580 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2581 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2582 };
2583 
2584 /**
2585  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2586  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2587  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2588  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2589  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2590  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2591  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2592  */
2593 enum qca_wlan_vendor_scan_priority {
2594 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2595 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2596 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2597 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2598 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2599 };
2600 
2601 /**
2602  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2603  *
2604  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2605  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2606  *	with frequencies to be scanned (in MHz)
2607  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2608  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2609  *	rates to be included
2610  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2611  *	at non CCK rate in 2GHz band
2612  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2613  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2614  *	driver for the specific scan request
2615  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2616  *	request decoded as in enum scan_status
2617  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2618  *	scan flag is set
2619  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2620  *	randomisation
2621  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2622  *	specific BSSID to scan for.
2623  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2624  *	microseconds. This is a common value which applies across all
2625  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2626  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2627  *      other scan requests. It is a u32 attribute and takes values from enum
2628  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2629  *      If this attribute is not configured, the driver shall use
2630  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2631  */
2632 enum qca_wlan_vendor_attr_scan {
2633 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2634 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2635 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2636 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2637 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2638 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2639 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2640 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2641 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2642 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2643 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2644 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2645 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2646 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2647 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2648 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2649 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2650 };
2651 
2652 /**
2653  * enum scan_status - Specifies the valid values the vendor scan attribute
2654  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2655  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2656  *	new scan results
2657  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2658  */
2659 enum scan_status {
2660 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2661 	VENDOR_SCAN_STATUS_ABORTED,
2662 	VENDOR_SCAN_STATUS_MAX,
2663 };
2664 
2665 /**
2666  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2667  *
2668  * NL attributes for data used by
2669  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2670  *
2671  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2672  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2673  *	Unsigned 32-bit value
2674  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2675  *	Unsigned 32-bit value
2676  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2677  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2678  *	combinations
2679  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2680  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2681  */
2682 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2683 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2684 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2685 									= 1,
2686 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2687 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2688 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2689 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2690 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2691 };
2692 
2693 /**
2694  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2695  *
2696  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2697  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2698  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2699  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2700  */
2701 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2702 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2703 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2704 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2705 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2706 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2707 };
2708 
2709 /**
2710  * enum qca_vendor_attr_wisa_cmd
2711  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2712  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2713  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2714  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2715  * WISA setup vendor commands
2716  */
2717 enum qca_vendor_attr_wisa_cmd {
2718 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2719 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2720 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2721 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2722 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2723 };
2724 
2725 enum qca_roaming_policy {
2726 	QCA_ROAMING_NOT_ALLOWED,
2727 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2728 };
2729 
2730 /**
2731  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2732  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2733  *
2734  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2735  * reasons.
2736  *
2737  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2738  * the configured threshold.
2739  *
2740  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2741  * beacon misses from the then connected AP.
2742  *
2743  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2744  * by the connected AP.
2745  *
2746  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2747  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2748  * not poor.
2749  *
2750  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2751  * or environment being very noisy / congested.
2752  *
2753  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2754  * from the user (user space).
2755  *
2756  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2757  * connected AP.
2758  *
2759  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2760  * breaching out the configured threshold.
2761  *
2762  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
2763  * transition request.
2764  *
2765  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
2766  * there is no data activity with the AP and the current rssi falls below a
2767  * certain threshold.
2768  *
2769  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
2770  * deauthentication or disassociation frames received from the connected AP.
2771  *
2772  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
2773  * scan that happens when there is no candiate AP found during the poor
2774  * RSSI scan trigger.
2775  *
2776  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
2777  * results obtained from an external scan (not aimed at roaming).
2778  *
2779  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
2780  * connection is established when the station is connected in 2.4 Ghz band.
2781  */
2782 enum qca_roam_reason {
2783 	QCA_ROAM_REASON_UNKNOWN,
2784 	QCA_ROAM_REASON_PER,
2785 	QCA_ROAM_REASON_BEACON_MISS,
2786 	QCA_ROAM_REASON_POOR_RSSI,
2787 	QCA_ROAM_REASON_BETTER_RSSI,
2788 	QCA_ROAM_REASON_CONGESTION,
2789 	QCA_ROAM_REASON_USER_TRIGGER,
2790 	QCA_ROAM_REASON_BTM,
2791 	QCA_ROAM_REASON_BSS_LOAD,
2792 	QCA_ROAM_REASON_WTC,
2793 	QCA_ROAM_REASON_IDLE,
2794 	QCA_ROAM_REASON_DISCONNECTION,
2795 	QCA_ROAM_REASON_PERIODIC_TIMER,
2796 	QCA_ROAM_REASON_BACKGROUND_SCAN,
2797 	QCA_ROAM_REASON_BT_ACTIVITY,
2798 };
2799 
2800 /**
2801  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2802  *
2803  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2804  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2805  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2806  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2807  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2808  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2809  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2810  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2811  * Indicates the status of re-association requested by user space for
2812  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2813  * Type u16.
2814  * Represents the status code from AP. Use
2815  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2816  * real status code for failures.
2817  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2818  * This attribute indicates that the old association was maintained when
2819  * a re-association is requested by user space and that re-association
2820  * attempt fails (i.e., cannot connect to the requested BSS, but can
2821  * remain associated with the BSS with which the association was in
2822  * place when being requested to roam). Used along with
2823  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2824  * re-association status. Type flag.
2825  * This attribute is applicable only for re-association failure cases.
2826  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2827  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2828  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2829  * seq number
2830  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2831  * representing the reasons for the roaming. Defined by enum
2832  * qca_roam_reason.
2833  */
2834 enum qca_wlan_vendor_attr_roam_auth {
2835 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2836 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
2837 	 * of the roamed AP for MLO roaming.
2838 	 */
2839 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2840 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2841 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2842 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2843 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2844 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2845 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2846 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2847 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2848 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2849 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2850 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2851 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2852 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2853 	/* A nested attribute containing per-link information of all the links
2854 	 * of MLO connection done while roaming. The attributes used inside this
2855 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
2856 	 */
2857 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
2858 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2859 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2860 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2861 };
2862 
2863 /**
2864  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
2865  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
2866  *
2867  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
2868  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
2869  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
2870  */
2871 enum qca_wlan_vendor_attr_mlo_links {
2872 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
2873 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
2874 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
2875 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
2876 
2877 	/* Keep last */
2878 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
2879 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
2880 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
2881 };
2882 
2883 /**
2884  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2885  *
2886  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2887  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2888  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2889  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2890  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2891  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2892  */
2893 enum qca_wlan_vendor_attr_wifi_config {
2894 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2895 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2896 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2897 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2898 
2899 	/* keep last */
2900 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2901 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2902 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2903 };
2904 
2905 /**
2906  * enum qca_wlan_epno_type - the type of request to the EPNO command
2907  * @QCA_WLAN_EPNO: epno type request
2908  * @QCA_WLAN_PNO: pno type request
2909  */
2910 enum qca_wlan_epno_type {
2911 	QCA_WLAN_EPNO,
2912 	QCA_WLAN_PNO
2913 };
2914 
2915 /**
2916  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2917  *
2918  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2919  *
2920  *	NL attributes for data used by
2921  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2922  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2923  *	Unsigned 32-bit value; pno passpoint number of networks
2924  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2925  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2926  *	attributes. Array size =
2927  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
2928  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
2929  *	Unsigned 32-bit value; network id
2930  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
2931  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
2932  *	realm, 0 if unspecified.
2933  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
2934  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
2935  *	to match, 0 if unspecified.
2936  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
2937  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
2938  *	unspecified.
2939  *
2940  *	NL attributes for data used by
2941  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
2942  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
2943  *	Unsigned 32-bit value; set pno number of networks
2944  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
2945  *	Array of nested
2946  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
2947  *	attributes. Array size =
2948  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
2949  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
2950  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
2951  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
2952  *	Signed 8-bit value; threshold for considering this SSID as found,
2953  *	required granularity for this threshold is 4dBm to 8dBm
2954  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
2955  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
2956  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
2957  *	Unsigned 8-bit value; auth bit field for matching WPA IE
2958  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
2959  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
2960  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
2961  *	Nested attribute to send the channel list
2962  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
2963  *	Unsigned 32-bit value; indicates the Interval between PNO scan
2964  *	cycles in msec
2965  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
2966  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
2967  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
2968  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
2969  *	This attribute is obsolete now.
2970  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
2971  *	Signed 32-bit value; the maximum score that a network
2972  *	can have before bonuses
2973  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
2974  *	Signed 32-bit value; only report when there is a network's
2975  *	score this much higher han the current connection
2976  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
2977  *	Signed 32-bit value; score bonus for all networks with
2978  *	the same network flag
2979  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
2980  *	Signed 32-bit value; score bonus for networks that are not open
2981  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
2982  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
2983  *	5GHz networks
2984  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
2985  *	Unsigned 32-bit value, representing the PNO Request ID
2986  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
2987  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
2988  */
2989 enum qca_wlan_vendor_attr_pno_config_params {
2990 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
2991 
2992 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
2993 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
2994 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
2995 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
2996 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
2997 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
2998 
2999 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3000 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3001 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3002 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
3003 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3004 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3005 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3006 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3007 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3008 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3009 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3010 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3011 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3012 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3013 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3014 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3015 
3016 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3017 	/* keep last */
3018 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3019 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3020 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3021 };
3022 
3023 /**
3024  * enum qca_scan_freq_list_type: Frequency list types
3025  *
3026  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3027  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3028  *	a preferred frequency list for roaming.
3029  *
3030  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3031  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3032  *	a specific frequency list for roaming.
3033  */
3034 enum qca_scan_freq_list_type {
3035 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3036 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3037 };
3038 
3039 /**
3040  * enum qca_roam_scan_scheme: scan scheme
3041  *
3042  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3043  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3044  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3045  *	disconnect from the current connected AP by notifying a failure
3046  *	code in the BTM response.
3047  *
3048  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3049  *	trigger partial frequency scans. These frequencies are the ones learnt
3050  *	or maintained by the driver based on the probability of finding the
3051  *	BSSID's in the ESS for which the roaming is triggered.
3052  *
3053  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3054  *	trigger the scan on all the valid frequencies to find the better
3055  *	candidates to roam.
3056  */
3057 enum qca_roam_scan_scheme {
3058 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3059 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3060 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3061 };
3062 
3063 /**
3064  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3065  *
3066  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3067  *	List of frequencies in MHz to be considered for a roam scan.
3068  *
3069  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3070  *	Type of frequency list scheme being configured/gotten as defined by the
3071  *	enum qca_scan_freq_list_type.
3072  */
3073 enum qca_vendor_attr_scan_freq_list_scheme {
3074 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3075 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3076 
3077 	/* keep last */
3078 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3079 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3080 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3081 };
3082 
3083 /*
3084  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3085  *
3086  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3087  *	a bad packet error rates (PER).
3088  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3089  *	based on beacon misses from the connected AP.
3090  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3091  *	due to poor RSSI of the connected AP.
3092  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3093  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3094  *	Here the RSSI of the current BSSID need not be poor.
3095  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3096  *	by triggering a periodic scan to find a better AP to roam.
3097  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3098  *	when the connected channel environment is too noisy/congested.
3099  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3100  *	when BTM Request frame is received from the connected AP.
3101  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3102  *	when the channel utilization is goes above the configured threshold.
3103  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3104  *	based on the request from the user (space).
3105  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3106  *	device receives Deauthentication/Disassociation frame from connected
3107  *	AP.
3108  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3109  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3110  *	is determined to be a poor one.
3111  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3112  *	based on continuous TX Data Frame failures to the connected AP.
3113  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3114  *	based on the scan results obtained from an external scan (not
3115  *	triggered to aim roaming)
3116  *
3117  * Set the corresponding roam trigger reason bit to consider it for roam
3118  * trigger.
3119  * Userspace can set multiple bits and send to the driver. The driver shall
3120  * consider all of them to trigger/initiate a roam scan.
3121  */
3122 enum qca_vendor_roam_triggers {
3123 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3124 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3125 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3126 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3127 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3128 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3129 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3130 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3131 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3132 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3133 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3134 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3135 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3136 };
3137 
3138 /*
3139  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3140  * fail reasons. This enum value is used in
3141  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3142  *
3143  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3144  * able to trigger the scan.
3145  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3146  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3147  * scan.
3148  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3149  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3150  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3151  * status code.
3152  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3153  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3154  * frame.
3155  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3156  * with error status code.
3157  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3158  * received.
3159  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3160  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3161  * frame.
3162  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3163  * internally before transmission.
3164  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3165  * Request frame.
3166  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3167  * dropped internally.
3168  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3169  * times out.
3170  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3171  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3172  * internally.
3173  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3174  * M2 frame.
3175  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3176  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3177  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3178  * internally.
3179  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3180  * frame.
3181  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3182  * started for final beacon miss case.
3183  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3184  * received from the AP during roaming handoff.
3185  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3186  * or host is suspended and gives the indication of the last roamed AP only
3187  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3188  * progress, this ongoing roaming is aborted and the last roamed AP is
3189  * indicated to host.
3190  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3191  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3192  * out.
3193  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3194  */
3195 enum qca_vendor_roam_fail_reasons {
3196 	QCA_ROAM_FAIL_REASON_NONE = 0,
3197 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3198 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3199 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3200 	QCA_ROAM_FAIL_REASON_HOST = 4,
3201 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3202 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3203 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3204 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3205 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3206 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3207 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3208 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3209 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3210 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3211 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3212 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3213 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3214 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3215 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3216 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3217 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3218 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3219 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3220 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3221 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3222 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3223 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3224 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3225 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3226 };
3227 
3228 /*
3229  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3230  * invoke fail reasons. This enum value is used in
3231  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3232  *
3233  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3234  * in roam invoke command.
3235  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3236  * enabled.
3237  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3238  * length is invalid.
3239  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3240  * in progress.
3241  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3242  * of the AP in the roam invoke command to firmware. This reason is sent by the
3243  * firmware when the given AP is configured to be ignored or SSID/security
3244  * does not match.
3245  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3246  * firmware internal reasons.
3247  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3248  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3249  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3250  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3251  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3252  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3253  */
3254 enum qca_vendor_roam_invoke_fail_reasons {
3255 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3256 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3257 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3258 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3259 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3260 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3261 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3262 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3263 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3264 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3265 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3266 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3267 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3268 
3269 };
3270 
3271 /**
3272  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3273  *
3274  * Each attribute carries a weightage in percentage (%).
3275  *
3276  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3277  *	Represents the weightage to be given for the RSSI selection
3278  *	criteria among other parameters.
3279  *
3280  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3281  *	Represents the weightage to be given for the rate selection
3282  *	criteria among other parameters.
3283  *
3284  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3285  *	Represents the weightage to be given for the band width selection
3286  *	criteria among other parameters.
3287  *
3288  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3289  *	Represents the weightage to be given for the band selection
3290  *	criteria among other parameters.
3291  *
3292  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3293  *	Represents the weightage to be given for the NSS selection
3294  *	criteria among other parameters.
3295  *
3296  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3297  *	Represents the weightage to be given for the channel congestion
3298  *	selection criteria among other parameters.
3299  *
3300  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3301  *	Represents the weightage to be given for the beamforming selection
3302  *	criteria among other parameters.
3303  *
3304  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3305  *	Represents the weightage to be given for the OCE selection
3306  *	criteria among other parameters.
3307  */
3308 enum qca_vendor_attr_roam_candidate_selection_criteria {
3309 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3310 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3311 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3312 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3313 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3314 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3315 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3316 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3317 
3318 	/* keep last */
3319 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3320 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3321 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3322 };
3323 
3324 /**
3325  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3326  *	The following attributes are used to set/get/clear the respective
3327  *	configurations to/from the driver.
3328  *	For the get, the attribute for the configuration to be queried shall
3329  *	carry any of its acceptable values to the driver. In return, the driver
3330  *	shall send the configured values within the same attribute to the user
3331  *	space.
3332  *
3333  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3334  *	Signifies to enable/disable roam control in driver.
3335  *	1-enable, 0-disable
3336  *	Enable: Mandates the driver to do the further roams using the
3337  *	configuration parameters set through
3338  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3339  *	Disable: Disables the driver/firmware roaming triggered through
3340  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3341  *	expected to continue with the default configurations.
3342  *
3343  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3344  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3345  *	Roam control status is obtained through this attribute.
3346  *
3347  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3348  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3349  *	is to be cleared in the driver.
3350  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3351  *	and shall be ignored if used with other sub commands.
3352  *	If this attribute is specified along with subcmd
3353  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3354  *	all other attributes, if there are any.
3355  *	If this attribute is not specified when the subcmd
3356  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3357  *	clear the data corresponding to the attributes specified.
3358  *
3359  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3360  *	list of frequencies and its type, represented by
3361  *	enum qca_vendor_attr_scan_freq_list_scheme.
3362  *	Frequency list and its type are mandatory for this attribute to set
3363  *	the frequencies.
3364  *	Frequency type is mandatory for this attribute to get the frequencies
3365  *	and the frequency list is obtained through
3366  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3367  *	Frequency list type is mandatory for this attribute to clear the
3368  *	frequencies.
3369  *
3370  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3371  *	Carries the value of scan period in seconds to set.
3372  *	The value of scan period is obtained with the same attribute for get.
3373  *	Clears the scan period in the driver when specified with clear command.
3374  *	Scan period is the idle time in seconds between each subsequent
3375  *	channel scans.
3376  *
3377  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3378  *	Carries the value of full scan period in seconds to set.
3379  *	The value of full scan period is obtained with the same attribute for
3380  *	get.
3381  *	Clears the full scan period in the driver when specified with clear
3382  *	command. Full scan period is the idle period in seconds between two
3383  *	successive full channel roam scans.
3384  *
3385  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3386  *	Carries a bitmap of the roam triggers specified in
3387  *	enum qca_vendor_roam_triggers.
3388  *	The driver shall enable roaming by enabling corresponding roam triggers
3389  *	based on the trigger bits sent with this attribute.
3390  *	If this attribute is not configured, the driver shall proceed with
3391  *	default behavior.
3392  *	The bitmap configured is obtained with the same attribute for get.
3393  *	Clears the bitmap configured in driver when specified with clear
3394  *	command.
3395  *
3396  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3397  *	weightage in percentage (%) to be given for each selection criteria.
3398  *	Different roam candidate selection criteria are represented by
3399  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3400  *	The driver shall select the roam candidate based on corresponding
3401  *	candidate selection scores sent.
3402  *
3403  *	An empty nested attribute is used to indicate that no specific
3404  *	preference score/criteria is configured (i.e., to disable this mechanism
3405  *	in the set case and to show that the mechanism is disabled in the get
3406  *	case).
3407  *
3408  *	Userspace can send multiple attributes out of this enum to the driver.
3409  *	Since this attribute represents the weight/percentage of preference for
3410  *	the respective selection criteria, it is preferred to configure 100%
3411  *	total weightage. The value in each attribute or cumulative weight of the
3412  *	values in all the nested attributes should not exceed 100%. The driver
3413  *	shall reject such configuration.
3414  *
3415  *	If the weights configured through this attribute are less than 100%,
3416  *	the driver shall honor the weights (x%) passed for the corresponding
3417  *	selection criteria and choose/distribute rest of the weight (100-x)%
3418  *	for the other selection criteria, based on its internal logic.
3419  *
3420  *	The selection criteria configured is obtained with the same
3421  *	attribute for get.
3422  *
3423  *	Clears the selection criteria configured in the driver when specified
3424  *	with clear command.
3425  *
3426  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3427  *	Represents value of scan frequency scheme from
3428  *      enum qca_roam_scan_scheme.
3429  *
3430  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3431  *	signifying the RSSI threshold of the current connected AP, indicating
3432  *	the driver to trigger roam only when the current connected AP's RSSI
3433  *	is lesser than this threshold.
3434  *
3435  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3436  *	signifying the RSSI threshold of the candidate AP, indicating
3437  *	the driver to trigger roam only to the candidate AP with RSSI
3438  *	better than this threshold. If RSSI thresholds for candidate APs found
3439  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3440  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3441  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3442  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3443  *	will take precedence over the value configured using
3444  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3445  *
3446  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3447  *	user triggered reason code to be sent to the AP in response to AP's
3448  *	request to trigger the roam if the roaming cannot be triggered.
3449  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3450  *
3451  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3452  *	Carries a bitmap of the roam triggers specified in
3453  *	enum qca_vendor_roam_triggers.
3454  *	Represents the roam triggers for which the specific scan scheme from
3455  *	enum qca_roam_scan_scheme has to be applied.
3456  *	It's an optional attribute. If this attribute is not configured, but
3457  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3458  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3459  *	all the roams.
3460  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3461  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3462  *	driver shall proceed with the default behavior.
3463  *
3464  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3465  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3466  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3467  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3468  *	threshold. Optional attribute. If this attribute is not included, then
3469  *	threshold value specified by the
3470  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3471  *
3472  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3473  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3474  *	band. The driver/firmware shall trigger roaming to the candidate AP
3475  *	found in 5GHz band only if it's RSSI value is better than this
3476  *	threshold. Optional attribute. If this attribute is not included, then
3477  *	threshold value specified by the
3478  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3479  *
3480  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3481  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3482  *	band. The driver/firmware shall trigger roaming to the candidate AP
3483  *	found in 6GHz band only if it's RSSI value is better than this
3484  *	threshold. Optional attribute. If this attribute is not included, then
3485  *	threshold value specified by the
3486  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3487  *
3488  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3489  *	Carries bitmask value of bits from &enum qca_set_band and represents
3490  *	all the bands in which roaming is allowed. The configuration is valid
3491  *	until next disconnection. If this attribute is not present, the
3492  *	existing configuration shall be used. By default, roaming is allowed
3493  *	on all bands supported by local device. When the value is set to
3494  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3495  *
3496  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3497  *	Optional parameter. RX link speed threshold to disable roaming.
3498  *	If the current RX link speed is above the threshold, roaming is not
3499  *	needed. If this attribute is not configured, or if it is set to 0, the
3500  *	driver will not consider the RX link speed in the roaming decision.
3501  */
3502 enum qca_vendor_attr_roam_control {
3503 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3504 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3505 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3506 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3507 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3508 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3509 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3510 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3511 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3512 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3513 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3514 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3515 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3516 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3517 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3518 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3519 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3520 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3521 
3522 	/* keep last */
3523 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3524 	QCA_ATTR_ROAM_CONTROL_MAX =
3525 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3526 };
3527 
3528 /**
3529  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3530  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3531  *
3532  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3533  *	Represents the different roam sub commands referred by
3534  *	enum qca_wlan_vendor_roaming_subcmd.
3535  *
3536  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3537  *	Represents the Request ID for the specific set of commands.
3538  *	This also helps to map specific set of commands to the respective
3539  *	ID / client. e.g., helps to identify the user entity configuring the
3540  *	Blacklist BSSID and accordingly clear the respective ones with the
3541  *	matching ID.
3542  *
3543  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3544  *	32-bit value.Represents the number of whitelist SSIDs configured.
3545  *
3546  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3547  *	to carry the list of Whitelist SSIDs.
3548  *
3549  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3550  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3551  *	represent the list of SSIDs to which the firmware/driver can consider
3552  *	to roam to.
3553  *
3554  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3555  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3556  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3557  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3558  *
3559  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3560  *	value, RSSI threshold above which 5GHz RSSI is favored.
3561  *
3562  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3563  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3564  *
3565  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3566  *	value, factor by which 5GHz RSSI is boosted.
3567  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3568  *
3569  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3570  *	value, factor by which 5GHz RSSI is penalized.
3571  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3572  *
3573  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3574  *	value, maximum boost that can be applied to a 5GHz RSSI.
3575  *
3576  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3577  *	value, boost applied to current BSSID to ensure the currently
3578  *	associated BSSID is favored so as to prevent ping-pong situations.
3579  *
3580  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3581  *	value, RSSI below which "Alert" roam is enabled.
3582  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3583  *	because the RSSI is low, or because many successive beacons have been
3584  *	lost or other bad link conditions.
3585  *
3586  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3587  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3588  *	firmware is hunting for a better BSSID or white listed SSID even though
3589  *	the RSSI of the link is good. The parameters enabling the roaming are
3590  *	configured through the PARAM_A_BAND_XX attrbutes.
3591  *
3592  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3593  *	represents the BSSIDs preferred over others while evaluating them
3594  *	for the roaming.
3595  *
3596  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3597  *	32-bit value. Represents the number of preferred BSSIDs set.
3598  *
3599  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3600  *	address representing the BSSID to be preferred.
3601  *
3602  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3603  *	32-bit value, representing the modifier to be applied to the RSSI of
3604  *	the BSSID for the purpose of comparing it with other roam candidate.
3605  *
3606  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3607  *	represents the BSSIDs to get blacklisted for roaming.
3608  *
3609  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3610  *	32-bit value, represents the number of blacklisted BSSIDs.
3611  *
3612  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3613  *	address representing the Blacklisted BSSID.
3614  *
3615  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3616  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3617  *	select this BSSID in the worst case (when no other BSSIDs are better).
3618  *
3619  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3620  *	set/get/clear the roam control config as
3621  *	defined @enum qca_vendor_attr_roam_control.
3622  *
3623  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3624  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3625  */
3626 enum qca_wlan_vendor_attr_roaming_config_params {
3627 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3628 
3629 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3630 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3631 
3632 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3633 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3634 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3635 
3636 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3637 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3638 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3639 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3640 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3641 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3642 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3643 
3644 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3645 
3646 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3647 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3648 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3649 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3650 
3651 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3652 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3653 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3654 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3655 
3656 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3657 
3658 	/* keep last */
3659 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3660 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3661 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3662 };
3663 
3664 /**
3665  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3666  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3667  *
3668  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3669  *	configure the white list SSIDs. These are configured through
3670  *	the following attributes.
3671  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3672  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3673  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3674  *
3675  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3676  *	configure the Roam params. These parameters are evaluated on the extscan
3677  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3678  *	params.
3679  *
3680  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3681  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3682  *	to enable/disable Lazy roam.
3683  *
3684  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3685  *	preference. Contains the attribute
3686  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3687  *	preference.
3688  *
3689  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3690  *
3691  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3692  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3693  *	set the same.
3694  *
3695  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3696  *	roam control config to the driver with the attribute
3697  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3698  *
3699  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3700  *	roam control config from driver with the attribute
3701  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3702  *	For the get, the attribute for the configuration to be queried shall
3703  *	carry any of its acceptable value to the driver. In return, the driver
3704  *	shall send the configured values within the same attribute to the user
3705  *	space.
3706  *
3707  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3708  *	roam control config in the driver with the attribute
3709  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3710  *	The driver shall continue with its default roaming behavior when data
3711  *	corresponding to an attribute is cleared.
3712  */
3713 enum qca_wlan_vendor_roaming_subcmd {
3714 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3715 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3716 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3717 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3718 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3719 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3720 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3721 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3722 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3723 };
3724 
3725 /**
3726  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3727  *
3728  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3729  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3730  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3731  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3732  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3733  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3734  */
3735 enum qca_wlan_vendor_attr_get_wifi_info {
3736 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3737 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3738 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3739 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3740 
3741 	/* KEEP LAST */
3742 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3743 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3744 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3745 };
3746 
3747 enum qca_wlan_vendor_attr_logger_results {
3748 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3749 
3750 	/*
3751 	 * Unsigned 32-bit value; must match the request Id supplied by
3752 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3753 	 */
3754 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3755 
3756 	/*
3757 	 * Unsigned 32-bit value; used to indicate the size of memory
3758 	 * dump to be allocated.
3759 	 */
3760 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3761 
3762 	/* keep last */
3763 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3764 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3765 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3766 };
3767 
3768 /**
3769  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3770  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3771  */
3772 enum qca_wlan_vendor_channel_prop_flags {
3773 	/* Bits 0, 1, 2, and 3 are reserved */
3774 
3775 	/* Turbo channel */
3776 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3777 	/* CCK channel */
3778 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3779 	/* OFDM channel */
3780 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3781 	/* 2.4 GHz spectrum channel. */
3782 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3783 	/* 5 GHz spectrum channel */
3784 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3785 	/* Only passive scan allowed */
3786 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3787 	/* Dynamic CCK-OFDM channel */
3788 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3789 	/* GFSK channel (FHSS PHY) */
3790 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3791 	/* Radar found on channel */
3792 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3793 	/* 11a static turbo channel only */
3794 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3795 	/* Half rate channel */
3796 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3797 	/* Quarter rate channel */
3798 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3799 	/* HT 20 channel */
3800 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3801 	/* HT 40 with extension channel above */
3802 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3803 	/* HT 40 with extension channel below */
3804 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3805 	/* HT 40 intolerant */
3806 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3807 	/* VHT 20 channel */
3808 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3809 	/* VHT 40 with extension channel above */
3810 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3811 	/* VHT 40 with extension channel below */
3812 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3813 	/* VHT 80 channel */
3814 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3815 	/* HT 40 intolerant mark bit for ACS use */
3816 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3817 	/* Channel temporarily blocked due to noise */
3818 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3819 	/* VHT 160 channel */
3820 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3821 	/* VHT 80+80 channel */
3822 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3823 	/* HE 20 channel */
3824 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3825 	/* HE 40 with extension channel above */
3826 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3827 	/* HE 40 with extension channel below */
3828 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3829 	/* HE 40 intolerant */
3830 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
3831 };
3832 
3833 /**
3834  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3835  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3836  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3837  */
3838 enum qca_wlan_vendor_channel_prop_flags_2 {
3839 	/* HE 40 intolerant mark bit for ACS use */
3840 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3841 	/* HE 80 channel */
3842 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3843 	/* HE 160 channel */
3844 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3845 	/* HE 80+80 channel */
3846 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3847 };
3848 
3849 /**
3850  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3851  * each channel. This is used by
3852  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3853  */
3854 enum qca_wlan_vendor_channel_prop_flags_ext {
3855 	/* Radar found on channel */
3856 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3857 	/* DFS required on channel */
3858 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3859 	/* DFS required on channel for 2nd band of 80+80 */
3860 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3861 	/* If channel has been checked for DFS */
3862 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3863 	/* Excluded in 802.11d */
3864 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3865 	/* Channel Switch Announcement received on this channel */
3866 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3867 	/* Ad-hoc is not allowed */
3868 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3869 	/* Station only channel */
3870 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3871 	/* DFS radar history for slave device (STA mode) */
3872 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
3873 	/* DFS CAC valid for slave device (STA mode) */
3874 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
3875 };
3876 
3877 /**
3878  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3879  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3880  * information to start/stop the NUD statistics collection.
3881  */
3882 enum qca_attr_nud_stats_set {
3883 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3884 
3885 	/*
3886 	 * Flag to start/stop the NUD statistics collection.
3887 	 * Start - If included, Stop - If not included
3888 	 */
3889 	QCA_ATTR_NUD_STATS_SET_START = 1,
3890 	/* IPv4 address of the default gateway (in network byte order) */
3891 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
3892 	/*
3893 	 * Represents the data packet type to be monitored.
3894 	 * Host driver tracks the stats corresponding to each data frame
3895 	 * represented by these flags.
3896 	 * These data packets are represented by
3897 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
3898 	 */
3899 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
3900 	/* keep last */
3901 	QCA_ATTR_NUD_STATS_SET_LAST,
3902 	QCA_ATTR_NUD_STATS_SET_MAX =
3903 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
3904 };
3905 
3906 /**
3907  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
3908  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3909  *	information to start / stop the NUD stats collection.
3910  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
3911  *	Bitmap to Flag to Start / Stop the NUD stats collection
3912  *	Start - If included , Stop - If not included
3913  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
3914  *	IPv4 address of Default Gateway (in network byte order)
3915  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3916  *	information to start / stop the NUD stats collection.
3917  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
3918  *	Flag to Start / Stop the NUD stats collection
3919  *	Start - If included , Stop - If not included
3920  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
3921  *	IPv4 address of Default Gateway (in network byte order)
3922  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
3923  *	information to start / stop the NUD stats collection.
3924  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
3925  *	Flag to Start / Stop the NUD stats collection
3926  *	Start - If included , Stop - If not included
3927  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
3928  *	IPv4 address of Default Gateway (in network byte order)
3929  */
3930 enum qca_attr_connectivity_check_stats_set {
3931 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
3932 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
3933 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
3934 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
3935 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
3936 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
3937 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
3938 	/* keep last */
3939 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
3940 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
3941 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
3942 };
3943 
3944 /**
3945  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
3946  * data types for which the stats have to get collected.
3947  */
3948 enum qca_wlan_vendor_connectivity_check_pkt_flags {
3949 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
3950 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
3951 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
3952 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
3953 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
3954 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
3955 	 * to represent the stats of respective data type.
3956 	 */
3957 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
3958 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
3959 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
3960 };
3961 
3962 enum qca_attr_connectivity_check_stats {
3963 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
3964 	/* Data packet type for which the stats are collected.
3965 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
3966 	 */
3967 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
3968 	/* ID corresponding to the DNS frame for which the respective DNS stats
3969 	 * are monitored (u32).
3970 	 */
3971 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
3972 	/* source / destination port on which the respective proto stats are
3973 	 * collected (u32).
3974 	 */
3975 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
3976 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
3977 	/* IPv4/IPv6 address for which the destined data packets are
3978 	 * monitored. (in network byte order)
3979 	 */
3980 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
3981 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
3982 	/* Data packet Request count received from netdev */
3983 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
3984 	/* Data packet Request count sent to lower MAC from upper MAC */
3985 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
3986 	/* Data packet Request count received by lower MAC from upper MAC */
3987 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
3988 	/* Data packet Request count successfully transmitted by the device */
3989 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
3990 	/* Data packet Response count received by lower MAC */
3991 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
3992 	/* Data packet Response count received by upper MAC */
3993 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
3994 	/* Data packet Response count delivered to netdev */
3995 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
3996 	/* Data Packet Response count that are dropped out of order */
3997 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
3998 
3999 	/* keep last */
4000 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
4001 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
4002 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
4003 };
4004 
4005 /**
4006  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4007  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4008  * NUD statistics collected when queried.
4009  */
4010 enum qca_attr_nud_stats_get {
4011 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4012 	/* ARP Request count from netdev */
4013 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4014 	/* ARP Request count sent to lower MAC from upper MAC */
4015 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4016 	/* ARP Request count received by lower MAC from upper MAC */
4017 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4018 	/* ARP Request count successfully transmitted by the device */
4019 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4020 	/* ARP Response count received by lower MAC */
4021 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4022 	/* ARP Response count received by upper MAC */
4023 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4024 	/* ARP Response count delivered to netdev */
4025 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4026 	/* ARP Response count delivered to netdev */
4027 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4028 	/*
4029 	 * Flag indicating if the station's link to the AP is active.
4030 	 * Active Link - If included, Inactive link - If not included
4031 	 */
4032 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4033 	/*
4034 	 * Flag indicating if there is any duplicate address detected (DAD).
4035 	 * Yes - If detected, No - If not detected.
4036 	 */
4037 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4038 	/*
4039 	 * List of Data types for which the stats are requested.
4040 	 * This list does not carry ARP stats as they are done by the
4041 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4042 	 */
4043 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4044 	/* keep last */
4045 	QCA_ATTR_NUD_STATS_GET_LAST,
4046 	QCA_ATTR_NUD_STATS_GET_MAX =
4047 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4048 };
4049 
4050 enum qca_wlan_btm_candidate_status {
4051 	QCA_STATUS_ACCEPT = 0,
4052 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4053 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4054 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4055 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4056 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4057 	QCA_STATUS_REJECT_UNKNOWN = 6,
4058 };
4059 
4060 enum qca_wlan_vendor_attr_btm_candidate_info {
4061 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4062 
4063 	/* 6-byte MAC address representing the BSSID of transition candidate */
4064 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4065 	/*
4066 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4067 	 * returned by the driver. It says whether the BSSID provided in
4068 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4069 	 * the driver, if not it specifies the reason for rejection.
4070 	 * Note that the user-space can overwrite the transition reject reason
4071 	 * codes provided by driver based on more information.
4072 	 */
4073 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4074 
4075 	/* keep last */
4076 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4077 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4078 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4079 };
4080 
4081 enum qca_attr_trace_level {
4082 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4083 	/*
4084 	 * Nested array of the following attributes:
4085 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4086 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4087 	 */
4088 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4089 	/*
4090 	 * Specific QCA host driver module. Please refer to the QCA host
4091 	 * driver implementation to get the specific module ID.
4092 	 */
4093 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4094 	/* Different trace level masks represented in the QCA host driver. */
4095 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4096 
4097 	/* keep last */
4098 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4099 	QCA_ATTR_TRACE_LEVEL_MAX =
4100 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4101 };
4102 
4103 /**
4104  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4105  *                                                 supported features
4106  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4107  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4108  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4109  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4110  *
4111  * enum values are used for NL attributes for data used by
4112  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4113  */
4114 enum qca_wlan_vendor_attr_get_logger_features {
4115 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4116 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4117 
4118 	/* keep last */
4119 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4120 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4121 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4122 };
4123 
4124 /**
4125  * enum qca_wlan_vendor_attr_link_properties - link properties
4126  *
4127  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4128  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4129  *	specify the number of spatial streams negotiated
4130  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4131  *	to specify negotiated rate flags i.e. ht, vht and channel width
4132  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4133  *	specify the operating frequency
4134  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4135  * (STA / AP ) for the connected link.
4136  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4137  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4138  * address of the peer represented by
4139  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4140  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4141  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4142  */
4143 enum qca_wlan_vendor_attr_link_properties {
4144 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4145 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4146 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4147 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4148 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4149 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4150 
4151 	/* KEEP LAST */
4152 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4153 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4154 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4155 };
4156 
4157 /**
4158  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4159  *
4160  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4161  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4162  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4163  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4164  *
4165  * enum values are used for NL attributes for data used by
4166  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4167  */
4168 enum qca_wlan_vendor_attr_nd_offload {
4169 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4170 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4171 
4172 	/* Keep last */
4173 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4174 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4175 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4176 };
4177 
4178 /**
4179  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4180  *
4181  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4182  *	management offload, a mechanism where the station's firmware
4183  *	does the exchange with the AP to establish the temporal keys
4184  *	after roaming, rather than having the user space wpa_supplicant do it.
4185  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4186  *	band selection based on channel selection results.
4187  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4188  *	simultaneous off-channel operations.
4189  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4190  *	Listen offload; a mechanism where the station's firmware takes care of
4191  *	responding to incoming Probe Request frames received from other P2P
4192  *	Devices whilst in Listen state, rather than having the user space
4193  *	wpa_supplicant do it. Information from received P2P requests are
4194  *	forwarded from firmware to host whenever the host processor wakes up.
4195  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4196  *	specific features.
4197  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4198  *	features.
4199  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4200  *	specific features only. If a Device sets this bit but not the
4201  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4202  *	this Device may not support all OCE AP functionalities but can support
4203  *	only OCE STA-CFON functionalities.
4204  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4205  *	managed regulatory.
4206  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4207  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4208  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4209  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4210  *	and applying thermal configuration through
4211  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4212  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4213  *	userspace.
4214  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4215  *	With Adaptive 11r feature, access points advertise the vendor
4216  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4217  *	The Adaptive 11r supported stations are expected to identify
4218  *	such vendor specific IEs and connect to the AP in FT mode though
4219  *	the profile is configured in non-FT mode.
4220  *	The driver-based SME cases also need to have this support for
4221  *	Adaptive 11r to handle the connection and roaming scenarios.
4222  *	This flag indicates the support for the same to the user space.
4223  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4224  *	concurrent network sessions on different Wi-Fi Bands. This feature
4225  *	capability is attributed to the hardware's capability to support
4226  *	the same (e.g., DBS).
4227  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4228  *	responses for the respective TWT operations are asynchronous (separate)
4229  *	event message) from the driver. If not specified, the responses are
4230  *	synchronous (in vendor command reply) to the request. Each TWT
4231  *	operation is specifically mentioned (against its respective)
4232  *	documentation) to support either of these or both modes.
4233  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4234  * 	that the driver requires add/del virtual interface path using the
4235  *	generic nl80211 commands for NDP interface create/delete and to
4236  *	register/unregister the netdev instead of creating/deleting the NDP
4237  *	interface using the vendor commands
4238  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4239  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4240  * 	(5.12 version onward), interface creation/deletion is not allowed using
4241  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4242  * 	during the register/unregister of netdev. Create and delete NDP
4243  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4244  * 	commands respectively if the driver advertises this capability set.
4245  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4246  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4247  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4248  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4249  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4250  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4251  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4252  *	station mode supports secure RTT measurement exchange. If
4253  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4254  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4255  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4256  *	mode supports secure RTT measurement exchange. If
4257  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4258  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4259  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4260  *	the device in station mode supports protection of range negotiation and
4261  *	measurement management frames. If
4262  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4263  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4264  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4265  *	the device in AP mode supports protection of range negotiation and
4266  *	measurement management frames. If
4267  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4268  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4269  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4270  */
4271 enum qca_wlan_vendor_features {
4272 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4273 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4274 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4275 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4276 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4277 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4278 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4279 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4280 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4281 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4282 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4283 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4284 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4285 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4286 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4287 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4288 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4289 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4290 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4291 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4292 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4293 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4294 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4295 };
4296 
4297 /**
4298  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4299  *     conditional channel switch
4300  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4301  *     value
4302  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4303  * frequency list (an array of u32 values in host byte order)
4304  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4305  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4306  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4307  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4308  */
4309 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4310 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4311 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4312 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4313 
4314 	/* Keep Last */
4315 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4316 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4317 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4318 };
4319 
4320 /**
4321  * enum wifi_logger_supported_features - values for supported logger features
4322  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4323  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4324  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4325  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4326  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4327  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4328  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4329  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4330  */
4331 enum wifi_logger_supported_features {
4332 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4333 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4334 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4335 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4336 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4337 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4338 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4339 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4340 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4341 };
4342 
4343 /**
4344  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4345  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4346  *
4347  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4348  * Used with event to notify the primary channel number selected in ACS
4349  * operation.
4350  * Note: If both the driver and user-space application supports the 6 GHz band,
4351  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4352  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4353  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4354  * is still used if either of the driver or user space application doesn't
4355  * support the 6 GHz band.
4356  *
4357  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4358  * Used with event to notify the secondary channel number selected in ACS
4359  * operation.
4360  * Note: If both the driver and user-space application supports the 6 GHz band,
4361  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4362  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4363  * To maintain backward compatibility,
4364  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4365  * the driver or user space application doesn't support 6 GHz band.
4366  *
4367  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4368  * (a) Used with command to configure hw_mode from
4369  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4370  * (b) Also used with event to notify the hw_mode of selected primary channel
4371  * in ACS operation.
4372  *
4373  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4374  * Used with command to configure ACS operation for HT mode.
4375  * Disable (flag attribute not present) - HT disabled and
4376  * Enable (flag attribute present) - HT enabled.
4377  *
4378  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4379  * Used with command to configure ACS operation for HT40 mode.
4380  * Disable (flag attribute not present) - HT40 disabled and
4381  * Enable (flag attribute present) - HT40 enabled.
4382  *
4383  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4384  * Used with command to configure ACS operation for VHT mode.
4385  * Disable (flag attribute not present) - VHT disabled and
4386  * Enable (flag attribute present) - VHT enabled.
4387  *
4388  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4389  * mandatory with event.
4390  * If specified in command path, ACS operation is configured with the given
4391  * channel width (in MHz).
4392  * In event path, specifies the channel width of the primary channel selected.
4393  *
4394  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4395  * Used with command to configure channel list using an array of
4396  * channel numbers (u8).
4397  * Note: If both the driver and user-space application supports the 6 GHz band,
4398  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4399  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4400  *
4401  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4402  * Used with event to notify the VHT segment 0 center channel number selected in
4403  * ACS operation.
4404  * Note: If both the driver and user-space application supports the 6 GHz band,
4405  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4406  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4407  * To maintain backward compatibility,
4408  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4409  * the driver or user space application doesn't support the 6 GHz band.
4410  *
4411  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4412  * Used with event to notify the VHT segment 1 center channel number selected in
4413  * ACS operation.
4414  * Note: If both the driver and user-space application supports the 6 GHz band,
4415  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4416  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4417  * To maintain backward compatibility,
4418  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4419  * the driver or user space application doesn't support the 6 GHz band.
4420  *
4421  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4422  * Used with command to configure the channel list using an array of channel
4423  * center frequencies in MHz (u32).
4424  * Note: If both the driver and user-space application supports the 6 GHz band,
4425  * the driver first parses the frequency list and if it fails to get a frequency
4426  * list, parses the channel list specified using
4427  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4428  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4429  *
4430  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4431  * Used with event to notify the primary channel center frequency (MHz) selected
4432  * in ACS operation.
4433  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4434  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4435  *
4436  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4437  * Used with event to notify the secondary channel center frequency (MHz)
4438  * selected in ACS operation.
4439  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4440  * includes this attribute along with
4441  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4442  *
4443  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4444  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
4445  * selected in ACS operation.
4446  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4447  * includes this attribute along with
4448  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
4449  *
4450  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4451  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4452  * selected in ACS operation.
4453  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4454  * includes this attribute along with
4455  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4456  *
4457  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4458  * Used with command to notify the driver of EDMG request for ACS
4459  * operation.
4460  *
4461  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4462  * Used with event to notify the EDMG channel number selected in ACS
4463  * operation.
4464  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4465  *
4466  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4467  * Used with event to notify the puncture pattern selected in ACS operation.
4468  * Encoding for this attribute will follow the convention used in the Disabled
4469  * Subchannel Bitmap field of the EHT Operation IE.
4470  *
4471  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4472  * Used with command to configure ACS operation for EHT mode.
4473  * Disable (flag attribute not present) - EHT disabled and
4474  * Enable (flag attribute present) - EHT enabled.
4475  *
4476  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4477  * Used with command to configure how older scan can be considered for ACS
4478  * scoring. In case scan was performed on partial set of channels configured
4479  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4480  * (in ms), then scan only remaining channels.
4481  */
4482 enum qca_wlan_vendor_attr_acs_offload {
4483 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4484 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4485 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4486 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4487 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4488 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4489 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4490 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4491 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4492 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4493 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4494 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4495 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4496 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4497 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4498 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4499 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4500 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4501 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4502 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4503 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4504 
4505 	/* keep last */
4506 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4507 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4508 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4509 };
4510 
4511 /**
4512  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4513  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4514  *
4515  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4516  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4517  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4518  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4519  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4520  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4521  */
4522 enum qca_wlan_vendor_acs_hw_mode {
4523 	QCA_ACS_MODE_IEEE80211B,
4524 	QCA_ACS_MODE_IEEE80211G,
4525 	QCA_ACS_MODE_IEEE80211A,
4526 	QCA_ACS_MODE_IEEE80211AD,
4527 	QCA_ACS_MODE_IEEE80211ANY,
4528 	QCA_ACS_MODE_IEEE80211AX,
4529 };
4530 
4531 /**
4532  * enum qca_access_policy - access control policy
4533  *
4534  * Access control policy is applied on the configured IE
4535  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4536  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4537  *
4538  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4539  *»       with the specific configuration (IE) set, i.e. allow all the
4540  *»       connections which do not match the configuration.
4541  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4542  *»       with the specific configuration (IE) set, i.e. deny all the
4543  *»       connections which do not match the configuration.
4544  */
4545 enum qca_access_policy {
4546 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4547 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4548 };
4549 
4550 /**
4551  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4552  *
4553  * The valid values for the ignore assoc disallowed
4554  *
4555  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4556  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4557  *
4558  */
4559 enum qca_ignore_assoc_disallowed {
4560 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4561 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4562 };
4563 
4564 /* Attributes for data used by
4565  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4566  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4567  */
4568 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4569 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4570 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4571 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4572 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4573 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4574 enum qca_wlan_vendor_attr_config {
4575 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4576 	/*
4577 	 * Unsigned 32-bit value to set the DTIM period.
4578 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4579 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4580 	 * DTIM beacons.
4581 	 */
4582 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4583 	/*
4584 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4585 	 * used to calculate statistics like average the TSF offset or average
4586 	 * number of frame leaked.
4587 	 * For instance, upon Beacon frame reception:
4588 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4589 	 * For instance, when evaluating leaky APs:
4590 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4591 	 */
4592 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4593 	/*
4594 	 * Unsigned 32-bit value to configure guard time, i.e., when
4595 	 * implementing IEEE power management based on frame control PM bit, how
4596 	 * long the driver waits before shutting down the radio and after
4597 	 * receiving an ACK frame for a Data frame with PM bit set.
4598 	 */
4599 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
4600 	/* Unsigned 32-bit value to change the FTM capability dynamically */
4601 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
4602 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
4603 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
4604 	/*
4605 	 * Unsigned 32-bit value to configure the number of continuous
4606 	 * Beacon Miss which shall be used by the firmware to penalize
4607 	 * the RSSI.
4608 	 */
4609 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
4610 	/*
4611 	 * Unsigned 8-bit value to configure the channel avoidance indication
4612 	 * behavior. Firmware to send only one indication and ignore duplicate
4613 	 * indications when set to avoid multiple Apps wakeups.
4614 	 */
4615 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
4616 	/*
4617 	 * 8-bit unsigned value to configure the maximum TX MPDU for
4618 	 * aggregation.
4619 	 */
4620 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
4621 	/*
4622 	 * 8-bit unsigned value to configure the maximum RX MPDU for
4623 	 * aggregation.
4624 	 */
4625 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
4626 	/*
4627 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
4628 	 * retry threshold (0 disable, 31 max).
4629 	 */
4630 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
4631 	/*
4632 	 * 8-bit unsigned value to configure the aggregrate sw
4633 	 * retry threshold (0 disable, 31 max).
4634 	 */
4635 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
4636 	/*
4637 	 * 8-bit unsigned value to configure the MGMT frame
4638 	 * retry threshold (0 disable, 31 max).
4639 	 */
4640 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
4641 	/*
4642 	 * 8-bit unsigned value to configure the CTRL frame
4643 	 * retry threshold (0 disable, 31 max).
4644 	 */
4645 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
4646 	/*
4647 	 * 8-bit unsigned value to configure the propagation delay for
4648 	 * 2G/5G band (0~63, units in us)
4649 	 */
4650 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
4651 	/*
4652 	 * Unsigned 32-bit value to configure the number of unicast TX fail
4653 	 * packet count. The peer is disconnected once this threshold is
4654 	 * reached.
4655 	 */
4656 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
4657 	/*
4658 	 * Attribute used to set scan default IEs to the driver.
4659 	 *
4660 	 * These IEs can be used by scan operations that will be initiated by
4661 	 * the driver/firmware.
4662 	 *
4663 	 * For further scan requests coming to the driver, these IEs should be
4664 	 * merged with the IEs received along with scan request coming to the
4665 	 * driver. If a particular IE is present in the scan default IEs but not
4666 	 * present in the scan request, then that IE should be added to the IEs
4667 	 * sent in the Probe Request frames for that scan request.
4668 	 */
4669 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
4670 	/* Unsigned 32-bit attribute for generic commands */
4671 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
4672 	/* Unsigned 32-bit value attribute for generic commands */
4673 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
4674 	/* Unsigned 32-bit data attribute for generic command response */
4675 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
4676 	/*
4677 	 * Unsigned 32-bit length attribute for
4678 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4679 	 */
4680 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
4681 	/*
4682 	 * Unsigned 32-bit flags attribute for
4683 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4684 	 */
4685 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
4686 	/*
4687 	 * Unsigned 32-bit, defining the access policy.
4688 	 * See enum qca_access_policy. Used with
4689 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4690 	 */
4691 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
4692 	/*
4693 	 * Sets the list of full set of IEs for which a specific access policy
4694 	 * has to be applied. Used along with
4695 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4696 	 * Zero length payload can be used to clear this access constraint.
4697 	 */
4698 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
4699 	/*
4700 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
4701 	 * corresponding configurations are applied. If the interface index is
4702 	 * not specified, the configurations are attributed to the respective
4703 	 * wiphy.
4704 	 */
4705 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
4706 	/*
4707 	 * 8-bit unsigned value to trigger QPower:
4708 	 * 1-Enable, 0-Disable
4709 	 */
4710 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
4711 	/*
4712 	 * 8-bit unsigned value to configure the driver and below layers to
4713 	 * ignore the assoc disallowed set by APs while connecting
4714 	 * 1-Ignore, 0-Don't ignore
4715 	 */
4716 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
4717 	/*
4718 	 * 32-bit unsigned value to trigger antenna diversity features:
4719 	 * 1-Enable, 0-Disable
4720 	 */
4721 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4722 	/* 32-bit unsigned value to configure specific chain antenna */
4723 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4724 	/*
4725 	 * 32-bit unsigned value to trigger cycle selftest
4726 	 * 1-Enable, 0-Disable
4727 	 */
4728 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4729 	/*
4730 	 * 32-bit unsigned to configure the cycle time of selftest
4731 	 * the unit is micro-second
4732 	 */
4733 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4734 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
4735 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4736 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
4737 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4738 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
4739 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4740 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
4741 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4742 	/* 6-byte MAC address to point out the specific peer */
4743 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4744 	/* 32-bit unsigned value to set window size for specific peer */
4745 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4746 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4747 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4748 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4749 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4750 	/*
4751 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4752 	 * station device while in disconnect state. The attribute use the
4753 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4754 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4755 	 * 10 MHz channel width, the station will not connect to a BSS using 20
4756 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4757 	 * clear this constraint.
4758 	 */
4759 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4760 	/*
4761 	 * 32-bit unsigned value to configure the propagation absolute delay
4762 	 * for 2G/5G band (units in us)
4763 	 */
4764 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
4765 	/* 32-bit unsigned value to set probe period */
4766 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4767 	/* 32-bit unsigned value to set stay period */
4768 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4769 	/* 32-bit unsigned value to set snr diff */
4770 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4771 	/* 32-bit unsigned value to set probe dwell time */
4772 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4773 	/* 32-bit unsigned value to set mgmt snr weight */
4774 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4775 	/* 32-bit unsigned value to set data snr weight */
4776 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4777 	/* 32-bit unsigned value to set ack snr weight */
4778 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4779 	/*
4780 	 * 32-bit unsigned value to configure the listen interval.
4781 	 * This is in units of beacon intervals. This configuration alters
4782 	 * the negotiated listen interval with the AP during the connection.
4783 	 * It is highly recommended to configure a value less than or equal to
4784 	 * the one negotiated during the association. Configuring any greater
4785 	 * value can have adverse effects (frame loss, AP disassociating STA,
4786 	 * etc.).
4787 	 */
4788 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4789 	/*
4790 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4791 	 * disable operations that would cause the AP/GO to leave its operating
4792 	 * channel.
4793 	 *
4794 	 * This will restrict the scans to the AP/GO operating channel and the
4795 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4796 	 * brought up after this setting is enabled, will be restricted to
4797 	 * connecting to devices only on the AP/GO interface's operating channel
4798 	 * or on the other band in DBS case. P2P supported channel list is
4799 	 * modified, to only include AP interface's operating-channel and the
4800 	 * channels of the other band if DBS is supported.
4801 	 *
4802 	 * These restrictions are only applicable as long as the AP/GO interface
4803 	 * is alive. If the AP/GO interface is brought down then this
4804 	 * setting/restriction is forgotten.
4805 	 *
4806 	 * If this variable is set on an AP/GO interface while a multi-channel
4807 	 * concurrent session is active, it has no effect on the operation of
4808 	 * the current interfaces, other than restricting the scan to the AP/GO
4809 	 * operating channel and the other band channels if DBS is supported.
4810 	 * However, if the STA is brought down and restarted then the new STA
4811 	 * connection will either be formed on the AP/GO channel or on the
4812 	 * other band in a DBS case. This is because of the scan being
4813 	 * restricted on these channels as mentioned above.
4814 	 *
4815 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4816 	 */
4817 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4818 
4819 	/*
4820 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4821 	 * on an interface.
4822 	 * 1 - Enable , 0 - Disable.
4823 	 */
4824 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4825 
4826 	/*
4827 	 * 8 bit unsigned value to globally enable/disable scan
4828 	 * 1 - Enable, 0 - Disable.
4829 	 */
4830 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4831 
4832 	/* 8-bit unsigned value to set the total beacon miss count */
4833 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4834 
4835 	/*
4836 	 * Unsigned 32-bit value to configure the number of continuous
4837 	 * Beacon Miss which shall be used by the firmware to penalize
4838 	 * the RSSI for BTC.
4839 	 */
4840 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4841 
4842 	/*
4843 	 * 8-bit unsigned value to configure the driver and below layers to
4844 	 * enable/disable all fils features.
4845 	 * 0-enable, 1-disable
4846 	 */
4847 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4848 
4849 	/* 16-bit unsigned value to configure the level of WLAN latency
4850 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4851 	 */
4852 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4853 
4854 	/*
4855 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4856 	 * the connect interface. Exclusively used for the scenarios where the
4857 	 * device is used as a test bed device with special functionality and
4858 	 * not recommended for production. This helps driver to not validate the
4859 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4860 	 * used for testing purposes.
4861 	 * 1-enable, 0-disable.
4862 	 * Applications set/reset this configuration. If not reset, this
4863 	 * parameter remains in use until the driver is unloaded.
4864 	 */
4865 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4866 
4867 	/*
4868 	 * 8-bit unsigned value to trigger green Tx power saving.
4869 	 * 1-Enable, 0-Disable
4870 	 */
4871 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4872 
4873 	/*
4874 	 * Attribute to configure disconnect IEs to the driver.
4875 	 * This carries an array of unsigned 8-bit characters.
4876 	 *
4877 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
4878 	 * frame.
4879 	 * These IEs are expected to be considered only for the next
4880 	 * immediate disconnection (disassoc/deauth frame) originated by
4881 	 * the DUT, irrespective of the entity (user space/driver/firmware)
4882 	 * triggering the disconnection.
4883 	 * The host drivers are not expected to use the IEs set through
4884 	 * this interface for further disconnections after the first immediate
4885 	 * disconnection initiated post the configuration.
4886 	 * If the IEs are also updated through cfg80211 interface (after the
4887 	 * enhancement to cfg80211_disconnect), host driver is expected to
4888 	 * take the union of IEs from both of these interfaces and send in
4889 	 * further disassoc/deauth frames.
4890 	 */
4891 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
4892 
4893 	/* 8-bit unsigned value for ELNA bypass.
4894 	 * 0 - Disable eLNA bypass.
4895 	 * 1 - Enable eLNA bypass.
4896 	 * 2 - Reset eLNA bypass configuration, the driver should
4897 	 *	revert to the default configuration of eLNA bypass.
4898 	 */
4899 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
4900 
4901 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4902 	 * to send the Beacon Report response with failure reason for the
4903 	 * scenarios where STA cannot honor the Beacon report request from AP.
4904 	 * 1-Enable, 0-Disable.
4905 	 */
4906 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
4907 
4908 	/* 8-bit unsigned value. This attribute enables/disables the host driver
4909 	 * to send roam reason information in the reassociation request to the
4910 	 * AP. 1-Enable, 0-Disable.
4911 	 */
4912 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
4913 
4914 	/* 32-bit unsigned value to configure different PHY modes to the
4915 	 * driver/firmware. The possible values are defined in
4916 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
4917 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
4918 	 * the driver.
4919 	 */
4920 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
4921 
4922 	/* 8-bit unsigned value to configure the maximum supported channel width
4923 	 * for STA mode. If this value is configured when STA is in connected
4924 	 * state, it should not exceed the negotiated channel width. If it is
4925 	 * configured when STA is in disconnected state, the configured value
4926 	 * will take effect for the next immediate connection.
4927 	 * Possible values are:
4928 	 *   NL80211_CHAN_WIDTH_20
4929 	 *   NL80211_CHAN_WIDTH_40
4930 	 *   NL80211_CHAN_WIDTH_80
4931 	 *   NL80211_CHAN_WIDTH_80P80
4932 	 *   NL80211_CHAN_WIDTH_160
4933 	 */
4934 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
4935 
4936 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
4937 	 * This attribute is only applicable for STA mode. When dynamic
4938 	 * bandwidth adjustment is disabled, STA will use static channel width
4939 	 * the value of which is negotiated during connection.
4940 	 * 1-enable (default), 0-disable
4941 	 */
4942 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
4943 
4944 	/* 8-bit unsigned value to configure the maximum number of subframes of
4945 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
4946 	 * it is decided by hardware.
4947 	 */
4948 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
4949 
4950 	/* 8-bit unsigned value to configure the maximum number of subframes of
4951 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
4952 	 * it is decided by hardware.
4953 	 */
4954 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
4955 
4956 	/* 8-bit unsigned value. This attribute is used to dynamically
4957 	 * enable/disable the LDPC capability of the device. When configured in
4958 	 * the disconnected state, the updated configuration will be considered
4959 	 * for the immediately following connection attempt. If this
4960 	 * configuration is modified while the device is in the connected state,
4961 	 * the LDPC TX will be updated with this configuration immediately,
4962 	 * while the LDPC RX configuration update will take place starting from
4963 	 * the subsequent association attempt.
4964 	 * 1-Enable, 0-Disable.
4965 	 */
4966 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
4967 
4968 	/* 8-bit unsigned value. This attribute is used to dynamically
4969 	 * enable/disable the TX STBC capability of the device. When configured
4970 	 * in the disconnected state, the updated configuration will be
4971 	 * considered for the immediately following connection attempt. If the
4972 	 * connection is formed with TX STBC enabled and if this configuration
4973 	 * is disabled during that association, the TX will be impacted
4974 	 * immediately. Further connection attempts will disable TX STBC.
4975 	 * However, enabling the TX STBC for a connected session with disabled
4976 	 * capability is not allowed and will fail.
4977 	 * 1-Enable, 0-Disable.
4978 	 */
4979 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
4980 
4981 	/* 8-bit unsigned value. This attribute is used to dynamically
4982 	 * enable/disable the RX STBC capability of the device. When configured
4983 	 * in the disconnected state, the updated configuration will be
4984 	 * considered for the immediately following connection attempt. If the
4985 	 * configuration is modified in the connected state, there will be no
4986 	 * impact for the current association, but further connection attempts
4987 	 * will use the updated configuration.
4988 	 * 1-Enable, 0-Disable.
4989 	 */
4990 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
4991 
4992 	/* 8-bit unsigned value. This attribute is used to dynamically configure
4993 	 * the number of spatial streams. When configured in the disconnected
4994 	 * state, the updated configuration will be considered for the
4995 	 * immediately following connection attempt. If the NSS is updated after
4996 	 * the connection, the updated NSS value is notified to the peer using
4997 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
4998 	 * frame. The updated NSS value after the connection shall not be
4999 	 * greater than the one negotiated during the connection. Any such
5000 	 * higher value configuration shall be returned with a failure.
5001 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
5002 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
5003 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
5004 	 * configure the asymmetric NSS configuration (such as 1X2).
5005 	 */
5006 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
5007 
5008 	/*
5009 	 * 8-bit unsigned value to trigger Optimized Power Management:
5010 	 * 1-Enable, 0-Disable
5011 	 */
5012 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
5013 
5014 	/* 8-bit unsigned value. This attribute takes the QOS/access category
5015 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5016 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
5017 	 * is invalid for this attribute. This will override the DSCP value
5018 	 * configured in the frame with the intention to only upgrade the QOS.
5019 	 * That said, it is not intended to downgrade the QOS for the frames.
5020 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
5021 	 * to disable.
5022 	 */
5023 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
5024 
5025 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5026 	 * the number of chains to be used for transmitting data. This
5027 	 * configuration is allowed only when in connected state and will be
5028 	 * effective until disconnected. The driver rejects this configuration
5029 	 * if the number of spatial streams being used in the current connection
5030 	 * cannot be supported by this configuration.
5031 	 */
5032 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
5033 
5034 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5035 	 * the number of chains to be used for receiving data. This
5036 	 * configuration is allowed only when in connected state and will be
5037 	 * effective until disconnected. The driver rejects this configuration
5038 	 * if the number of spatial streams being used in the current connection
5039 	 * cannot be supported by this configuration.
5040 	 */
5041 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5042 
5043 	/* 8-bit unsigned value to configure ANI setting type.
5044 	 * See &enum qca_wlan_ani_setting for possible values.
5045 	 */
5046 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5047 	/* 32-bit signed value to configure ANI level. This is used when
5048 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5049 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5050 	 * is invalid, the driver will return a failure.
5051 	 */
5052 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5053 
5054 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5055 	 * the number of spatial streams used for transmitting the data. When
5056 	 * configured in the disconnected state, the configured value will
5057 	 * be considered for the following connection attempt.
5058 	 * If the NSS is updated after the connection, the updated NSS value
5059 	 * is notified to the peer using the Operating Mode Notification/Spatial
5060 	 * Multiplexing Power Save frame.
5061 	 * The TX NSS value configured after the connection shall not be greater
5062 	 * than the value negotiated during the connection. Any such higher
5063 	 * value configuration shall be treated as invalid configuration by
5064 	 * the driver. This attribute shall be configured along with
5065 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5066 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5067 	 * configuration (such as 1X2).
5068 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5069 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5070 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5071 	 */
5072 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5073 
5074 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5075 	 * the number of spatial streams used for receiving the data. When
5076 	 * configured in the disconnected state, the configured value will
5077 	 * be considered for the following connection attempt.
5078 	 * If the NSS is updated after the connection, the updated NSS value
5079 	 * is notified to the peer using the Operating Mode Notification/Spatial
5080 	 * Multiplexing Power Save frame.
5081 	 * The RX NSS value configured after the connection shall not be greater
5082 	 * than the value negotiated during the connection. Any such higher
5083 	 * value configuration shall be treated as invalid configuration by
5084 	 * the driver. This attribute shall be configured along with
5085 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5086 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5087 	 * configuration (such as 1X2).
5088 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5089 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5090 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5091 	 */
5092 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5093 
5094 	/*
5095 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5096 	 * specified interface is the primary STA interface when there are more
5097 	 * than one STA interfaces concurrently active.
5098 	 *
5099 	 * This configuration helps the firmware/hardware to support certain
5100 	 * features (e.g., roaming) on this primary interface, if the same
5101 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5102 	 *
5103 	 * This configuration is only applicable for a single STA interface on
5104 	 * a device and gives the priority for it only over other concurrent STA
5105 	 * interfaces.
5106 	 *
5107 	 * If the device is a multi wiphy/soc, this configuration applies to a
5108 	 * single STA interface across the wiphys.
5109 	 *
5110 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5111 	 */
5112 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5113 
5114 	/*
5115 	 * 8-bit unsigned value. This attribute can be used to configure the
5116 	 * driver to enable/disable FT-over-DS feature. Possible values for
5117 	 * this attribute are 1-Enable and 0-Disable.
5118 	 */
5119 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5120 
5121 	/*
5122 	 * 8-bit unsigned value. This attribute can be used to configure the
5123 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5124 	 * for this attribute are 0-Disable and 1-Enable.
5125 	 *
5126 	 * This attribute is only applicable for STA/P2P-Client interface,
5127 	 * and is optional, default behavior is APR/NS offload Enable.
5128 	 *
5129 	 * This attribute can be set in disconncted and connected state, and
5130 	 * will restore to default behavior if interface is closed.
5131 	 */
5132 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5133 
5134 	/*
5135 	 * 8-bit unsigned value. This attribute can be used to configure the
5136 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5137 	 * for this attribute are defined in the enum qca_dbam_config.
5138 	 */
5139 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5140 
5141 	/* keep last */
5142 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5143 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5144 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5145 };
5146 
5147 /**
5148  * enum qca_dbam_config - Specifies DBAM config mode
5149  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5150  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5151  * internal criteria are met.
5152  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5153  */
5154 enum qca_dbam_config {
5155 	QCA_DBAM_DISABLE = 0,
5156 	QCA_DBAM_ENABLE = 1,
5157 	QCA_DBAM_FORCE_ENABLE = 2,
5158 };
5159 
5160 /**
5161  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5162  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5163  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5164  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5165  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5166  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5167  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5168  */
5169 enum qca_wlan_vendor_attr_wifi_logger_start {
5170 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5171 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5172 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5173 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5174 	/* keep last */
5175 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5176 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5177 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5178 };
5179 
5180 /*
5181  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5182  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5183  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5184  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5185  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5186  */
5187 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5188 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5189 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5190 	/* keep last */
5191 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5192 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5193 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5194 };
5195 
5196 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5197 /**
5198  * enum wlan_offloaded_packets_control - control commands
5199  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5200  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5201  *
5202  */
5203 enum wlan_offloaded_packets_control {
5204 	WLAN_START_OFFLOADED_PACKETS = 1,
5205 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5206 };
5207 
5208 /**
5209  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5210  *
5211  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5212  *      the offloaded data.
5213  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5214  *      data.
5215  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5216  *      indication.
5217  */
5218 enum qca_wlan_vendor_attr_data_offload_ind {
5219 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5220 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5221 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5222 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5223 
5224 	/* keep last */
5225 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5226 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5227 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5228 };
5229 
5230 /**
5231  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5232  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5233  */
5234 enum qca_wlan_vendor_attr_offloaded_packets {
5235 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5236 	/* Takes valid value from the enum
5237 	 * qca_wlan_offloaded_packets_sending_control
5238 	 * Unsigned 32-bit value
5239 	 */
5240 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5241 	/* Unsigned 32-bit value */
5242 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5243 	/* array of u8 len: Max packet size */
5244 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5245 	/* 6-byte MAC address used to represent source MAC address */
5246 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5247 	/* 6-byte MAC address used to represent destination MAC address */
5248 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5249 	/* Unsigned 32-bit value, in milli seconds */
5250 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5251 	/* This optional unsigned 16-bit attribute is used for specifying
5252 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5253 	 */
5254 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5255 
5256 	/* keep last */
5257 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5258 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5259 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5260 };
5261 
5262 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5263 
5264 /**
5265  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5266  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5267  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5268  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5269  */
5270 enum qca_wlan_rssi_monitoring_control {
5271 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5272 	QCA_WLAN_RSSI_MONITORING_START,
5273 	QCA_WLAN_RSSI_MONITORING_STOP,
5274 };
5275 
5276 /**
5277  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5278  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5279  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5280  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5281  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5282  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5283  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5284  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5285  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5286  */
5287 enum qca_wlan_vendor_attr_rssi_monitoring {
5288 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5289 
5290 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5291 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5292 
5293 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5294 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5295 
5296 	/* attributes to be used/received in callback */
5297 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5298 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5299 
5300 	/* keep last */
5301 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5302 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5303 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5304 };
5305 
5306 /**
5307  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5308  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5309  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5310  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
5311  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
5312  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
5313  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
5314  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
5315  * address
5316  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
5317  * created
5318  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
5319  * NCS_SK_TYPE/PMK/SCID instead
5320  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
5321  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
5322  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
5323  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
5324  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
5325  * code: accept/reject
5326  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
5327  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
5328  * driver
5329  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
5330  * driver
5331  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
5332  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
5333  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
5334  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
5335  * PMKID
5336  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
5337  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
5338  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
5339  * update:
5340  *     BIT_0: NSS Update
5341  *     BIT_1: Channel list update
5342  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
5343  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
5344  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
5345  *     0:20 MHz,
5346  *     1:40 MHz,
5347  *     2:80 MHz,
5348  *     3:160 MHz
5349  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
5350  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
5351  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
5352  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
5353  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
5354  * transport port used by NDP.
5355  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
5356  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
5357  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5358  * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
5359  * NDP remote peer supports NAN NDPE. 1:support 0:not support
5360  * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
5361  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
5362  * A lower-case representation of the Service Name shall be used to
5363  * calculate the Service ID.
5364  * Array of u8: length is 6 bytes
5365  * This attribute is used and optional for ndp indication.
5366 */
5367 enum qca_wlan_vendor_attr_ndp_params {
5368 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5369 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
5370 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
5371 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
5372 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
5373 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
5374 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
5375 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
5376 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
5377 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
5378 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
5379 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
5380 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
5381 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
5382 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
5383 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
5384 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
5385 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
5386 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
5387 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
5388 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
5389 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
5390 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
5391 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
5392 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
5393 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
5394 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
5395 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5396 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5397 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5398 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
5399 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
5400 
5401 	/* keep last */
5402 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5403 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5404 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5405 };
5406 
5407 /**
5408  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
5409  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5410  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
5411  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
5412  * data path interface.
5413  * This command was initially designed to both create and start a NAN
5414  * data path interface. However, changes to Linux 5.12 no longer allow
5415  * interface creation via vendor commands. When the driver advertises
5416  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5417  * userspace must explicitly first create the interface using
5418  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
5419  * to start the interface.
5420  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
5421  * data path interface.
5422  * This command was initially designed to both stop and delete a NAN
5423  * data path interface. However, changes to Linux 5.12 no longer allow
5424  * interface deletion via vendor commands. When the driver advertises
5425  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5426  * userspace must explicitly delete the interface using
5427  * NL80211_CMD_DEL_INTERFACE after calling this command.
5428  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
5429  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
5430  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
5431  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
5432  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
5433  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
5434  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
5435  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
5436  * being received
5437  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
5438  * update
5439  */
5440 enum qca_wlan_ndp_sub_cmd {
5441 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5442 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5443 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5444 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5445 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5446 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5447 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5448 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5449 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5450 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5451 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5452 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5453 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5454 };
5455 
5456 /**
5457  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5458  * information. These attributes are sent as part of
5459  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5460  * attributes correspond to a single channel.
5461  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
5462  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5463  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
5464  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5465  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
5466  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
5467  * regulatory transmission power
5468  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
5469  * transmission power
5470  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
5471  * transmission power
5472  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
5473  * class id
5474  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
5475  * antenna gain in dbm
5476  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
5477  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
5478  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
5479  * segment 0 in center freq in MHz.
5480  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
5481  * segment 1 in center freq in MHz.
5482  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
5483  * flag indicating the AP power modes supported by the channel, as given by
5484  * enum qca_wlan_vendor_external_acs_chan_power_level.
5485  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
5486  * attributes for each power mode. It takes attr as defined in enum
5487  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5488  *
5489  */
5490 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5491 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5492 
5493 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5494 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5495 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5496 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5497 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5498 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5499 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5500 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5501 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5502 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5503 	/*
5504 	 * A bitmask (u32) with flags specified in
5505 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5506 	 */
5507 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5508 
5509 	/*
5510 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5511 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5512 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5513 	 * along with
5514 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5515 	 *
5516 	 * If both the driver and user-space application supports the 6 GHz
5517 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5518 	 * is deprecated and
5519 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5520 	 * should be used.
5521 	 *
5522 	 * To maintain backward compatibility,
5523 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5524 	 * is still used if either of the driver or user space application
5525 	 * doesn't support the 6 GHz band.
5526 	 */
5527 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
5528 
5529 	/*
5530 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5531 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5532 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5533 	 * along with
5534 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5535 	 *
5536 	 * If both the driver and user-space application supports the 6 GHz
5537 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5538 	 * is deprecated and
5539 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5540 	 * should be considered.
5541 	 *
5542 	 * To maintain backward compatibility,
5543 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5544 	 * is still used if either of the driver or user space application
5545 	 * doesn't support the 6 GHz band.
5546 	 */
5547 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
5548 	/*
5549 	 * 16-bit attribute of bits indicating the AP power modes supported by
5550 	 * the channel (u16).
5551 	 * Note: Currently, only 3 bits are used in the attribute and each bit
5552 	 * corresponds to the power mode mentioned in enum
5553 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
5554 	 * set if the associated mode is supported.
5555 	 */
5556 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
5557 									= 14,
5558 	/* Array of nested attributes for each power mode. It takes attr as
5559 	 * defined in enum
5560 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5561 	 */
5562 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
5563 
5564 	/* keep last */
5565 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5566 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5567 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5568 };
5569 
5570 /**
5571  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
5572  * values that the vendor external ACS channel power attribute
5573  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
5574  * take.
5575  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
5576  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
5577  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
5578  */
5579 enum qca_wlan_vendor_external_acs_chan_power_level {
5580 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
5581 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
5582 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
5583 };
5584 
5585 /**
5586  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
5587  * attributes for power mode type and power values corresponding to that.
5588  * These attributes are sent as part of
5589  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
5590  */
5591 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
5592 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
5593 	/*
5594 	 * Power mode (u8) takes the values defined in enum
5595 	 * qca_wlan_vendor_external_acs_chan_power_mode
5596 	 */
5597 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
5598 									= 1,
5599 	/*
5600 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
5601 	 * present, it indicates a PSD value.
5602 	 */
5603 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
5604 	/*
5605 	 * Power value (u32) PSD/EIRP as indicated by
5606 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
5607 	 * for power mode corresponding to the
5608 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
5609 	 * Units for PSD - dBm/MHz
5610 	 * Units for EIRP - dBm
5611 	 */
5612 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
5613 									= 3,
5614 	/* keep last */
5615 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
5616 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
5617 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
5618 };
5619 
5620 /**
5621  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
5622  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
5623  * driver.
5624  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
5625  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
5626  * ACS need to be started
5627  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
5628  * driver supports spectral scanning or not
5629  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
5630  * offloaded to firmware.
5631  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
5632  * provides additional channel capability as part of scan operation.
5633  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
5634  * interface status is UP
5635  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
5636  * interface. It takes one of nl80211_iftype values.
5637  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
5638  * of chan width. ACS logic should try to get a channel with specified width
5639  * if not found then look for lower values.
5640  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
5641  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
5642  * a/b/g/n/ac.
5643  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
5644  * among which ACS should choose best frequency.
5645  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
5646  * driver which will have <channel(u8), weight(u8)> format as array of
5647  * nested values.
5648  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
5649  * for each channel. It takes attr as defined in
5650  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
5651  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
5652  * qca_wlan_vendor_attr_external_acs_policy.
5653  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
5654  * Operating Parameter (RROP) availability information (u16). It uses values
5655  * defined in enum qca_wlan_vendor_attr_rropavail_info.
5656  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
5657  * indicate if driver supports 6 GHz AFC trigger for External ACS.
5658  */
5659 enum qca_wlan_vendor_attr_external_acs_event {
5660 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5661 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5662 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5663 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5664 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5665 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5666 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5667 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5668 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5669 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5670 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5671 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5672 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5673 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5674 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5675 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
5676 
5677 	/* keep last */
5678 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5679 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5680 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5681 };
5682 
5683 enum qca_iface_type {
5684 	QCA_IFACE_TYPE_STA,
5685 	QCA_IFACE_TYPE_AP,
5686 	QCA_IFACE_TYPE_P2P_CLIENT,
5687 	QCA_IFACE_TYPE_P2P_GO,
5688 	QCA_IFACE_TYPE_IBSS,
5689 	QCA_IFACE_TYPE_TDLS,
5690 };
5691 
5692 /**
5693  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
5694  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5695  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5696  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
5697  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
5698  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
5699  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
5700  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
5701  */
5702 enum qca_wlan_vendor_attr_pcl_config {
5703 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5704 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5705 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5706 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5707 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5708 };
5709 
5710 enum qca_set_band {
5711 	QCA_SETBAND_AUTO = 0,
5712 	QCA_SETBAND_5G = BIT(0),
5713 	QCA_SETBAND_2G = BIT(1),
5714 	QCA_SETBAND_6G = BIT(2),
5715 };
5716 
5717 /**
5718  * enum set_reset_packet_filter - set packet filter control commands
5719  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
5720  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
5721  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
5722  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
5723  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
5724  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
5725  */
5726 enum set_reset_packet_filter {
5727 	QCA_WLAN_SET_PACKET_FILTER = 1,
5728 	QCA_WLAN_GET_PACKET_FILTER = 2,
5729 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
5730 	QCA_WLAN_READ_PACKET_FILTER = 4,
5731 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5732 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5733 };
5734 
5735 /**
5736  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
5737  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
5738  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
5739  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
5740  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
5741  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
5742  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
5743  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
5744  *	section in packet filter buffer
5745  */
5746 enum qca_wlan_vendor_attr_packet_filter {
5747 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5748 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
5749 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5750 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5751 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5752 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5753 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5754 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
5755 
5756 	/* keep last */
5757 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5758 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5759 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5760 };
5761 
5762 /**
5763  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5764  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5765  */
5766 enum qca_wlan_vendor_attr_wake_stats {
5767 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5768 	/* Unsigned 32-bit value indicating the total count of wake event */
5769 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
5770 	/* Array of individual wake count, each index representing wake reason
5771 	 */
5772 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
5773 	/* Unsigned 32-bit value representing wake count array */
5774 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
5775 	/* Unsigned 32-bit total wake count value of driver/fw */
5776 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
5777 	/* Array of wake stats of driver/fw */
5778 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
5779 	/* Unsigned 32-bit total wake count value of driver/fw */
5780 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
5781 	/* Unsigned 32-bit total wake count value of packets received */
5782 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
5783 	/* Unsigned 32-bit wake count value unicast packets received */
5784 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
5785 	/* Unsigned 32-bit wake count value multicast packets received */
5786 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
5787 	/* Unsigned 32-bit wake count value broadcast packets received */
5788 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
5789 	/* Unsigned 32-bit wake count value of ICMP packets */
5790 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
5791 	/* Unsigned 32-bit wake count value of ICMP6 packets */
5792 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
5793 	/* Unsigned 32-bit value ICMP6 router advertisement */
5794 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
5795 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
5796 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
5797 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
5798 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
5799 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
5800 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
5801 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
5802 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
5803 	/* Unsigned 32-bit wake count value of receive side multicast */
5804 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
5805 	/* Unsigned 32-bit wake count value of a given RSSI breach */
5806 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
5807 	/* Unsigned 32-bit wake count value of low RSSI */
5808 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
5809 	/* Unsigned 32-bit value GSCAN count */
5810 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
5811 	/* Unsigned 32-bit value PNO complete count */
5812 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
5813 	/* Unsigned 32-bit value PNO match count */
5814 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
5815 	/* keep last */
5816 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
5817 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
5818 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
5819 };
5820 
5821 /**
5822  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
5823  * configured by userspace to the driver/firmware. The values will be
5824  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
5825  * The driver/firmware takes necessary actions requested by userspace
5826  * such as throttling wifi tx etc. in order to mitigate high temperature.
5827  *
5828  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
5829  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
5830  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
5831  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
5832  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
5833  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
5834  */
5835 enum qca_wlan_vendor_thermal_level {
5836 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
5837 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
5838 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
5839 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
5840 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
5841 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
5842 };
5843 
5844 /**
5845  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
5846  * cmd value. Used for NL attributes for data used by
5847  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5848  */
5849 enum qca_wlan_vendor_attr_thermal_cmd {
5850 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
5851 	/* The value of command, driver will implement different operations
5852 	 * according to this value. It uses values defined in
5853 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
5854 	 * u32 attribute.
5855 	 */
5856 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
5857 	/* Userspace uses this attribute to configure thermal level to the
5858 	 * driver/firmware, or get thermal level from the driver/firmware.
5859 	 * Used in request or response, u32 attribute,
5860 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
5861 	 */
5862 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
5863 	/* Userspace uses this attribute to configure the time in which the
5864 	 * driver/firmware should complete applying settings it received from
5865 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
5866 	 * command type. Used in request, u32 attribute, value is in
5867 	 * milliseconds. A value of zero indicates to apply the settings
5868 	 * immediately. The driver/firmware can delay applying the configured
5869 	 * thermal settings within the time specified in this attribute if
5870 	 * there is any critical ongoing operation.
5871 	 */
5872 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
5873 	/* Nested attribute, driver/firmware uses this attribute to report
5874 	 * thermal stats of different thermal levels to userspace when requested
5875 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
5876 	 * type. This attribute contains nested array of records of thermal
5877 	 * statistics of multiple levels. The attributes used inside this nested
5878 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
5879 	 */
5880 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
5881 
5882 	/* keep last */
5883 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
5884 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
5885 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
5886 };
5887 
5888 /**
5889  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
5890  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
5891  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
5892  * thermal command types sent to driver.
5893  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
5894  * get thermal shutdown configuration parameters for display. Parameters
5895  * responded from driver are defined in
5896  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
5897  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
5898  * get temperature. Host should respond with a temperature data. It is defined
5899  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
5900  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
5901  * suspend action.
5902  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
5903  * resume action.
5904  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
5905  * the driver/firmware.
5906  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
5907  * thermal level from the driver/firmware. The driver should respond with a
5908  * thermal level defined in enum qca_wlan_vendor_thermal_level.
5909  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
5910  * current thermal stats from the driver/firmware. The driver should respond
5911  * with stats of all thermal levels encapsulated in attribute
5912  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
5913  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
5914  * the current thermal stats all thermal levels maintained in the
5915  * driver/firmware and start counting from zero again.
5916  */
5917 enum qca_wlan_vendor_attr_thermal_cmd_type {
5918 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
5919 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
5920 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
5921 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
5922 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
5923 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
5924 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
5925 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
5926 };
5927 
5928 /**
5929  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
5930  * to get chip temperature by user.
5931  * enum values are used for NL attributes for data used by
5932  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
5933  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
5934  */
5935 enum qca_wlan_vendor_attr_thermal_get_temperature {
5936 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
5937 	/* Temperature value (degree Celsius) from driver.
5938 	 * u32 attribute.
5939 	 */
5940 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
5941 
5942 	/* keep last */
5943 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
5944 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
5945 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
5946 };
5947 
5948 /**
5949  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
5950  * report thermal events from driver to user space.
5951  * enum values are used for NL attributes for data used by
5952  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
5953  */
5954 enum qca_wlan_vendor_attr_thermal_event {
5955 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
5956 	/* Temperature value (degree Celsius) from driver.
5957 	 * u32 attribute.
5958 	 */
5959 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
5960 	/* Indication of resume completion from power save mode.
5961 	 * NLA_FLAG attribute.
5962 	 */
5963 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
5964 	/* Thermal level from the driver.
5965 	 * u32 attribute. Possible values are defined in
5966 	 * enum qca_wlan_vendor_thermal_level.
5967 	 */
5968 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
5969 
5970 	/* keep last */
5971 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
5972 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
5973 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
5974 };
5975 
5976 /**
5977  * enum qca_vendor_element_id - QCA Vendor Specific element types
5978  *
5979  * These values are used to identify QCA Vendor Specific elements. The
5980  * payload of the element starts with the three octet OUI (OUI_QCA) and
5981  * is followed by a single octet type which is defined by this enum.
5982  *
5983  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
5984  *      This element can be used to specify preference order for supported
5985  *      channels. The channels in this list are in preference order (the first
5986  *      one has the highest preference) and are described as a pair of
5987  *      (global) Operating Class and Channel Number (each one octet) fields.
5988  *
5989  *      This extends the standard P2P functionality by providing option to have
5990  *      more than one preferred operating channel. When this element is present,
5991  *      it replaces the preference indicated in the Operating Channel attribute.
5992  *      For supporting other implementations, the Operating Channel attribute is
5993  *      expected to be used with the highest preference channel. Similarly, all
5994  *      the channels included in this Preferred channel list element are
5995  *      expected to be included in the Channel List attribute.
5996  *
5997  *      This vendor element may be included in GO Negotiation Request, P2P
5998  *      Invitation Request, and Provision Discovery Request frames.
5999  *
6000  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
6001  *      This element can be used for pre-standard publication testing of HE
6002  *      before P802.11ax draft assigns the element ID. The payload of this
6003  *      vendor specific element is defined by the latest P802.11ax draft.
6004  *      Please note that the draft is still work in progress and this element
6005  *      payload is subject to change.
6006  *
6007  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
6008  *      This element can be used for pre-standard publication testing of HE
6009  *      before P802.11ax draft assigns the element ID. The payload of this
6010  *      vendor specific element is defined by the latest P802.11ax draft.
6011  *      Please note that the draft is still work in progress and this element
6012  *      payload is subject to change.
6013  *
6014  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
6015  *      element).
6016  *      This element can be used for pre-standard publication testing of HE
6017  *      before P802.11ax draft assigns the element ID extension. The payload of
6018  *      this vendor specific element is defined by the latest P802.11ax draft
6019  *      (not including the Element ID Extension field). Please note that the
6020  *      draft is still work in progress and this element payload is subject to
6021  *      change.
6022  *
6023  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
6024  *      This element can be used for pre-standard publication testing of HE
6025  *      before P802.11ax draft assigns the element ID extension. The payload of
6026  *      this vendor specific element is defined by the latest P802.11ax draft
6027  *      (not including the Element ID Extension field). Please note that the
6028  *      draft is still work in progress and this element payload is subject to
6029  *      change.
6030  *
6031  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
6032  *      This element can be used for pre-standard publication testing of HE
6033  *      before P802.11ax draft assigns the element ID extension. The payload of
6034  *      this vendor specific element is defined by the latest P802.11ax draft
6035  *      (not including the Element ID Extension field). Please note that the
6036  *      draft is still work in progress and this element payload is subject to
6037  *      change.
6038  */
6039 enum qca_vendor_element_id {
6040 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6041 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6042 	QCA_VENDOR_ELEM_HE_OPER = 2,
6043 	QCA_VENDOR_ELEM_RAPS = 3,
6044 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6045 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6046 };
6047 
6048 /**
6049  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6050  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6051  * Specify the TSF command. Possible values are defined in
6052  * &enum qca_tsf_cmd.
6053  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6054  * This attribute contains TSF timer value. This attribute is only available
6055  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6056  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6057  * This attribute contains SOC timer value at TSF capture. This attribute is
6058  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6059  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6060  * This attribute is used to provide TSF sync interval and only applicable when
6061  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6062  * driver will use the default value. Time unit is in milliseconds.
6063  */
6064 enum qca_vendor_attr_tsf_cmd {
6065 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6066 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6067 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6068 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6069 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6070 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6071 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6072 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6073 };
6074 
6075 /**
6076  * enum qca_tsf_cmd: TSF driver commands
6077  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6078  * @QCA_TSF_GET: Get TSF capture value
6079  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6080  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6081  * will automatically send TSF report to the host. To query
6082  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6083  * initiated first.
6084  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6085  * will not automatically send TSF report to the host. If
6086  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6087  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6088  * operation needs to be initiated.
6089  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6090  * fetches TSF and host time mapping from the firmware with interval configured
6091  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6092  * interval value is not provided the driver will use the default value. The
6093  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6094  * command.
6095  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6096  */
6097 enum qca_tsf_cmd {
6098 	QCA_TSF_CAPTURE,
6099 	QCA_TSF_GET,
6100 	QCA_TSF_SYNC_GET,
6101 	QCA_TSF_AUTO_REPORT_ENABLE,
6102 	QCA_TSF_AUTO_REPORT_DISABLE,
6103 	QCA_TSF_SYNC_START,
6104 	QCA_TSF_SYNC_STOP,
6105 };
6106 
6107 /**
6108  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6109  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6110  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6111  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6112  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6113  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6114  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6115  */
6116 enum qca_vendor_attr_get_preferred_freq_list {
6117 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6118 	/* A 32-unsigned value; the interface type/mode for which the preferred
6119 	 * frequency list is requested (see enum qca_iface_type for possible
6120 	 * values); used in both south- and north-bound.
6121 	 */
6122 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6123 	/* An array of 32-unsigned values; values are frequency (MHz); used
6124 	 * in north-bound only.
6125 	 */
6126 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6127 	/* An array of nested values as per enum
6128 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6129 	 *  Each element contains frequency (MHz), weight, and flag
6130 	 *  bit mask indicating how the frequency should be used in P2P
6131 	 *  negotiation.
6132 	 */
6133 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6134 	/* keep last */
6135 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6136 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6137 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6138 };
6139 
6140 /**
6141  * enum qca_vendor_attr_probable_oper_channel - channel hint
6142  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6143  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6144  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6145  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6146  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6147  */
6148 enum qca_vendor_attr_probable_oper_channel {
6149 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6150 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6151 	 * come on this channel (see enum qca_iface_type).
6152 	 */
6153 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6154 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6155 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6156 	/* keep last */
6157 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6158 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6159 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6160 };
6161 
6162 /**
6163  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6164  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6165  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6166  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6167  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6168  */
6169 enum qca_wlan_vendor_attr_gw_param_config {
6170 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6171 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6172 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6173 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6174 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6175 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6176 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6177 };
6178 
6179 /**
6180  * enum drv_dbs_capability - DBS capability
6181  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6182  * @DRV_DBS_CAPABILITY_1X1: 1x1
6183  * @DRV_DBS_CAPABILITY_2X2: 2x2
6184  */
6185 enum drv_dbs_capability {
6186 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6187 	DRV_DBS_CAPABILITY_1X1,
6188 	DRV_DBS_CAPABILITY_2X2,
6189 };
6190 
6191 /**
6192  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6193  *
6194  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6195  */
6196 enum qca_vendor_attr_txpower_decr_db {
6197 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6198 	/*
6199 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6200 	 * a virtual interface.
6201 	 */
6202 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6203 	/* keep last */
6204 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
6205 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
6206 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
6207 };
6208 
6209 /**
6210  * enum qca_vendor_attr_ota_test - Enable OTA test
6211  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
6212  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
6213  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
6214  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
6215  */
6216 enum qca_vendor_attr_ota_test {
6217 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
6218 	/* 8-bit unsigned value to indicate if OTA test is enabled */
6219 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
6220 	/* keep last */
6221 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
6222 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
6223 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
6224 };
6225 
6226 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
6227  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
6228  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
6229  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
6230  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
6231  */
6232 enum qca_vendor_attr_txpower_scale {
6233 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
6234 	/* 8-bit unsigned value to indicate the scaling of tx power */
6235 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
6236 	/* keep last */
6237 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
6238 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
6239 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
6240 };
6241 
6242 /**
6243  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
6244  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
6245  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
6246  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
6247  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
6248  */
6249 enum qca_vendor_attr_txpower_scale_decr_db {
6250 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
6251 	/* 8-bit unsigned value to indicate the scaling of tx power */
6252 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
6253 	/* keep last */
6254 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
6255 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
6256 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
6257 };
6258 
6259 /**
6260  * enum dfs_mode - state of DFS mode
6261  * @DFS_MODE_NONE: DFS mode attribute is none
6262  * @DFS_MODE_ENABLE:  DFS mode is enabled
6263  * @DFS_MODE_DISABLE: DFS mode is disabled
6264  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
6265  */
6266 enum dfs_mode {
6267 	DFS_MODE_NONE,
6268 	DFS_MODE_ENABLE,
6269 	DFS_MODE_DISABLE,
6270 	DFS_MODE_DEPRIORITIZE
6271 };
6272 
6273 /**
6274  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
6275  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
6276  *
6277  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
6278  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
6279  *
6280  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
6281  * channel number hint for ACS operation, if valid channel is specified then
6282  * ACS operation gives priority to this channel.
6283  * Note: If both the driver and user space application supports the 6 GHz band,
6284  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
6285  * should be used.
6286  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
6287  * is still used if either of the driver or user space application doesn't
6288  * support the 6 GHz band.
6289  *
6290  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
6291  * Channel center frequency (MHz) hint for ACS operation, if a valid center
6292  * frequency is specified, ACS operation gives priority to this channel.
6293  */
6294 enum qca_wlan_vendor_attr_acs_config {
6295 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
6296 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
6297 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
6298 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
6299 
6300 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
6301 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
6302 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
6303 };
6304 
6305 /**
6306  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
6307  */
6308 enum qca_wlan_vendor_attr_get_hw_capability {
6309 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
6310 	/*
6311 	 * Antenna isolation
6312 	 * An attribute used in the response.
6313 	 * The content of this attribute is encoded in a byte array. Each byte
6314 	 * value is an antenna isolation value. The array length is the number
6315 	 * of antennas.
6316 	 */
6317 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
6318 	/*
6319 	 * Request HW capability
6320 	 * An attribute used in the request.
6321 	 * The content of this attribute is a u32 array for one or more of
6322 	 * hardware capabilities (attribute IDs) that are being requested. Each
6323 	 * u32 value has a value from this
6324 	 * enum qca_wlan_vendor_attr_get_hw_capability
6325 	 * identifying which capabilities are requested.
6326 	 */
6327 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
6328 
6329 	/* keep last */
6330 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
6331 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
6332 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
6333 };
6334 
6335 /**
6336  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
6337  *                        config params for sta roam policy
6338  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
6339  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
6340  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
6341  * If sta should skip unsafe channels or not in scanning
6342  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
6343  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
6344  */
6345 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
6346 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
6347 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
6348 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
6349 
6350 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
6351 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
6352 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
6353 };
6354 
6355 /* Attributes for FTM commands and events */
6356 
6357 /**
6358  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
6359  *
6360  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
6361  *      enum qca_wlan_vendor_attr_loc_capa_flags.
6362  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
6363  *      of measurement sessions that can run concurrently.
6364  *      Default is one session (no session concurrency).
6365  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
6366  *      peers that are supported in running sessions. For example,
6367  *      if the value is 8 and maximum number of sessions is 2, you can
6368  *      have one session with 8 unique peers, or 2 sessions with 4 unique
6369  *      peers each, and so on.
6370  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
6371  *      of bursts per peer, as an exponent (2^value). Default is 0,
6372  *      meaning no multi-burst support.
6373  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
6374  *      of measurement exchanges allowed in a single burst.
6375  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
6376  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
6377  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
6378  */
6379 enum qca_wlan_vendor_attr_loc_capa {
6380 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
6381 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
6382 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
6383 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
6384 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
6385 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
6386 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
6387 	/* keep last */
6388 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
6389 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
6390 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
6391 };
6392 
6393 /**
6394  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
6395  *
6396  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
6397  *      can be configured as an FTM responder (for example, an AP that
6398  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
6399  *      will be supported if set.
6400  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
6401  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
6402  *      will be supported if set.
6403 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
6404  *      supports immediate (ASAP) response.
6405  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
6406  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
6407  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
6408  *      requesting AOA measurements as part of an FTM session.
6409  */
6410 enum qca_wlan_vendor_attr_loc_capa_flags {
6411 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
6412 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
6413 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
6414 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
6415 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
6416 };
6417 
6418 /**
6419  * enum qca_wlan_ani_setting - ANI setting type
6420  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
6421  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
6422  */
6423 enum qca_wlan_ani_setting {
6424 	QCA_WLAN_ANI_SETTING_AUTO = 0,
6425 	QCA_WLAN_ANI_SETTING_FIXED = 1,
6426 };
6427 
6428 /**
6429  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
6430  *
6431  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
6432  * Channel number on which Access Point should restart.
6433  * Note: If both the driver and user space application supports the 6 GHz band,
6434  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
6435  * should be used.
6436  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
6437  * is still used if either of the driver or user space application doesn't
6438  * support the 6 GHz band.
6439  *
6440  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
6441  * Nested attribute to hold list of center frequencies on which AP is
6442  * expected to operate. This is irrespective of ACS configuration.
6443  * This list is a priority based one and is looked for before the AP is
6444  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
6445  * co-exist in the system.
6446  *
6447  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
6448  * Channel center frequency (MHz) on which the access point should restart.
6449  */
6450 enum qca_wlan_vendor_attr_sap_config {
6451 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
6452 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
6453 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
6454 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
6455 
6456 	/* Keep last */
6457 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
6458 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
6459 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
6460 };
6461 
6462 /**
6463  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
6464  * a single peer in a measurement session.
6465  *
6466  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
6467  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
6468  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
6469  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
6470  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
6471  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
6472  *      list of supported attributes.
6473  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
6474  *      secure measurement.
6475  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
6476  *      measurement every <value> bursts. If 0 or not specified,
6477  *      AOA measurements will be disabled for this peer.
6478  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
6479  *      the measurement frames are exchanged. Optional; if not
6480  *      specified, try to locate the peer in the kernel scan
6481  *      results cache and use frequency from there.
6482  */
6483 enum qca_wlan_vendor_attr_ftm_peer_info {
6484 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
6485 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
6486 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
6487 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
6488 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
6489 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
6490 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
6491 	/* keep last */
6492 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
6493 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
6494 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
6495 };
6496 
6497 /**
6498  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
6499  *      per-peer
6500  *
6501  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
6502  *      immediate (ASAP) response from peer.
6503  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
6504  *      LCI report from peer. The LCI report includes the absolute
6505  *      location of the peer in "official" coordinates (similar to GPS).
6506  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
6507  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
6508  *      Location civic report from peer. The LCR includes the location
6509  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
6510  *      11.24.6.7 for more information.
6511  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
6512  *      request a secure measurement.
6513  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
6514  */
6515 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
6516 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
6517 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
6518 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
6519 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
6520 };
6521 
6522 /**
6523  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
6524  *
6525  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
6526  *      to perform in a single burst.
6527  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
6528  *      perform, specified as an exponent (2^value).
6529  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
6530  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
6531  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
6532  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
6533  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
6534  */
6535 enum qca_wlan_vendor_attr_ftm_meas_param {
6536 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
6537 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
6538 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
6539 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
6540 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
6541 	/* keep last */
6542 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
6543 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
6544 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
6545 };
6546 
6547 /**
6548  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
6549  *
6550  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
6551  *       peer.
6552  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
6553  *      request for this peer.
6554  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
6555  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
6556  *      to measurement results for this peer.
6557  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
6558  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
6559  *      request failed and peer requested not to send an additional request
6560  *      for this number of seconds.
6561  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
6562  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6563  *      9.4.2.22.10.
6564  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
6565  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6566  *      9.4.2.22.13.
6567  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
6568  *      overridden some measurement request parameters. See
6569  *      enum qca_wlan_vendor_attr_ftm_meas_param.
6570  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
6571  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
6572  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
6573  *      results. Each entry is a nested attribute defined
6574  *      by enum qca_wlan_vendor_attr_ftm_meas.
6575  */
6576 enum qca_wlan_vendor_attr_ftm_peer_result {
6577 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
6578 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
6579 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
6580 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
6581 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
6582 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
6583 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
6584 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
6585 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
6586 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
6587 	/* keep last */
6588 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
6589 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
6590 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
6591 };
6592 
6593 /**
6594  * enum qca_wlan_vendor_attr_ftm_peer_result_status
6595  *
6596  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
6597  *      will be provided. Peer may have overridden some measurement parameters,
6598  *      in which case overridden parameters will be report by
6599  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
6600  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
6601  *      of performing the measurement request. No more results will be sent
6602  *      for this peer in this session.
6603  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
6604  *      failed, and requested not to send an additional request for number
6605  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
6606  *      attribute.
6607  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
6608  *      failed. Request was not sent over the air.
6609  */
6610 enum qca_wlan_vendor_attr_ftm_peer_result_status {
6611 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
6612 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
6613 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
6614 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
6615 };
6616 
6617 /**
6618  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
6619  *  for measurement result, per-peer
6620  *
6621  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
6622  *      measurement completed for this peer. No more results will be reported
6623  *      for this peer in this session.
6624  */
6625 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
6626 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
6627 };
6628 
6629 /**
6630  * enum qca_vendor_attr_loc_session_status: Session completion status code
6631  *
6632  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
6633  *      successfully.
6634  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
6635  *      by request.
6636  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
6637  *      was invalid and was not started.
6638  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
6639  *      and did not complete normally (for example out of resources).
6640  */
6641 enum qca_vendor_attr_loc_session_status {
6642 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
6643 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
6644 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
6645 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
6646 };
6647 
6648 /**
6649  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
6650  *
6651  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
6652  *      recorded by responder, in picoseconds.
6653  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6654  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
6655  *      initiator, in picoseconds.
6656  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6657  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
6658  *      initiator, in picoseconds.
6659  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6660  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
6661  *      responder, in picoseconds.
6662  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6663  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
6664  *      during this measurement exchange. Optional and will be provided if
6665  *      the hardware can measure it.
6666  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
6667  *      responder. Not always provided.
6668  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6669  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
6670  *      responder. Not always provided.
6671  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6672  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
6673  *      initiator. Not always provided.
6674  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6675  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
6676  *      initiator. Not always provided.
6677  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6678  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
6679  */
6680 enum qca_wlan_vendor_attr_ftm_meas {
6681 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
6682 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
6683 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
6684 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
6685 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
6686 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
6687 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
6688 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
6689 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
6690 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
6691 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
6692 	/* keep last */
6693 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
6694 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
6695 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
6696 };
6697 
6698 /**
6699  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
6700  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
6701  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
6702  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
6703  *     of the social channels.
6704  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
6705  *     A 32-bit unsigned value; the P2P listen offload period (ms).
6706  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
6707  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
6708  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
6709  *     A 32-bit unsigned value; number of interval times the Firmware needs
6710  *     to run the offloaded P2P listen operation before it stops.
6711  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
6712  *     An array of unsigned 8-bit characters; vendor information elements.
6713  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
6714  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
6715  *     A 32-bit unsigned value; a control flag to indicate whether listen
6716  *     results need to be flushed to wpa_supplicant.
6717  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
6718  *     A 8-bit unsigned value; reason code for P2P listen offload stop
6719  *     event.
6720  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
6721  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
6722  */
6723 enum qca_wlan_vendor_attr_p2p_listen_offload {
6724 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
6725 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
6726 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
6727 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
6728 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
6729 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
6730 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
6731 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
6732 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
6733 	/* keep last */
6734 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
6735 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
6736 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
6737 };
6738 
6739 /**
6740  * enum qca_wlan_vendor_drv_info - WLAN driver info
6741  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
6742  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
6743  * between Firmware & Host.
6744  */
6745 enum qca_wlan_vendor_drv_info {
6746 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6747 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6748 
6749 	/* keep last */
6750 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6751 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6752 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6753 };
6754 
6755 /**
6756  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
6757  *
6758  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
6759  *      CIR (channel impulse response) path for each antenna.
6760  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
6761  *      of the strongest CIR path for each antenna.
6762  */
6763 enum qca_wlan_vendor_attr_aoa_type {
6764 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
6765 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
6766 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
6767 };
6768 
6769 /**
6770  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
6771  * validate encryption engine
6772  *
6773  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
6774  *    This will be included if the request is for decryption; if not included,
6775  *    the request is treated as a request for encryption by default.
6776  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
6777  *    indicating the key cipher suite. Takes same values as
6778  *    NL80211_ATTR_KEY_CIPHER.
6779  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
6780  *    Key Id to be used for encryption
6781  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
6782  *    Key (TK) to be used for encryption/decryption
6783  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
6784  *    Packet number to be specified for encryption/decryption
6785  *    6 bytes for TKIP/CCMP/GCMP.
6786  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
6787  *    representing the 802.11 packet (header + payload + FCS) that
6788  *    needs to be encrypted/decrypted.
6789  *    Encrypted/decrypted response from the driver will also be sent
6790  *    to userspace with the same attribute.
6791  */
6792 enum qca_wlan_vendor_attr_encryption_test {
6793 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
6794 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
6795 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
6796 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
6797 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
6798 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
6799 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
6800 
6801 	/* keep last */
6802 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
6803 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
6804 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
6805 };
6806 
6807 /**
6808  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
6809  * sector for DMG RF sector operations.
6810  *
6811  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
6812  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
6813  */
6814 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
6815 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
6816 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
6817 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
6818 };
6819 
6820 /**
6821  * enum qca_wlan_vendor_attr_fw_state - State of firmware
6822  *
6823  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
6824  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
6825  */
6826 enum qca_wlan_vendor_attr_fw_state {
6827 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
6828 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
6829 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
6830 };
6831 
6832 /**
6833  * BRP antenna limit mode
6834  *
6835  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
6836  *      antenna limit, BRP will be performed as usual.
6837  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
6838  *      antennas limit. the hardware may use less antennas than the
6839  *      maximum limit.
6840  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
6841  *      use exactly the specified number of antennas for BRP.
6842  */
6843 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
6844 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
6845 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
6846 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
6847 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
6848 };
6849 
6850 /**
6851  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
6852  * DMG RF sector configuration for a single RF module.
6853  * The values are defined in a compact way which closely matches
6854  * the way it is stored in HW registers.
6855  * The configuration provides values for 32 antennas and 8 distribution
6856  * amplifiers, and together describes the characteristics of the RF
6857  * sector - such as a beam in some direction with some gain.
6858  *
6859  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
6860  *      of RF module for this configuration.
6861  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
6862  *      amplifier gain index. Unsigned 32 bit number containing
6863  *      bits for all 32 antennas.
6864  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
6865  *      amplifier gain index. Unsigned 32 bit number containing
6866  *      bits for all 32 antennas.
6867  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
6868  *      amplifier gain index. Unsigned 32 bit number containing
6869  *      bits for all 32 antennas.
6870  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
6871  *      for first 16 antennas, 2 bits per antenna.
6872  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
6873  *      for last 16 antennas, 2 bits per antenna.
6874  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
6875  *      DTYPE values (3 bits) for each distribution amplifier, followed
6876  *      by X16 switch bits for each distribution amplifier. There are
6877  *      total of 8 distribution amplifiers.
6878  */
6879 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
6880 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
6881 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
6882 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
6883 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
6884 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
6885 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
6886 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
6887 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
6888 
6889 	/* keep last */
6890 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
6891 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
6892 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
6893 };
6894 
6895 /**
6896  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
6897  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
6898  *
6899  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
6900  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
6901  *	represents the different TDLS trigger modes.
6902  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
6903  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
6904  *	of packets shall meet the criteria for implicit TDLS setup.
6905  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
6906  *	packets within a duration.
6907  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
6908  *	a TDLS setup.
6909  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
6910  *	a TDLS Discovery to the Peer.
6911  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
6912  *	discovery attempts to know the TDLS capability of the peer. A peer is
6913  *	marked as TDLS not capable if there is no response for all the attempts.
6914  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
6915  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
6916  *	number of TX / RX frames meet the criteria for TDLS teardown.
6917  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
6918  *	(u32) of Tx/Rx packets within a duration
6919  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
6920  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
6921  *	corresponding to the RSSI of the peer below which a TDLS
6922  *	setup is triggered.
6923  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
6924  *	corresponding to the RSSI of the peer above which
6925  *	a TDLS teardown is triggered.
6926  */
6927 enum qca_wlan_vendor_attr_tdls_configuration {
6928 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
6929 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
6930 
6931 	/* Attributes configuring the TDLS Implicit Trigger */
6932 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
6933 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
6934 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
6935 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
6936 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
6937 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
6938 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
6939 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
6940 
6941 	/* keep last */
6942 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
6943 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
6944 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
6945 };
6946 
6947 /**
6948  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
6949  *	the driver.
6950  *
6951  * The following are the different values for
6952  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
6953  *
6954  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
6955  *	initiate/teardown the TDLS connection to a respective peer comes
6956  *	 from the user space. wpa_supplicant provides the commands
6957  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
6958  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
6959  *	setup/teardown to the eligible peer once the configured criteria
6960  *	(such as TX/RX threshold, RSSI) is met. The attributes
6961  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
6962  *	the different configuration criteria for the TDLS trigger from the
6963  *	host driver.
6964  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
6965  *	the TDLS setup / teardown through the implicit mode, only to the
6966  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
6967  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
6968  *	External mode works on top of the implicit mode, thus the host Driver
6969  *	is expected to be configured in TDLS Implicit mode too to operate in
6970  *	External mode. Configuring External mode alone without Implicit
6971  *	mode is invalid.
6972  *
6973  * All the above implementations work as expected only when the host driver
6974  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
6975  * representing that the TDLS message exchange is not internal to the host
6976  * driver, but depends on wpa_supplicant to do the message exchange.
6977  */
6978 enum qca_wlan_vendor_tdls_trigger_mode {
6979 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
6980 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
6981 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
6982 };
6983 
6984 /**
6985  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
6986  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
6987  *	that is hard-coded in the Board Data File (BDF).
6988  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
6989  *	that is hard-coded in the Board Data File (BDF).
6990  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
6991  *	that is hard-coded in the Board Data File (BDF).
6992  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
6993  *	that is hard-coded in the Board Data File (BDF).
6994  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
6995  *	that is hard-coded in the Board Data File (BDF).
6996  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
6997  *	source of SAR power limits, thereby disabling the SAR power
6998  *	limit feature.
6999  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
7000  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7001  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
7002  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7003  *
7004  * This enumerates the valid set of values that may be supplied for
7005  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
7006  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
7007  * the response to an instance of the
7008  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7009  */
7010 enum qca_vendor_attr_sar_limits_selections {
7011 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
7012 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
7013 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
7014 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
7015 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
7016 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
7017 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7018 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
7019 };
7020 
7021 /**
7022  * enum qca_vendor_attr_sar_limits_spec_modulations -
7023  *	SAR limits specification modulation
7024  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
7025  *	CCK modulation
7026  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
7027  *	OFDM modulation
7028  *
7029  * This enumerates the valid set of values that may be supplied for
7030  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
7031  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
7032  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
7033  * command or in the response to an instance of the
7034  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7035  */
7036 enum qca_vendor_attr_sar_limits_spec_modulations {
7037 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7038 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7039 };
7040 
7041 /**
7042  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7043  *
7044  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7045  *	select which SAR power limit table should be used.  Valid
7046  *	values are enumerated in enum
7047  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7048  *	power limit selection is unchanged if this attribute is not
7049  *	present.
7050  *
7051  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7052  *	which specifies the number of SAR power limit specifications
7053  *	which will follow.
7054  *
7055  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7056  *	limit specifications. The number of specifications is
7057  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7058  *	specification contains a set of
7059  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7060  *	specification is uniquely identified by the attributes
7061  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7062  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7063  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7064  *	contains as a payload the attribute
7065  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7066  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7067  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7068  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7069  *	needed based upon the value of
7070  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7071  *
7072  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7073  *	indicate for which band this specification applies. Valid
7074  *	values are enumerated in enum %nl80211_band (although not all
7075  *	bands may be supported by a given device). If the attribute is
7076  *	not supplied then the specification will be applied to all
7077  *	supported bands.
7078  *
7079  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7080  *	to indicate for which antenna chain this specification
7081  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7082  *	attribute is not supplied then the specification will be
7083  *	applied to all chains.
7084  *
7085  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7086  *	value to indicate for which modulation scheme this
7087  *	specification applies. Valid values are enumerated in enum
7088  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7089  *	is not supplied then the specification will be applied to all
7090  *	modulation schemes.
7091  *
7092  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7093  *	value to specify the actual power limit value in units of 0.5
7094  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7095  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7096  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7097  *
7098  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7099  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7100  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7101  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7102  *
7103  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7104  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7105  */
7106 enum qca_vendor_attr_sar_limits {
7107 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7108 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7109 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7110 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7111 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7112 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7113 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7114 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7115 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7116 
7117 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7118 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7119 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7120 };
7121 
7122 /**
7123  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7124  *    offload which is an extension for LL_STATS.
7125  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7126  *    If MAC counters do not exceed the threshold, FW will report monitored
7127  *    link layer counters periodically as this setting. The first report is
7128  *    always triggered by this timer.
7129  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7130  *    For each MAC layer counter, FW holds two copies. One is the current value.
7131  *    The other is the last report. Once a current counter's increment is larger
7132  *    than the threshold, FW will indicate that counter to host even if the
7133  *    monitoring timer does not expire.
7134  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7135  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7136  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7137  *    failure code.
7138  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7139  *    1: TX packet discarded
7140  *    2: No ACK
7141  *    3: Postpone
7142  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7143  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7144  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7145  *    Threshold for all monitored parameters. If per counter dedicated threshold
7146  *    is not enabled, this threshold will take effect.
7147  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7148  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7149  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7150  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7151  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7152  *    Bit0: TX counter unit in MSDU
7153  *    Bit1: TX counter unit in MPDU
7154  *    Bit2: TX counter unit in PPDU
7155  *    Bit3: TX counter unit in byte
7156  *    Bit4: Dropped MSDUs
7157  *    Bit5: Dropped Bytes
7158  *    Bit6: MPDU retry counter
7159  *    Bit7: MPDU failure counter
7160  *    Bit8: PPDU failure counter
7161  *    Bit9: MPDU aggregation counter
7162  *    Bit10: MCS counter for ACKed MPDUs
7163  *    Bit11: MCS counter for Failed MPDUs
7164  *    Bit12: TX Delay counter
7165  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7166  *    Bit0: MAC RX counter unit in MPDU
7167  *    Bit1: MAC RX counter unit in byte
7168  *    Bit2: PHY RX counter unit in PPDU
7169  *    Bit3: PHY RX counter unit in byte
7170  *    Bit4: Disorder counter
7171  *    Bit5: Retry counter
7172  *    Bit6: Duplication counter
7173  *    Bit7: Discard counter
7174  *    Bit8: MPDU aggregation size counter
7175  *    Bit9: MCS counter
7176  *    Bit10: Peer STA power state change (wake to sleep) counter
7177  *    Bit11: Peer STA power save counter, total time in PS mode
7178  *    Bit12: Probe request counter
7179  *    Bit13: Other management frames counter
7180  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7181  *    Bit0: Idle time
7182  *    Bit1: TX time
7183  *    Bit2: time RX in current bss
7184  *    Bit3: Out of current bss time
7185  *    Bit4: Wireless medium busy time
7186  *    Bit5: RX in bad condition time
7187  *    Bit6: TX in bad condition time
7188  *    Bit7: time wlan card not available
7189  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7190  *    Bit0: Per channel SNR counter
7191  *    Bit1: Per channel noise floor counter
7192  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7193  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7194  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7195  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7196  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7197  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7198  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7199  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7200  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7201  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7202  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7203  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
7204  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
7205  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
7206  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
7207  *    aggregation stats buffer length
7208  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
7209  *    buffer for ACKed MPDUs.
7210  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
7211  *    buffer for failed MPDUs.
7212  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
7213  *    length of delay stats array.
7214  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
7215  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
7216  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
7217  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
7218  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
7219  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
7220  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
7221  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
7222  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
7223  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
7224  *    flagged as retransmissions
7225  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
7226  *    flagged as duplicated
7227  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
7228  *    packets discarded
7229  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
7230  *    stats buffer.
7231  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
7232  *    stats buffer.
7233  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
7234  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
7235  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
7236  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
7237  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
7238  *    requests received
7239  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
7240  *    frames received
7241  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
7242  *    there is no TX, nor RX, nor interference.
7243  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
7244  *    transmitting packets.
7245  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
7246  *    for receiving.
7247  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
7248  *    interference detected.
7249  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
7250  *    receiving packets with errors.
7251  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
7252  *    TX no-ACK.
7253  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
7254  *    the chip is unable to work in normal conditions.
7255  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
7256  *    receiving packets in current BSS.
7257  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
7258  *    receiving packets not in current BSS.
7259  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
7260  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
7261  *    This is a container for per antenna signal stats.
7262  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
7263  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
7264  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
7265  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
7266  */
7267 enum qca_wlan_vendor_attr_ll_stats_ext {
7268 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
7269 
7270 	/* Attributes for configurations */
7271 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
7272 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
7273 
7274 	/* Peer STA power state change */
7275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
7276 
7277 	/* TX failure event */
7278 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
7279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
7280 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
7281 
7282 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
7283 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
7284 
7285 	/* MAC counters */
7286 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
7287 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
7288 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
7289 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
7290 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
7291 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
7292 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
7293 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
7294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
7295 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
7296 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
7297 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
7298 
7299 	/* Sub-attributes for PEER_AC_TX */
7300 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
7301 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
7302 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
7303 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
7304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
7305 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
7306 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
7307 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
7308 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
7309 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
7310 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
7311 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
7312 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
7313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
7314 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
7315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
7316 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
7317 
7318 	/* Sub-attributes for PEER_AC_RX */
7319 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
7320 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
7321 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
7322 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
7323 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
7324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
7325 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
7326 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
7327 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
7328 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
7329 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
7330 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
7331 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
7332 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
7333 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
7334 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
7335 
7336 	/* Sub-attributes for CCA_BSS */
7337 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
7338 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
7339 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
7340 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
7341 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
7342 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
7343 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
7344 
7345 	/* sub-attribute for BSS_RX_TIME */
7346 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
7347 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
7348 
7349 	/* Sub-attributes for PEER_SIGNAL */
7350 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
7351 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
7352 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
7353 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
7354 
7355 	/* Sub-attributes for IFACE_BSS */
7356 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
7357 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
7358 
7359 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
7360 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
7361 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
7362 };
7363 
7364 /**
7365  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
7366  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7367  * in priority order as decided after ACS operation in userspace.
7368  *
7369  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7370  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7371  *
7372  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7373  * Array of nested values for each channel with following attributes:
7374  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7375  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7376  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7377  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7378  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7379  * Note: If both the driver and user-space application supports the 6 GHz band,
7380  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7381  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7382  * To maintain backward compatibility,
7383  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7384  * is still used if either of the driver or user space application doesn't
7385  * support the 6 GHz band.
7386  *
7387  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7388  * Primary channel number
7389  * Note: If both the driver and user-space application supports the 6 GHz band,
7390  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7391  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7392  * To maintain backward compatibility,
7393  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7394  * is still used if either of the driver or user space application doesn't
7395  * support the 6 GHz band.
7396  *
7397  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7398  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7399  * Note: If both the driver and user-space application supports the 6 GHz band,
7400  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7401  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7402  * To maintain backward compatibility,
7403  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7404  * is still used if either of the driver or user space application
7405  * doesn't support the 6 GHz band.
7406  *
7407  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7408  * VHT seg0 channel number
7409  * Note: If both the driver and user-space application supports the 6 GHz band,
7410  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7411  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7412  * To maintain backward compatibility,
7413  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7414  * is still used if either of the driver or user space application
7415  * doesn't support the 6 GHz band.
7416  *
7417  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7418  * VHT seg1 channel number
7419  * Note: If both the driver and user-space application supports the 6 GHz band,
7420  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7421  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7422  * To maintain backward compatibility,
7423  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7424  * is still used if either of the driver or user space application
7425  * doesn't support the 6 GHz band.
7426  *
7427  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7428  * Takes one of enum nl80211_chan_width values.
7429  *
7430  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7431  * Array of nested values for each channel with following attributes:
7432  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7433  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7434  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7435  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7436  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7437  * Note: If user-space application has no support of the 6 GHz band, this
7438  * attribute is optional.
7439  *
7440  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7441  * Primary channel frequency in MHz
7442  * Note: If user-space application has no support of the 6 GHz band, this
7443  * attribute is optional.
7444  *
7445  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7446  * Secondary channel frequency in MHz used for HT 40 MHz channels.
7447  * Note: If user-space application has no support of the 6 GHz band, this
7448  * attribute is optional.
7449  *
7450  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7451  * VHT seg0 channel frequency in MHz
7452  * Note: If user-space application has no support of the 6GHz band, this
7453  * attribute is optional.
7454  *
7455  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7456  * VHT seg1 channel frequency in MHz
7457  * Note: If user-space application has no support of the 6 GHz band, this
7458  * attribute is optional.
7459  */
7460 enum qca_wlan_vendor_attr_external_acs_channels {
7461 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7462 
7463 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7464 	 */
7465 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7466 
7467 	/* Array of nested values for each channel with following attributes:
7468 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7469 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7470 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7471 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7472 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7473 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7474 	 */
7475 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7476 	/* This (u8) will hold values of one of enum nl80211_bands */
7477 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7478 	/* Primary channel (u8) */
7479 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7480 	/* Secondary channel (u8) used for HT 40 MHz channels */
7481 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7482 	/* VHT seg0 channel (u8) */
7483 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7484 	/* VHT seg1 channel (u8) */
7485 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7486 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7487 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7488 
7489 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7490 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7491 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7492 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7493 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
7494 
7495 	/* keep last */
7496 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7497 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7498 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7499 };
7500 
7501 /**
7502  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7503  * the ACS has to be triggered. These values are used by
7504  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7505  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7506  */
7507 enum qca_wlan_vendor_acs_select_reason {
7508 	/* Represents the reason that the ACS triggered during the AP start */
7509 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7510 	/* Represents the reason that DFS found with the current channel */
7511 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7512 	/* Represents the reason that LTE co-exist in the current band. */
7513 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
7514 	/* Represents the reason that generic, uncategorized interference has
7515 	 * been found in the current channel.
7516 	 */
7517 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7518 	/* Represents the reason that excessive 802.11 interference has been
7519 	 * found in the current channel.
7520 	 */
7521 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7522 	/* Represents the reason that generic Continuous Wave (CW) interference
7523 	 * has been found in the current channel.
7524 	 */
7525 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7526 	/* Represents the reason that Microwave Oven (MWO) interference has been
7527 	 * found in the current channel.
7528 	 */
7529 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7530 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
7531 	 * (FHSS) interference has been found in the current channel. This may
7532 	 * include 802.11 waveforms.
7533 	 */
7534 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7535 	/* Represents the reason that non-802.11 generic Frequency-Hopping
7536 	 * Spread Spectrum (FHSS) interference has been found in the current
7537 	 * channel.
7538 	 */
7539 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7540 	/* Represents the reason that generic Wideband (WB) interference has
7541 	 * been found in the current channel. This may include 802.11 waveforms.
7542 	 */
7543 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7544 	/* Represents the reason that non-802.11 generic Wideband (WB)
7545 	 * interference has been found in the current channel.
7546 	 */
7547 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7548 	/* Represents the reason that Jammer interference has been found in the
7549 	 * current channel.
7550 	 */
7551 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
7552 	/* Represents the reason that ACS triggered by AFC */
7553 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
7554 };
7555 
7556 /**
7557  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
7558  *
7559  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
7560  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
7561  * to get the available value that this item can use.
7562  *
7563  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
7564  * value to specify the gpio number.
7565  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7566  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
7567  *
7568  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
7569  * value to specify the gpio output level, please refer to enum qca_gpio_value
7570  * to get the available value that this item can use.
7571  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7572  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
7573  *
7574  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
7575  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
7576  * to get the available value that this item can use.
7577  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7578  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7579  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7580  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7581  * attribute is present.
7582  *
7583  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
7584  * value to specify the gpio interrupt mode, please refer to enum
7585  * qca_gpio_interrupt_mode to get the available value that this item can use.
7586  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7587  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7588  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7589  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7590  * attribute is present.
7591  *
7592  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
7593  * value to specify the gpio direction, please refer to enum qca_gpio_direction
7594  * to get the available value that this item can use.
7595  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7596  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7597  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7598  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7599  * attribute is present.
7600  *
7601  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
7602  * Value to specify the mux config. Meaning of a given value is dependent
7603  * on the target chipset and gpio pin. Must be of the range 0-15.
7604  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7605  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
7606  *
7607  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
7608  * Value to specify the drive, Refer to enum qca_gpio_drive.
7609  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7610  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
7611  *
7612  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
7613  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7614  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
7615  * other parameters for the given GPIO will be obtained from internal
7616  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
7617  * specified to indicate the GPIO pin being configured.
7618  */
7619 enum qca_wlan_gpio_attr {
7620 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
7621 	/* Unsigned 32-bit attribute for GPIO command */
7622 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
7623 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
7624 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
7625 	/* Unsigned 32-bit attribute for GPIO value to configure */
7626 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
7627 	/* Unsigned 32-bit attribute for GPIO pull type */
7628 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
7629 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
7630 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
7631 	/* Unsigned 32-bit attribute for GPIO direction to configure */
7632 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
7633 	/* Unsigned 32-bit attribute for GPIO mux config */
7634 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
7635 	/* Unsigned 32-bit attribute for GPIO drive */
7636 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
7637 	/* Flag attribute for using internal gpio configuration */
7638 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
7639 
7640 	/* keep last */
7641 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
7642 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
7643 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
7644 };
7645 
7646 /**
7647  * enum gpio_cmd_type - GPIO configuration command type
7648  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
7649  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
7650  */
7651 enum qca_gpio_cmd_type {
7652 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
7653 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
7654 };
7655 
7656 /**
7657  * enum qca_gpio_pull_type - GPIO pull type
7658  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
7659  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
7660  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
7661  */
7662 enum qca_gpio_pull_type {
7663 	QCA_WLAN_GPIO_PULL_NONE = 0,
7664 	QCA_WLAN_GPIO_PULL_UP = 1,
7665 	QCA_WLAN_GPIO_PULL_DOWN = 2,
7666 	QCA_WLAN_GPIO_PULL_MAX,
7667 };
7668 
7669 /**
7670  * enum qca_gpio_direction - GPIO direction
7671  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
7672  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
7673  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
7674  */
7675 enum qca_gpio_direction {
7676 	QCA_WLAN_GPIO_INPUT = 0,
7677 	QCA_WLAN_GPIO_OUTPUT = 1,
7678 	QCA_WLAN_GPIO_DIR_MAX,
7679 };
7680 
7681 /**
7682  * enum qca_gpio_value - GPIO Value
7683  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
7684  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
7685  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
7686  */
7687 enum qca_gpio_value {
7688 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
7689 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
7690 	QCA_WLAN_GPIO_LEVEL_MAX,
7691 };
7692 
7693 /**
7694  * enum gpio_interrupt_mode - GPIO interrupt mode
7695  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
7696  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
7697  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
7698  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
7699  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
7700  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
7701  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
7702  */
7703 enum qca_gpio_interrupt_mode {
7704 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
7705 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
7706 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
7707 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
7708 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
7709 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
7710 	QCA_WLAN_GPIO_INTMODE_MAX,
7711 };
7712 
7713 /**
7714  * enum gpio_drive - GPIO drive
7715  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
7716  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
7717  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
7718  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
7719  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
7720  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
7721  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
7722  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
7723  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
7724  */
7725 enum qca_gpio_drive {
7726 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
7727 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
7728 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
7729 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
7730 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
7731 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
7732 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
7733 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
7734 	QCA_WLAN_GPIO_DRIVE_MAX,
7735 };
7736 
7737 /**
7738  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
7739  * MSDUQ depth threshold per peer per tid in the target
7740  *
7741  * Associated Vendor Command:
7742  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
7743  */
7744 enum qca_wlan_set_qdepth_thresh_attr {
7745 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
7746 	/* 6-byte MAC address */
7747 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
7748 	/* Unsigned 32-bit attribute for holding the TID */
7749 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
7750 	/* Unsigned 32-bit attribute for holding the update mask
7751 	 * bit 0 - Update high priority msdu qdepth threshold
7752 	 * bit 1 - Update low priority msdu qdepth threshold
7753 	 * bit 2 - Update UDP msdu qdepth threshold
7754 	 * bit 3 - Update Non UDP msdu qdepth threshold
7755 	 * rest of bits are reserved
7756 	 */
7757 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
7758 	/* Unsigned 32-bit attribute for holding the threshold value */
7759 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
7760 
7761 	/* keep last */
7762 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
7763 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
7764 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
7765 };
7766 
7767 /**
7768  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
7769  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
7770  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
7771  * external ACS policies to select the channels w.r.t. the PCL weights.
7772  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
7773  * their PCL weights.)
7774  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
7775  * select a channel with non-zero PCL weight.
7776  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
7777  * channel with non-zero PCL weight.
7778  *
7779  */
7780 enum qca_wlan_vendor_attr_external_acs_policy {
7781 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
7782 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
7783 };
7784 
7785 /**
7786  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
7787  */
7788 enum qca_wlan_vendor_attr_spectral_scan {
7789 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
7790 	/*
7791 	 * Number of times the chip enters spectral scan mode before
7792 	 * deactivating spectral scans. When set to 0, chip will enter spectral
7793 	 * scan mode continuously. u32 attribute.
7794 	 */
7795 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
7796 	/*
7797 	 * Spectral scan period. Period increment resolution is 256*Tclk,
7798 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
7799 	 */
7800 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
7801 	/* Spectral scan priority. u32 attribute. */
7802 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
7803 	/* Number of FFT data points to compute. u32 attribute. */
7804 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
7805 	/*
7806 	 * Enable targeted gain change before starting the spectral scan FFT.
7807 	 * u32 attribute.
7808 	 */
7809 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
7810 	/* Restart a queued spectral scan. u32 attribute. */
7811 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
7812 	/*
7813 	 * Noise floor reference number for the calculation of bin power.
7814 	 * u32 attribute.
7815 	 */
7816 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
7817 	/*
7818 	 * Disallow spectral scan triggers after TX/RX packets by setting
7819 	 * this delay value to roughly SIFS time period or greater.
7820 	 * u32 attribute.
7821 	 */
7822 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
7823 	/*
7824 	 * Number of strong bins (inclusive) per sub-channel, below
7825 	 * which a signal is declared a narrow band tone. u32 attribute.
7826 	 */
7827 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
7828 	/*
7829 	 * Specify the threshold over which a bin is declared strong (for
7830 	 * scan bandwidth analysis). u32 attribute.
7831 	 */
7832 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
7833 	/* Spectral scan report mode. u32 attribute. */
7834 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
7835 	/*
7836 	 * RSSI report mode, if the ADC RSSI is below
7837 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
7838 	 * then FFTs will not trigger, but timestamps and summaries get
7839 	 * reported. u32 attribute.
7840 	 */
7841 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
7842 	/*
7843 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
7844 	 * to ensure spectral scan reporting with normal error code.
7845 	 * u32 attribute.
7846 	 */
7847 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
7848 	/*
7849 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
7850 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
7851 	 * u32 attribute.
7852 	 */
7853 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
7854 	/*
7855 	 * Format of FFT report to software for spectral scan triggered FFTs.
7856 	 * 0: No FFT report (only spectral scan summary report)
7857 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
7858 	 * report
7859 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
7860 	 * bins (in-band) per FFT + spectral scan summary report
7861 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
7862 	 * bins (all) per FFT + spectral scan summary report
7863 	 * u32 attribute.
7864 	 */
7865 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
7866 	/*
7867 	 * Number of LSBs to shift out in order to scale the FFT bins.
7868 	 * u32 attribute.
7869 	 */
7870 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
7871 	/*
7872 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
7873 	 * in dBm power. u32 attribute.
7874 	 */
7875 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
7876 	/*
7877 	 * Per chain enable mask to select input ADC for search FFT.
7878 	 * u32 attribute.
7879 	 */
7880 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
7881 	/*
7882 	 * An unsigned 64-bit integer provided by host driver to identify the
7883 	 * spectral scan request. This attribute is included in the scan
7884 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
7885 	 * and used as an attribute in
7886 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
7887 	 * specific scan to be stopped.
7888 	 */
7889 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
7890 	/* Skip interval for FFT reports. u32 attribute */
7891 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
7892 	/* Set to report only one set of FFT results.
7893 	 * u32 attribute.
7894 	 */
7895 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
7896 	/* Debug level for spectral module in driver.
7897 	 * 0 : Verbosity level 0
7898 	 * 1 : Verbosity level 1
7899 	 * 2 : Verbosity level 2
7900 	 * 3 : Matched filterID display
7901 	 * 4 : One time dump of FFT report
7902 	 * u32 attribute.
7903 	 */
7904 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
7905 	/* Type of spectral scan request. u32 attribute.
7906 	 * It uses values defined in enum
7907 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
7908 	 */
7909 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
7910 	/* This specifies the frequency span over which spectral
7911 	 * scan would be carried out. Its value depends on the
7912 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
7913 	 * the relation is as follows.
7914 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7915 	 *    Not applicable. Spectral scan would happen in the
7916 	 *    operating span.
7917 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7918 	 *    Center frequency (in MHz) of the span of interest or
7919 	 *    for convenience, center frequency (in MHz) of any channel
7920 	 *    in the span of interest. For 80+80 MHz agile spectral scan
7921 	 *    request it represents center frequency (in MHz) of the primary
7922 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
7923 	 *    channel in the primary 80 MHz span. If agile spectral scan is
7924 	 *    initiated without setting a valid frequency it returns the
7925 	 *    error code
7926 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
7927 	 * u32 attribute.
7928 	 */
7929 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
7930 	/* Spectral scan mode. u32 attribute.
7931 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
7932 	 * If this attribute is not present, it is assumed to be
7933 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
7934 	 */
7935 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
7936 	/* Spectral scan error code. u32 attribute.
7937 	 * It uses values defined in enum
7938 	 * qca_wlan_vendor_spectral_scan_error_code.
7939 	 * This attribute is included only in failure scenarios.
7940 	 */
7941 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
7942 	/* 8-bit unsigned value to enable/disable debug of the
7943 	 * Spectral DMA ring.
7944 	 * 1-enable, 0-disable
7945 	 */
7946 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
7947 	/* 8-bit unsigned value to enable/disable debug of the
7948 	 * Spectral DMA buffers.
7949 	 * 1-enable, 0-disable
7950 	 */
7951 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
7952 	/* This specifies the frequency span over which spectral scan would be
7953 	 * carried out. Its value depends on the value of
7954 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
7955 	 * follows.
7956 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
7957 	 *    Not applicable. Spectral scan would happen in the operating span.
7958 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
7959 	 *    This attribute is applicable only for agile spectral scan
7960 	 *    requests in 80+80 MHz mode. It represents center frequency (in
7961 	 *    MHz) of the secondary 80 MHz span or for convenience, center
7962 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
7963 	 * u32 attribute.
7964 	 */
7965 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
7966 	/* This attribute specifies the bandwidth to be used for Spectral scan
7967 	 * operation. This is an u8 attribute and uses the values in enum
7968 	 * nl80211_chan_width.  This is an optional attribute.
7969 	 * If this attribute is not populated, the driver should configure the
7970 	 * Spectral scan bandwidth to the maximum value supported by the target
7971 	 * for the current operating bandwidth.
7972 	 */
7973 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
7974 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
7975 	 * recapture. Recapture can only be enabled for Scan period greater
7976 	 * than 52us.
7977 	 * If this attribute is enabled, re-triggers will be enabled in uCode
7978 	 * when AGC gain changes.
7979 	 */
7980 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
7981 
7982 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
7983 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
7984 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
7985 };
7986 
7987 /**
7988  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
7989  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
7990  */
7991 enum qca_wlan_vendor_attr_spectral_diag_stats {
7992 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
7993 	/* Number of spectral TLV signature mismatches.
7994 	 * u64 attribute.
7995 	 */
7996 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
7997 	/* Number of spectral phyerror events with insufficient length when
7998 	 * parsing for secondary 80 search FFT report. u64 attribute.
7999 	 */
8000 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8001 	/* Number of spectral phyerror events without secondary 80
8002 	 * search FFT report. u64 attribute.
8003 	 */
8004 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8005 	/* Number of spectral phyerror events with vht operation segment 1 id
8006 	 * mismatches in search fft report. u64 attribute.
8007 	 */
8008 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8009 	/* Number of spectral phyerror events with vht operation segment 2 id
8010 	 * mismatches in search fft report. u64 attribute.
8011 	 */
8012 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
8013 
8014 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8015 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8016 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8017 };
8018 
8019 /**
8020  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8021  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8022  */
8023 enum qca_wlan_vendor_attr_spectral_cap {
8024 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8025 	/* Flag attribute to indicate phydiag capability */
8026 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8027 	/* Flag attribute to indicate radar detection capability */
8028 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8029 	/* Flag attribute to indicate spectral capability */
8030 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8031 	/* Flag attribute to indicate advanced spectral capability */
8032 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8033 	/* Spectral hardware generation. u32 attribute.
8034 	 * It uses values defined in enum
8035 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8036 	 */
8037 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8038 	/* Spectral bin scaling formula ID. u16 attribute.
8039 	 * It uses values defined in enum
8040 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8041 	 */
8042 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8043 	/* Spectral bin scaling param - low level offset.
8044 	 * s16 attribute.
8045 	 */
8046 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8047 	/* Spectral bin scaling param - high level offset.
8048 	 * s16 attribute.
8049 	 */
8050 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8051 	/* Spectral bin scaling param - RSSI threshold.
8052 	 * s16 attribute.
8053 	 */
8054 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8055 	/* Spectral bin scaling param - default AGC max gain.
8056 	 * u8 attribute.
8057 	 */
8058 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8059 	/* Flag attribute to indicate agile spectral scan capability
8060 	 * for 20/40/80 MHz modes.
8061 	 */
8062 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8063 	/* Flag attribute to indicate agile spectral scan capability
8064 	 * for 160 MHz mode.
8065 	 */
8066 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8067 	/* Flag attribute to indicate agile spectral scan capability
8068 	 * for 80+80 MHz mode.
8069 	 */
8070 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8071 	/* Number of spectral detectors used for scan in 20 MHz.
8072 	 * u32 attribute.
8073 	 */
8074 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8075 	/* Number of spectral detectors used for scan in 40 MHz.
8076 	 * u32 attribute.
8077 	 */
8078 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8079 	/* Number of spectral detectors used for scan in 80 MHz.
8080 	 * u32 attribute.
8081 	 */
8082 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8083 	/* Number of spectral detectors used for scan in 160 MHz.
8084 	 * u32 attribute.
8085 	 */
8086 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8087 	/* Number of spectral detectors used for scan in 80+80 MHz.
8088 	 * u32 attribute.
8089 	 */
8090 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8091 	/* Flag attribute to indicate agile spectral scan capability
8092 	 * for 320 MHz mode.
8093 	 */
8094 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8095 	/* Number of spectral detectors used for scan in 320 MHz.
8096 	 * u32 attribute.
8097 	 */
8098 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8099 
8100 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8101 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8102 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8103 };
8104 
8105 /**
8106  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8107  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8108  */
8109 enum qca_wlan_vendor_attr_spectral_scan_status {
8110 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8111 	/* Flag attribute to indicate whether spectral scan is enabled */
8112 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8113 	/* Flag attribute to indicate whether spectral scan is in progress*/
8114 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8115 	/* Spectral scan mode. u32 attribute.
8116 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8117 	 * If this attribute is not present, normal mode
8118 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8119 	 * requested.
8120 	 */
8121 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8122 
8123 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8124 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8125 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8126 };
8127 
8128 /**
8129  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8130  * wlan latency module.
8131  *
8132  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8133  * power saving which would causing data exchange out of service, this
8134  * would be a big impact on latency. For latency sensitive applications over
8135  * Wi-Fi are intolerant to such operations and thus would configure them
8136  * to meet their respective needs. It is well understood by such applications
8137  * that altering the default behavior would degrade the Wi-Fi functionality
8138  * w.r.t the above pointed WLAN operations.
8139  *
8140  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8141  *      Default WLAN operation level which throughput orientated.
8142  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8143  *      Use XR level to benefit XR (extended reality) application to achieve
8144  *      latency and power by via constraint scan/roaming/adaptive PS.
8145  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8146  *      Use low latency level to benifit application like concurrent
8147  *      downloading or video streaming via constraint scan/adaptive PS.
8148  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8149  *      Use ultra low latency level to benefit for gaming/voice
8150  *      application via constraint scan/roaming/adaptive PS.
8151  */
8152 enum qca_wlan_vendor_attr_config_latency_level {
8153 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8154 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8155 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8156 	/* legacy name */
8157 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8158 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8159 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8160 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8161 
8162 	/* keep last */
8163 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8164 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8165 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8166 };
8167 
8168 /**
8169  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8170  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8171  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8172  * spectral scan request types.
8173  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8174  * set the spectral parameters and start scan.
8175  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8176  * only set the spectral parameters.
8177  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8178  * only start the spectral scan.
8179  */
8180 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8181 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8182 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8183 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8184 };
8185 
8186 /**
8187  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8188  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8189  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8190  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8191  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8192  * spectral scan modes.
8193  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8194  * spectral scan in the current operating span.
8195  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8196  * spectral scan in the configured agile span.
8197  */
8198 enum qca_wlan_vendor_spectral_scan_mode {
8199 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8200 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8201 };
8202 
8203 /**
8204  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8205  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8206  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8207  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8208  * of a parameter is not supported.
8209  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8210  * mode is not supported.
8211  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8212  * has invalid value.
8213  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8214  * is not initialized.
8215  */
8216 enum qca_wlan_vendor_spectral_scan_error_code {
8217 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8218 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8219 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8220 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8221 };
8222 
8223 /**
8224  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8225  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8226  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8227  * spectral hardware generation.
8228  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8229  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8230  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8231  */
8232 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8233 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8234 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8235 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8236 };
8237 
8238 /**
8239  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8240  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8241  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8242  * Spectral bin scaling formula ID.
8243  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8244  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8245  * and RSSI threshold based formula.
8246  */
8247 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8248 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8249 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8250 };
8251 
8252 /**
8253  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8254  * RF Operating Parameter (RROP) information is available, and if so, at which
8255  * point in the application-driver interaction sequence it can be retrieved by
8256  * the application from the driver. This point may vary by architecture and
8257  * other factors. This is a u16 value.
8258  */
8259 enum qca_wlan_vendor_attr_rropavail_info {
8260 	/* RROP information is unavailable. */
8261 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8262 	/* RROP information is available and the application can retrieve the
8263 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8264 	 * event from the driver.
8265 	 */
8266 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8267 	/* RROP information is available only after a vendor specific scan
8268 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8269 	 * successfully completed. The application can retrieve the information
8270 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8271 	 * the driver.
8272 	 */
8273 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8274 };
8275 
8276 /**
8277  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8278  * Representative RF Operating Parameter (RROP) information. It is sent for the
8279  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8280  * intended for use by external Auto Channel Selection applications. It provides
8281  * guidance values for some RF parameters that are used by the system during
8282  * operation. These values could vary by channel, band, radio, and so on.
8283  */
8284 enum qca_wlan_vendor_attr_rrop_info {
8285 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8286 
8287 	/* Representative Tx Power List (RTPL) which has an array of nested
8288 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8289 	 */
8290 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8291 
8292 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8293 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8294 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8295 };
8296 
8297 /**
8298  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8299  * entry instances in the Representative Tx Power List (RTPL). It provides
8300  * simplified power values intended for helping external Auto channel Selection
8301  * applications compare potential Tx power performance between channels, other
8302  * operating conditions remaining identical. These values are not necessarily
8303  * the actual Tx power values that will be used by the system. They are also not
8304  * necessarily the max or average values that will be used. Instead, they are
8305  * relative, summarized keys for algorithmic use computed by the driver or
8306  * underlying firmware considering a number of vendor specific factors.
8307  */
8308 enum qca_wlan_vendor_attr_rtplinst {
8309 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8310 
8311 	/* Primary channel number (u8).
8312 	 * Note: If both the driver and user space application support the
8313 	 * 6 GHz band, this attribute is deprecated and
8314 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8315 	 * maintain backward compatibility,
8316 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8317 	 * driver or user space application or both do not support the 6 GHz
8318 	 * band.
8319 	 */
8320 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8321 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
8322 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8323 	/* Representative Tx power in dBm (s32) with emphasis on range. */
8324 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
8325 	/* Primary channel center frequency (u32) in MHz */
8326 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
8327 
8328 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8329 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8330 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8331 };
8332 
8333 /**
8334  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
8335  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8336  *
8337  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
8338  *  array of nested values as per attributes in
8339  *  enum qca_wlan_vendor_attr_mac_mode_info.
8340  */
8341 enum qca_wlan_vendor_attr_mac {
8342 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8343 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8344 
8345 	/* keep last */
8346 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8347 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8348 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8349 };
8350 
8351 /**
8352  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8353  * WiFi netdev interface on a respective MAC. Used by the attribute
8354  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8355  *
8356  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
8357  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
8358  *  the connected Wi-Fi interface(u32).
8359  */
8360 enum qca_wlan_vendor_attr_mac_iface_info {
8361 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8362 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8363 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8364 
8365 	/* keep last */
8366 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8367 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8368 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8369 };
8370 
8371 /**
8372  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8373  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8374  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8375  *
8376  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
8377  *  MAC (u32)
8378  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
8379  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
8380  *  in enum nl80211_band.
8381  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
8382  * interfaces associated with this MAC. Represented by enum
8383  * qca_wlan_vendor_attr_mac_iface_info.
8384  */
8385 enum qca_wlan_vendor_attr_mac_info {
8386 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8387 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8388 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8389 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8390 
8391 	/* keep last */
8392 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8393 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8394 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8395 
8396 };
8397 
8398 /**
8399  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8400  * to get thermal status from driver/firmware.
8401  * enum values are used for NL attributes encapsulated inside
8402  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8403  *
8404  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8405  * of a thermal level in Celsius. u32 size.
8406  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8407  * of a thermal level in Celsius. u32 size.
8408  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8409  * thermal level in milliseconds. u32 size.
8410  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8411  * of times the temperature crossed into the temperature range defined by the
8412  * thermal level from both higher and lower directions. u32 size.
8413  */
8414 enum qca_wlan_vendor_attr_thermal_stats {
8415 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8416 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8417 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8418 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8419 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8420 
8421 	/* keep last */
8422 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8423 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8424 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8425 };
8426 
8427 /**
8428  * enum he_fragmentation_val - HE fragmentation support values
8429  * Indicates level of dynamic fragmentation that is supported by
8430  * a STA as a recipient.
8431  * HE fragmentation values are defined as per 11ax spec and are used in
8432  * HE capability IE to advertise the support. These values are validated
8433  * in the driver to check the device capability and advertised in the HE
8434  * capability element.
8435  *
8436  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8437  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8438  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8439  *	within an A-MPDU that is not an S-MPDU.
8440  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8441  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8442  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8443  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8444  *	MPDU or S-MPDU.
8445  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8446  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8447  *	fragments for each MSDU and for each A-MSDU if supported by the
8448  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8449  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8450  */
8451 enum he_fragmentation_val {
8452 	HE_FRAG_DISABLE,
8453 	HE_FRAG_LEVEL1,
8454 	HE_FRAG_LEVEL2,
8455 	HE_FRAG_LEVEL3,
8456 };
8457 
8458 /**
8459  * enum he_mcs_config - HE MCS support configuration
8460  *
8461  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8462  * These values are used in driver to configure the HE MCS map to advertise
8463  * Tx/Rx MCS map in HE capability and these values are applied for all the
8464  * streams supported by the device. To configure MCS for different bandwidths,
8465  * vendor command needs to be sent using this attribute with appropriate value.
8466  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8467  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
8468  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
8469  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
8470  *
8471  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
8472  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
8473  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
8474  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
8475  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
8476  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
8477  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
8478  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
8479  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
8480  */
8481 enum he_mcs_config {
8482 	HE_80_MCS0_7 = 0,
8483 	HE_80_MCS0_9 = 1,
8484 	HE_80_MCS0_11 = 2,
8485 	HE_160_MCS0_7 = 4,
8486 	HE_160_MCS0_9 = 5,
8487 	HE_160_MCS0_11 = 6,
8488 	HE_80p80_MCS0_7 = 8,
8489 	HE_80p80_MCS0_9 = 9,
8490 	HE_80p80_MCS0_11 = 10,
8491 };
8492 
8493 /**
8494  * enum qca_wlan_ba_session_config - BA session configuration
8495  *
8496  * Indicates the configuration values for BA session configuration attribute.
8497  *
8498  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8499  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8500  */
8501 enum qca_wlan_ba_session_config {
8502 	QCA_WLAN_ADD_BA = 1,
8503 	QCA_WLAN_DELETE_BA = 2,
8504 };
8505 
8506 /**
8507  * enum qca_wlan_ac_type - access category type
8508  *
8509  * Indicates the access category type value.
8510  *
8511  * @QCA_WLAN_AC_BE: BE access category
8512  * @QCA_WLAN_AC_BK: BK access category
8513  * @QCA_WLAN_AC_VI: VI access category
8514  * @QCA_WLAN_AC_VO: VO access category
8515  * @QCA_WLAN_AC_ALL: All ACs
8516  */
8517 enum qca_wlan_ac_type {
8518 	QCA_WLAN_AC_BE = 0,
8519 	QCA_WLAN_AC_BK = 1,
8520 	QCA_WLAN_AC_VI = 2,
8521 	QCA_WLAN_AC_VO = 3,
8522 	QCA_WLAN_AC_ALL = 4,
8523 };
8524 
8525 /**
8526  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8527  *
8528  * Indicates the HE LTF configuration value.
8529  *
8530  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
8531  * the mandatory HE-LTF based on the GI setting
8532  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8533  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8534  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8535  */
8536 enum qca_wlan_he_ltf_cfg {
8537 	QCA_WLAN_HE_LTF_AUTO = 0,
8538 	QCA_WLAN_HE_LTF_1X = 1,
8539 	QCA_WLAN_HE_LTF_2X = 2,
8540 	QCA_WLAN_HE_LTF_4X = 3,
8541 };
8542 
8543 /**
8544  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8545  *
8546  * Indicates the HE trigger frame MAC padding duration value.
8547  *
8548  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8549  * process the trigger frame.
8550  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8551  * trigger frame.
8552  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8553  * trigger frame.
8554  */
8555 enum qca_wlan_he_mac_padding_dur {
8556 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8557 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8558 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8559 };
8560 
8561 /**
8562  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8563  *
8564  * Indicates the HE Operating mode control channel width setting value.
8565  *
8566  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8567  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8568  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8569  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8570  */
8571 enum qca_wlan_he_om_ctrl_ch_bw {
8572 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8573 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8574 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8575 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8576 };
8577 
8578 /**
8579  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8580  *
8581  * Indicates the frame types to use for keep alive data.
8582  *
8583  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8584  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8585  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8586  */
8587 enum qca_wlan_keep_alive_data_type {
8588 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8589 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8590 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8591 };
8592 
8593 /**
8594  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8595  * HE operating mode control transmit request. These attributes are
8596  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8597  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8598  *
8599  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8600  * indicates the maximum number of spatial streams, NSS, that the STA
8601  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8602  * and is set to NSS - 1.
8603  *
8604  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8605  * indicates the operating channel width supported by the STA for both
8606  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8607  *
8608  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8609  * indicates the all trigger based UL MU operations by the STA.
8610  * 0 - UL MU operations are enabled by the STA.
8611  * 1 - All triggered UL MU transmissions are suspended by the STA.
8612  *
8613  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8614  * indicates the maximum number of space-time streams, NSTS, that
8615  * the STA supports in transmission and is set to NSTS - 1.
8616  *
8617  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8618  * combined with the UL MU Disable subfield and the recipient's setting
8619  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8620  * capabilities to determine which HE TB PPDUs are possible by the
8621  * STA to transmit.
8622  * 0 - UL MU data operations are enabled by the STA.
8623  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8624  * bit is not set, else UL MU Tx is suspended.
8625  *
8626  */
8627 enum qca_wlan_vendor_attr_he_omi_tx {
8628 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8629 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8630 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8631 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8632 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8633 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8634 
8635 	/* keep last */
8636 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8637 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8638 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8639 };
8640 
8641 /**
8642  * enum qca_wlan_vendor_phy_mode - Different PHY modes
8643  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8644  *
8645  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8646  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8647  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8648  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8649  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8650  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8651  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8652  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8653  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8654  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8655  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8656  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8657  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8658  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8659  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8660  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8661  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8662  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8663  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8664  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8665  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8666  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8667  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8668  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8669  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8670  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8671  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8672  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8673  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8674  */
8675 enum qca_wlan_vendor_phy_mode {
8676 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8677 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8678 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8679 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8680 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8681 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8682 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8683 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8684 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8685 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8686 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8687 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8688 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8689 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8690 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8691 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8692 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8693 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8694 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8695 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8696 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8697 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8698 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8699 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8700 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8701 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8702 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8703 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8704 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8705 };
8706 
8707 /* Attributes for data used by
8708  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8709  */
8710 enum qca_wlan_vendor_attr_wifi_test_config {
8711 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8712 	/* 8-bit unsigned value to configure the driver to enable/disable
8713 	 * WMM feature. This attribute is used to configure testbed device.
8714 	 * 1-enable, 0-disable
8715 	 */
8716 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8717 
8718 	/* 8-bit unsigned value to configure the driver to accept/reject
8719 	 * the addba request from peer. This attribute is used to configure
8720 	 * the testbed device.
8721 	 * 1-accept addba, 0-reject addba
8722 	 */
8723 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8724 
8725 	/* 8-bit unsigned value to configure the driver to send or not to
8726 	 * send the addba request to peer.
8727 	 * This attribute is used to configure the testbed device.
8728 	 * 1-send addba, 0-do not send addba
8729 	 */
8730 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8731 
8732 	/* 8-bit unsigned value to indicate the HE fragmentation support.
8733 	 * Uses enum he_fragmentation_val values.
8734 	 * This attribute is used to configure the testbed device to
8735 	 * allow the advertised hardware capabilities to be downgraded
8736 	 * for testing purposes.
8737 	 */
8738 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8739 
8740 	/* 8-bit unsigned value to indicate the HE MCS support.
8741 	 * Uses enum he_mcs_config values.
8742 	 * This attribute is used to configure the testbed device to
8743 	 * allow the advertised hardware capabilities to be downgraded
8744 	 * for testing purposes.
8745 	 */
8746 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8747 
8748 	/* 8-bit unsigned value to configure the driver to allow or not to
8749 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8750 	 * This attribute is used to configure the testbed device.
8751 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
8752 	 */
8753 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8754 
8755 	/* 8-bit unsigned value to configure the driver to add a
8756 	 * new BA session or delete the existing BA session for
8757 	 * given TID. ADDBA command uses the buffer size and tid
8758 	 * configuration if user specifies the values else default
8759 	 * value for buffer size is used for all tids if the tid
8760 	 * also not specified. For DEL_BA command TID value is
8761 	 * required to process the command.
8762 	 * Uses enum qca_wlan_ba_session_config values.
8763 	 * This attribute is used to configure the testbed device.
8764 	 */
8765 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
8766 
8767 	/* 16-bit unsigned value to configure the buffer size in addba
8768 	 * request and response frames.
8769 	 * This attribute is used to configure the testbed device.
8770 	 * The range of the value is 0 to 256.
8771 	 */
8772 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
8773 
8774 	/* 8-bit unsigned value to configure the buffer size in addba
8775 	 * request and response frames.
8776 	 * This attribute is used to configure the testbed device.
8777 	 */
8778 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
8779 
8780 	/* 8-bit unsigned value to configure the no ack policy.
8781 	 * To configure no ack policy, access category value
8782 	 * is required to process the command.
8783 	 * This attribute is used to configure the testbed device.
8784 	 * 1 - enable no ack, 0 - disable no ack
8785 	 */
8786 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
8787 
8788 	/* 8-bit unsigned value to configure the AC for no ack policy
8789 	 * This attribute is used to configure the testbed device.
8790 	 * uses the enum qca_wlan_ac_type values
8791 	 */
8792 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
8793 
8794 	/* 8-bit unsigned value to configure the HE LTF
8795 	 * This attribute is used to configure the testbed device.
8796 	 * Uses the enum qca_wlan_he_ltf_cfg values.
8797 	 */
8798 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
8799 
8800 	/* 8-bit unsigned value to configure the tx beamformee.
8801 	 * This attribute is used to configure the testbed device.
8802 	 * 1 - enable, 0 - disable.
8803 	 */
8804 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
8805 
8806 	/* 8-bit unsigned value to configure the tx beamformee number of
8807 	 * space-time streams.
8808 	 * This attribute is used to configure the testbed device.
8809 	 * The range of the value is 0 to 8
8810 	 */
8811 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
8812 
8813 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
8814 	 * This attribute is used to configure the testbed device.
8815 	 * Uses the enum qca_wlan_ac_type values.
8816 	 */
8817 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
8818 
8819 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
8820 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
8821 	 * is required to process the command.
8822 	 * This attribute is used to configure the testbed device.
8823 	 */
8824 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
8825 
8826 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
8827 	 * given AC.
8828 	 * To configure MU EDCA ECW min value, MU EDCA access category value
8829 	 * is required to process the command.
8830 	 * This attribute is used to configure the testbed device.
8831 	 */
8832 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
8833 
8834 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
8835 	 * given AC.
8836 	 * To configure MU EDCA ECW max value, MU EDCA access category value
8837 	 * is required to process the command.
8838 	 * This attribute is used to configure the testbed device.
8839 	 */
8840 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
8841 
8842 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
8843 	 * To configure MU EDCA timer value, MU EDCA access category value
8844 	 * is required to process the command.
8845 	 * This attribute is used to configure the testbed device.
8846 	 */
8847 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
8848 
8849 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
8850 	 * duration.
8851 	 * This attribute is used to configure the testbed device.
8852 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
8853 	 */
8854 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
8855 
8856 	/* 8-bit unsigned value to override the MU EDCA params to defaults
8857 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
8858 	 * the default values else use the MU EDCA params from AP beacon.
8859 	 * This attribute is used to configure the testbed device.
8860 	 * 1 - enable override, 0 - disable.
8861 	 */
8862 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
8863 
8864 	/* 8-bit unsigned value to configure the support for receiving
8865 	 * an MPDU that contains an operating mode control subfield.
8866 	 * This attribute is used to configure the testbed device.
8867 	 * 1-enable, 0-disable.
8868 	 */
8869 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
8870 
8871 	/* Nested attribute values required to setup the TWT session.
8872 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
8873 	 * information to set up the session. It contains broadcast flags,
8874 	 * set_up flags, trigger value, flow type, flow ID, wake interval
8875 	 * exponent, protection, target wake time, wake duration, wake interval
8876 	 * mantissa. These nested attributes are used to setup a host triggered
8877 	 * TWT session.
8878 	 */
8879 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
8880 
8881 	/* This nested attribute is used to terminate the current TWT session.
8882 	 * It does not currently carry any attributes.
8883 	 */
8884 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
8885 
8886 	/* This nested attribute is used to suspend the current TWT session.
8887 	 * It does not currently carry any attributes.
8888 	 */
8889 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
8890 
8891 	/* Nested attribute values to indicate the request for resume.
8892 	 * This attribute is used to resume the TWT session.
8893 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
8894 	 * parameters required to resume the TWT session.
8895 	 */
8896 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
8897 
8898 	/* 8-bit unsigned value to set the HE operating mode control
8899 	 * (OM CTRL) Channel Width subfield.
8900 	 * The Channel Width subfield indicates the operating channel width
8901 	 * supported by the STA for both reception and transmission.
8902 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
8903 	 * This setting is cleared with the
8904 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8905 	 * flag attribute to reset defaults.
8906 	 * This attribute is used to configure the testbed device.
8907 	 */
8908 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
8909 
8910 	/* 8-bit unsigned value to configure the number of spatial
8911 	 * streams in HE operating mode control field.
8912 	 * This setting is cleared with the
8913 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8914 	 * flag attribute to reset defaults.
8915 	 * This attribute is used to configure the testbed device.
8916 	 */
8917 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
8918 
8919 	/* Flag attribute to configure the UL MU disable bit in
8920 	 * HE operating mode control field.
8921 	 * This setting is cleared with the
8922 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
8923 	 * flag attribute to reset defaults.
8924 	 * This attribute is used to configure the testbed device.
8925 	 */
8926 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
8927 
8928 	/* Flag attribute to clear the previously set HE operating mode
8929 	 * control field configuration.
8930 	 * This attribute is used to configure the testbed device to reset
8931 	 * defaults to clear any previously set HE operating mode control
8932 	 * field configuration.
8933 	 */
8934 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
8935 
8936 	/* 8-bit unsigned value to configure HE single user PPDU
8937 	 * transmission. By default this setting is disabled and it
8938 	 * is disabled in the reset defaults of the device configuration.
8939 	 * This attribute is used to configure the testbed device.
8940 	 * 1-enable, 0-disable
8941 	 */
8942 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
8943 
8944 	/* 8-bit unsigned value to configure action frame transmission
8945 	 * in HE trigger based PPDU transmission.
8946 	 * By default this setting is disabled and it is disabled in
8947 	 * the reset defaults of the device configuration.
8948 	 * This attribute is used to configure the testbed device.
8949 	 * 1-enable, 0-disable
8950 	 */
8951 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
8952 
8953 	/* Nested attribute to indicate HE operating mode control field
8954 	 * transmission. It contains operating mode control field Nss,
8955 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
8956 	 * These nested attributes are used to send HE operating mode control
8957 	 * with configured values.
8958 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
8959 	 * This attribute is used to configure the testbed device.
8960 	 */
8961 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
8962 
8963 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
8964 	 * support for the reception of a frame that carries an HE variant
8965 	 * HT Control field.
8966 	 * This attribute is used to configure the testbed device.
8967 	 * 1-enable, 0-disable
8968 	 */
8969 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
8970 
8971 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
8972 	 * This attribute is used to configure the testbed device.
8973 	 * 1-enable, 0-disable
8974 	 */
8975 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
8976 
8977 	/* 8-bit unsigned value to configure HE testbed defaults.
8978 	 * This attribute is used to configure the testbed device.
8979 	 * 1-set the device HE capabilities to testbed defaults.
8980 	 * 0-reset the device HE capabilities to supported config.
8981 	 */
8982 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
8983 
8984 	/* 8-bit unsigned value to configure twt request support.
8985 	 * This attribute is used to configure the testbed device.
8986 	 * 1-enable, 0-disable.
8987 	 */
8988 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
8989 
8990 	/* 8-bit unsigned value to configure protection for Management
8991 	 * frames when PMF is enabled for the association.
8992 	 * This attribute is used to configure the testbed device.
8993 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
8994 	 */
8995 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
8996 
8997 	/* Flag attribute to inject Disassociation frame to the connected AP.
8998 	 * This attribute is used to configure the testbed device.
8999 	 */
9000 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9001 
9002 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9003 	 * subfield in the MIC control field of the FTE in FT Reassociation
9004 	 * Request frame.
9005 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9006 	 * This attribute is used to configure the testbed device.
9007 	 * This attribute can be configured when STA is in disconnected or
9008 	 * associated state and the configuration is valid until the next
9009 	 * disconnection.
9010 	 */
9011 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9012 
9013 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9014 	 * Switch Announcement) when STA is in connected state.
9015 	 * 0 - Default behavior, 1 - Ignore CSA.
9016 	 * This attribute is used to configure the testbed device.
9017 	 * This attribute can be configured when STA is in disconnected or
9018 	 * associated state and the configuration is valid until the next
9019 	 * disconnection.
9020 	 */
9021 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9022 
9023 	/* Nested attribute values required to configure OCI (Operating Channel
9024 	 * Information). Attributes defined in enum
9025 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9026 	 * This attribute is used to configure the testbed device.
9027 	 * This attribute can be configured when STA is in disconnected or
9028 	 * associated state and the configuration is valid until the next
9029 	 * disconnection.
9030 	 */
9031 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9032 
9033 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9034 	 * Query timeout. If this configuration is enabled STA shall not send
9035 	 * Deauthentication frmae when SA Query times out (mainly, after a
9036 	 * channel switch when OCV is enabled).
9037 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9038 	 * This attribute is used to configure the testbed device.
9039 	 * This attribute can be configured only when STA is in associated state
9040 	 * and the configuration is valid until the disconnection.
9041 	 */
9042 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9043 
9044 	/* 8-bit unsigned value to configure the driver/firmware to start or
9045 	 * stop transmitting FILS discovery frames.
9046 	 * 0 - Stop transmitting FILS discovery frames
9047 	 * 1 - Start transmitting FILS discovery frames
9048 	 * This attribute is used to configure the testbed device.
9049 	 * This attribute can be configured only in AP mode and the
9050 	 * configuration is valid until AP restart.
9051 	 */
9052 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9053 
9054 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9055 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9056 	 * information field.
9057 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9058 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9059 	 * This attribute is used to configure the testbed device.
9060 	 */
9061 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9062 
9063 	/* 16-bit unsigned value to configure the driver with a specific BSS
9064 	 * max idle period to advertise in the BSS Max Idle Period element
9065 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9066 	 * This attribute is used to configure the testbed device.
9067 	 */
9068 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9069 
9070 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9071 	 * for data transmission.
9072 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9073 	 * This attribute is used to configure the testbed device.
9074 	 */
9075 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9076 
9077 	/* 8-bit unsigned value to configure the driver to disable data and
9078 	 * management response frame transmission to test the BSS max idle
9079 	 * feature.
9080 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9081 	 * This attribute is used to configure the testbed device.
9082 	 */
9083 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9084 
9085 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9086 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9087 	 * information field.
9088 	 * 0 - Disable Punctured Preamble Rx subfield
9089 	 * 1 - Enable Punctured Preamble Rx subfield
9090 	 * This attribute is used to configure the testbed device.
9091 	 */
9092 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9093 
9094 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9095 	 * requirement mismatch for 6 GHz connection.
9096 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9097 	 * This attribute is used to configure the testbed device.
9098 	 */
9099 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9100 
9101 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9102 	 * connection with all security modes.
9103 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9104 	 * modes.
9105 	 * This attribute is used for testing purposes.
9106 	 */
9107 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9108 
9109 	/* 8-bit unsigned value to configure the driver to transmit data with
9110 	 * ER SU PPDU type.
9111 	 *
9112 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9113 	 * This attribute is used for testing purposes.
9114 	 */
9115 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9116 
9117 	/* 8-bit unsigned value to configure the driver to use Data or
9118 	 * Management frame type for keep alive data.
9119 	 * Uses enum qca_wlan_keep_alive_data_type values.
9120 	 *
9121 	 * This attribute is used for testing purposes.
9122 	 */
9123 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9124 
9125 	/* 8-bit unsigned value to configure the driver to use scan request
9126 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9127 	 * driver saves this configuration and applies this setting to all user
9128 	 * space scan requests until the setting is cleared. If this
9129 	 * configuration is set, the driver uses the BSSID value from the scan
9130 	 * request to set the RA(A1) in the Probe Request frames during the
9131 	 * scan.
9132 	 *
9133 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9134 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9135 	 * This attribute is used for testing purposes.
9136 	 */
9137 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9138 
9139 	/* 8-bit unsigned value to configure the driver to enable/disable the
9140 	 * BSS max idle period support.
9141 	 *
9142 	 * 0 - Disable the BSS max idle support.
9143 	 * 1 - Enable the BSS max idle support.
9144 	 * This attribute is used for testing purposes.
9145 	 */
9146 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9147 
9148 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9149 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9150 	 * capabilities information field.
9151 	 * 0 - Disable Rx control frame to MultiBSS subfield
9152 	 * 1 - Enable Rx control frame to MultiBSS subfield
9153 	 * This attribute is used to configure the testbed device.
9154 	 */
9155 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9156 
9157 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9158 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9159 	 * information field.
9160 	 * 0 - Disable Broadcast TWT support subfield
9161 	 * 1 - Enable Broadcast TWT support subfield
9162 	 * This attribute is used to configure the testbed device.
9163 	 */
9164 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9165 
9166 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9167 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
9168 	 * and if the FW supports this capability too, then the STA host
9169 	 * advertises this capability to AP over assoc request frame. This
9170 	 * attribute will not have any effect on legacy devices with no 802.11be
9171 	 * support.
9172 	 * 0 - Default behavior
9173 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9174 	 * This attribute is used to configure the testbed device.
9175 	 */
9176 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9177 
9178 	/* 8-bit unsigned value to configure the driver to enable/disable the
9179 	 * periodic sounding for Tx beamformer functionality. The default
9180 	 * behavior uses algorithm to do sounding based on packet stats.
9181 	 *
9182 	 * 0 - Default behavior.
9183 	 * 1 - Enable the periodic sounding for Tx beamformer.
9184 	 * This attribute is used for testing purposes.
9185 	 */
9186 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9187 
9188 	/* keep last */
9189 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9190 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9191 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9192 };
9193 
9194 /**
9195  * enum qca_wlan_twt_operation - Operation of the config TWT request
9196  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9197  * The response for the respective operations can be either synchronous or
9198  * asynchronous (wherever specified). If synchronous, the response to this
9199  * operation is obtained in the corresponding vendor command reply to the user
9200  * space. For the asynchronous case the response is obtained as an event with
9201  * the same operation type.
9202  *
9203  * Drivers shall support either of these modes but not both simultaneously.
9204  * This support for asynchronous mode is advertised through the flag
9205  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9206  * the driver shall support synchronous mode.
9207  *
9208  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9209  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9210  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9211  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9212  * synchronous or asynchronous operation.
9213  *
9214  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9215  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9216  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9217  *
9218  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9219  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9220  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9221  * This terminate can either get triggered by the user space or can as well be
9222  * a notification from the firmware if it initiates a terminate.
9223  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9224  * the request from user space can either be a synchronous or asynchronous
9225  * operation.
9226  *
9227  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9228  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9229  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9230  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9231  * this is either a synchronous or asynchronous operation.
9232  *
9233  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9234  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9235  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9236  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9237  * request.
9238  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9239  * capability, this is either a synchronous or asynchronous operation.
9240  *
9241  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9242  * combination of suspend and resume in a single request. Required parameters
9243  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9244  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9245  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9246  * capability, this is either a synchronous or asynchronous operation.
9247  *
9248  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9249  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9250  * session is setup. It's a synchronous operation.
9251  *
9252  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9253  * Valid only after the TWT session is setup. It's a synchronous operation.
9254  *
9255  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9256  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9257  * operation.
9258  *
9259  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
9260  * ready for a new TWT session setup after it issued a twt teardown.
9261  *
9262  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9263  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9264  * the enum qca_wlan_vendor_attr_twt_set_param.
9265  *
9266  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9267  * related information for example TWT required bit in AP capabilities etc.
9268  * The reason for the notification is sent using
9269  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9270  */
9271 enum qca_wlan_twt_operation {
9272 	QCA_WLAN_TWT_SET = 0,
9273 	QCA_WLAN_TWT_GET = 1,
9274 	QCA_WLAN_TWT_TERMINATE = 2,
9275 	QCA_WLAN_TWT_SUSPEND = 3,
9276 	QCA_WLAN_TWT_RESUME = 4,
9277 	QCA_WLAN_TWT_NUDGE = 5,
9278 	QCA_WLAN_TWT_GET_STATS = 6,
9279 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9280 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9281 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9282 	QCA_WLAN_TWT_SET_PARAM = 10,
9283 	QCA_WLAN_TWT_NOTIFY = 11,
9284 };
9285 
9286 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9287  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
9288  *
9289  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
9290  * u8 attribute. Specify the TWT operation of this request. Possible values
9291  * are defined in enum qca_wlan_twt_operation. The parameters for the
9292  * respective operation is specified through
9293  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9294  *
9295  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9296  * parameters configured for TWT. These parameters are represented by
9297  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9298  * enum qca_wlan_vendor_attr_twt_set_param or
9299  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9300  *
9301  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9302  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9303  * The values used by this attribute are defined in
9304  * enum qca_wlan_vendor_twt_status.
9305  */
9306 enum qca_wlan_vendor_attr_config_twt {
9307 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9308 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9309 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9310 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9311 
9312 	/* keep last */
9313 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9314 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9315 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9316 };
9317 
9318 /**
9319  * qca_wlan_twt_setup_state: Represents the TWT session states.
9320  *
9321  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9322  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9323  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9324  */
9325 enum qca_wlan_twt_setup_state {
9326 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9327 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9328 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9329 };
9330 
9331 /**
9332  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9333  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9334  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9335  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9336  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9337  *
9338  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9339  * Disable (flag attribute not present) - Individual TWT
9340  * Enable (flag attribute present) - Broadcast TWT.
9341  * Individual means the session is between the STA and the AP.
9342  * This session is established using a separate negotiation between
9343  * STA and AP.
9344  * Broadcast means the session is across multiple STAs and an AP. The
9345  * configuration parameters are announced in Beacon frames by the AP.
9346  * This is used in
9347  * 1. TWT SET Request and Response
9348  * 2. TWT GET Response
9349  *
9350  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9351  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9352  * specify the TWT request type. This is used in TWT SET operation.
9353  *
9354  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9355  * Enable (flag attribute present) - TWT with trigger support.
9356  * Disable (flag attribute not present) - TWT without trigger support.
9357  * Trigger means the AP will send the trigger frame to allow STA to send data.
9358  * Without trigger, the STA will wait for the MU EDCA timer before
9359  * transmitting the data.
9360  * This is used in
9361  * 1. TWT SET Request and Response
9362  * 2. TWT GET Response
9363  *
9364  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9365  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9366  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9367  * NULL frame to AP.
9368  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9369  * This is a required parameter for
9370  * 1. TWT SET Request and Response
9371  * 2. TWT GET Response
9372  *
9373  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9374  * Flow ID is the unique identifier for each TWT session.
9375  * If not provided then dialog ID will be set to zero.
9376  * This is an optional parameter for
9377  * 1. TWT SET Request and Response
9378  * 2. TWT GET Request and Response
9379  * 3. TWT TERMINATE Request and Response
9380  * 4. TWT SUSPEND Request and Response
9381  * Flow Id values from 0 to 254 represent a single TWT session
9382  * Flow ID value of 255 represents all twt sessions for the following
9383  * 1. TWT TERMINATE Request and Response
9384  * 2. TWT SUSPEND Request and Response
9385  * 4. TWT CLEAR STATISTICS request
9386  * 5. TWT GET STATISTICS request and response
9387  * If an invalid dialog id is provided, status
9388  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9389  *
9390  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9391  * This attribute (exp) is used along with the mantissa to derive the
9392  * wake interval using the following formula:
9393  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9394  * Wake interval is the interval between 2 successive SP.
9395  * This is a required parameter for
9396  * 1. TWT SET Request and Response
9397  * 2. TWT GET Response
9398  *
9399  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9400  * Enable (flag attribute present) - Protection required.
9401  * Disable (flag attribute not present) - Protection not required.
9402  * If protection is enabled, then the AP will use protection
9403  * mechanism using RTS/CTS to self to reserve the airtime.
9404  * This is used in
9405  * 1. TWT SET Request and Response
9406  * 2. TWT GET Response
9407  *
9408  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9409  * This attribute is used as the SP offset which is the offset from
9410  * TSF after which the wake happens. The units are in microseconds. If
9411  * this attribute is not provided, then the value will be set to zero.
9412  * This is an optional parameter for
9413  * 1. TWT SET Request and Response
9414  * 2. TWT GET Response
9415  *
9416  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9417  * This is the duration of the service period. This is specified as
9418  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9419  * This is a required parameter for
9420  * 1. TWT SET Request and Response
9421  * 2. TWT GET Response
9422  *
9423  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9424  * This attribute is used to configure wake interval mantissa.
9425  * The units are in TU.
9426  * This is a required parameter for
9427  * 1. TWT SET Request and Response
9428  * 2. TWT GET Response
9429  *
9430  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9431  * This field is applicable for TWT response only.
9432  * This contains status values in enum qca_wlan_vendor_twt_status
9433  * and is passed to the userspace. This is used in TWT SET operation.
9434  * This is a required parameter for
9435  * 1. TWT SET Response
9436  * 2. TWT TERMINATE Response
9437  * 3. TWT SUSPEND Response
9438  * 4. TWT RESUME Response
9439  * 5. TWT NUDGE Response
9440  *
9441  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9442  * This field is applicable for TWT response only.
9443  * This field contains response type from the TWT responder and is
9444  * passed to the userspace. The values for this field are defined in
9445  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9446  * response.
9447  *
9448  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
9449  * In TWT setup command this field contains absolute TSF that will
9450  * be used by TWT requester during setup.
9451  * In TWT response this field contains absolute TSF value of the
9452  * wake time received from the TWT responder and is passed to
9453  * the userspace.
9454  * This is an optional parameter for
9455  * 1. TWT SET Request
9456  * This is a required parameter for
9457  * 1. TWT SET Response
9458  * 2. TWT GET Response
9459  *
9460  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9461  * Enable (flag attribute present) - Indicates that the TWT responder
9462  * supports reception of TWT information frame from the TWT requestor.
9463  * Disable (flag attribute not present) - Indicates that the responder
9464  * doesn't support reception of TWT information frame from requestor.
9465  * This is used in
9466  * 1. TWT SET Response
9467  * 2. TWT GET Response
9468  *
9469  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9470  * Represents the MAC address of the peer for which the TWT session
9471  * is being configured. This is used in AP mode to represent the respective
9472  * client
9473  * In AP mode, this is a required parameter in response for
9474  * 1. TWT SET
9475  * 2. TWT GET
9476  * 3. TWT TERMINATE
9477  * 4. TWT SUSPEND
9478  * In STA mode, this is an optional parameter in request and response for
9479  * the above four TWT operations.
9480  * In AP mode, this is a required parameter in request for
9481  * 1. TWT GET
9482  * 2. TWT TERMINATE
9483  *
9484  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9485  * Minimum tolerance limit of wake interval parameter in microseconds.
9486  *
9487  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9488  * Maximum tolerance limit of wake interval parameter in microseconds.
9489  *
9490  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9491  * Minimum tolerance limit of wake duration parameter in microseconds.
9492  *
9493  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9494  * Maximum tolerance limit of wake duration parameter in microseconds.
9495  *
9496  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9497  * TWT state for the given dialog id. The values for this are represented
9498  * by enum qca_wlan_twt_setup_state.
9499  * This is obtained through TWT GET operation.
9500  *
9501  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9502  * This attribute is used to configure wake interval mantissa.
9503  * The unit is microseconds. This attribute, when specified, takes
9504  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9505  * This parameter is used for
9506  * 1. TWT SET Request and Response
9507  * 2. TWT GET Response
9508  *
9509  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9510  * This attribute is used to configure Broadcast TWT ID.
9511  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9512  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9513  * This parameter is used for
9514  * 1. TWT SET Request
9515  * 2. TWT TERMINATE Request
9516  *
9517  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9518  * This attribute is used to configure Broadcast TWT recommendation.
9519  * The Broadcast TWT Recommendation subfield contains a value that indicates
9520  * recommendations on the types of frames that are transmitted by TWT
9521  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9522  * The allowed values are 0 - 3.
9523  * This parameter is used for
9524  * 1. TWT SET Request
9525  *
9526  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9527  * This attribute is used to configure Broadcast TWT Persistence.
9528  * The Broadcast TWT Persistence subfield indicates the number of
9529  * TBTTs during which the Broadcast TWT SPs corresponding to this
9530  * broadcast TWT Parameter set are present. The number of beacon intervals
9531  * during which the Broadcast TWT SPs are present is equal to the value in the
9532  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9533  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9534  * This parameter is used for
9535  * 1. TWT SET Request
9536  *
9537  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9538  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9539  * from TWT response frame.
9540  * This parameter is used for
9541  * 1. TWT SET Response
9542  * 2. TWT GET Response
9543  *
9544  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9545  * This attribute is used to configure the announce timeout value (in us) in
9546  * firmware. This timeout value is only applicable for announced TWT. If
9547  * timeout value is non-zero then firmware waits upto timeout value to use
9548  * data frame as announcement frame. If timeout value is 0 then firmware sends
9549  * explicit QoS NULL frame as announcement frame on SP start. Default value in
9550  * firmware is 0.
9551  * This parameter is used for
9552  * 1. TWT SET Request
9553  */
9554 enum qca_wlan_vendor_attr_twt_setup {
9555 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9556 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9557 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9558 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9559 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9560 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9561 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9562 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9563 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9564 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9565 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9566 
9567 	/* TWT Response only attributes */
9568 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9569 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9570 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9571 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9572 
9573 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9574 
9575 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9576 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9577 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9578 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9579 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9580 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9581 
9582 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9583 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9584 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9585 
9586 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9587 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9588 
9589 	/* keep last */
9590 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9591 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9592 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9593 };
9594 
9595 /**
9596  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9597  * TWT operation
9598  *
9599  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9600  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9601  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9602  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9603  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9604  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9605  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9606  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9607  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9608  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9609  * request/response frame
9610  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9611  * frame
9612  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9613  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9614  * unknown reason
9615  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9616  * suspend state
9617  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9618  * invalid IE in the received TWT frame
9619  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9620  * the responder are not in the specified range
9621  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9622  * session due to request from the responder. Used on the TWT_TERMINATE
9623  * notification from the firmware.
9624  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9625  * session due to roaming. Used on the TWT_TERMINATE notification from the
9626  * firmware.
9627  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9628  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
9629  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9630  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9631  * request due to roaming in progress.
9632  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9633  * setup request due to channel switch in progress.
9634  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9635  * request due to scan in progress.
9636  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9637  * terminate an existing TWT session on power save exit request from userspace.
9638  * Used on the TWT_TERMINATE notification from the driver/firmware.
9639  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9640  * required bit in its capabilities.
9641  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9642  * the TWT required bit(1->0) in its capabilities.
9643  */
9644 enum qca_wlan_vendor_twt_status {
9645 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9646 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9647 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9648 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9649 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9650 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9651 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9652 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9653 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9654 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9655 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9656 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9657 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9658 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
9659 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9660 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9661 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9662 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
9663 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9664 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9665 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9666 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9667 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
9668 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9669 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
9670 };
9671 
9672 /**
9673  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
9674  * TWT (Target Wake Time) resume request. These attributes are sent as part of
9675  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
9676  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9677  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9678  *
9679  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
9680  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9681  * These attributes are used as the SP offset which is the offset from TSF after
9682  * which the wake happens. The units are in microseconds. Please note that
9683  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9684  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9685  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9686  * will be set to zero.
9687  *
9688  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9689  * This attribute represents the next TWT subfield size.
9690  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9691  * and 4 for 64 bits.
9692  *
9693  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9694  * Flow ID is the unique identifier for each TWT session. This attribute
9695  * represents the respective TWT session to resume.
9696  * Flow Id values from 0 to 254 represent a single TWT session
9697  * Flow ID value of 255 represents all TWT sessions.
9698  * If an invalid dialog id is provided, status
9699  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9700  *
9701  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9702  * Represents the MAC address of the peer to which TWT Resume is
9703  * being sent. This is used in AP mode to represent the respective
9704  * client and is a required parameter. In STA mode, this is an optional
9705  * parameter
9706  *
9707  */
9708 enum qca_wlan_vendor_attr_twt_resume {
9709 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9710 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9711 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
9712 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9713 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9714 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
9715 
9716 	/* keep last */
9717 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9718 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9719 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9720 };
9721 
9722 /**
9723  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9724  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9725  * and resume in a single request. These attributes are sent as part of
9726  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9727  *
9728  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9729  * Flow ID is the unique identifier for each TWT session. This attribute
9730  * represents the respective TWT session to suspend and resume.
9731  *
9732  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9733  * Flow ID is the unique identifier for each TWT session. This attribute
9734  * represents the respective TWT session to suspend and resume.
9735  * Flow Id values from 0 to 254 represent a single TWT session
9736  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9737  * and response.
9738  * If an invalid dialog id is provided, status
9739  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9740  *
9741  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9742  * This attribute is used as the SP offset which is the offset from
9743  * TSF after which the wake happens. The units are in microseconds.
9744  *
9745  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9746  * This attribute represents the next TWT subfield size.
9747  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9748  * and 4 for 64 bits.
9749  *
9750  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9751  * Represents the MAC address of the peer to which TWT Suspend and Resume is
9752  * being sent. This is used in AP mode to represent the respective
9753  * client and is a required parameter. In STA mode, this is an optional
9754  * parameter.
9755  *
9756  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9757  * This field contains absolute TSF value of the time at which twt
9758  * sesion will be resumed.
9759  */
9760 enum qca_wlan_vendor_attr_twt_nudge {
9761 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
9762 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
9763 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
9764 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
9765 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
9766 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
9767 
9768 	/* keep last */
9769 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
9770 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
9771 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
9772 };
9773 
9774 /**
9775  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
9776  * TWT (Target Wake Time) get statistics and clear statistics request.
9777  * These attributes are sent as part of
9778  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9779  *
9780  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
9781  * Flow ID is the unique identifier for each TWT session. This attribute
9782  * represents the respective TWT session for get and clear TWT statistics.
9783  * Flow Id values from 0 to 254 represent a single TWT session
9784  * Flow ID value of 255 represents all TWT sessions in
9785  * 1) TWT GET STATISTICS request and response
9786  * 2) TWT CLEAR STATISTICS request
9787  *
9788  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
9789  * Represents the MAC address of the peer for which TWT Statistics
9790  * is required.
9791  * In AP mode this is used to represent the respective
9792  * client and is a required parameter for
9793  * 1) TWT GET STATISTICS request and response
9794  * 2) TWT CLEAR STATISTICS request and response
9795  * In STA mode, this is an optional parameter.
9796  *
9797  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
9798  * This is the duration of the service period in microseconds.
9799  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9800  *
9801  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
9802  * Average of actual wake duration observed so far. Unit is microseconds.
9803  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9804  *
9805  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
9806  * Number of TWT service period elapsed so far.
9807  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9808  *
9809  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9810  * This is the minimum value of wake duration observed across
9811  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9812  * microseconds.
9813  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9814  *
9815  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
9816  * This is the maximum value of wake duration observed across
9817  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
9818  * microseconds.
9819  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9820  *
9821  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
9822  * Average number of MPDU's transmitted successfully across
9823  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9824  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9825  *
9826  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
9827  * Average number of MPDU's received successfully across
9828  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9829  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9830  *
9831  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
9832  * Average number of bytes transmitted successfully across
9833  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9834  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9835  *
9836  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
9837  * Average number of bytes received successfully across
9838  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
9839  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9840  *
9841  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
9842  * Status of the TWT GET STATISTICS request.
9843  * This contains status values in enum qca_wlan_vendor_twt_status
9844  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
9845  */
9846 enum qca_wlan_vendor_attr_twt_stats {
9847 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
9848 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
9849 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
9850 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
9851 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
9852 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
9853 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
9854 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
9855 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
9856 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
9857 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
9858 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
9859 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
9860 
9861 	/* keep last */
9862 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
9863 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
9864 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
9865 };
9866 
9867 /**
9868  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
9869  * supported by the device and peer.
9870  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
9871  *
9872  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
9873  * TWT non-scheduling STA. This capability is advertised in the HE
9874  * capability/Extended capabilities information element in the
9875  * Association request frame by the device.
9876  *
9877  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
9878  * by the TWT scheduling AP. This capability is advertised in the extended
9879  * capabilities/HE capabilities information element.
9880  *
9881  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
9882  * for the broadcast TWT functionality. On responder side, this	indicates
9883  * support for the role of broadcast TWT scheduling functionality. This
9884  * capability is advertised in the HE capabilities information element.
9885  *
9886  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
9887  * This capability is advertised in the HE capabilities information element.
9888  *
9889  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
9890  * that it mandates the associated HE STAs to support TWT. This capability is
9891  * advertised by AP in the HE Operation Parameters field of the HE operation
9892  * information element.
9893  */
9894 enum qca_wlan_twt_capa {
9895 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
9896 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
9897 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
9898 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
9899 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
9900 
9901 };
9902 
9903 /**
9904  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
9905  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
9906  * operation.
9907  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
9908  * Represents the MAC address of the peer for which the TWT capabilities
9909  * are being queried. This is used in AP mode to represent the respective
9910  * client. In STA mode, this is an optional parameter.
9911  *
9912  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
9913  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
9914  * enum qca_wlan_twt_capa.
9915  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
9916  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
9917  * enum qca_wlan_twt_capa.
9918  */
9919 enum qca_wlan_vendor_attr_twt_capability {
9920 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
9921 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
9922 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
9923 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
9924 
9925 	/* keep last */
9926 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
9927 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
9928 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
9929 };
9930 
9931 /**
9932  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
9933  * TWT (Target Wake Time) related parameters. It is used when
9934  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
9935  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9936  *
9937  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
9938  * This attribute configures AC parameters to be used for all TWT
9939  * sessions in AP mode.
9940  * Uses the enum qca_wlan_ac_type values.
9941  */
9942 enum qca_wlan_vendor_attr_twt_set_param {
9943 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
9944 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
9945 
9946 	/* keep last */
9947 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
9948 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
9949 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
9950 };
9951 
9952 /**
9953  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
9954  * the TWT responder
9955  *
9956  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
9957  * parameters that are different from TWT requesting STA suggested
9958  * or demanded TWT parameters
9959  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
9960  * parameters that are different from TWT requesting STA TWT suggested
9961  * or demanded parameters
9962  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
9963  * setup
9964  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
9965  * setup.
9966  */
9967 enum qca_wlan_vendor_twt_setup_resp_type {
9968 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
9969 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
9970 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
9971 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
9972 };
9973 
9974 /**
9975  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
9976  * Represents the setup type being requested for TWT.
9977  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
9978  * parameters but relying on AP to fill the parameters during the negotiation.
9979  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
9980  * values which the AP may accept or AP may provide alternative parameters
9981  * which the STA may accept.
9982  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
9983  * alternate parameters than the requested ones.
9984  */
9985 enum qca_wlan_vendor_twt_setup_req_type {
9986 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
9987 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
9988 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
9989 };
9990 
9991 /**
9992  * enum qca_wlan_throughput_level - Current throughput level
9993  *
9994  * Indicates the current level of throughput calculated by driver. The driver
9995  * may choose different thresholds to decide whether the throughput level is
9996  * low or medium or high based on variety of parameters like physical link
9997  * capacity of current connection, number of pakcets being dispatched per
9998  * second etc. The throughput level events might not be consistent with the
9999  * actual current throughput value being observed.
10000  *
10001  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10002  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10003  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10004  */
10005 enum qca_wlan_throughput_level {
10006 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10007 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10008 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10009 };
10010 
10011 /**
10012  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10013  * report throughput changes from driver to user space. enum values are used
10014  * for NL attributes sent with
10015  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10016  */
10017 enum qca_wlan_vendor_attr_throughput_change {
10018 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10019 	/*
10020 	 * Indicates the direction of throughput in which the change is being
10021 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10022 	 */
10023 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10024 
10025 	/*
10026 	 * Indicates the newly observed throughput level.
10027 	 * qca_wlan_throughput_level describes the possible range of values.
10028 	 * u8 attribute.
10029 	 */
10030 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10031 
10032 	/*
10033 	 * Indicates the driver's guidance on the new value to be set to
10034 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
10035 	 * may optionally include this attribute.
10036 	 */
10037 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10038 
10039 	/*
10040 	 * Indicates the driver's guidance on the new value to be set to
10041 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
10042 	 * values are from -31 to 31. Driver may optionally include this
10043 	 * attribute.
10044 	 */
10045 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10046 
10047 	/*
10048 	 * Indicates the driver's guidance on the new value to be set to
10049 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
10050 	 * optionally include this attribute.
10051 	 */
10052 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10053 
10054 	/* keep last */
10055 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10056 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10057 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10058 };
10059 
10060 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10061  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10062  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10063  */
10064 enum qca_wlan_nan_ext_subcmd_type {
10065 	/* Subcmd of type NAN Enable Request */
10066 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10067 	/* Subcmd of type NAN Disable Request */
10068 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10069 };
10070 
10071 /**
10072  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10073  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10074  */
10075 enum qca_wlan_vendor_attr_nan_params {
10076 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10077 	/* Carries NAN command for firmware component. Every vendor command
10078 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10079 	 * payload containing the NAN command. NLA_BINARY attribute.
10080 	 */
10081 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10082 	/* Indicates the type of NAN command sent with
10083 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10084 	 * describes the possible range of values. This attribute is mandatory
10085 	 * if the command being issued is either
10086 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10087 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10088 	 */
10089 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10090 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10091 	 * band. This attribute is mandatory when command type is
10092 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10093 	 */
10094 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10095 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10096 	 * band. This attribute is optional and should be included when command
10097 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10098 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10099 	 */
10100 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10101 
10102 	/* keep last */
10103 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10104 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10105 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10106 };
10107 
10108 /**
10109  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10110  * transport modes and is used by attribute
10111  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
10112  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10113  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
10114  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10115  * data. The data shall be encapsulated within
10116  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
10117  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10118  */
10119 enum qca_wlan_vendor_cfr_data_transport_modes {
10120 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10121 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10122 };
10123 
10124 /**
10125  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10126  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10127  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10128  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
10129  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
10130  * with phase
10131  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
10132  */
10133 enum qca_wlan_vendor_cfr_method {
10134 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10135 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10136 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10137 };
10138 
10139 /**
10140  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10141  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10142  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10143  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10144  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10145  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10146  * is provided by one or more of below attributes:
10147  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10148  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10149  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10150  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10151  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10152  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10153  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10154  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10155  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10156  */
10157 enum qca_wlan_vendor_cfr_capture_type {
10158 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10159 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10160 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10161 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10162 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10163 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10164 };
10165 
10166 /**
10167  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10168  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10169  * Channel Frequency Response capture parameters and enable periodic CFR
10170  * capture.
10171  *
10172  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10173  * MAC address of peer. This is for CFR version 1 only.
10174  *
10175  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10176  * Enable peer CFR Capture. This attribute is mandatory to
10177  * enable peer CFR capture. If this attribute is not present,
10178  * peer CFR capture is disabled.
10179  *
10180  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10181  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10182  * Supported values: 20, 40, 80, 80+80, 160.
10183  * Note that all targets may not support all bandwidths.
10184  * This attribute is mandatory for version 1 if attribute
10185  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10186  *
10187  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10188  * Periodicity of CFR measurement in msec.
10189  * Periodicity should be a multiple of Base timer.
10190  * Current Base timer value supported is 10 msecs (default).
10191  * 0 for one shot capture.
10192  * This attribute is mandatory for version 1 if attribute
10193  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10194  *
10195  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10196  * Method used to capture Channel Frequency Response.
10197  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10198  * This attribute is mandatory for version 1 if attribute
10199  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10200  *
10201  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10202  * Enable periodic CFR capture.
10203  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10204  * If this attribute is not present, periodic CFR capture is disabled.
10205  *
10206  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
10207  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10208  * can't be enabled at same time. This attribute is mandatory if target
10209  * support both versions and use one of them.
10210  *
10211  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10212  * This attribute is mandatory for version 2 if
10213  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10214  * Bits 15:0 Bit fields indicating which group to be enabled.
10215  * Bits 31:16 Reserved for future use.
10216  *
10217  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10218  * CFR capture duration in microsecond. This attribute is mandatory for
10219  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10220  *
10221  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10222  * CFR capture interval in microsecond. This attribute is mandatory for
10223  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10224  *
10225  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10226  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10227  * This attribute is mandatory for version 2.
10228  *
10229  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10230  * Bit fields indicating which user in the current UL MU
10231  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
10232  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
10233  * then the CFR capture will happen for user index 0 in the current
10234  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
10235  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
10236  * This is for CFR version 2 only.
10237  *
10238  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10239  * Indicates the number of consecutive Rx packets to be skipped
10240  * before CFR capture is enabled again.
10241  * This is for CFR version 2 only.
10242  *
10243  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10244  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10245  *
10246  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10247  * the following GROUP attributes:
10248  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10249  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10250  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10251  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10252  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10253  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10254  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10255  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10256  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10257  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10258  *
10259  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10260  * Target support multiple groups for some configurations. Group number could be
10261  * any value between 0 and 15. This is for CFR version 2 only.
10262  *
10263  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10264  * Transmitter address which is used to filter packets, this MAC address takes
10265  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
10266  * This is for CFR version 2 only.
10267  *
10268  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10269  * Receiver address which is used to filter packets, this MAC address takes
10270  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
10271  * This is for CFR version 2 only.
10272  *
10273  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10274  * Mask of transmitter address which is used to filter packets.
10275  * This is for CFR version 2 only.
10276  *
10277  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10278  * Mask of receiver address which is used to filter packets.
10279  * This is for CFR version 2 only.
10280  *
10281  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10282  * Indicates packets with a specific NSS will be filtered for CFR capture.
10283  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
10284  * be done for packets matching the NSS specified within this bitmask.
10285  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
10286  *     bit 0 : NSS 1
10287  *     bit 1 : NSS 2
10288  *     ...
10289  *     bit 7 : NSS 8
10290  *
10291  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10292  * Indicates packets with a specific BW will be filtered for CFR capture.
10293  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
10294  * will be done for packets matching the bandwidths specified within this
10295  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
10296  * numerated in enum nl80211_band (although not all bands may be supported
10297  * by a given device).
10298  *
10299  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10300  * Management packets matching the subtype filter categories will be
10301  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10302  * represents the corresponding mgmt subtype value as per
10303  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10304  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
10305  * This is for CFR version 2 only
10306  *
10307  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10308  * Control packets matching the subtype filter categories will be
10309  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10310  * represents the corresponding control subtype value as per
10311  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10312  * This is for CFR version 2 only.
10313  *
10314  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10315  * Data packets matching the subtype filter categories will be
10316  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10317  * represents the corresponding data subtype value as per
10318  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10319  * This is for CFR version 2 only.
10320  *
10321  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10322  * Userspace can use this attribute to specify the driver about which transport
10323  * mode shall be used by the driver to send CFR data to userspace. Uses values
10324  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10325  * not present, driver shall choose the default transport mechanism which is
10326  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10327  *
10328  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10329  * Userspace can use this attribute to specify the nl port id of the application
10330  * which receives the CFR data and processes it further so that the drivers can
10331  * unicast the NL events to a specific application. Optionally included when
10332  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10333  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10334  * shall multicast the netlink events when this attribute is not included.
10335  *
10336  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10337  * This attribute will be used by the driver to encapsulate and send CFR data
10338  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10339  * asynchronous event when the driver is configured to send CFR data using NL
10340  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
10341  *
10342  */
10343 enum qca_wlan_vendor_peer_cfr_capture_attr {
10344 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10345 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10346 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10347 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10348 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10349 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10350 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10351 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10352 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10353 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10354 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10355 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10356 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10357 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10358 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10359 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10360 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10361 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10362 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10363 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10364 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10365 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10366 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10367 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10368 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10369 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10370 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10371 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10372 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10373 
10374 	/* Keep last */
10375 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10376 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10377 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10378 };
10379 
10380 /**
10381  * enum qca_coex_config_profiles - This enum defines different types of
10382  * traffic streams that can be prioritized one over the other during coex
10383  * scenarios.
10384  * The types defined in this enum are categorized in the below manner.
10385  * 0 - 31 values corresponds to WLAN
10386  * 32 - 63 values corresponds to BT
10387  * 64 - 95 values corresponds to Zigbee
10388  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10389  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10390  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10391  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10392  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10393  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10394  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10395  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10396  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10397  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10398  * @QCA_BT_A2DP: Prioritize BT A2DP
10399  * @QCA_BT_BLE: Prioritize BT BLE
10400  * @QCA_BT_SCO: Prioritize BT SCO
10401  * @QCA_ZB_LOW: Prioritize Zigbee Low
10402  * @QCA_ZB_HIGH: Prioritize Zigbee High
10403  */
10404 enum qca_coex_config_profiles {
10405 	/* 0 - 31 corresponds to WLAN */
10406 	QCA_WIFI_STA_DISCOVERY = 0,
10407 	QCA_WIFI_STA_CONNECTION = 1,
10408 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10409 	QCA_WIFI_STA_DATA = 3,
10410 	QCA_WIFI_STA_ALL = 4,
10411 	QCA_WIFI_SAP_DISCOVERY = 5,
10412 	QCA_WIFI_SAP_CONNECTION = 6,
10413 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10414 	QCA_WIFI_SAP_DATA = 8,
10415 	QCA_WIFI_SAP_ALL = 9,
10416 	QCA_WIFI_CASE_MAX = 31,
10417 	/* 32 - 63 corresponds to BT */
10418 	QCA_BT_A2DP = 32,
10419 	QCA_BT_BLE = 33,
10420 	QCA_BT_SCO = 34,
10421 	QCA_BT_CASE_MAX = 63,
10422 	/* 64 - 95 corresponds to Zigbee */
10423 	QCA_ZB_LOW = 64,
10424 	QCA_ZB_HIGH = 65,
10425 	QCA_ZB_CASE_MAX = 95,
10426 	/* 0xff is default value if the u8 profile value is not set. */
10427 	QCA_PROFILE_DEFAULT_VALUE = 255
10428 };
10429 
10430 /**
10431  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10432  * This enum defines the valid set of values of coex configuration types. These
10433  * values may used by attribute
10434  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10435  *
10436  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10437  *	weights to default values.
10438  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10439  *	weights with configurability value.
10440  */
10441 enum qca_vendor_attr_coex_config_types {
10442 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10443 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10444 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
10445 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
10446 };
10447 
10448 /**
10449  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10450  * attributes
10451  * Attributes for data used by
10452  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10453  *
10454  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10455  * Indicate config type.
10456  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
10457  *
10458  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10459  *	Indicate the Priority 1 profiles.
10460  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10461  *	In same priority level, maximum to 4 profiles can be set here.
10462  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10463  *	Indicate the Priority 2 profiles.
10464  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10465  *	In same priority level, maximum to 4 profiles can be set here.
10466  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10467  *	Indicate the Priority 3 profiles.
10468  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10469  *	In same priority level, maximum to 4 profiles can be set here.
10470  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10471  *	Indicate the Priority 4 profiles.
10472  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10473  *	In same priority level, maximum to 4 profiles can be set here.
10474  * NOTE:
10475  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10476  * arrangement:
10477  *	1: In the same u32 attribute(priority x), the profiles enum values own
10478  *	same priority level.
10479  *	2: 0xff is default value if the u8 profile value is not set.
10480  *	3: max to 4 rules/profiles in same priority level.
10481  *	4: max to 4 priority level (priority 1 - priority 4)
10482  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
10483  *	hybrid rules not support.
10484  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10485  *	remain blank to reset all parameters.
10486  * For example:
10487  *
10488  *	If the attributes as follow:
10489  *	priority 1:
10490  *	------------------------------------
10491  *	|  0xff  |    0   |   1   |    2   |
10492  *	------------------------------------
10493  *	priority 2:
10494  *	-------------------------------------
10495  *	|  0xff  |  0xff  |  0xff  |   32   |
10496  *	-------------------------------------
10497  *	priority 3:
10498  *	-------------------------------------
10499  *	|  0xff  |  0xff  |  0xff  |   65   |
10500  *	-------------------------------------
10501  *	then it means:
10502  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10503  *		owns same priority level.
10504  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10505  *		has priority over BT_A2DP and ZB_HIGH.
10506  *	3: BT_A2DP has priority over ZB_HIGH.
10507  */
10508 
10509 enum qca_vendor_attr_coex_config_three_way {
10510 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10511 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10512 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10513 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10514 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10515 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10516 
10517 	/* Keep last */
10518 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10519 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10520 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10521 };
10522 
10523 /**
10524  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10525  * This enum defines the valid set of values of peer stats cache types. These
10526  * values are used by attribute
10527  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
10528  *
10529  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
10530  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
10531  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
10532  * statistics
10533  */
10534 enum qca_vendor_attr_peer_stats_cache_type {
10535 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10536 
10537 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10538 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10539 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10540 };
10541 
10542 /**
10543  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10544  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10545  * Attributes are required to flush peer rate statistics from driver to
10546  * user application.
10547  *
10548  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10549  * Indicate peer stats cache type.
10550  * The statistics types are 32-bit values from
10551  * qca_vendor_attr_peer_stats_cache_type
10552  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10553  * of size 6, representing peer mac address.
10554  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10555  * containing buffer of statistics to send event to application layer entity.
10556  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10557  * representing cookie for peer unique session.
10558  */
10559 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10560 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10561 
10562 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10563 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10564 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10565 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10566 
10567 	/* Keep last */
10568 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10569 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10570 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10571 };
10572 
10573 /**
10574  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
10575  * this enum defines all the possible state of zigbee, which can be
10576  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
10577  *
10578  * @ZIGBEE_IDLE: zigbee in idle state
10579  * @ZIGBEE_FORM_NETWORK: zibee forming network
10580  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
10581  * @ZIGBEE_JOIN: zigbee joining network
10582  * @ZIGBEE_NETWORK_UP: zigbee network is up
10583  * @ZIGBEE_HMI: zigbee in HMI mode
10584  */
10585 enum qca_mpta_helper_attr_zigbee_state {
10586 	ZIGBEE_IDLE = 0,
10587 	ZIGBEE_FORM_NETWORK = 1,
10588 	ZIGBEE_WAIT_JOIN = 2,
10589 	ZIGBEE_JOIN = 3,
10590 	ZIGBEE_NETWORK_UP = 4,
10591 	ZIGBEE_HMI = 5,
10592 };
10593 
10594 /**
10595  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
10596  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10597  */
10598 enum qca_mpta_helper_vendor_attr {
10599 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10600 	/* Optional attribute used to update zigbee state.
10601 	 * enum qca_mpta_helper_attr_zigbee_state.
10602 	 * NLA_U32 attribute.
10603 	 */
10604 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10605 	/* Optional attribute used to configure wlan duration for Shape-OCS
10606 	 * during interrupt.
10607 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10608 	 * Value range 0 ~ 300 (ms).
10609 	 * NLA_U32 attribute.
10610 	 */
10611 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10612 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10613 	 * during interrupt.
10614 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10615 	 * Value range 0 ~ 300 (ms).
10616 	 * NLA_U32 attribute.
10617 	 */
10618 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10619 	/* Optional attribute used to configure wlan duration for Shape-OCS
10620 	 * monitor period.
10621 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10622 	 * Value range 0 ~ 300 (ms)
10623 	 * NLA_U32 attribute
10624 	 */
10625 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10626 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10627 	 * monitor period.
10628 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10629 	 * Value range 0 ~ 300 (ms)
10630 	 * NLA_U32 attribute
10631 	 */
10632 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10633 	/* Optional attribute used to configure ocs interrupt duration.
10634 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10635 	 * Value range 1000 ~ 20000 (ms)
10636 	 * NLA_U32 attribute
10637 	 */
10638 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10639 	/* Optional attribute used to configure ocs monitor duration.
10640 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10641 	 * Value range 1000 ~ 20000 (ms)
10642 	 * NLA_U32 attribute
10643 	 */
10644 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10645 	/* Optional attribute used to notify wlan FW current zigbee channel.
10646 	 * Value range 11 ~ 26
10647 	 * NLA_U32 attribute
10648 	 */
10649 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10650 	/* Optional attribute used to configure wlan mute duration.
10651 	 * Value range 0 ~ 400 (ms)
10652 	 * NLA_U32 attribute
10653 	 */
10654 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10655 
10656 	/* keep last */
10657 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10658 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10659 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10660 };
10661 
10662 /**
10663  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10664  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
10665  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10666  *
10667  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10668  * to request the driver to start reporting Beacon frames.
10669  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
10670  * to request the driver to stop reporting Beacon frames.
10671  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10672  * userspace to report received Beacon frames.
10673  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10674  * to indicate that the driver is going to pause reporting Beacon frames.
10675  */
10676 enum qca_wlan_vendor_beacon_reporting_op_types {
10677 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10678 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10679 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10680 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10681 };
10682 
10683 /**
10684  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
10685  * types of reasons for which the driver is pausing reporting Beacon frames.
10686  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10687  *
10688  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10689  * reasons.
10690  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10691  * driver/firmware is starting a scan.
10692  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10693  * driver/firmware disconnects from the ESS and indicates the disconnection to
10694  * userspace (non-seamless roaming case). This reason code will be used by the
10695  * driver/firmware to indicate stopping of beacon report events. Userspace
10696  * will need to start beacon reporting again (if desired) by sending vendor
10697  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10698  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10699  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10700  * completed.
10701  */
10702 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10703 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10704 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10705 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10706 };
10707 
10708 /*
10709  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10710  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10711  */
10712 enum qca_wlan_vendor_attr_beacon_reporting_params {
10713 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10714 	/* Specifies the type of operation that the vendor command/event is
10715 	 * intended for. Possible values for this attribute are defined in
10716 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10717 	 */
10718 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10719 	/* Optionally set by userspace to request the driver to report Beacon
10720 	 * frames using asynchronous vendor events when the
10721 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10722 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10723 	 * If this flag is not set, the driver will only update Beacon frames
10724 	 * in cfg80211 scan cache but not send any vendor events.
10725 	 */
10726 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10727 	/* Optionally used by userspace to request the driver/firmware to
10728 	 * report Beacon frames periodically when the
10729 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10730 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10731 	 * u32 attribute, indicates the period of Beacon frames to be reported
10732 	 * and in the units of beacon interval.
10733 	 * If this attribute is missing in the command, then the default value
10734 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10735 	 * Zero is an invalid value.
10736 	 * If a valid value is received for this attribute, the driver will
10737 	 * update the cfg80211 scan cache periodically as per the value
10738 	 * received in this attribute in addition to updating the cfg80211 scan
10739 	 * cache when there is significant change in Beacon frame IEs.
10740 	 */
10741 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10742 	/* Used by the driver to encapsulate the SSID when the
10743 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10744 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10745 	 * u8 array with a maximum size of 32.
10746 	 *
10747 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10748 	 * will be taken from the SSID element of the received Beacon frame.
10749 	 *
10750 	 * When generating beacon report from Multiple BSSID Beacon frame and
10751 	 * if the BSSID of the current connected BSS matches the BSSID of the
10752 	 * transmitting BSS, the SSID will be taken from the SSID element of
10753 	 * the received Beacon frame.
10754 	 *
10755 	 * When generating beacon report from Multiple BSSID Beacon frame and
10756 	 * if the BSSID of the current connected BSS matches the BSSID of one
10757 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
10758 	 * field included in the nontransmitted BSS profile whose derived BSSI
10759 	 * is same as the BSSID of the current connected BSS. When there is no
10760 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
10761 	 * of current connected* BSS, this attribute will not be present.
10762 	 */
10763 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
10764 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
10765 	 * is currently connected to when the
10766 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10767 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
10768 	 * fixed size of 6 bytes.
10769 	 *
10770 	 * When generating beacon report from a Multiple BSSID beacon and the
10771 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
10772 	 * a Multiple BSSID set, this BSSID will be that particular
10773 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
10774 	 * transmitting address of the Beacon frame).
10775 	 */
10776 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
10777 	/* Used by the driver to encapsulate the frequency in MHz on which
10778 	 * the Beacon frame was received when the
10779 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
10780 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10781 	 * u32 attribute.
10782 	 */
10783 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
10784 	/* Used by the driver to encapsulate the Beacon interval
10785 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10786 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10787 	 * u16 attribute. The value will be copied from the Beacon frame and
10788 	 * the units are TUs.
10789 	 */
10790 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
10791 	/* Used by the driver to encapsulate the Timestamp field from the
10792 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
10793 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10794 	 * u64 attribute.
10795 	 */
10796 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
10797 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
10798 	 * Beacon frame is received in the driver when the
10799 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10800 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
10801 	 * the units of nanoseconds. This value is expected to have accuracy of
10802 	 * about 10 ms.
10803 	 */
10804 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
10805 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
10806 	 * which this event is generated when the
10807 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10808 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
10809 	 */
10810 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
10811 	/* Used by the driver to specify the reason for the driver/firmware to
10812 	 * pause sending beacons to userspace when the
10813 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10814 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
10815 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
10816 	 * attribute.
10817 	 */
10818 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
10819 	/* Used by the driver to specify whether the driver will automatically
10820 	 * resume reporting beacon events to userspace later (for example after
10821 	 * the ongoing off-channel activity is completed etc.) when the
10822 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10823 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
10824 	 */
10825 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
10826 	/* Optionally set by userspace to request the driver not to resume
10827 	 * beacon reporting after a pause is completed, when the
10828 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10829 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10830 	 * If this flag is set, the driver will not resume beacon reporting
10831 	 * after any pause in beacon reporting is completed. Userspace has to
10832 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
10833 	 * to initiate beacon reporting again. If this flag is set in the recent
10834 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
10835 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
10836 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
10837 	 * set by the driver. Setting this flag until and unless there is a
10838 	 * specific need is not recommended as there is a chance of some beacons
10839 	 * received after pause command and next start command being not
10840 	 * reported.
10841 	 */
10842 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
10843 
10844 	/* Keep last */
10845 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
10846 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
10847 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
10848 };
10849 
10850 /**
10851  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
10852  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
10853  *
10854  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
10855  * a virtual device.
10856  *
10857  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
10858  * a physical device.
10859  */
10860 enum qca_vendor_oem_device_type {
10861 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
10862 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
10863 };
10864 
10865 /*
10866  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
10867  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
10868  *
10869  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
10870  * used to set/query the data to/from the firmware. On query, the same
10871  * attribute is used to carry the respective data in the reply sent by the
10872  * driver to userspace. The request to set/query the data and the format of the
10873  * respective data from the firmware are embedded in the attribute. The
10874  * maximum size of the attribute payload is 1024 bytes.
10875  *
10876  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
10877  * based on this field. This optional attribute is included to specify whether
10878  * the device type is a virtual device or a physical device for the command.
10879  * This attribute can be omitted for a virtual device (default) command.
10880  * This u8 attribute is used to carry information for the device type using
10881  * values defined by enum qca_vendor_oem_device_type.
10882  *
10883  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
10884  * attribute when the data is queried from the firmware.
10885  *
10886  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
10887  * is set when the userspace queries data from the firmware. This attribute
10888  * should not be set when userspace sets the OEM data to the firmware.
10889  */
10890 enum qca_wlan_vendor_attr_oem_data_params {
10891 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
10892 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
10893 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
10894 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
10895 
10896 	/* keep last */
10897 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
10898 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
10899 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
10900 };
10901 
10902 /**
10903  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
10904  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
10905  *
10906  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
10907  * Nested attribute containing multiple ranges with following attributes:
10908  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
10909  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
10910  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
10911  *
10912  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
10913  * Starting center frequency in MHz.
10914  *
10915  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
10916  * Ending center frequency in MHz.
10917  *
10918  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
10919  * s32 attribute, optional. It is a per frequency range attribute.
10920  * The maximum TX power limit from user space is to be applied on an
10921  * unrestricted interface for corresponding frequency range. It is also
10922  * possible that the actual TX power may be even lower than this cap due to
10923  * other considerations such as regulatory compliance, SAR, etc. In absence of
10924  * this attribute the driver shall follow current behavior which means
10925  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
10926  * power derived by the driver based on regulatory/SAR during interface up.
10927  *
10928  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
10929  * u32 attribute, optional. Indicates all the interface types which are
10930  * restricted for all frequency ranges provided in
10931  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
10932  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
10933  * This attribute encapsulates bitmasks of interface types defined in
10934  * enum nl80211_iftype. If an interface is marked as restricted the driver must
10935  * move to a safe channel and if no safe channel is available the driver shall
10936  * terminate that interface functionality. In absence of this attribute,
10937  * interface (SAP/P2P) can still continue operating on an unsafe channel with
10938  * TX power limit derived from either
10939  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
10940  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
10941  * is not provided.
10942  */
10943 enum qca_wlan_vendor_attr_avoid_frequency_ext {
10944 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
10945 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
10946 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
10947 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
10948 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
10949 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
10950 
10951 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
10952 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
10953 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
10954 };
10955 
10956 /*
10957  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
10958  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
10959  */
10960 enum qca_wlan_vendor_attr_add_sta_node_params {
10961 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
10962 	/* 6 byte MAC address of STA */
10963 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
10964 	/* Authentication algorithm used by the station of size u16;
10965 	 * defined in enum nl80211_auth_type.
10966 	 */
10967 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
10968 
10969 	/* keep last */
10970 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
10971 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
10972 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
10973 };
10974 
10975 /**
10976  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
10977  * This enum defines the valid set of values of BT coex chain mode.
10978  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
10979  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
10980  *
10981  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
10982  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
10983  * separated, hybrid mode.
10984  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
10985  * separated, fixed FDD mode.
10986  */
10987 enum qca_btc_chain_mode {
10988 	QCA_BTC_CHAIN_SHARED = 0,
10989 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
10990 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
10991 };
10992 
10993 /* deprecated legacy name */
10994 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
10995 
10996 /**
10997  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
10998  * chain mode.
10999  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11000  *
11001  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11002  * Indicates the BT coex chain mode, are 32-bit values from
11003  * enum qca_btc_chain_mode. This attribute is mandatory.
11004  *
11005  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11006  * If set, vdev should be restarted when BT coex chain mode is updated.
11007  * This attribute is optional.
11008  */
11009 enum qca_vendor_attr_btc_chain_mode {
11010 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11011 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11012 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11013 
11014 	/* Keep last */
11015 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11016 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11017 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11018 };
11019 
11020 /**
11021  * enum qca_vendor_wlan_sta_flags - Station feature flags
11022  * Bits will be set to 1 if the corresponding features are enabled.
11023  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11024  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11025     for the station
11026  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11027     for the station
11028  */
11029 enum qca_vendor_wlan_sta_flags {
11030 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11031 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11032 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11033 };
11034 
11035 /**
11036  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11037  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11038  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11039  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11040  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11041  */
11042 enum qca_vendor_wlan_sta_guard_interval {
11043 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11044 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11045 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11046 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11047 };
11048 
11049 /**
11050  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11051  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11052  *
11053  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11054  * Required attribute in request for AP mode only, 6-byte MAC address,
11055  * corresponding to the station's MAC address for which information is
11056  * requested. For STA mode this is not required as the info always correspond
11057  * to the self STA and the current/last association.
11058  *
11059  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11060  * Optionally used in response, u32 attribute, contains a bitmap of different
11061  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11062  *
11063  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11064  * Optionally used in response, u32 attribute, possible values are defined in
11065  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11066  * Guard interval used by the station.
11067  *
11068  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11069  * Optionally used in response, u32 attribute, used in AP mode only.
11070  * Value indicates the number of data frames received from station with retry
11071  * bit set to 1 in FC.
11072  *
11073  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11074  * Optionally used in response, u32 attribute, used in AP mode only.
11075  * Counter for number of data frames with broadcast or multicast address in
11076  * the destination address received from the station.
11077  *
11078  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11079  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11080  * Value indicates the number of data frames successfully transmitted only
11081  * after retrying the packets and for which the TX status has been updated
11082  * back to host from target.
11083  *
11084  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11085  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11086  * Value indicates the number of data frames not transmitted successfully even
11087  * after retrying the packets for the number of times equal to the total number
11088  * of retries allowed for that packet and for which the TX status has been
11089  * updated back to host from target.
11090  *
11091  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11092  * Optionally used in response, u32 attribute, used in AP mode only.
11093  * Counter in the target for the number of data frames successfully transmitted
11094  * to the station.
11095  *
11096  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11097  * Optionally used in response, u32 attribute, used in AP mode only.
11098  * Value indicates the number of data frames successfully transmitted only
11099  * after retrying the packets.
11100  *
11101  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11102  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11103  * Value indicates the number of data frames not transmitted successfully even
11104  * after retrying the packets for the number of times equal to the total number
11105  * of retries allowed for that packet.
11106  *
11107  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11108  * the STA mode only. Represent the number of probe requests sent by the STA
11109  * while attempting to roam on missing certain number of beacons from the
11110  * connected AP. If queried in the disconnected state, this represents the
11111  * count for the last connected state.
11112  *
11113  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11114  * the STA mode. Represent the number of probe responses received by the station
11115  * while attempting to roam on missing certain number of beacons from the
11116  * connected AP. When queried in the disconnected state, this represents the
11117  * count when in last connected state.
11118  *
11119  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11120  * STA mode only. Represents the total number of frames sent out by STA
11121  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11122  * only for the connect session. Represents the count of last connected session,
11123  * when queried in the disconnected state.
11124  *
11125  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11126  * Total number of RTS sent out by the STA. This data is maintained per connect
11127  * session. Represents the count of last connected session, when queried in the
11128  * disconnected state.
11129  *
11130  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11131  * STA mode.Represent the number of RTS transmission failure that reach retry
11132  * limit. This data is maintained per connect session. Represents the count of
11133  * last connected session, when queried in the disconnected state.
11134  *
11135  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11136  * the STA mode. Represent the total number of non aggregated frames transmitted
11137  * by the STA. This data is maintained per connect session. Represents the count
11138  * of last connected session, when queried in the disconnected state.
11139  *
11140  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11141  * STA mode. Represent the total number of aggregated frames transmitted by the
11142  * STA. This data is maintained per connect session. Represents the count of
11143  * last connected session, when queried in the disconnected state.
11144  *
11145  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11146  * the STA mode. Represents the number of received frames with a good PLCP. This
11147  * data is maintained per connect session. Represents the count of last
11148  * connected session, when queried in the disconnected state.
11149  *
11150  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11151  * used in the STA mode. Represents the number of occasions that no valid
11152  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11153  * session. Represents the count of last connected session, when queried in the
11154  * disconnected state.
11155  *
11156  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11157  * STA mode. Represents the number of frames for which CRC check failed in the
11158  * MAC. This data is maintained per connect session. Represents the count of
11159  * last connected session, when queried in the disconnected state.
11160  *
11161  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11162  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11163  * data is maintained per connect session. Represents the count of last
11164  * connected session, when queried in the disconnected state.
11165  *
11166  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11167  * mode. Represents the number of received Block Acks. This data is maintained
11168  * per connect session. Represents the count of last connected session, when
11169  * queried in the disconnected state.
11170  *
11171  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11172  * mode. Represents the number of beacons received from the connected BSS. This
11173  * data is maintained per connect session. Represents the count of last
11174  * connected session, when queried in the disconnected state.
11175  *
11176  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11177  * STA mode. Represents the number of beacons received by the other BSS when in
11178  * connected state (through the probes done by the STA). This data is maintained
11179  * per connect session. Represents the count of last connected session, when
11180  * queried in the disconnected state.
11181  *
11182  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11183  * the STA mode. Represents the number of received DATA frames with good FCS and
11184  * matching Receiver Address when in connected state. This data is maintained
11185  * per connect session. Represents the count of last connected session, when
11186  * queried in the disconnected state.
11187  *
11188  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11189  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11190  * when in the connected state. This data is maintained per connect session.
11191  * Represents the count of last connected session, when queried in the
11192  * disconnected state.
11193  *
11194  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11195  * STA mode. This represents the target power in dBm for the transmissions done
11196  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11197  * connect session. Represents the count of last connected session, when
11198  * queried in the disconnected state.
11199  *
11200  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11201  * STA mode. This represents the Target power in dBm for transmissions done to
11202  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11203  * session. Represents the count of last connected session, when queried in the
11204  * disconnected state.
11205  *
11206  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11207  * STA mode. This represents the Target power in dBm for transmissions done to
11208  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11209  * Represents the count of last connected session, when queried in the
11210  * disconnected state.
11211  *
11212  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11213  * STA mode. This represents the Target power in dBm for transmissions done to
11214  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11215  * session. Represents the count of last connected session, when queried in
11216  * the disconnected state.
11217  *
11218  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11219  * STA mode. This represents the Target power in dBm for for transmissions done
11220  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11221  * Represents the count of last connected session, when queried in the
11222  * disconnected state.
11223  *
11224  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11225  * in the STA mode. This represents the Nested attribute representing the
11226  * overflow counts of each receive buffer allocated to the hardware during the
11227  * STA's connection. The number of hw buffers might vary for each WLAN
11228  * solution and hence this attribute represents the nested array of all such
11229  * HW buffer count. This data is maintained per connect session. Represents
11230  * the count of last connected session, when queried in the disconnected state.
11231  *
11232  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11233  * allowed as per the regulatory requirements for the current or last connected
11234  * session. Used in the STA mode.
11235  *
11236  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11237  * (dBm) used by the station in its latest unicast frame while communicating
11238  * to the AP in the connected state. When queried in the disconnected state,
11239  * this represents the TX power used by the STA with last AP communication
11240  * when in connected state.
11241  *
11242  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11243  * level used to adjust the RX sensitivity. Represents the current ANI level
11244  * when queried in the connected state. When queried in the disconnected
11245  * state, this corresponds to the latest ANI level at the instance of
11246  * disconnection.
11247  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11248  * only. This represents the number of group addressed robust management frames
11249  * received from this station with an invalid MIC or a missing MME when PMF is
11250  * enabled.
11251  *
11252  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11253  * only. This represents the number of group addressed robust management frames
11254  * received from this station with the packet number less than or equal to the
11255  * last received packet number when PMF is enabled.
11256  *
11257  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11258  * mode only. This represents the number of Beacon frames received from this
11259  * station with an invalid MIC or a missing MME when beacon protection is
11260  * enabled.
11261  *
11262  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11263  * only. This represents number of Beacon frames received from this station with
11264  * the packet number less than or equal to the last received packet number when
11265  * beacon protection is enabled.
11266  *
11267  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11268  * STA mode only. Driver uses this attribute to populate the connection failure
11269  * reason codes and the values are defined in
11270  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11271  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11272  * connection failure from driver. The driver shall not include this attribute
11273  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
11274  * connection failure observed in the last attempted connection.
11275  *
11276  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11277  * used by the station in its last TX frame while communicating to the AP in the
11278  * connected state. When queried in the disconnected state, this represents the
11279  * rate used by the STA in the last TX frame to the AP when it was connected.
11280  * This attribute is used for STA mode only.
11281  *
11282  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11283  * This represents the rate index used by the STA for the last TX frame to the
11284  * AP. When queried in the disconnected state, this gives the last RIX used by
11285  * the STA in the last TX frame to the AP when it was connected.
11286  *
11287  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11288  * mode only. This represents the number of times the STA TSF goes out of sync
11289  * from the AP after the connection. If queried in the disconnected state, this
11290  * gives the count of TSF out of sync for the last connection.
11291  *
11292  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11293  * mode only. This represents the roam trigger reason for the last roaming
11294  * attempted by the firmware. This can be queried either in connected state or
11295  * disconnected state. Each bit of this attribute represents the different
11296  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11297  *
11298  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11299  * only. This represents the roam fail reason for the last failed roaming
11300  * attempt by the firmware. Different roam failure reason codes are specified
11301  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11302  * connected state or disconnected state.
11303  *
11304  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11305  * STA mode only. This represents the roam invoke fail reason for the last
11306  * failed roam invoke. Different roam invoke failure reason codes
11307  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11308  * queried either in connected state or disconnected state.
11309  *
11310  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11311  * This represents the average congestion duration of uplink frames in MAC
11312  * queue in unit of ms. This can be queried either in connected state or
11313  * disconnected state.
11314  *
11315  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
11316  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11317  * rate value of TX packets. Every index of this nested attribute corresponds
11318  * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
11319  * queried in connected state.
11320  *
11321  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
11322  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11323  * rate value of RX packets. Every index of this nested attribute corresponds
11324  * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
11325  * queried in connected state.
11326  */
11327 enum qca_wlan_vendor_attr_get_sta_info {
11328 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11329 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11330 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11331 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11332 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11333 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11334 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11335 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11336 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11337 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11338 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
11339 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11340 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11341 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11342 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11343 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11344 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11345 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11346 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11347 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11348 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11349 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11350 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11351 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11352 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11353 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11354 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11355 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11356 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11357 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11358 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11359 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11360 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11361 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11362 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11363 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11364 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11365 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11366 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11367 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11368 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
11369 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11370 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11371 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11372 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11373 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11374 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
11375 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
11376 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11377 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
11378 
11379 	/* keep last */
11380 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11381 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11382 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11383 };
11384 
11385 /**
11386  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11387  * Used when the driver triggers the STA to disconnect from the AP.
11388  *
11389  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11390  * disconnection with the AP due to unspecified reasons.
11391  *
11392  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11393  * disconnection with the AP due to a roaming failure. This roaming is triggered
11394  * internally (host driver/firmware).
11395  *
11396  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11397  * the AP when the user/external triggered roaming fails.
11398  *
11399  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11400  * by the host driver whenever gateway reachability failure is detected and the
11401  * driver disconnects with AP.
11402  *
11403  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11404  * the AP on a channel switch announcement from it with an unsupported channel.
11405  *
11406  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11407  * with indoor channels disabled and if the STA is connected on one of these
11408  * disabled channels, the host driver disconnected the STA with this reason
11409  * code.
11410  *
11411  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11412  * explicit request from the user to disable the current operating channel.
11413  *
11414  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11415  * the internal host driver/firmware recovery.
11416  *
11417  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11418  * a timeout for the key installations from the user space.
11419  *
11420  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11421  * STA on a band change request from the user space to a different band from the
11422  * current operation channel/band.
11423  *
11424  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11425  * interface down trigger from the user space.
11426  *
11427  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11428  * STA on getting continuous transmission failures for multiple Data frames.
11429  *
11430  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11431  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11432  * represents inactivity from AP on such transmissions.
11433 
11434  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11435  * disconnection when SA Query times out (AP does not respond to SA Query).
11436  *
11437  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11438  * STA on missing the beacons continuously from the AP.
11439  *
11440  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11441  * able to move to the channel mentioned by the AP in CSA.
11442  *
11443  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11444  */
11445 enum qca_disconnect_reason_codes {
11446 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11447 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11448 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11449 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11450 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11451 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11452 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11453 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11454 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11455 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11456 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11457 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11458 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11459 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11460 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11461 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11462 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11463 };
11464 
11465 /**
11466  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11467  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11468  *
11469  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11470  * This attribute represents the driver specific reason codes (local
11471  * driver/firmware initiated reasons for disconnection) defined
11472  * in enum qca_disconnect_reason_codes.
11473  */
11474 enum qca_wlan_vendor_attr_driver_disconnect_reason {
11475 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11476 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11477 
11478 	/* keep last */
11479 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11480 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11481 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11482 };
11483 
11484 /**
11485  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11486  *
11487  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11488  */
11489 enum qca_wlan_tspec_operation {
11490 	QCA_WLAN_TSPEC_ADD = 0,
11491 	QCA_WLAN_TSPEC_DEL = 1,
11492 	QCA_WLAN_TSPEC_GET = 2,
11493 };
11494 
11495 /**
11496  * enum qca_wlan_tspec_direction - Direction in TSPEC
11497  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11498  *
11499  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11500  */
11501 enum qca_wlan_tspec_direction {
11502 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11503 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11504 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11505 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11506 };
11507 
11508 /**
11509  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
11510  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11511  *
11512  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11513  */
11514 enum qca_wlan_tspec_ack_policy {
11515 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11516 	QCA_WLAN_TSPEC_NO_ACK = 1,
11517 	/* Reserved */
11518 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11519 };
11520 
11521 /**
11522  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11523  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11524  *
11525  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11526  * u8 attribute. Specify the TSPEC operation of this request. Possible values
11527  * are defined in enum qca_wlan_tspec_operation.
11528  * Mandatory attribute for all kinds of config TSPEC requests.
11529  *
11530  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11531  * u8 attribute. TS ID. Possible values are 0-7.
11532  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11533  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11534  *
11535  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11536  * u8 attribute. Direction of data carried by the TS. Possible values are
11537  * defined in enum qca_wlan_tspec_direction.
11538  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11539  *
11540  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11541  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11542  * with the TS. set - enabled, not set - disabled.
11543  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11544  *
11545  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11546  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
11547  * belonging to this TS. Possible values are 0-7.
11548  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11549  *
11550  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11551  * u8 attribute. Indicate whether MAC acknowledgements are required for
11552  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11553  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11554  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11555  *
11556  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11557  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11558  * belonging to this TS.
11559  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11560  *
11561  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11562  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11563  * belonging to this TS.
11564  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11565  *
11566  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11567  * u32 attribute. Specify the minimum interval in microseconds between the
11568  * start of two successive SPs.
11569  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11570  *
11571  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11572  * u32 attribute. Specify the maximum interval in microseconds between the
11573  * start of two successive SPs.
11574  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11575  *
11576  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11577  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11578  * without arrival or transfer of an MPDU belonging to the TS before this TS
11579  * is deleted by the MAC entity at the HC.
11580  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11581  *
11582  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11583  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11584  * without arrival or transfer of an MSDU belonging to the TS before the
11585  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11586  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11587  * interval is always less than or equal to the inactivity interval.
11588  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11589  *
11590  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11591  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11592  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11593  * bounds of this TSPEC.
11594  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11595  *
11596  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11597  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11598  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11599  * bounds of this TSPEC.
11600  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11601  *
11602  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11603  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11604  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11605  * the bounds of this TSPEC.
11606  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11607  *
11608  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11609  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11610  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11611  * value of 0 indicates that there are no bursts.
11612  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11613  *
11614  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11615  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11616  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11617  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11618  *
11619  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11620  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11621  * and above the stated application rates required to transport an MSDU/A-MSDU
11622  * belonging to the TS in this TSPEC.
11623  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11624  */
11625 enum qca_wlan_vendor_attr_config_tspec {
11626 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11627 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11628 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11629 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11630 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11631 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11632 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11633 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11634 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11635 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11636 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11637 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11638 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11639 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11640 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11641 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11642 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11643 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11644 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11645 
11646 	/* keep last */
11647 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11648 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11649 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11650 };
11651 
11652 /**
11653  * enum qca_wlan_medium_assess_type - Type of medium assess request
11654  *
11655  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11656  */
11657 enum qca_wlan_medium_assess_type {
11658 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11659 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11660 };
11661 
11662 /**
11663  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11664  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11665  *
11666  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11667  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11668  * Specify the type of medium assess request and indicate its type in response.
11669  * Possible values are defined in enum qca_wlan_medium_assess_type.
11670  *
11671  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11672  * u32 attribute. Mandatory in CCA request.
11673  * Specify the assessment period in terms of seconds. Assessment result will be
11674  * sent as the response to the CCA request after the assessment period.
11675  *
11676  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11677  * u32 attribute. Mandatory in response to CCA request.
11678  * Total timer tick count of the assessment cycle.
11679  *
11680  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11681  * u32 attribute. Mandatory in response to CCA request.
11682  * Timer tick count of idle time in the assessment cycle.
11683  *
11684  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11685  * u32 attribute. Mandatory in response to CCA request.
11686  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11687  *
11688  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11689  * u32 attribute. Mandatory in response to CCA request.
11690  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11691  *
11692  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11693  * s32 attribute. Mandatory in response to CCA request.
11694  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11695  *
11696  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11697  * s32 attribute. Mandatory in response to CCA request.
11698  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11699  *
11700  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11701  * u8 attribute. Mandatory in congestion report request.
11702  * 1-enable 0-disable.
11703  *
11704  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11705  * u8 attribute. Mandatory in congestion report enable request and will be
11706  * ignored if present in congestion report disable request. Possible values are
11707  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11708  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11709  * congestion percentage reaches the configured threshold.
11710  *
11711  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11712  * u8 attribute. Optional in congestion report enable request and will be
11713  * ignored if present in congestion report disable request.
11714  * Specify the interval of congestion report event in terms of seconds. Possible
11715  * values are 1-255. Default value 1 will be used if this attribute is omitted
11716  * or using invalid values.
11717  *
11718  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11719  * u8 attribute. Mandatory in congestion report event.
11720  * Indicate the actual congestion percentage. Possible values are 0-100.
11721  */
11722 enum qca_wlan_vendor_attr_medium_assess {
11723 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11724 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11725 
11726 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11727 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11728 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11729 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11730 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11731 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11732 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11733 
11734 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11735 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11736 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11737 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11738 
11739 	/* keep last */
11740 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11741 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11742 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11743 };
11744 
11745 /**
11746  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11747  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11748  *
11749  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11750  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11751  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11752  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
11753  *
11754  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
11755  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
11756  *
11757  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
11758  * u8 attribute, required. indicates group id of Tx VDEV
11759  *
11760  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
11761  * Nested attribute. This attribute shall be used by the driver to send
11762  * group information. The attributes defined in enum
11763  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
11764  * are nested in this attribute.
11765  */
11766 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
11767 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
11768 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
11769 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
11770 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
11771 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
11772 
11773 	/* keep last */
11774 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
11775 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
11776 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
11777 };
11778 
11779 /**
11780  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
11781  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
11782  *
11783  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
11784  * u32 attribute, required. contains interface index.
11785  *
11786  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
11787  * u8 attribute, required. 0 - means vdev is in down state.
11788  * 1- means vdev is in up state.
11789  */
11790 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
11791 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
11792 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
11793 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
11794 
11795 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
11796 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
11797 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
11798 };
11799 
11800 /**
11801  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
11802  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
11803  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
11804  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
11805  * frame
11806  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
11807  * Request frame.
11808  */
11809 enum qca_wlan_vendor_oci_override_frame_type {
11810 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
11811 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
11812 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
11813 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
11814 };
11815 
11816 /**
11817  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
11818  *
11819  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
11820  * STA interface has to be given while selecting the connection policies
11821  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
11822  * An interface is set as primary through the attribute
11823  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
11824  * applicable if the primary interface has not been set earlier.
11825  *
11826  * The intention is not to downgrade the primary STA performance, such as:
11827  * - Do not reduce the number of TX/RX chains of primary connection.
11828  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
11829  *   chains.
11830  * - If using MCC, should set the MCC duty cycle of the primary connection to
11831  *   be higher than the secondary connection.
11832  *
11833  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
11834  * subsequent STA connection shall be chosen to balance with the existing
11835  * concurrent STA's performance.
11836  * Such as
11837  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
11838  *   capability.
11839  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
11840  *   to the secondary.
11841  * - Prefer BSSID candidates which will help provide the best "overall"
11842  *   performance for all the STA connections.
11843  */
11844 enum qca_wlan_concurrent_sta_policy_config {
11845 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
11846 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
11847 };
11848 
11849 /**
11850  * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
11851  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
11852  *
11853  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
11854  * u8 attribute. Configures the concurrent STA policy configuration.
11855  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
11856  */
11857 enum qca_wlan_vendor_attr_concurrent_sta_policy {
11858 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
11859 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
11860 
11861 	/* keep last */
11862 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
11863 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
11864 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
11865 
11866 };
11867 
11868 /**
11869  * enum qca_sta_connect_fail_reason_codes - Defines values carried
11870  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
11871  * attribute.
11872  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
11873  * for unicast probe request.
11874  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
11875  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
11876  * ath request.
11877  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
11878  * received from AP.
11879  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
11880  * request.
11881  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
11882  * assoc request.
11883  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
11884  * received from AP.
11885  */
11886 enum qca_sta_connect_fail_reason_codes {
11887 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
11888 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
11889 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
11890 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
11891 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
11892 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
11893 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
11894 };
11895 
11896 /**
11897  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
11898  * OCI override request. These attributes are used inside nested attribute
11899  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
11900  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
11901  *
11902  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
11903  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
11904  * attribute to specify the frame type in which the OCI is to be overridden.
11905  *
11906  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
11907  * OCI frequency (in MHz) to override in the specified frame type.
11908  */
11909 enum qca_wlan_vendor_attr_oci_override {
11910 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
11911 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
11912 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
11913 
11914 	/* keep last */
11915 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
11916 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
11917 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
11918 };
11919 
11920 /**
11921  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
11922  * filters defined in this enum are used in attribute
11923  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
11924  *
11925  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
11926  * shall filter the channels which are not usable because of coexistence with
11927  * cellular radio.
11928  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
11929  * shall filter the channels which are not usable because of existing active
11930  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
11931  *
11932  */
11933 enum qca_wlan_vendor_usable_channels_filter {
11934 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
11935 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
11936 };
11937 
11938 /**
11939  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
11940  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
11941  *
11942  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
11943  * u32 attribute, required. Indicates the center frequency of the primary
11944  * channel in MHz.
11945  *
11946  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
11947  * u32 attribute. Indicates the center frequency of the primary segment of the
11948  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
11949  * 160 MHz, and 320 MHz channels.
11950  *
11951  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
11952  * u32 attribute. Indicates the center frequency of the secondary segment of
11953  * 80+80 channel in MHz. This attribute is required only when
11954  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
11955  *
11956  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
11957  * u32 attribute, required. Indicates the bandwidth of the channel, possible
11958  * values are defined in enum nl80211_chan_width.
11959  *
11960  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
11961  * u32 attribute, required. Indicates all the interface types for which this
11962  * channel is usable. This attribute encapsulates bitmasks of interface types
11963  * defined in enum nl80211_iftype.
11964  *
11965  */
11966 enum qca_wlan_vendor_attr_chan_info {
11967 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
11968 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
11969 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
11970 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
11971 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
11972 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
11973 
11974 	/* keep last */
11975 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
11976 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
11977 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
11978 };
11979 
11980 /**
11981  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
11982  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
11983  *
11984  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
11985  * u32 attribute. Indicates the bands from which the channels should be reported
11986  * in response. This attribute encapsulates bit masks of bands defined in enum
11987  * nl80211_band. Optional attribute, if not present in the request the driver
11988  * shall return channels from all supported bands.
11989  *
11990  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
11991  * u32 attribute. Indicates all the interface types for which the usable
11992  * channels information is requested. This attribute encapsulates bitmasks of
11993  * interface types defined in enum nl80211_iftype. Optional attribute, if not
11994  * present in the request the driver shall send information of all supported
11995  * interface modes.
11996  *
11997  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
11998  * u32 attribute. This attribute carries information of all filters that shall
11999  * be applied while populating usable channels information by the driver. This
12000  * attribute carries bit masks of different filters defined in enum
12001  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12002  * in the request the driver shall send information of channels without applying
12003  * any of the filters that can be configured through this attribute.
12004  *
12005  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12006  * Nested attribute. This attribute shall be used by the driver to send
12007  * usability information of each channel. The attributes defined in enum
12008  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12009  */
12010 enum qca_wlan_vendor_attr_usable_channels {
12011 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12012 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12013 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12014 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12015 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12016 
12017 	/* keep last */
12018 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12019 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12020 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12021 };
12022 
12023 /**
12024  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12025  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12026  *
12027  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12028  *	the list of radar history entries.
12029  *	Each entry contains freq, timestamp, and radar signal detect flag.
12030  *	The driver shall add an entry when CAC has finished, or radar signal
12031  *	has been detected post AP beaconing. The driver shall maintain at least
12032  *	8 entries in order to save CAC result for a 160 MHz channel.
12033  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12034  *	Channel frequency in MHz.
12035  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12036  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12037  *	or radar detection.
12038  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12039  *	This flag indicates radar signal has been detected.
12040  */
12041 enum qca_wlan_vendor_attr_radar_history {
12042 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12043 
12044 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12045 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12046 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12047 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12048 
12049 	/* keep last */
12050 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12051 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12052 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12053 };
12054 
12055 /**
12056  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12057  *
12058  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12059  *	target exited MCC state and cleared the quota information. In the
12060  *	command it clears MCC quota setting and restores adaptive scheduling.
12061  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12062  *      will not be changed.
12063  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12064  *      and the target may change the quota based on the data activity.
12065  */
12066 enum qca_wlan_vendor_mcc_quota_type {
12067 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12068 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12069 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12070 };
12071 
12072 /**
12073  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12074  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12075  * quota information or as a command to set the required MCC quota for an
12076  * interface.
12077  *
12078  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12079  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12080  * In a command this specifies the MCC quota type to be set for the interface.
12081  * In an event this provides the current quota type in force.
12082  * This is required in a command and an event.
12083  *
12084  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12085  * the list of channel quota entries.
12086  * In an event each entry contains the frequency and respective time quota for
12087  * all the MCC interfaces.
12088  * In a command it specifies the interface index and respective time quota.
12089  * In a command only one entry (ifindex, quota pair) may be specified.
12090  *
12091  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12092  * Channel frequency in MHz. This is present only in an event.
12093  *
12094  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12095  * Channel time quota expressed as percentage.
12096  * This is present in an event and a command.
12097  * In an command, the user shall specify the quota to be allocated for the
12098  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12099  * In an event this provides the existing quota for the channel.
12100  *
12101  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12102  * Specifies the interface index (netdev) for which the corresponding
12103  * configurations are applied. This is required in a command only. Only one
12104  * interface index may be specified. If not specified, the configuration is
12105  * rejected.
12106  */
12107 enum qca_wlan_vendor_attr_mcc_quota {
12108 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12109 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12110 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12111 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12112 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12113 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12114 
12115 	/* keep last */
12116 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12117 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12118 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12119 };
12120 
12121 /**
12122  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12123  * radio configurations present in each radio combination.
12124  *
12125  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12126  * the band info in the radio configuration. Uses the enum qca_set_band values.
12127  *
12128  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12129  * the number of antennas info in the radio configuration.
12130  */
12131 enum qca_wlan_vendor_attr_supported_radio_cfg {
12132 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12133 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12134 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12135 
12136 	/* keep last */
12137 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12138 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12139 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12140 };
12141 
12142 /**
12143  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12144  * radio combinations supported by the device.
12145  *
12146  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12147  * provides the radio configurations present in the radio combination.
12148  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12149  * This attribute provides the values for radio combination matrix.
12150  * For standalone config, the number of config values is one and the config
12151  * carries the band and antenna information for standalone configuration. For
12152  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12153  * configuration the number of config values is two and the config carries the
12154  * band and antenna information for each simultaneous radio.
12155  */
12156 enum qca_wlan_vendor_attr_radio_combination {
12157 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12158 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12159 
12160 	/* keep last */
12161 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12162 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12163 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12164 };
12165 
12166 /**
12167  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12168  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12169  *
12170  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12171  * provides the radio combinations supported by the device.
12172  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12173  * For example, in the radio combination matrix for a device which has two
12174  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12175  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12176  * combinations is 5 and the radio combinations are
12177  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12178  * {{5 GHz 2X2}}, //Standalone 5 GHz
12179  * {{6 GHz 2X2}}, //Standalone 6 GHz
12180  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12181  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12182  * The band and antenna info together as nested data provides one radio config.
12183  * Standalone configuration has one config with band and antenna nested data.
12184  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12185  * have two nested band and antenna info data.
12186  */
12187 enum qca_wlan_vendor_attr_radio_combination_matrix {
12188 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12189 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12190 
12191 	/* keep last */
12192 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12193 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12194 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12195 };
12196 
12197 /**
12198  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12199  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12200  *
12201  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12202  * Enable mDNS offload. This attribute is mandatory to enable
12203  * mDNS offload feature. If this attribute is not present, mDNS offload
12204  * is disabled.
12205  *
12206  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12207  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12208  * attribute is mandatory when enabling the feature, and not required when
12209  * disabling the feature.
12210  *
12211  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12212  * the following attributes:
12213  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12214  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12215  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12216  *
12217  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12218  * It consists of a hostname and ".local" as the domain name. The character
12219  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12220  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
12221  * supported per vdev.
12222  * For example: myphone.local
12223  *
12224  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12225  * u16 attribute. It specifies the total number of resource records present
12226  * in the answer section of the answer payload. This attribute is needed by the
12227  * firmware to populate the mDNS response frame for mNDS queries without having
12228  * to parse the answer payload.
12229  *
12230  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
12231  * attribute sent by the mdnsResponder from userspace. It contains resource
12232  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
12233  * payload is passed down to firmware and is transmitted in response to
12234  * mDNS queries.
12235  * The maximum size of the answer payload supported is 512 bytes.
12236  */
12237 enum qca_wlan_vendor_attr_mdns_offload {
12238 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12239 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12240 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12241 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12242 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12243 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12244 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12245 
12246 	/* keep last */
12247 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12248 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12249 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12250 };
12251 
12252 /**
12253  * enum qca_vendor_attr_diag_event_type  - Attributes used by
12254  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
12255  *
12256  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
12257  * driver/firmware during Connection request from Userspace. Uses the
12258  * following attributes of enum qca_wlan_vendor_attr_diag:
12259  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12260  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
12261  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12262  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
12263  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12264  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
12265  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
12266  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
12267  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
12268  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12269  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
12270  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
12271  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12272  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12273  *
12274  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
12275  * driver/firmware when a connection is failed. Uses the
12276  * following attributes of enum qca_wlan_vendor_attr_diag:
12277  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12278  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12279  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12280  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12281  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12282  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12283  *
12284  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
12285  * driver/firmware during Authentication request from a device. Uses the
12286  * following attributes of enum qca_wlan_vendor_attr_diag:
12287  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12288  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12289  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12290  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12291  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12292  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12293  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12294  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12295  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12296  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12297  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12298  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12299  *
12300  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
12301  * driver/firmware when device receives an authentication response. Uses the
12302  * following attributes of enum qca_wlan_vendor_attr_diag:
12303  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12304  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12305  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12306  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12307  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12308  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12309  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12310  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12311  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12312  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12313  *
12314  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
12315  * driver/firmware when device sends an association request. Uses the
12316  * following attributes of enum qca_wlan_vendor_attr_diag:
12317  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12318  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12319  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12320  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12321  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12322  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12323  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12324  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12325  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12326  *
12327  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
12328  * driver/firmware when device receives an association response. Uses the
12329  * following attributes of enum qca_wlan_vendor_attr_diag:
12330  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12331  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12332  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12333  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12334  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12335  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12336  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12337  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12338  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
12339  *
12340  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
12341  * driver/userspace when device receives a deauthentication response. Uses the
12342  * following attributes of enum qca_wlan_vendor_attr_diag:
12343  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12344  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12345  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12346  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12347  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12348  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12349  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12350  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12351  *
12352  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
12353  * driver/userspace when device sends a deauthentication request. Uses the
12354  * following attributes of enum qca_wlan_vendor_attr_diag:
12355  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12356  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12357  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12358  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12359  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12360  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12361  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12362  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12363  *
12364  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
12365  * driver/firmware when device receives a disassociation response. Uses the
12366  * following attributes of enum qca_wlan_vendor_attr_diag:
12367  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12368  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12369  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12370  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12371  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12372  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12373  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12374  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12375  *
12376  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
12377  * driver/firmware when device sends a disassociation request. Uses the
12378  * following attributes of enum qca_wlan_vendor_attr_diag:
12379  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12380  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12381  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12382  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12383  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12384  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12385  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12386  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12387  *
12388  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
12389  * driver/firmware when device did not receive beacon packets during connection.
12390  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
12391  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12392  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12393  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12394  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12395  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12396  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12397  *
12398  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
12399  * driver/firmware when Roaming scan is triggered. Uses the following
12400  * attributes of enum qca_wlan_vendor_attr_diag:
12401  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12402  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
12403  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
12404  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12405  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12406  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
12407  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
12408  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12409  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12410  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12411  *
12412  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
12413  * driver/firmware Roam scanning is processed. Uses the following
12414  * attributes of enum qca_wlan_vendor_attr_diag:
12415  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12416  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12417  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
12418  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
12419  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12420  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12421  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12422  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12423  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
12424  *
12425  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
12426  * driver/firmware to provide Roam information of the current AP. Uses the
12427  * following attributes of enum qca_wlan_vendor_attr_diag:
12428  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12429  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12430  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12431  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12432  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12433  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12434  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12435  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12436  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12437  *
12438  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
12439  * driver/firmware to provide Roam information of the candid AP. Uses the
12440  * following attributes of enum qca_wlan_vendor_attr_diag:
12441  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12442  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12443  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12444  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12445  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12446  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12447  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
12448  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12449  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12450  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12451  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12452  *
12453  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
12454  * driver/firmware to provide Roam result after selecting a candidate. Uses the
12455  * following attributes of enum qca_wlan_vendor_attr_diag:
12456  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12457  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
12458  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12459  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12460  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12461  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12462  *
12463  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
12464  * driver/firmware to indicate Roam Cancellation due to higher priority events.
12465  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12466  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12467  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12468  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12469  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12470  *
12471  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
12472  * /firmware when STA sends a BTM request frame. Uses the following attributes
12473  * of enum qca_wlan_vendor_attr_diag:
12474  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12475  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12476  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
12477  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
12478  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
12479  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
12480  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12481  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12482  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12483  *
12484  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
12485  * driver/firmware when STA queries about BTM transition. Uses the following
12486  * attributes of enum qca_wlan_vendor_attr_diag:
12487  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12488  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12489  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
12490  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12491  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12492  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12493  *
12494  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
12495  * /firmware when STA receives BTM response frame. Uses the following
12496  * attributes of enum qca_wlan_vendor_attr_diag:
12497  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12498  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12499  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
12500  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
12501  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
12502  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12503  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12504  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12505  *
12506  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
12507  * driver/firmware to provide BTM request candidate information. Uses the
12508  * following attributes of enum qca_wlan_vendor_attr_diag:
12509  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12510  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12511  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
12512  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12513  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12514  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12515  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12516  *
12517  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
12518  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
12519  * enum qca_wlan_vendor_attr_diag:
12520  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12521  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
12522  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12523  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
12524  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12525  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12526  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12527  *
12528  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
12529  * driver/firmware to indicate DHCP discovery to AP. Uses the following
12530  * attributes of enum qca_wlan_vendor_attr_diag:
12531  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12532  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12533  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12534  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12535  *
12536  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
12537  * driver/firmware to indicate DHCP offering to AP. Uses the following
12538  * attributes of enum qca_wlan_vendor_attr_diag:
12539  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12540  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12541  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12542  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12543  *
12544  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
12545  * driver/firmware to indicate driver sent DHCP packets. Uses the following
12546  * attributes of enum qca_wlan_vendor_attr_diag:
12547  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12548  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12549  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12550  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12551  *
12552  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
12553  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
12554  * attributes of enum qca_wlan_vendor_attr_diag:
12555  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12556  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12557  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12558  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12559  *
12560  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
12561  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
12562  * following attributes of enum qca_wlan_vendor_attr_diag:
12563  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12564  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12565  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12566  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12567  *
12568  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
12569  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
12570  * enum qca_wlan_vendor_attr_diag:
12571  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12572  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12573  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12574  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12575  *
12576  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
12577  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
12578  * enum qca_wlan_vendor_attr_diag:
12579  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12580  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12581  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12582  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12583  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12584  *
12585  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
12586  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
12587  * enum qca_wlan_vendor_attr_diag:
12588  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12589  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12590  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12591  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12592  *
12593  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
12594  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
12595  * enum qca_wlan_vendor_attr_diag:
12596  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12597  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12598  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12599  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12600  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12601  *
12602  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
12603  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
12604  * enum qca_wlan_vendor_attr_diag:
12605  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12606  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12607  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12608  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12609  *
12610  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
12611  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
12612  * enum qca_wlan_vendor_attr_diag:
12613  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12614  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12615  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12616  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12617  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12618  *
12619  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
12620  * /firmware to indicate device sent EAP request. Uses the following attributes
12621  * of enum qca_wlan_vendor_attr_diag:
12622  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12623  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12624  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12625  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12626  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12627  *
12628  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
12629  * /firmware to indicate device received EAP response. Uses the following
12630  * attributes of enum qca_wlan_vendor_attr_diag:
12631  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12632  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12633  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12634  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12635  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12636  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12637  *
12638  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
12639  * /firmware to indicate EAP frame transmission is success. Uses the following
12640  * attributes of enum qca_wlan_vendor_attr_diag:
12641  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12642  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12643  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12644  *
12645  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
12646  * /firmware to indicate EAP frame transmission is failed. Uses the following
12647  * attributes of enum qca_wlan_vendor_attr_diag:
12648  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12649  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12650  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12651  *
12652  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
12653  * /firmware to indicate Reassocation request. Uses the following attributes
12654  * of enum qca_wlan_vendor_attr_diag:
12655  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12656  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12657  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12658  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12659  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12660  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12661  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12662  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12663  *
12664  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
12665  * /firmware to indicate Reassocation response. Uses the following attributes
12666  * of enum qca_wlan_vendor_attr_diag:
12667  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12668  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12669  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12670  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12671  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
12672  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12673  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12674  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12675  */
12676 enum qca_vendor_attr_diag_event_type {
12677 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
12678 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
12679 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
12680 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
12681 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
12682 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
12683 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
12684 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
12685 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
12686 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
12687 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
12688 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
12689 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
12690 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
12691 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
12692 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
12693 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
12694 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
12695 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
12696 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
12697 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
12698 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
12699 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
12700 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
12701 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
12702 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
12703 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
12704 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
12705 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
12706 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
12707 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
12708 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
12709 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
12710 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
12711 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
12712 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
12713 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
12714 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
12715 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
12716 
12717 	/* keep last */
12718 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
12719 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
12720 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
12721 };
12722 
12723 /**
12724  * enum qca_wlan_vendor_tx_status - Used by attribute
12725  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
12726  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
12727  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
12728  * is not received.
12729  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
12730  * acknowledged.
12731  */
12732 enum qca_wlan_vendor_tx_status {
12733 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
12734 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
12735 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
12736 };
12737 
12738 /**
12739  * enum qca_roam_sub_reason - Used by attribute
12740  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
12741  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
12742  * timer expiry
12743  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
12744  * to no candidate found during LOW RSSI trigger.
12745  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
12746  * Imminent timeout
12747  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
12748  * failure
12749  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
12750  * emergency like deauth/disassoc.
12751  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
12752  * BSS transition management request.
12753  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
12754  * Roam scan triggered due to Low RSSI periodic timer
12755  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
12756  * Roam trigger due to periodic timer after no candidate found during CU
12757  * inactivity timer scan.
12758  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
12759  * found in high CU roam trigger.
12760  */
12761 enum qca_roam_sub_reason {
12762 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
12763 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
12764 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
12765 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
12766 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
12767 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
12768 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
12769 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
12770 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
12771 };
12772 
12773 /*
12774  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
12775  * to send diag data to the userspace. The attributes defined in this enum are
12776  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12777  *
12778  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
12779  * by driver/firmware to send diag data. Each instance of this nested attribute
12780  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
12781  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
12782  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
12783  * nested attribute can be sent with one vendor command
12784  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
12785  *
12786  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
12787  * attribute indicates the type of the diag event from driver/firmware. Uses
12788  * values from enum qca_vendor_attr_diag_event_type.
12789  *
12790  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
12791  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
12792  * API to send time of the day in microseconds to userspace.
12793  *
12794  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
12795  * This attribute indicates firmware timestamp in microseconds.
12796  *
12797  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
12798  * indicates wlan interface index.
12799  *
12800  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
12801  * indicates 6-byte MAC address representing the BSSID of the AP.
12802  *
12803  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
12804  * indicates the 6-byte MAC address representing the BSSID hint sent in
12805  * the connect request.
12806  *
12807  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
12808  * indicates the SSID in u8 array with a maximum length of 32.
12809  *
12810  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
12811  * indicates the frequency of AP in MHz.
12812  *
12813  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
12814  * indicates frequency hint given in the connect request in MHz.
12815  *
12816  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
12817  * This attribute indicates RSSI of the 802.11 frame in dBm.
12818  *
12819  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
12820  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
12821  * Table 12-10—Integrity and key wrap algorithms.
12822  *
12823  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
12824  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
12825  * Table 12-10—Integrity and key wrap algorithms.
12826  *
12827  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
12828  * attribute indicates Group management cipher suite defined in IEEE Std
12829  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
12830  *
12831  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
12832  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
12833  * Table 9-151—AKM suite selectors.
12834  *
12835  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
12836  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
12837  * Section 9.4.1.1 Authentication Algorithm Number field.
12838  *
12839  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
12840  * indicates bluetooth COEX is active or not.
12841  *
12842  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
12843  * attribute indicates SAE authentication frame type. The possible values are
12844  * 1 - SAE commit frame
12845  * 2 - SAE confirm frame
12846  *
12847  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
12848  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
12849  * Table 9-49—Reason codes.
12850  *
12851  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
12852  * attribute indicates sequence number of the frame defined in IEEE Std
12853  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
12854  * field.
12855  *
12856  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
12857  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
12858  * 9-50—Status codes.
12859  *
12860  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
12861  * Uses enum qca_wlan_vendor_tx_status.
12862  *
12863  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
12864  * indicates if frame transmission is retried.
12865  *
12866  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
12867  * Uses enum qca_roam_reason.
12868  *
12869  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
12870  * Uses enum qca_roam_sub_reason.
12871  *
12872  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
12873  * indicates channel utilization in percentage.
12874  *
12875  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
12876  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
12877  *
12878  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
12879  * This attribute indicates current RSSI threshold in dBm.
12880  *
12881  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
12882  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
12883  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
12884  *
12885  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
12886  * This attribute indicates number of scanned candidate APs.
12887  *
12888  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
12889  * attribute indicates roam AP rank computed based on connection preference.
12890  *
12891  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
12892  * This attribute indicates expected throughput in kbps.
12893  *
12894  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
12895  * This attribute indicates the preference value of candidate AP / connected AP
12896  * calculated in the firmware.
12897  *
12898  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
12899  * indicates connection/roaming is successful or not.
12900  *
12901  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
12902  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
12903  * IE present in the BTM frame.
12904  *
12905  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
12906  * This attribute indicates BTM WTC duration in milliseconds.
12907  *
12908  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
12909  * indicates dialog token value of BTM query/request/response frames.
12910  *
12911  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
12912  * attribute indicates the Transition Reason field indicates the reason why
12913  * a transition attempt occurred and contains one of the values defined in IEEE
12914  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
12915  *
12916  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
12917  * indicates BTM mode defined in IEEE Std 802.11‐2020
12918  * Figure 9-924—Request Mode field format.
12919  *
12920  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
12921  * This attribute indicates the Disassociation Timer field which is the number
12922  * of beacon transmission times (TBTTs) until the serving AP will send a
12923  * Disassociation frame to this STA.
12924  *
12925  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
12926  * This attribute indicates BTM validity interval field in TBTTs defined in
12927  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
12928  * Action field format.
12929  *
12930  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
12931  * This attribute indicates BTM candidate list entries.
12932  *
12933  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
12934  * This attribute indicates network preference for BTM transition defined in
12935  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
12936  *
12937  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
12938  * This attribute indicates BTM transition status code defined in IEEE Std
12939  * 802.11‐2020 Table 9-428—BTM status code definitions.
12940  *
12941  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
12942  * This attribute indicates BSS termination delay defined in IEEE Std
12943  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
12944  *
12945  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
12946  * This attribute indicates 6-byte MAC address representing the BSSID of the
12947  * BSS that the non-AP STA transitions to.
12948  *
12949  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
12950  * indicates EAP frame type. The methods are enumerated by IANA at
12951  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
12952  *
12953  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
12954  * indicates EAP frame length.
12955  *
12956  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
12957  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
12958  * (Time from boot but not the time spent in suspend) to send in microseconds
12959  * to userspace.
12960  *
12961  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
12962  * indicates the association id received in the (re)association response frame
12963  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
12964  */
12965 enum qca_wlan_vendor_attr_diag {
12966 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
12967 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
12968 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
12969 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
12970 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
12971 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
12972 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
12973 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
12974 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
12975 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
12976 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
12977 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
12978 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
12979 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
12980 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
12981 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
12982 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
12983 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
12984 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
12985 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
12986 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
12987 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
12988 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
12989 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
12990 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
12991 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
12992 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
12993 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
12994 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
12995 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
12996 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
12997 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
12998 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
12999 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
13000 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
13001 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
13002 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
13003 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
13004 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
13005 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
13006 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
13007 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
13008 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
13009 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
13010 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
13011 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
13012 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
13013 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
13014 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
13015 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
13016 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
13017 
13018 	/* keep last */
13019 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
13020 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
13021 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
13022 };
13023 
13024 /**
13025  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13026  * data types to be sent over the monitor interface.
13027  */
13028 enum qca_wlan_vendor_monitor_data_frame_type {
13029 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13030 
13031 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
13032 	not set */
13033 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13034 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13035 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13036 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13037 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13038 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13039 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13040 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13041 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13042 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13043 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13044 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13045 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13046 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13047 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13048 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13049 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13050 };
13051 
13052 /**
13053  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13054  * mgmt types to be sent over the monitor interface.
13055  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
13056  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
13057  * except the Beacons. Valid only in the Connect state.
13058  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13059  * BSSID Beacons. Valid only in the Connect state.
13060  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
13061  * the Beacons obtained during the scan (off channel and connected channel)
13062  * when in connected state.
13063  */
13064 
13065 enum qca_wlan_vendor_monitor_mgmt_frame_type {
13066 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13067 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
13068 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
13069 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13070 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13071 };
13072 
13073 /**
13074  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13075  * ctrl types to be sent over the monitor interface.
13076  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
13077  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
13078  */
13079 enum qca_wlan_vendor_monitor_ctrl_frame_type {
13080 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13081 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
13082 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13083 };
13084 
13085 /**
13086  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13087  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13088  * monitor mode.
13089  *
13090  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
13091  * Represents the tx data packet type to be monitored (u32). These data packets
13092  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13093  *
13094  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
13095  * Represents the tx data packet type to be monitored (u32). These data packets
13096  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13097  *
13098  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
13099  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13100  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13101  *
13102  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
13103  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13104  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13105  *
13106  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
13107  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13108  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13109  *
13110  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
13111  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13112  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13113  *
13114  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
13115  * u32 attribute, An interval only for the connected beacon interval, which
13116  * expects that the connected BSSID's beacons shall be sent on the monitor
13117  * interface only on this specific interval.
13118  */
13119 enum qca_wlan_vendor_attr_set_monitor_mode {
13120 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13121 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13122 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13123 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13124 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13125 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13126 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13127 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13128 
13129 	/* keep last */
13130 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13131 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13132 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13133 
13134 };
13135 
13136 /**
13137  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13138  * Bits will be set to 1 if the corresponding state is enabled.
13139  *
13140  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13141  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13142  */
13143 enum qca_wlan_vendor_roam_scan_state {
13144 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13145 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13146 };
13147 
13148 /**
13149  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13150  * Bits will be set to 1 if the corresponding event is notified.
13151  *
13152  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13153  * carries the trigger reason. When set, it is expected that the roam event
13154  * carries the respective reason via the attribute
13155  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13156  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13157  *
13158  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13159  * carries the roam fail reason. When set, it is expected that the roam event
13160  * carries the respective reason via the attribute
13161  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13162  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13163  *
13164  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13165  * event carries the roam invoke fail reason. When set, it is expected that
13166  * the roam event carries the respective reason via the attribute
13167  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13168  *
13169  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13170  * carries the roam scan state. When set, it is expected that the roam event
13171  * carries the respective scan state via the attribute
13172  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13173  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13174  */
13175 enum qca_wlan_vendor_roam_event_type {
13176 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13177 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13178 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13179 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13180 };
13181 
13182 /**
13183  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13184  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13185  *
13186  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13187  * representing the BSSID of the AP to which the Roam is attempted.
13188  *
13189  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13190  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13191  * attempted.
13192  *
13193  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
13194  * on which the roam is attempted.
13195  *
13196  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13197  * STA mode only. This represents the roam fail reason for the last failed
13198  * roaming attempt by the firmware for the specific BSSID. Different roam
13199  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13200  */
13201 enum qca_wlan_vendor_attr_roam_events_candidate_info {
13202 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13203 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13204 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13205 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13206 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13207 
13208 	/* keep last */
13209 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13210 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13211 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13212 };
13213 
13214 /**
13215  * enum qca_wlan_vendor_attr_roam_events - Used by the
13216  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13217  * roam events to the driver or notify these events from the driver.
13218  *
13219  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13220  * driver/firmware to enable/disable the notification of roam events. It's a
13221  * mandatory attribute and used only in the request from the userspace to the
13222  * host driver. 1-Enable, 0-Disable.
13223  * If the roaming is totally offloaded to the firmware, this request when
13224  * enabled shall mandate the firmware to notify all the relevant roam events
13225  * represented by the below attributes. If the host is in the suspend mode,
13226  * the behavior of the firmware to notify these events is guided by
13227  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13228  * these events in the suspend state, the firmware is expected to wake up the
13229  * host before the respective events are notified. Please note that such a
13230  * request to get the events in the suspend state will have a definite power
13231  * implication.
13232  *
13233  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13234  * that the roam events need to be notified in the suspend state too. By
13235  * default, these roam events are notified in the resume state. With this flag,
13236  * the roam events are notified in both resume and suspend states.
13237  * This attribute is used in the request from the userspace to the host driver.
13238  *
13239  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13240  * Represents the different roam event types, signified by the enum
13241  * qca_wlan_vendor_roam_event_type.
13242  * Each bit of this attribute represents the different roam even types reported
13243  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13244  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13245  *
13246  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13247  * mode only. This represents the roam trigger reason for the last roaming
13248  * attempted by the firmware. Each bit of this attribute represents the
13249  * different roam trigger reason code which are defined in enum
13250  * qca_vendor_roam_triggers.
13251  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13252  *
13253  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13254  * STA mode only. This represents the roam invoke fail reason for the last
13255  * failed roam invoke. Different roam invoke failure reason codes
13256  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13257  *
13258  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13259  * for which the roam is attempted. Each entry is a nested attribute defined
13260  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13261  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13262  *
13263  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13264  * the scan state on which the roam events need to be notified. The values for
13265  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13266  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13267  *
13268  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13269  * u32 values. List of frequencies in MHz considered for a roam scan.
13270  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13271  */
13272 
13273 enum qca_wlan_vendor_attr_roam_events {
13274 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13275 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13276 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13277 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13278 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13279 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13280 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13281 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13282 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13283 
13284 	/* keep last */
13285 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13286 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13287 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
13288 };
13289 
13290 /*
13291  * enum qca_wlan_ratemask_params_type - Rate mask config type.
13292  *
13293  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
13294  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13295  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13296  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13297  */
13298 enum qca_wlan_ratemask_params_type {
13299 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13300 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13301 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13302 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13303 };
13304 
13305 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
13306  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13307  * This is used to set the rate mask value to be used in rate selection.
13308  *
13309  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13310  * Array of nested containing attributes
13311  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13312  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13313  *
13314  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13315  * the different phy types to which the rate mask config is to be applied.
13316  * The values for this attribute are referred from enum
13317  * qca_wlan_vendor_ratemask_params_type.
13318  *
13319  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13320  * A bit value of 1 represents rate is enabled and a value of 0
13321  * represents rate is disabled.
13322  * For HE targets, 12 bits correpond to one NSS setting.
13323  * b0-13  => NSS1, MCS 0-13
13324  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13325  * For VHT targets, 10 bits correspond to one NSS setting.
13326  * b0-9   => NSS1, MCS 0-9
13327  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
13328  * For HT targets, 8 bits correspond to one NSS setting.
13329  * b0-7  => NSS1, MCS 0-7
13330  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
13331  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
13332  */
13333 
13334 enum qca_wlan_vendor_attr_ratemask_params {
13335 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
13336 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
13337 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
13338 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
13339 
13340 	/* keep last */
13341 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
13342 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
13343 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
13344 };
13345 
13346 /**
13347  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
13348  * the policy to flush pending frames, configured via
13349  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
13350  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
13351  *
13352  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
13353  * the flush policy configured before. This command basically disables the
13354  * flush config set by the user.
13355  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
13356  * the flush policy to be immediate. All pending packets for the peer/TID are
13357  * flushed when this command/policy is received.
13358  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
13359  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
13360  * are flushed when the end of TWT SP is reached.
13361  */
13362 enum qca_wlan_vendor_flush_pending_policy  {
13363 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
13364 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
13365 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
13366 };
13367 
13368 /**
13369  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
13370  * flushing pending traffic in firmware.
13371  *
13372  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
13373  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
13374  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
13375  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
13376  * flush packets with access category. This is optional. See below.
13377  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
13378  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
13379  * bit to 1 to act upon the TID. This is optional. Either this attribute or
13380  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
13381  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
13382  * it is an error.
13383  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
13384  * packets corresponding to the peer/TID provided. It is a u32 value,
13385  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
13386  * value is honored only when TID mask is provided. This is not honored when AC
13387  * mask is provided.
13388  */
13389 enum qca_wlan_vendor_attr_flush_pending {
13390 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
13391 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
13392 	QCA_WLAN_VENDOR_ATTR_AC = 2,
13393 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
13394 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
13395 	/* keep last */
13396 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
13397 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
13398 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
13399 };
13400 
13401 /**
13402  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
13403  *	for) or drop existing PASN security association for the listed the
13404  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
13405  *	to userspace.
13406  *
13407  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
13408  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
13409  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
13410  *	the driver to userspace to inform that the existing PASN keys of the
13411  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
13412  *	not valid anymore.
13413  */
13414 enum qca_wlan_vendor_pasn_action {
13415 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
13416 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
13417 };
13418 
13419 /**
13420  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
13421  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
13422  *
13423  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
13424  *	event from the driver to userspace and represents the local MAC address
13425  *	to be used for PASN handshake. When this attribute is present, userspace
13426  *	shall use the source address specified in this attribute by the driver
13427  *	for PASN handshake with peer device.
13428  *	This attribute is required in a command response from userspace to the
13429  *	driver and represents the MAC address that was used in PASN handshake
13430  *	with the peer device.
13431  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
13432  *	peer device to which PASN handshake is requested in an event from the
13433  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13434  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
13435  *	Indicates the MAC address of the peer device for which the keys are to
13436  *	be invalidated in an event from the driver to userspace when
13437  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13438  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
13439  *	Indicates the MAC address of the peer device for which the status is
13440  *	being sent in a status report from userspace to the driver.
13441  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
13442  *	in the event from the driver to userspace. When set, userspace is
13443  *	required to derive LTF key seed from KDK and set it to the driver.
13444  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
13445  *	attribute is used in the command response from userspace to the driver.
13446  *	If present, it indicates the successful PASN handshake with the peer. If
13447  *	this flag is not present, it indicates that the PASN handshake with the
13448  *	peer device failed.
13449  */
13450 enum qca_wlan_vendor_attr_pasn_peer {
13451 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
13452 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
13453 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
13454 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
13455 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
13456 
13457 	/* keep last */
13458 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
13459 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
13460 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
13461 };
13462 
13463 /**
13464  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
13465  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
13466  *
13467  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
13468  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
13469  *	from the driver to userspace.
13470  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
13471  *	details for each peer and used in both an event and a command response.
13472  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
13473  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
13474  */
13475 enum qca_wlan_vendor_attr_pasn {
13476 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
13477 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
13478 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
13479 
13480 	/* keep last */
13481 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
13482 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
13483 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
13484 };
13485 
13486 /**
13487  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
13488  *	the ranging security context derived from PASN for each peer. Used in
13489  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
13490  *
13491  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
13492  *	context for the peer.
13493  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
13494  *	context for the peer.
13495  */
13496 enum qca_wlan_vendor_secure_ranging_ctx_action {
13497 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
13498 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
13499 };
13500 
13501 /**
13502  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
13503  *	used for deriving PASN keys to the driver. Used in
13504  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
13505  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
13506  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
13507  */
13508 enum qca_wlan_vendor_sha_type {
13509 	QCA_WLAN_VENDOR_SHA_256,
13510 	QCA_WLAN_VENDOR_SHA_384,
13511 };
13512 
13513 /**
13514  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
13515  *	to set security context for the PASN peer from userspace to the driver.
13516  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
13517  *
13518  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
13519  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
13520  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
13521  *	was used during the PASN handshake.
13522  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
13523  *	the peer device for which secure ranging context is being configured.
13524  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
13525  *	hash algorithm to be used, possible values are defined in enum
13526  *	qca_wlan_vendor_sha_type.
13527  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
13528  *	the temporal key generated from the PASN handshake. The length of this
13529  *	attribute is dependent on the value of
13530  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
13531  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
13532  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
13533  *	(e.g., 0x000FAC04).
13534  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
13535  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
13536  *	The length of this attribute is dependent on the value of
13537  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
13538  *
13539  */
13540 enum qca_wlan_vendor_attr_secure_ranging_ctx {
13541 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
13542 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
13543 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
13544 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
13545 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
13546 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
13547 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
13548 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
13549 
13550 	/* keep last */
13551 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
13552 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
13553 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
13554 };
13555 
13556 /**
13557  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
13558  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
13559  * nested attribute. The packets that match a filter will be replied with
13560  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
13561  *
13562  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
13563  * u32 attribute. Destination IPv4 address in network byte order, the
13564  * IPv4 packets with different address will be filtered out.
13565  * This attribute is optional.
13566  *
13567  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
13568  * Flag attribute. If it's present, indicates that
13569  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
13570  * address; while if not, indicates that the address is a unicast/multicast
13571  * address.
13572  * This attribute is optional.
13573  *
13574  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
13575  * NLA_BINARY attribute, length is 16 bytes.
13576  * Destination IPv6 address in network byte order, the IPv6 packets
13577  * with different destination address will be filtered out.
13578  * This attribute is optional.
13579  *
13580  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
13581  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
13582  * Packets on both IPv4 and IPv6 will be processed if both are configured.
13583  *
13584  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
13585  * u16 attribute. Destination UDP port, the packets with different destination
13586  * UDP port will be filtered out.
13587  * This attribute is mandatory.
13588  *
13589  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
13590  * u32 attribute. Represents the offset (in UDP payload) of the data
13591  * to be matched.
13592  * This attribute is mandatory.
13593  *
13594  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
13595  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
13596  * Binary data that is compared bit-by-bit against the data (specified
13597  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
13598  * payload, the packets don't match will be filtered out.
13599  * This attribute is mandatory.
13600  */
13601 enum qca_wlan_vendor_attr_coap_offload_filter {
13602 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
13603 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
13604 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
13605 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
13606 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
13607 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
13608 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
13609 
13610 	/* keep last */
13611 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
13612 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
13613 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
13614 };
13615 
13616 /**
13617  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
13618  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
13619  *
13620  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
13621  * u32 attribute. Source address (in network byte order) for replying
13622  * the matching broadcast/multicast IPv4 packets.
13623  * This attribute is optional.
13624  *
13625  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
13626  * NLA_BINARY attribute, length is 16 bytes.
13627  * Source address (in network byte order) for replying the matching
13628  * multicast IPv6 packets.
13629  * This attribute is optional.
13630  *
13631  * For broadcast/multicast offload reply, one of
13632  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
13633  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
13634  * configured according to version of the IP address(es) configured in
13635  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
13636  * while for unicast case, firmware will take the destination IP address
13637  * in the received matching packet as the source address for replying.
13638  *
13639  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
13640  * Nested attribute. Filter for the received UDP packets, only the matching
13641  * packets will be replied and cached.
13642  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
13643  * attributes.
13644  * This attribute is mandatory.
13645  *
13646  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
13647  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13648  * CoAP message (UDP payload) to be sent upon receiving matching packets.
13649  * Firmware is responsible for adding any necessary protocol headers.
13650  * This attribute is mandatory.
13651  *
13652  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
13653  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
13654  * A cached message will be dropped by firmware if it's expired.
13655  * This attribute is optional. A default value of 40000 will be used in the
13656  * absence of it.
13657  */
13658 enum qca_wlan_vendor_attr_coap_offload_reply {
13659 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
13660 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
13661 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
13662 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
13663 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
13664 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
13665 
13666 	/* keep last */
13667 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
13668 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
13669 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
13670 };
13671 
13672 /**
13673  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
13674  * CoAP message (UDP) transmitting on IPv4.
13675  *
13676  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
13677  * u32 attribute. Source address (in network byte order) for transmitting
13678  * packets on IPv4.
13679  * This attribute is mandatory.
13680  *
13681  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
13682  * u16 attribute. Source UDP port.
13683  * This attribute is optional, a random port is taken if it's not present.
13684  *
13685  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
13686  * u32 attribute. Destination IPv4 address (in network byte order).
13687  * This attribute is mandatory.
13688  *
13689  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
13690  * Flag attribute. If it's present, indicates that
13691  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
13692  * address; while if not, indicates that the address is unicast/multicast
13693  * address.
13694  * This attribute is optional.
13695  *
13696  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
13697  * u16 attribute. Destination UDP port.
13698  * This attribute is mandatory.
13699  */
13700 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
13701 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
13702 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
13703 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
13704 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
13705 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
13706 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
13707 
13708 	/* keep last */
13709 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
13710 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
13711 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
13712 };
13713 
13714 /**
13715  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
13716  * CoAP message (UDP) transmitting on IPv6.
13717  *
13718  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
13719  * NLA_BINARY attribute, length is 16 bytes.
13720  * Source address (in network byte order) for transmitting packets on IPv6.
13721  * This attribute is mandatory.
13722  *
13723  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
13724  * u16 attribute. Source UDP port.
13725  * This attribute is optional, a random port is taken if it's not present.
13726  *
13727  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
13728  * NLA_BINARY attribute, length is 16 bytes.
13729  * Destination IPv6 address (in network byte order).
13730  * This attribute is mandatory.
13731  *
13732  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
13733  * u16 attribute. Destination UDP port.
13734  * This attribute is mandatory.
13735  */
13736 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
13737 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
13738 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
13739 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
13740 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
13741 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
13742 
13743 	/* keep last */
13744 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
13745 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
13746 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
13747 };
13748 
13749 /**
13750  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
13751  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
13752  *
13753  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
13754  * Nested attribute. The IPv4 source/destination address/port for offload
13755  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
13756  * of supported attributes.
13757  * This attribute is optional.
13758  *
13759  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
13760  * Nested attribute. The IPv6 source/destination address/port for offload
13761  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
13762  * of supported attributes.
13763  * This attribute is optional.
13764  *
13765  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
13766  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
13767  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
13768  * configured.
13769  *
13770  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
13771  * u32 attribute. Period in milliseconds for the periodic transmitting.
13772  * This attribute is mandatory.
13773  *
13774  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
13775  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13776  * CoAP message (UDP payload) to be periodically transmitted. Firmware
13777  * is responsible for adding any necessary protocol headers.
13778  * This attribute is mandatory.
13779  */
13780 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
13781 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
13782 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
13783 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
13784 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
13785 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
13786 
13787 	/* keep last */
13788 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
13789 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
13790 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
13791 };
13792 
13793 /**
13794  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
13795  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
13796  *
13797  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
13798  * u64 attribute. Received time (since system booted in microseconds) of
13799  * the cached CoAP message.
13800  * This attribute is mandatory.
13801  *
13802  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
13803  * u32 attribute. Source IPv4 address (in network byte order) of the cached
13804  * CoAP message.
13805  * This attribute is optional.
13806  *
13807  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
13808  * NLA_BINARY attribute, length is 16 bytes.
13809  * Source IPv6 address (in network byte order) of the cached CoAP message.
13810  * This attribute is optional.
13811  *
13812  * At most and at least one of
13813  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
13814  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
13815  * an entry.
13816  *
13817  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
13818  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13819  * The cached CoAP message (UDP payload). If the actual message size is
13820  * greater than the maximum size, it will be truncated and leaving only
13821  * the first 1152 bytes.
13822  * This attribute is mandatory.
13823  */
13824 enum qca_wlan_vendor_attr_coap_offload_cache_info {
13825 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
13826 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
13827 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
13828 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
13829 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
13830 
13831 	/* keep last */
13832 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
13833 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
13834 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
13835 };
13836 
13837 /**
13838  * enum qca_wlan_vendor_coap_offload_action - Actions for
13839  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13840  *
13841  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
13842  * Enable CoAP offload reply.
13843  * If it's enabled, firmware will start offload processing on each suspend
13844  * and stop on each resume.
13845  *
13846  * Offload reply on match works as follows:
13847  * Reply the packets that match the filter with the given CoAP
13848  * message (with necessary protocol headers), increase the CoAP message
13849  * ID in the given CoAP message by one for the next use after each successful
13850  * transmission, and try to store the information of the received packet,
13851  * including the received time, source IP address, and CoAP message (UDP
13852  * payload).
13853  *
13854  * Firmware has a limit to the maximum stored entries, it takes the source IP
13855  * address as the key of an entry, and keeps at most one entry for each key.
13856  * A packet won't be stored if no entry for the same key is present and the
13857  * total number of the existing unexpired entries reaches the maximum value.
13858  *
13859  * If any configured item is changed, user space should disable offload reply
13860  * first and then issue a new enable request.
13861  *
13862  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
13863  * Disable CoAP offload reply and return information of any cached CoAP
13864  * messages.
13865  *
13866  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
13867  * Enable CoAP offload periodic transmitting.
13868  * If it's enabled, firmware will start offload periodic transmitting on
13869  * each suspend and stop on each resume.
13870  *
13871  * Offload periodic transmitting works as follows:
13872  * Send the given CoAP message (with necessary protocol headers) with the given
13873  * source/destination IP address/UDP port periodically based on the given
13874  * period and increase the CoAP message ID in the given CoAP message by one
13875  * for the next use after each successful transmission.
13876  *
13877  * If any configured item is changed, user space should disable offload
13878  * periodic transmitting first and then issue a new enable request.
13879  *
13880  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
13881  * Disable CoAP offload periodic transmitting.
13882  *
13883  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
13884  * Get information of the CoAP messages cached during offload reply
13885  * processing. The cache is cleared after retrieval.
13886  */
13887 enum qca_wlan_vendor_coap_offload_action {
13888 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
13889 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
13890 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
13891 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
13892 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
13893 };
13894 
13895 /**
13896  * enum qca_wlan_vendor_attr_coap_offload - Used by the
13897  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
13898  * This is used to set parameters for CoAP offload processing, or get
13899  * cached CoAP messages from firmware.
13900  *
13901  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
13902  * u32 attribute. Action to take in this vendor command.
13903  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
13904  * This attribute is mandatory.
13905  *
13906  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
13907  * u32 attribute. Represents the Request ID for the CoAP offload
13908  * configuration, which can help to identify the user entity starting
13909  * the CoAP offload processing and accordingly stop the respective
13910  * ones/get the cached CoAP messages with the matching ID.
13911  * This attribute is mandatory.
13912  *
13913  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
13914  * Nested attribute. Parameters for offload reply.
13915  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
13916  * supported attributes.
13917  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13918  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
13919  * otherwise.
13920  *
13921  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
13922  * Nested attribute. Parameters for offload periodic transmitting.
13923  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
13924  * supported attributes.
13925  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
13926  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
13927  * otherwise.
13928  *
13929  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
13930  * Array of nested attributes. Information of the cached CoAP messages,
13931  * where each entry is taken from
13932  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
13933  * This attribute is used for reporting the cached CoAP messages
13934  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
13935  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
13936  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
13937  * cached item if this attribute is not present.
13938  */
13939 enum qca_wlan_vendor_attr_coap_offload {
13940 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
13941 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
13942 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
13943 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
13944 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
13945 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
13946 
13947 	/* keep last */
13948 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
13949 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
13950 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
13951 };
13952 
13953 /**
13954  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
13955  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
13956  * Service (SCS) rule.
13957  *
13958  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
13959  * Represents the unique id of SCS rule to be configured.
13960 
13961  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
13962  * Represents the request type: add, remove, or change.
13963  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
13964  * Type definitions).
13965  *
13966  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
13967  * in case of add/change request type.
13968  * Represents the output traffic identifier (TID) to be assigned to the flow
13969  * matching the rule.
13970  *
13971  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
13972  * attribute in case of add/change request type.
13973  * Represents type of classifier parameters present in SCS rule.
13974  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
13975  * Only classifier types 4 and 10 are supported for SCS.
13976  *
13977  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
13978  * in case of add/change request type when classifier type is TCLAS4.
13979  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
13980  *
13981  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
13982  * attribute in case of add/change request type when classifier type is TCLAS4
13983  * and version attribute is IPv4.
13984  * Represents the source IPv4 address in the rule which is to be compared
13985  * against the source IP address in the IPv4 header.
13986  *
13987  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
13988  * attribute in case of add/change request type when classifier type is TCLAS4
13989  * and version attribute is IPv4.
13990  * Represents the destination IPv4 address in the rule which is to be compared
13991  * against the destination IP address in the IPv4 header.
13992  *
13993  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
13994  * attribute in case of add/change request type when classifier type is TCLAS4
13995  * and version attribute is IPv6.
13996  * Represents the source IPv6 address in the rule which is to be compared
13997  * against the source IP address in the IPv6 header.
13998  *
13999  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14000  * attribute in case of add/change request type when classifier type is TCLAS4
14001  * and version attribute is IPv6.
14002  * Represents the destination IPv6 address in the rule which is to be compared
14003  * against the destination IP address in the IPv6 header.
14004  *
14005  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14006  * in case of add/change request type when classifier type is TCLAS4.
14007  * Represents the source port number in the rule which is to be compared against
14008  * the source port number in the protocol header.
14009  *
14010  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14011  * in case of add/change request type when classifier type is TCLAS4.
14012  * Represents the destination port number in the rule which is to be compared
14013  * against the destination port number in the protocol header.
14014  *
14015  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14016  * in case of add/change request type when classifier type is TCLAS4.
14017  * Represents the DSCP value in the rule which is to be compared against the
14018  * DSCP field present in the IP header.
14019  *
14020  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14021  * attribute in case of add/change request type when classifier type is TCLAS4.
14022  * Represents the protocol/next header in the rule which is to be compared
14023  * against the protocol/next header field present in the IPv4/IPv6 header.
14024  *
14025  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14026  * attribute of size 3 bytes present in case of add/change request type
14027  * when classifier type is TCLAS4 and version is IPv6.
14028  * Represents the flow label value in the rule which is to be compared against
14029  * the flow label field present in the IPv6 header.
14030  *
14031  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14032  * attribute in case of add/change request type when classifier type is TCLAS10.
14033  * Represents the protocol instance number in the rule.
14034  *
14035  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14036  * attribute in case of add/change request type when classifier type is TCLAS10.
14037  * Represents the protocol/next header in the rule which is to be compared
14038  * against the protocol/next header field present in the IPv4/IPv6 header.
14039  *
14040  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14041  * attribute of variable length present when request type is add/change and
14042  * classifier type is TCLAS10.
14043  * Represents the mask to be used for masking the header contents of the header
14044  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14045  * attribute.
14046  *
14047  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14048  * attribute of variable length present when request type is add/change and
14049  * classifier type is TCLAS10.
14050  * Represents the value to be compared against after masking the header contents
14051  * of the header specified by the
14052  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14053  * filter mask specified by the
14054  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
14055  */
14056 enum qca_wlan_vendor_attr_scs_rule_config {
14057 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14058 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14059 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14060 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14061 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14062 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14063 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14064 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14065 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14066 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14067 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14068 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14069 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14070 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14071 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14072 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14073 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14074 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14075 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
14076 
14077 	/* Keep last */
14078 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14079 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14080 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14081 };
14082 
14083 /**
14084  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
14085  * used in the firmware.
14086  *
14087  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
14088  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
14089  *
14090  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14091  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14092  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14093  * groups.
14094  *
14095  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14096  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14097  * CTL group but user can choose up to 3 SAR set index only, as the top half
14098  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14099  * the SAR index (3 to 5) is used for DBS mode.
14100  */
14101 enum qca_wlan_vendor_sar_version {
14102 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14103 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14104 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14105 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14106 };
14107 
14108 /**
14109  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14110  * CTL grouping is enabled or disabled in the firmware.
14111  *
14112  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14113  * is enabled in firmware.
14114  *
14115  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14116  * is disabled in firmware.
14117  *
14118  */
14119 enum qca_wlan_vendor_sar_ctl_group_state {
14120 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14121 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14122 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14123 };
14124 
14125 /**
14126  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
14127  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
14128  * supported by the firmware.
14129 
14130  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
14131  * u32 attribute. This field describes current SAR version supported by the
14132  * firmware.
14133  * See enum qca_wlan_vendor_sar_version for more information.
14134  * This attribute is mandatory.
14135 
14136  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
14137  * u32 attribute. This field describes whether CTL groups are enabled
14138  * or disabled in the firmware.
14139  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
14140  * This attribute is optional.
14141  */
14142 
14143 enum qca_wlan_vendor_attr_sar_capability {
14144 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
14145 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
14146 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
14147 
14148 	/* Keep last */
14149 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
14150 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
14151 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
14152 };
14153 
14154 #endif
14155