xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 8cfe6b10058a04cafb17eed051f2ddf11bee8931)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: declares vendor commands interfacing with linux kernel
22  */
23 
24 
25 #ifndef _WLAN_QCA_VENDOR_H_
26 #define _WLAN_QCA_VENDOR_H_
27 
28 /* Vendor id to be used in vendor specific command and events
29  * to user space.
30  * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
31  * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
32  * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
33  * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
34  */
35 
36 #define QCA_NL80211_VENDOR_ID           0x001374
37 
38 #ifndef BIT
39 #define BIT(x) (1U << (x))
40 #endif
41 
42 /**
43  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
44  *
45  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
46  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
47  *	Sub commands 2 to 8 are not used
48  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
49  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
50  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
51  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52  *	NAN Request/Response and NAN Indication messages. These messages are
53  *	interpreted between the framework and the firmware component. While
54  *	sending the command from userspace to the driver, payload is not
55  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56  *	is used when receiving vendor events in userspace from the driver.
57  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
59  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
61  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
62  *	results
63  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
64  *	results
65  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
66  *	results
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
68  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
69  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
70  *	channels
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
72  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
73  *	results
74  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
75  *	available. Used when report_threshold is reached in scan cache.
76  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
77  *	result. Used to report scan results when each probe rsp. is received,
78  *	if report_events enabled in wifi_scan_cmd_params.
79  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
80  *	Indicates progress of scanning state-machine.
81  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
82  *	ap found
83  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
84  *	bssid
85  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
86  *	hotlist bssid
87  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
88  *	change
89  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
90  *	significant change
91  *	ap found
92  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
93  *	significant change
94  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: 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_POLICY: Vendor command to
490  *	configure the concurrent session policies when multiple interfaces
491  *	are (getting) active. The attributes used by this command are defined
492  *	in enum qca_wlan_vendor_attr_concurrent_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  * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
628  *	(SR) feature. This command is used by userspace to configure SR
629  *	parameters to the driver and to get the SR related parameters and
630  *	statistics with synchronous responses from the driver.
631  *	The driver also uses this command to send asynchronous events to
632  *	userspace to indicate suspend/resume of SR feature and changes
633  *	in SR parameters.
634  *
635  *	The attributes used with this command are defined in
636  *	enum qca_wlan_vendor_attr_sr.
637  *
638  * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
639  *	notify application layer about the primary netdev of an MLO connection.
640  *	In some implementations, MLO has multiple netdevs out of which one
641  *	netdev is designated as primary to provide a unified interface to the
642  *	bridge. In those implementations this event is sent on every MLO peer
643  *	connection.
644  *
645  *	The attributes used with this event are defined in
646  *	enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
647  *
648  * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
649  *	driver to notify different AFC events to userspace. The attributes used
650  *	with this command are defined in enum qca_wlan_vendor_attr_afc_event.
651  *
652  * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
653  *	userspace to deliver AFC response data to driver. The attributes used
654  *	with this command are defined in enum qca_wlan_vendor_attr_afc_response.
655  *
656  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
657  *	operate in doze mode.
658  *
659  *	Userspace uses this command to configure the AP interface to enter or
660  *	exit from doze mode. The driver sends this event after it enters or
661  *	exits the doze mode with the updated AP doze mode settings.
662  *
663  *	The attributes used with this subcommand are defined in
664  *	enum qca_wlan_vendor_attr_dozed_ap.
665  *
666  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
667  *	get roam information from the driver to user space. It provides the
668  *	latest several instances of roam information cached in the driver.
669  *	The command is only used for STA mode. The attributes used with this
670  *	command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
671  */
672 
673 enum qca_nl80211_vendor_subcmds {
674 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
675 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
676 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
677 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
678 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
679 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
680 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
681 
682 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
683 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
684 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
685 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
686 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
687 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
688 
689 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
690 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
691 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
692 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
693 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
694 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
695 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
696 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
697 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
698 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
699 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
700 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
701 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
702 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
703 
704 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
705 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
706 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
707 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
708 
709 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
710 
711 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
712 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
713 
714 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
715 
716 	/* Get Concurrency Matrix */
717 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
718 
719 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
720 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
721 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
722 
723 	/* Deprecated */
724 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
725 
726 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
727 
728 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
729 
730 	/* Off loaded DFS events */
731 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
732 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
733 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
734 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
735 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
736 
737 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
738 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
739 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
740 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
741 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
742 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
743 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
744 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
745 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
746 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
747 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
748 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
749 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
750 
751 	/* Wi-Fi Configuration subcommands */
752 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
753 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
754 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
755 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
756 
757 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
758 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
759 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
760 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
761 
762 	/* NS Offload enable/disable cmd */
763 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
764 
765 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
766 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
767 
768 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
769 
770 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
771 	/* OCB commands */
772 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
773 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
774 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
775 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
776 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
777 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
778 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
779 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
780 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
781 
782 	/* subcommand to get link properties */
783 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
784 	/* LFR Subnet Detection */
785 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
786 
787 	/* DBS subcommands */
788 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
789 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
790 
791 	/* Vendor setband command */
792 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
793 
794 	/* Vendor scan commands */
795 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
796 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
797 
798 	/* OTA test subcommand */
799 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
800 	/* Tx power scaling subcommands */
801 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
802 	/* Tx power scaling in db subcommands */
803 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
804 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
805 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
806 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
807 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
808 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
809 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
810 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
811 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
812 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
813 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
814 
815 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
816 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
817 	/* FTM/indoor location subcommands */
818 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
819 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
820 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
821 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
822 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
823 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
824 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
825 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
826 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
827 
828 	/* Encrypt/Decrypt command */
829 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
830 
831 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
832 	/* DMG low level RF sector operations */
833 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
834 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
835 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
836 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
837 
838 	/* Configure the TDLS mode from user space */
839 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
840 
841 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
842 
843 	/* Vendor abort scan command */
844 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
845 
846 	/* Set Specific Absorption Rate(SAR) Power Limits */
847 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
848 
849 	/* External Auto channel configuration setting */
850 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
851 
852 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
853 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
854 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
855 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
856 
857 	/* Set the trace level for QDF */
858 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
859 
860 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
861 
862 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
863 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
864 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
865 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
866 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
867 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
868 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
869 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
870 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
871 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
872 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
873 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
874 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
875 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
876 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
877 	/* Wi-Fi test configuration subcommand */
878 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
879 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
880 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
881 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
882 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
883 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
884 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
885 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
886 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
887 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
888 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
889 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
890 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
891 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
892 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
893 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
894 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
895 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
896 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
897 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
898 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
899 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
900 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
901 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
902 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
903 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
904 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
905 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
906 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
907 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
908 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
909 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
910 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
911 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
912 	/* 206..212 - reserved for QCA */
913 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
914 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
915 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
916 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
917 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
918 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
919 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
920 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
921 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
922 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
923 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
924 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
925 	QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
926 };
927 
928 enum qca_wlan_vendor_tos {
929 	QCA_WLAN_VENDOR_TOS_BK = 0,
930 	QCA_WLAN_VENDOR_TOS_BE = 1,
931 	QCA_WLAN_VENDOR_TOS_VI = 2,
932 	QCA_WLAN_VENDOR_TOS_VO = 3,
933 };
934 
935 /**
936  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
937  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
938  */
939 enum qca_wlan_vendor_attr_active_tos {
940 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
941 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
942 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
943 	/* Flag attribute representing the start (attribute included) or stop
944 	 * (attribute not included) of the respective TOS.
945 	 */
946 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
947 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
948 };
949 
950 enum qca_wlan_vendor_hang_reason {
951 	/* Unspecified reason */
952 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
953 	/* No Map for the MAC entry for the received frame */
954 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
955 	/* peer deletion timeout happened */
956 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
957 	/* peer unmap timeout */
958 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
959 	/* Scan request timed out */
960 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
961 	/* Consecutive Scan attempt failures */
962 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
963 	/* Unable to get the message buffer */
964 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
965 	/* Current command processing is timedout */
966 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
967 	/* Timeout for an ACK from FW for suspend request */
968 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
969 	/* Timeout for an ACK from FW for resume request */
970 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
971 	/* Transmission timeout for consecutive data frames */
972 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
973 	/* Timeout for the TX completion status of data frame */
974 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
975 	/* DXE failure for tx/Rx, DXE resource unavailability */
976 	QCA_WLAN_HANG_DXE_FAILURE = 12,
977 	/* WMI pending commands exceed the maximum count */
978 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
979 	/* Timeout for peer STA connection accept command's response from the
980 	 * FW in AP mode. This command is triggered when a STA (peer) connects
981 	 * to AP (DUT).
982 	 */
983 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
984 	/* Timeout for the AP connection accept command's response from the FW
985 	 * in STA mode. This command is triggered when the STA (DUT) connects
986 	 * to an AP (peer).
987 	 */
988 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
989 	/* Timeout waiting for the response to the MAC HW mode change command
990 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
991 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
992 	 * Channel Concurrency) mode.
993 	 */
994 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
995 	/* Timeout waiting for the response from FW to configure the MAC HW's
996 	 * mode. This operation is to configure the single/two MACs in either
997 	 * SCC/MCC/DBS mode.
998 	 */
999 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
1000 	/* Timeout waiting for response of VDEV start command from the FW */
1001 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
1002 	/* Timeout waiting for response of VDEV restart command from the FW */
1003 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
1004 	/* Timeout waiting for response of VDEV stop command from the FW */
1005 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
1006 	/* Timeout waiting for response of VDEV delete command from the FW */
1007 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
1008 	/* Timeout waiting for response of peer all delete request command to
1009 	 * the FW on a specific VDEV.
1010 	 */
1011 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
1012 	/* WMI sequence mismatch between WMI command and Tx completion */
1013 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
1014 	/* Write to Device HAL register failed */
1015 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
1016 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
1017 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
1018 	/* Bus failure */
1019 	QCA_WLAN_HANG_BUS_FAILURE = 26,
1020 	/* tasklet/credit latency found */
1021 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
1022 	/* MSDU buffers received in REO error ring, exceeding certain
1023 	 * threshold
1024 	 */
1025 	QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
1026 	/* Vdev SM is out of sync and connect req received
1027 	 * when already connected
1028 	 */
1029 	QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
1030 	/* Stats request timeout */
1031 	QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
1032 	/* Leak in TX descriptor for a packet */
1033 	QCA_WLAN_HANG_TX_DESC_LEAK = 31,
1034 	/* Scheduler watchdog timeout */
1035 	QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
1036 	/* Failed to send self peer deletion cmd to firmware */
1037 	QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
1038 	/* Received del self sta without del bss */
1039 	QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
1040 	/* Recovery needed when sending flush completion to userspace */
1041 	QCA_WLAN_HANG_FLUSH_LOGS = 35,
1042 	/* Host wakeup because of page fault */
1043 	QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
1044 };
1045 
1046 /**
1047  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
1048  * QCA_NL80211_VENDOR_SUBCMD_HANG.
1049  */
1050 enum qca_wlan_vendor_attr_hang {
1051 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
1052 	/*
1053 	 * Reason for the Hang - Represented by enum
1054 	 * qca_wlan_vendor_hang_reason.
1055 	 */
1056 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
1057 	/* The binary blob data associated with the hang reason specified by
1058 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
1059 	 * contain the required dump to analyze the reason for the hang.
1060 	 * NLA_BINARY attribute, the max size is 1024 bytes.
1061 	 */
1062 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
1063 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
1064 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
1065 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
1066 };
1067 
1068 /**
1069  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
1070  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
1071  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
1072  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
1073     level needs to be updated.
1074  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
1075  * to be set.
1076  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
1077  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
1078  */
1079 enum qca_vendor_attr_set_trace_level {
1080 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1081 	/*
1082 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1083 	* attributes.
1084 	*/
1085 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1086 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1087 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1088 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1089 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1090 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1091 };
1092 
1093 /**
1094  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1095  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1096  * station information. The information obtained through these
1097  * commands signify the current info in connected state and
1098  * latest cached information during the connected state , if queried
1099  * when in disconnected state.
1100  *
1101  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1102  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1103  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1104  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1105  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1106  */
1107 enum qca_wlan_vendor_attr_get_station {
1108 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1109 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1110 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1111 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1112 
1113 	/* keep last */
1114 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1115 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1116 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1117 };
1118 
1119 /**
1120  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1121  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1122  *
1123  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1124  * Used in STA mode. This attribute represents the list of channel center
1125  * frequencies in MHz (u32) the station has learnt during the last connection
1126  * or roaming attempt. This information shall not signify the channels for
1127  * an explicit scan request from the user space. Host drivers can update this
1128  * information to the user space in both connected and disconnected state.
1129  * In the disconnected state this information shall signify the channels
1130  * scanned in the last connection/roam attempt that lead to the disconnection.
1131  */
1132 enum qca_wlan_vendor_attr_update_sta_info {
1133 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1134 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1135 
1136 	/* keep last */
1137 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1138 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1139 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1140 };
1141 
1142 /**
1143  * enum qca_wlan_802_11_mode - dot11 mode
1144  * @QCA_WLAN_802_11_MODE_11B: mode B
1145  * @QCA_WLAN_802_11_MODE_11G: mode G
1146  * @QCA_WLAN_802_11_MODE_11N: mode N
1147  * @QCA_WLAN_802_11_MODE_11A: mode A
1148  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1149  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1150  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1151  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1152  */
1153 enum qca_wlan_802_11_mode {
1154 	QCA_WLAN_802_11_MODE_11B,
1155 	QCA_WLAN_802_11_MODE_11G,
1156 	QCA_WLAN_802_11_MODE_11N,
1157 	QCA_WLAN_802_11_MODE_11A,
1158 	QCA_WLAN_802_11_MODE_11AC,
1159 	QCA_WLAN_802_11_MODE_11AX,
1160 	QCA_WLAN_802_11_MODE_11BE,
1161 	QCA_WLAN_802_11_MODE_INVALID,
1162 };
1163 
1164 /**
1165  * enum qca_wlan_auth_type - Authentication key management type
1166  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1167  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1168  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1169  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1170  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1171  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1172  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1173  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1174  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1175  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1176  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1177  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1178  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1179  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1180  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1181  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1182  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1183  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1184  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1185  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1186  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1187  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1188  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1189  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1190  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1191  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1192  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1193  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1194  */
1195 enum qca_wlan_auth_type {
1196 	QCA_WLAN_AUTH_TYPE_INVALID,
1197 	QCA_WLAN_AUTH_TYPE_OPEN,
1198 	QCA_WLAN_AUTH_TYPE_SHARED,
1199 	QCA_WLAN_AUTH_TYPE_WPA,
1200 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1201 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1202 	QCA_WLAN_AUTH_TYPE_RSN,
1203 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1204 	QCA_WLAN_AUTH_TYPE_FT,
1205 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1206 	QCA_WLAN_AUTH_TYPE_SHA256,
1207 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1208 	QCA_WLAN_AUTH_TYPE_WAI,
1209 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1210 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1211 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1212 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1213 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1214 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1215 	QCA_WLAN_AUTH_TYPE_SAE,
1216 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1217 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1218 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1219 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1220 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1221 	QCA_WLAN_AUTH_TYPE_OWE,
1222 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1223 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1224 };
1225 
1226 /**
1227  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1228  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1229  *
1230  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1231  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1232  *  Get the standard NL attributes Nested with this attribute.
1233  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1234  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1235  *  NL80211_ATTR_STA_INFO
1236  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1237  *  Get the standard NL attributes Nested with this attribute.
1238  *  Ex : Query HT/VHT Capability advertized by the AP.
1239  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1240  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1241  *  Number of successful Roam attempts before a
1242  *  disconnect, Unsigned 32 bit value
1243  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1244  *  Authentication Key Management Type used for the connected session.
1245  *  Signified by enum qca_wlan_auth_type
1246  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1247  *  connected Session, signified by enum qca_wlan_802_11_mode
1248  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1249  *  HS20 Indication Element
1250  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1251  *  Status Code Corresponding to the Association Failure.
1252  *  Unsigned 32 bit value.
1253  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1254  *  Max phy rate of remote station
1255  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1256  *  TX packets to remote station
1257  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1258  *  TX bytes to remote station
1259  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1260  *  RX packets from remote station
1261  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1262  *  RX bytes from remote station
1263  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1264  *  Last TX rate with remote station
1265  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1266  *  Last RX rate with remote station
1267  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1268  *  Remote station enable/disable WMM
1269  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1270  *  Remote station connection mode
1271  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1272  *  Remote station AMPDU enable/disable
1273  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1274  *  Remote station TX Space-time block coding enable/disable
1275  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1276  *  Remote station RX Space-time block coding enable/disable
1277  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1278  *  Remote station channel width
1279  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1280  *  Remote station short GI enable/disable
1281  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1282  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1283  *  containing the raw information elements from Beacon frames. Represents
1284  *  the Beacon frames of the current BSS in the connected state. When queried
1285  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1286  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1287  *  disconnect reason for the last disconnection if the disconnection is
1288  *  triggered from the host driver. The values are referred from
1289  *  enum qca_disconnect_reason_codes. If the disconnect is from
1290  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1291  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1292  *  Applicable in AP mode only. It contains the raw information elements
1293  *  from assoc request frame of the given peer station. User queries with the
1294  *  mac address of peer station when it disconnects. Host driver sends
1295  *  assoc request frame of the given station. Host driver doesn't provide
1296  *  the IEs when the peer station is still in connected state.
1297  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1298  * sending HE operation info.
1299  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1300  *
1301  */
1302 enum qca_wlan_vendor_attr_get_station_info {
1303 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1304 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1305 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1306 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1307 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1308 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1309 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1310 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1311 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1312 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1313 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1314 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1315 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1316 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1317 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1318 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1319 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1320 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1321 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1322 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1323 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1324 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1325 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1326 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1327 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1328 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1329 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1330 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1331 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1332 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1333 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1334 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1335 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1336 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1337 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1338 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1339 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1340 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1341 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1342 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1343 
1344 	/* keep last */
1345 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1346 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1347 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1348 };
1349 
1350 /**
1351  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1352  *
1353  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1354  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1355  *	value
1356  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1357  *	keep as unsigned for now
1358  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1359  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1360  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1361  *	in KBPS
1362  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1363  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1364  */
1365 enum qca_wlan_vendor_attr_tdls_enable {
1366 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1367 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1368 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1369 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1370 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1371 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1372 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1373 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1374 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1375 };
1376 
1377 /**
1378  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1379  *
1380  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1381  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1382  *	8-bit value
1383  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1384  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1385  */
1386 enum qca_wlan_vendor_attr_tdls_disable {
1387 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1388 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1389 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1390 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1391 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1392 };
1393 
1394 /**
1395  * qca_chip_power_save_failure_reason: Power save failure reason
1396  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1397  * due to protocol/module.
1398  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1399  * due to hardware
1400  */
1401 enum qca_chip_power_save_failure_reason {
1402 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1403 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1404 };
1405 
1406 /**
1407  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1408  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1409  * information leading to the power save failure.
1410  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1411  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1412  * represented by enum qca_chip_power_save_failure_reason
1413  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1414  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1415  */
1416 enum qca_attr_chip_power_save_failure {
1417 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1418 
1419 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1420 
1421 	/* keep last */
1422 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1423 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1424 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1425 };
1426 
1427 
1428 /**
1429  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1430  *
1431  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1432  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1433  *	8-bit value
1434  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1435  *	unsigned 32-bit value
1436  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1437  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1438  *	unsigned 32-bit value
1439  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1440  *	class, unsigned 32-bit value
1441  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1442  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1443  */
1444 enum qca_wlan_vendor_attr_tdls_get_status {
1445 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1446 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1447 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1448 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1449 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1450 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1451 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1452 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1453 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1454 };
1455 
1456 /**
1457  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1458  *
1459  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1460  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1461  *	8-bit value
1462  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1463  *	unsigned 32-bit value
1464  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1465  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1466  *	unsigned 32-bit value
1467  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1468  *	operating class, unsigned 32-bit value
1469  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1470  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1471  */
1472 enum qca_wlan_vendor_attr_tdls_state {
1473 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1474 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1475 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1476 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1477 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1478 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1479 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1480 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1481 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1482 };
1483 
1484 /* enum's to provide TDLS capabilities */
1485 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1486 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1487 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1488 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1489 
1490 	/* keep last */
1491 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1492 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1493 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1494 };
1495 
1496 /* Compatibility defines for previously used subcmd names.
1497  * These values should not be used in any new implementation.
1498  */
1499 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1500 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1501 
1502 enum qca_wlan_vendor_attr {
1503 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1504 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1505 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1506 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1507 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1508 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1509 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1510 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1511 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1512 	/*
1513 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1514 	 * by enum qca_roaming_policy.
1515 	 */
1516 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1517 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1518 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1519 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1520 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1521 	/*
1522 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1523 	 * Unsigned 32-bit value.
1524 	 */
1525 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1526 	/* Unsigned 32-bit value */
1527 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1528 	/* Unsigned 32-bit value */
1529 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1530 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1531 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1532 	 * is deprecated. Recommendation is to use
1533 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1534 	 * using both the attributes, the ones configured through
1535 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1536 	 */
1537 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1538 	/* Dummy (NOP) attribute for 64 bit padding */
1539 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1540 	/*
1541 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1542 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1543 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1544 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1545 	 */
1546 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1547 	/*
1548 	 * Indoor location capabilities, returned by
1549 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1550 	 * see enum qca_wlan_vendor_attr_loc_capa.
1551 	 */
1552 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1553 	/*
1554 	 * Array of nested attributes containing information about each peer
1555 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1556 	 * for supported attributes for each peer.
1557 	 */
1558 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1559 	/*
1560 	 * Array of nested attributes containing measurement results for
1561 	 * one or more peers, reported by the
1562 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1563 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1564 	 * attributes.
1565 	 */
1566 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1567 	/* Flag attribute for enabling or disabling responder functionality. */
1568 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1569 	/*
1570 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1571 	 * command to specify the LCI report that will be sent by
1572 	 * the responder during a measurement exchange. The format is
1573 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1574 	 */
1575 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1576 	/*
1577 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1578 	 * command to specify the location civic report that will
1579 	 * be sent by the responder during a measurement exchange.
1580 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1581 	 */
1582 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1583 	/*
1584 	 * Session/measurement completion status code,
1585 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1586 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1587 	 * see enum qca_vendor_attr_loc_session_status.
1588 	 */
1589 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1590 	/*
1591 	 * Initial dialog token used by responder (0 if not specified),
1592 	 * unsigned 8 bit value.
1593 	 */
1594 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1595 	/*
1596 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1597 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1598 	 * AOA measurements are needed as part of an FTM session.
1599 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1600 	 * enum qca_wlan_vendor_attr_aoa_type.
1601 	 */
1602 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1603 	/*
1604 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1605 	 * by indoor location measurements. Refers to the antenna
1606 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1607 	 */
1608 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1609 	/*
1610 	 * AOA measurement data. Its contents depends on the AOA measurement
1611 	 * type and antenna array mask:
1612 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1613 	 * phase of the strongest CIR path for each antenna in the measured
1614 	 * array(s).
1615 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1616 	 * values, phase and amplitude of the strongest CIR path for each
1617 	 * antenna in the measured array(s).
1618 	 */
1619 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1620 	/*
1621 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1622 	 * to specify the chain number (unsigned 32 bit value) to inquire
1623 	 * the corresponding antenna RSSI value */
1624 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1625 	/*
1626 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1627 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1628 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1629 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1630 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1631 	/*
1632 	 *  TSF timer value, unsigned 64 bit value.
1633 	 * May be returned by various commands.
1634 	 */
1635 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1636 	/*
1637 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1638 	 * 0..127 for sector indices or 65535 as special value used to
1639 	 * unlock sector selection in
1640 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1641 	 */
1642 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1643 	/*
1644 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1645 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1646 	 */
1647 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1648 	/*
1649 	 * Bitmask of DMG RF modules for which information is requested. Each
1650 	 * bit corresponds to an RF module with the same index as the bit
1651 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1652 	 * all DMG chips currently have up to 8 RF modules.
1653 	 */
1654 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1655 	/*
1656 	 * Array of nested attributes where each entry is DMG RF sector
1657 	 * configuration for a single RF module.
1658 	 * Attributes for each entry are taken from enum
1659 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1660 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1661 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1662 	 */
1663 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1664 	/*
1665 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1666 	 * to report frame aggregation statistics to userspace.
1667 	 */
1668 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1669 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1670 	/*
1671 	 * Unsigned 8-bit value representing MBO transition reason code as
1672 	 * provided by the AP used by subcommand
1673 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1674 	 * specified by the userspace in the request to the driver.
1675 	 */
1676 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1677 	/*
1678 	 * Array of nested attributes, BSSID and status code, used by subcommand
1679 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1680 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1681 	 * The userspace space specifies the list/array of candidate BSSIDs in
1682 	 * the order of preference in the request. The driver specifies the
1683 	 * status code, for each BSSID in the list, in the response. The
1684 	 * acceptable candidates are listed in the order preferred by the
1685 	 * driver.
1686 	 */
1687 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1688 	/*
1689 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1690 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1691 	 */
1692 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1693 	/*
1694 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1695 	 * to define the number of antennas to use for BRP.
1696 	 * different purpose in each ANT_LIMIT_MODE:
1697 	 * DISABLE - ignored
1698 	 * EFFECTIVE - upper limit to number of antennas to be used
1699 	 * FORCE - exact number of antennas to be used
1700 	 * unsigned 8 bit value
1701 	 */
1702 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1703 	/*
1704 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1705 	 * to report the corresponding antenna index to the chain RSSI value
1706 	 */
1707 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1708 	/*
1709 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1710 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1711 	 * With a determinate group of antennas, the driver specifies the
1712 	 * EVM value for each antenna ID, and application extract them
1713 	 * in user space.
1714 	 */
1715 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1716 	/*
1717 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1718 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1719 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1720 	 */
1721 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1722 
1723 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1724 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1725 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1726 	 * This attribute shall consider the bitmask combinations to define
1727 	 * the respective Band combinations and always takes precedence over
1728 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1729 	 */
1730 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1731 
1732 	/* keep last */
1733 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1734 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1735 };
1736 
1737 enum qca_wlan_vendor_attr_extscan_config_params {
1738 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1739 
1740 	/* Unsigned 32-bit value */
1741 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1742 
1743 	/*
1744 	 * Attributes for data used by
1745 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1746 	 */
1747 
1748 	/* Unsigned 32-bit value */
1749 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1750 	= 2,
1751 	/* Unsigned 32-bit value */
1752 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1753 	= 3,
1754 
1755 	/*
1756 	 * Attributes for input params used by
1757 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1758 	 */
1759 
1760 	/* Unsigned 32-bit value; channel frequency */
1761 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1762 	/* Unsigned 32-bit value; dwell time in ms. */
1763 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1764 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1765 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1766 	/* Unsigned 8-bit value; channel class */
1767 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1768 
1769 	/* Unsigned 8-bit value; bucket index, 0 based */
1770 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1771 	/* Unsigned 8-bit value; band. */
1772 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1773 	/* Unsigned 32-bit value; desired period, in ms. */
1774 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1775 	/* Unsigned 8-bit value; report events semantics. */
1776 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1777 	/*
1778 	 * Unsigned 32-bit value. Followed by a nested array of
1779 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1780 	 */
1781 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1782 
1783 	/*
1784 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1785 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1786 	 */
1787 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1788 
1789 	/* Unsigned 32-bit value; base timer period in ms. */
1790 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1791 	/*
1792 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1793 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1794 	 */
1795 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1796 	/*
1797 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1798 	 * up AP.
1799 	 */
1800 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1801 	= 16,
1802 
1803 	/*
1804 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1805 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1806 	 * of the array is determined by NUM_BUCKETS.
1807 	 */
1808 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1809 
1810 	/*
1811 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1812 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1813 	 */
1814 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1815 
1816 	/* Unsigned 8-bit value */
1817 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1818 	= 19,
1819 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1820 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1821 	= 20,
1822 
1823 	/* An array of 6 x unsigned 8-bit value */
1824 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1825 	/* Signed 32-bit value */
1826 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1827 	/* Signed 32-bit value */
1828 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1829 	/* Unsigned 32-bit value */
1830 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1831 
1832 	/*
1833 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1834 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1835 	 * array is determined by NUM_AP.
1836 	 */
1837 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1838 
1839 	/*
1840 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1841 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1842 	 */
1843 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1844 
1845 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1846 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1847 	= 27,
1848 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1849 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1850 	= 28,
1851 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1852 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1853 	/*
1854 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1855 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1856 	 */
1857 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1858 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1859 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1860 	= 31,
1861 	/*
1862 	 * Unsigned 32-bit value. If max_period is non zero or different than
1863 	 * period, then this bucket is an exponential backoff bucket.
1864 	 */
1865 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1866 	/* Unsigned 32-bit value. */
1867 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1868 	/*
1869 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1870 	 * scans to perform for a given period.
1871 	 */
1872 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1873 	/*
1874 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1875 	 * many scans.
1876 	 */
1877 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1878 	= 35,
1879 
1880 	/*
1881 	 * Attributes for data used by
1882 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1883 	 */
1884 
1885 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1886 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1887 	= 36,
1888 	/*
1889 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1890 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1891 	 * size of the array is determined by NUM_SSID.
1892 	 */
1893 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1894 	/*
1895 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1896 	 * attributes.
1897 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1898 	 */
1899 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1900 
1901 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1902 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1903 	/* Unsigned 8-bit value */
1904 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1905 	/* Signed 32-bit value */
1906 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1907 	/* Signed 32-bit value */
1908 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1909 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1910 	 */
1911 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1912 
1913 	/* keep last */
1914 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1915 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1916 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1917 };
1918 
1919 enum qca_wlan_vendor_attr_extscan_results {
1920 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1921 
1922 	/*
1923 	 * Unsigned 32-bit value; must match the request Id supplied by
1924 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1925 	 */
1926 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1927 
1928 	/*
1929 	 * Unsigned 32-bit value; used to indicate the status response from
1930 	 * firmware/driver for the vendor sub-command.
1931 	 */
1932 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1933 
1934 	/*
1935 	 * EXTSCAN Valid Channels attributes */
1936 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1937 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1938 	/*
1939 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1940 	 * representing channel numbers.
1941 	 */
1942 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1943 
1944 	/* EXTSCAN Capabilities attributes */
1945 
1946 	/* Unsigned 32-bit value */
1947 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1948 	/* Unsigned 32-bit value */
1949 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1950 	/* Unsigned 32-bit value */
1951 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1952 	= 7,
1953 	/* Unsigned 32-bit value */
1954 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1955 	= 8,
1956 	/* Signed 32-bit value */
1957 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1958 	= 9,
1959 	/* Unsigned 32-bit value */
1960 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1961 	/* Unsigned 32-bit value */
1962 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1963 	= 11,
1964 	/* Unsigned 32-bit value */
1965 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1966 	= 12,
1967 
1968 	/*
1969 	 * EXTSCAN Attributes used with
1970 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1971 	 */
1972 
1973 	/* Unsigned 32-bit value */
1974 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1975 
1976 	/*
1977 	 * EXTSCAN attributes used with
1978 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1979 	 */
1980 
1981 	/*
1982 	 * An array of NUM_RESULTS_AVAILABLE x
1983 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1984 	 */
1985 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1986 
1987 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1988 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1989 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1990 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1991 	/* An array of 6 x unsigned 8-bit value */
1992 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1993 	/* Unsigned 32-bit value; channel frequency in MHz */
1994 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1995 	/* Signed 32-bit value */
1996 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1997 	/* Unsigned 32-bit value */
1998 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1999 	/* Unsigned 32-bit value */
2000 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
2001 	/* Unsigned 16-bit value */
2002 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
2003 	/* Unsigned 16-bit value */
2004 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
2005 	/* Unsigned 32-bit value; size of the IE DATA blob */
2006 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
2007 	/*
2008 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
2009 	 * information elements found in the beacon; this data should be a
2010 	 * packed list of wifi_information_element objects, one after the
2011 	 * other.
2012 	 */
2013 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
2014 
2015 	/*
2016 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
2017 	 * available.
2018 	 */
2019 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
2020 
2021 	/*
2022 	 * EXTSCAN attributes for
2023 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
2024 	 */
2025 	/* Unsigned 8-bit value */
2026 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
2027 	/* Unsigned 32-bit value */
2028 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
2029 
2030 	/*
2031 	 * EXTSCAN attributes for
2032 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
2033 	 */
2034 	/*
2035 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2036 	 * to indicate number of results.
2037 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2038 	 * list of results.
2039 	 */
2040 
2041 	/*
2042 	 * EXTSCAN attributes for
2043 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
2044 	 */
2045 	/* An array of 6 x unsigned 8-bit value */
2046 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
2047 	/* Unsigned 32-bit value */
2048 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
2049 	= 30,
2050 	/* Unsigned 32-bit value. */
2051 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
2052 	= 31,
2053 	/*
2054 	 * A nested array of signed 32-bit RSSI values. Size of the array is
2055 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
2056 	 */
2057 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
2058 	= 32,
2059 
2060 	/*
2061 	 * EXTSCAN attributes used with
2062 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
2063 	 */
2064 	/*
2065 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2066 	 * to indicate number of extscan cached results returned.
2067 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
2068 	 *  the list of extscan cached results.
2069 	 */
2070 
2071 	/*
2072 	 * An array of NUM_RESULTS_AVAILABLE x
2073 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
2074 	 */
2075 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
2076 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
2077 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
2078 	/*
2079 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
2080 	 */
2081 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
2082 	/*
2083 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2084 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
2085 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2086 	 * list of wifi scan results returned for each cached result block.
2087 	 */
2088 
2089 	/*
2090 	 * EXTSCAN attributes for
2091 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2092 	 */
2093 	/*
2094 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2095 	 * number of results.
2096 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2097 	 * list of wifi scan results returned for each
2098 	 * wifi_passpoint_match_result block.
2099 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2100 	 */
2101 
2102 	/*
2103 	 * EXTSCAN attributes for
2104 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2105 	 */
2106 	/* Unsigned 32-bit value */
2107 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2108 	= 36,
2109 	/*
2110 	 * A nested array of
2111 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2112 	 * attributes. Array size =
2113 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2114 	 */
2115 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2116 
2117 	/* Unsigned 32-bit value; network block id for the matched network */
2118 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2119 	/*
2120 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2121 	 * list of wifi scan results returned for each
2122 	 * wifi_passpoint_match_result block.
2123 	 */
2124 	/* Unsigned 32-bit value */
2125 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2126 	/*
2127 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2128 	 * ANQP data in the information_element format.
2129 	 */
2130 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2131 
2132 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2133 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2134 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2135 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2136 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2137 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2138 	= 43,
2139 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2140 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2141 	= 44,
2142 
2143 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2144 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2145 
2146 	/* keep last */
2147 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2148 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2149 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2150 };
2151 
2152 /**
2153  * enum qca_vendor_interop_issues_ap_type - interop issues type
2154  * This enum defines the valid set of values of interop issues type. These
2155  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2156  *
2157  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2158  * when the STA's Qpower feature is enabled.
2159  */
2160 enum qca_vendor_interop_issues_ap_type {
2161 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2162 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2163 };
2164 
2165 /**
2166  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2167  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2168  *
2169  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2170  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2171  * 32-bit unsigned value, The type defined in enum
2172  * qca_vendor_interop_issues_ap_type are used.
2173  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2174  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2175  * it is present and mandatory for the command but is not used for
2176  * the event since only a single BSSID is reported in an event.
2177  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2178  * 6-byte MAC address. It is used within the nested
2179  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2180  * and without such encapsulation in the event case.
2181  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2182  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2183  */
2184 enum qca_vendor_attr_interop_issues_ap {
2185 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2186 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2187 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2188 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2189 	/* keep last */
2190 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2191 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2192 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2193 };
2194 
2195 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2196 
2197 /**
2198  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
2199  *
2200  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
2201  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
2202  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
2203  *	Aggressive stats gathering
2204  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
2205  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
2206  */
2207 enum qca_wlan_vendor_attr_ll_stats_set {
2208 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2209 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
2211 	/* keep last */
2212 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2213 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2214 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
2215 };
2216 
2217 /**
2218  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
2219  *
2220  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
2221  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
2222  *	provided by the caller issuing the GET stats command. When reporting
2223  *	the stats results, the driver uses the same value to indicate which
2224  *	GET request the results correspond to.
2225  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
2226  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2227  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2228  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
2229  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
2230  */
2231 enum qca_wlan_vendor_attr_ll_stats_get {
2232 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2233 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
2234 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
2235 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2237 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
2238 };
2239 
2240 /**
2241  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
2242  *
2243  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
2244  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
2245  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
2246  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2247  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2248  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
2249  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
2250  */
2251 enum qca_wlan_vendor_attr_ll_stats_clr {
2252 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2253 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
2254 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
2255 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
2256 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
2257 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2258 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2259 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
2260 };
2261 
2262 /**
2263  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2264  *
2265  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2266  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2267  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2268  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2269  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2270  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2271  */
2272 enum qca_wlan_vendor_attr_ll_stats_results_type {
2273 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2274 
2275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2276 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2277 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2278 
2279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2280 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2281 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2282 };
2283 
2284 enum qca_wlan_vendor_attr_ll_stats_results {
2285 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2286 	/* Unsigned 32bit value. Used by the driver; must match the request id
2287 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2288 	 */
2289 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2290 
2291 	/* Unsigned 32 bit value */
2292 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2293 	/* Unsigned 32 bit value */
2294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2295 	/* Unsigned 32 bit value */
2296 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2297 	/* Unsigned 32 bit value */
2298 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2299 	/* Signed 32 bit value */
2300 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2301 	/* Signed 32 bit value */
2302 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2303 	/* Signed 32 bit value */
2304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2305 
2306 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2307 	 * nested within the interface stats.
2308 	 */
2309 
2310 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2311 	 * Type = enum wifi_interface_mode.
2312 	 */
2313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2314 	/* Interface MAC address. An array of 6 Unsigned int8 */
2315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2316 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2317 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2318 	 */
2319 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2320 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2321 	 */
2322 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2323 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2325 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2326 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2327 	/* BSSID. An array of 6 unsigned 8 bit values */
2328 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2329 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2330 	 * values.
2331 	 */
2332 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2333 	/* Country string for this association. An array of 3 unsigned 8 bit
2334 	 * values.
2335 	 */
2336 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2337 
2338 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2339 	 * be nested within the interface stats.
2340 	 */
2341 
2342 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2343 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2344 	/* Unsigned int 32 value corresponding to respective AC */
2345 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2346 	/* Unsigned int 32 value corresponding to respective AC */
2347 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2348 	/* Unsigned int 32 value corresponding to respective AC */
2349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2350 	/* Unsigned int 32 value corresponding to respective AC */
2351 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2352 	/* Unsigned int 32 value corresponding to respective AC */
2353 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2354 	/* Unsigned int 32 value corresponding to respective AC */
2355 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2356 	/* Unsigned int 32 value corresponding to respective AC */
2357 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2358 	/* Unsigned int 32 value corresponding to respective AC */
2359 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2360 	/* Unsigned int 32 value corresponding to respective AC  */
2361 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2362 	/* Unsigned int 32 values corresponding to respective AC */
2363 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2364 	/* Unsigned int 32 values corresponding to respective AC */
2365 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2366 	/* Unsigned int 32 values corresponding to respective AC */
2367 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2368 	/* Unsigned int 32 values corresponding to respective AC */
2369 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2370 	/* Unsigned int 32 values corresponding to respective AC */
2371 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2372 	/* Unsigned 32 bit value. Number of peers */
2373 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2374 
2375 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2376 	 * nested within the interface stats.
2377 	 */
2378 
2379 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2380 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2381 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2382 	 * 8 bit values.
2383 	 */
2384 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2385 	/* Unsigned int 32 bit value representing capabilities corresponding
2386 	 * to respective peer.
2387 	 */
2388 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2389 	/* Unsigned 32 bit value. Number of rates */
2390 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2391 
2392 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2393 	 * are nested within the rate stat.
2394 	 */
2395 
2396 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2397 
2398 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2399 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2400 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2401 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2402 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2403 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2404 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2405 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2406 	 */
2407 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2408 
2409 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2410 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2411 
2412 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2413 	 * nested within the peer info stats.
2414 	 */
2415 
2416 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2417 	 * packets, i.e., with ACK received corresponding to the respective
2418 	 * rate.
2419 	 */
2420 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2421 	/* Unsigned int 32 bit value. Number of received data packets
2422 	 * corresponding to the respective rate.
2423 	 */
2424 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2425 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2426 	 * received corresponding to the respective rate.
2427 	 */
2428 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2429 	/* Unsigned int 32 bit value. Total number of data packet retries for
2430 	 * the respective rate.
2431 	 */
2432 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2433 	/* Unsigned int 32 bit value. Total number of short data packet retries
2434 	 * for the respective rate.
2435 	 */
2436 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2437 	/* Unsigned int 32 bit value. Total number of long data packet retries
2438 	 * for the respective rate.
2439 	 */
2440 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2441 
2442 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2443 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2444 	 * accruing over time.
2445 	 */
2446 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2447 	/* Unsigned 32 bit value. Total number of msecs the radio is
2448 	 * transmitting accruing over time.
2449 	 */
2450 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2451 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2452 	 * receive accruing over time.
2453 	 */
2454 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2455 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2456 	 * to all scan accruing over time.
2457 	 */
2458 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2459 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2460 	 * to NAN accruing over time.
2461 	 */
2462 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2463 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2464 	 * to GSCAN accruing over time.
2465 	 */
2466 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2467 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2468 	 * to roam scan accruing over time.
2469 	 */
2470 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2471 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2472 	 * to PNO scan accruing over time.
2473 	 */
2474 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2475 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2476 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2477 	 */
2478 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2479 	/* Unsigned 32 bit value. Number of channels. */
2480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2481 
2482 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2483 	 * be nested within the channel stats.
2484 	 */
2485 
2486 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2487 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2488 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2489 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2490 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2491 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2492 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2493 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2494 
2495 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2496 	 * nested within the radio stats.
2497 	 */
2498 
2499 	/* Unsigned int 32 bit value representing total number of msecs the
2500 	 * radio is awake on that channel accruing over time, corresponding to
2501 	 * the respective channel.
2502 	 */
2503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2504 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2505 	 * register is busy accruing over time corresponding to the respective
2506 	 * channel.
2507 	 */
2508 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2509 
2510 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2511 
2512 	/* Signifies the nested list of channel attributes
2513 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2514 	 */
2515 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2516 
2517 	/* Signifies the nested list of peer info attributes
2518 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2519 	 */
2520 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2521 
2522 	/* Signifies the nested list of rate info attributes
2523 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2524 	 */
2525 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2526 
2527 	/* Signifies the nested list of wmm info attributes
2528 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2529 	 */
2530 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2531 
2532 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2533 	 * that more stats, e.g., peers or radio, are to follow in the next
2534 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2535 	 * Otherwise, it is set to 0.
2536 	 */
2537 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2538 
2539 	/* Unsigned 64 bit value */
2540 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2541 
2542 	/* Unsigned 32 bit value */
2543 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2544 
2545 	/* Unsigned 32 bit value */
2546 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2547 
2548 	/* Unsigned 32 bit value */
2549 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2550 
2551 	/* Unsigned 32 bit value */
2552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2553 
2554 	/* Unsigned 32 bit value */
2555 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2556 
2557 	/* Number of msecs the radio spent in transmitting for each power level
2558 	 */
2559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2560 
2561 	/* Unsigned 32 bit value */
2562 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2563 	/* Unsigned 32 bit value */
2564 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2565 	/* Unsigned 32 bit value */
2566 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2567 	/* Unsigned 32 bit value */
2568 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2569 
2570 	/* Unsigned int 32 value.
2571 	 * Pending MSDUs corresponding to respective AC.
2572 	 */
2573 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2574 
2575 	/* u32 value representing total time in milliseconds for which the radio
2576 	 * is transmitting on this channel. This attribute will be nested
2577 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2578 	 */
2579 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2580 	/* u32 value representing total time in milliseconds for which the radio
2581 	 * is receiving all 802.11 frames intended for this device on this
2582 	 * channel. This attribute will be nested within
2583 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2584 	 */
2585 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2586 	/* u8 value representing the channel load percentage. Possible values
2587 	 * are 0-100.
2588 	 */
2589 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2590 	/* u8 value representing the time slicing duty cycle percentage.
2591 	 * Possible values are 0-100.
2592 	 */
2593 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2594 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2595 	 * from the associated AP and indicate buffered unicast frame(s) for us
2596 	 * in the TIM element.
2597 	 */
2598 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2599 	/* Unsigned 32 bit value. The total number of Beacon frames received
2600 	 * from the associated AP that have wrongly indicated buffered unicast
2601 	 * traffic in the TIM element for us.
2602 	 * Below scenarios will be considered as wrong TIM element beacon:
2603 	 * 1) The related TIM element is set in the beacon for STA but STA
2604 	 *    doesn’t receive any unicast data after this beacon.
2605 	 * 2) The related TIM element is still set in the beacon for STA
2606 	 *    after STA has indicated power save exit by QoS Null Data frame.
2607 	 */
2608 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2609 
2610 	/* keep last */
2611 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2612 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2613 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2614 };
2615 
2616 enum qca_wlan_vendor_attr_ll_stats_type {
2617 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2618 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2619 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2620 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2621 
2622 	/* keep last */
2623 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2624 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2625 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2626 };
2627 
2628 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2629 
2630 /**
2631  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2632  *
2633  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2634  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2635  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2636  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2637  */
2638 enum qca_wlan_vendor_attr_get_supported_features {
2639 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2640 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2641 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2642 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2643 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2644 };
2645 
2646 /**
2647  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2648  *
2649  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2650  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2651  *	value
2652  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2653  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2654  */
2655 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2656 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2657 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2658 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2659 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2660 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2661 };
2662 
2663 /**
2664  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2665  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2666  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2667  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2668  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2669  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2670  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2671  */
2672 enum qca_wlan_vendor_scan_priority {
2673 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2674 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2675 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2676 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2677 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2678 };
2679 
2680 /**
2681  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2682  *
2683  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2684  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2685  *	with frequencies to be scanned (in MHz)
2686  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2687  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2688  *	rates to be included
2689  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2690  *	at non CCK rate in 2GHz band
2691  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2692  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2693  *	driver for the specific scan request
2694  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2695  *	request decoded as in enum scan_status
2696  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2697  *	scan flag is set
2698  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2699  *	randomisation
2700  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2701  *	specific BSSID to scan for.
2702  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2703  *	microseconds. This is a common value which applies across all
2704  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2705  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2706  *      other scan requests. It is a u32 attribute and takes values from enum
2707  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2708  *      If this attribute is not configured, the driver shall use
2709  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2710  */
2711 enum qca_wlan_vendor_attr_scan {
2712 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2713 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2714 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2715 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2716 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2717 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2718 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2719 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2720 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2721 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2722 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2723 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2724 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2725 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2726 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2727 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2728 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2729 };
2730 
2731 /**
2732  * enum scan_status - Specifies the valid values the vendor scan attribute
2733  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2734  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2735  *	new scan results
2736  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2737  */
2738 enum scan_status {
2739 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2740 	VENDOR_SCAN_STATUS_ABORTED,
2741 	VENDOR_SCAN_STATUS_MAX,
2742 };
2743 
2744 /**
2745  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2746  *
2747  * NL attributes for data used by
2748  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2749  *
2750  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2751  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2752  *	Unsigned 32-bit value
2753  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2754  *	Unsigned 32-bit value
2755  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2756  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2757  *	combinations
2758  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2759  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2760  */
2761 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2762 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2763 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2764 									= 1,
2765 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2766 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2767 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2768 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2769 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2770 };
2771 
2772 /**
2773  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2774  *
2775  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2776  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2777  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2778  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2779  */
2780 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2781 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2782 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2783 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2784 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2785 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2786 };
2787 
2788 /**
2789  * enum qca_vendor_attr_wisa_cmd
2790  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2791  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2792  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2793  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2794  * WISA setup vendor commands
2795  */
2796 enum qca_vendor_attr_wisa_cmd {
2797 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2798 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2799 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2800 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2801 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2802 };
2803 
2804 enum qca_roaming_policy {
2805 	QCA_ROAMING_NOT_ALLOWED,
2806 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2807 };
2808 
2809 /**
2810  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2811  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2812  *
2813  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2814  * reasons.
2815  *
2816  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2817  * the configured threshold.
2818  *
2819  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2820  * beacon misses from the then connected AP.
2821  *
2822  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2823  * by the connected AP.
2824  *
2825  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2826  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2827  * not poor.
2828  *
2829  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2830  * or environment being very noisy / congested.
2831  *
2832  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2833  * from the user (user space).
2834  *
2835  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2836  * connected AP.
2837  *
2838  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2839  * breaching out the configured threshold.
2840  *
2841  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
2842  * transition request.
2843  *
2844  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
2845  * there is no data activity with the AP and the current rssi falls below a
2846  * certain threshold.
2847  *
2848  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
2849  * deauthentication or disassociation frames received from the connected AP.
2850  *
2851  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
2852  * scan that happens when there is no candidate AP found during the poor
2853  * RSSI scan trigger.
2854  *
2855  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
2856  * results obtained from an external scan (not aimed at roaming).
2857  *
2858  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
2859  * connection is established when the station is connected in 2.4 Ghz band.
2860  */
2861 enum qca_roam_reason {
2862 	QCA_ROAM_REASON_UNKNOWN,
2863 	QCA_ROAM_REASON_PER,
2864 	QCA_ROAM_REASON_BEACON_MISS,
2865 	QCA_ROAM_REASON_POOR_RSSI,
2866 	QCA_ROAM_REASON_BETTER_RSSI,
2867 	QCA_ROAM_REASON_CONGESTION,
2868 	QCA_ROAM_REASON_USER_TRIGGER,
2869 	QCA_ROAM_REASON_BTM,
2870 	QCA_ROAM_REASON_BSS_LOAD,
2871 	QCA_ROAM_REASON_WTC,
2872 	QCA_ROAM_REASON_IDLE,
2873 	QCA_ROAM_REASON_DISCONNECTION,
2874 	QCA_ROAM_REASON_PERIODIC_TIMER,
2875 	QCA_ROAM_REASON_BACKGROUND_SCAN,
2876 	QCA_ROAM_REASON_BT_ACTIVITY,
2877 };
2878 
2879 /**
2880  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2881  *
2882  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2883  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2884  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2885  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2886  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2887  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2888  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2889  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2890  * Indicates the status of re-association requested by user space for
2891  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2892  * Type u16.
2893  * Represents the status code from AP. Use
2894  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2895  * real status code for failures.
2896  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2897  * This attribute indicates that the old association was maintained when
2898  * a re-association is requested by user space and that re-association
2899  * attempt fails (i.e., cannot connect to the requested BSS, but can
2900  * remain associated with the BSS with which the association was in
2901  * place when being requested to roam). Used along with
2902  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2903  * re-association status. Type flag.
2904  * This attribute is applicable only for re-association failure cases.
2905  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2906  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2907  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2908  * seq number
2909  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2910  * representing the reasons for the roaming. Defined by enum
2911  * qca_roam_reason.
2912  */
2913 enum qca_wlan_vendor_attr_roam_auth {
2914 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2915 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
2916 	 * of the roamed AP for MLO roaming.
2917 	 */
2918 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2919 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2920 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2921 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2922 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2923 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2924 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2925 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2926 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2927 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2928 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2929 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2930 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2931 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2932 	/* A nested attribute containing per-link information of all the links
2933 	 * of MLO connection done while roaming. The attributes used inside this
2934 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
2935 	 */
2936 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
2937 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2938 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2939 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2940 };
2941 
2942 /**
2943  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
2944  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
2945  *
2946  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
2947  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
2948  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
2949  */
2950 enum qca_wlan_vendor_attr_mlo_links {
2951 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
2952 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
2953 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
2954 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
2955 
2956 	/* Keep last */
2957 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
2958 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
2959 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
2960 };
2961 
2962 /**
2963  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2964  *
2965  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2966  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2967  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2968  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2969  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2970  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2971  */
2972 enum qca_wlan_vendor_attr_wifi_config {
2973 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2974 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2975 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2976 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2977 
2978 	/* keep last */
2979 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2980 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2981 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2982 };
2983 
2984 /**
2985  * enum qca_wlan_epno_type - the type of request to the EPNO command
2986  * @QCA_WLAN_EPNO: epno type request
2987  * @QCA_WLAN_PNO: pno type request
2988  */
2989 enum qca_wlan_epno_type {
2990 	QCA_WLAN_EPNO,
2991 	QCA_WLAN_PNO
2992 };
2993 
2994 /**
2995  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2996  *
2997  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2998  *
2999  *	NL attributes for data used by
3000  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3001  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
3002  *	Unsigned 32-bit value; pno passpoint number of networks
3003  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
3004  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3005  *	attributes. Array size =
3006  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3007  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
3008  *	Unsigned 32-bit value; network id
3009  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
3010  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
3011  *	realm, 0 if unspecified.
3012  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
3013  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
3014  *	to match, 0 if unspecified.
3015  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
3016  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
3017  *	unspecified.
3018  *
3019  *	NL attributes for data used by
3020  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3021  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
3022  *	Unsigned 32-bit value; set pno number of networks
3023  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
3024  *	Array of nested
3025  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3026  *	attributes. Array size =
3027  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
3028  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
3029  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
3030  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
3031  *	Signed 8-bit value; threshold for considering this SSID as found,
3032  *	required granularity for this threshold is 4dBm to 8dBm
3033  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
3034  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
3035  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
3036  *	Unsigned 8-bit value; auth bit field for matching WPA IE
3037  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
3038  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
3039  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
3040  *	Nested attribute to send the channel list
3041  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
3042  *	Unsigned 32-bit value; indicates the Interval between PNO scan
3043  *	cycles in msec
3044  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
3045  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
3046  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
3047  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
3048  *	This attribute is obsolete now.
3049  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
3050  *	Signed 32-bit value; the maximum score that a network
3051  *	can have before bonuses
3052  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
3053  *	Signed 32-bit value; only report when there is a network's
3054  *	score this much higher han the current connection
3055  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
3056  *	Signed 32-bit value; score bonus for all networks with
3057  *	the same network flag
3058  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
3059  *	Signed 32-bit value; score bonus for networks that are not open
3060  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
3061  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
3062  *	5GHz networks
3063  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
3064  *	Unsigned 32-bit value, representing the PNO Request ID
3065  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
3066  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
3067  */
3068 enum qca_wlan_vendor_attr_pno_config_params {
3069 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3070 
3071 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3072 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3073 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3074 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3075 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3076 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3077 
3078 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3079 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3080 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3081 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
3082 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3083 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3084 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3085 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3086 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3087 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3088 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3089 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3090 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3091 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3092 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3093 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3094 
3095 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3096 	/* keep last */
3097 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3098 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3099 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3100 };
3101 
3102 /**
3103  * enum qca_scan_freq_list_type: Frequency list types
3104  *
3105  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3106  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3107  *	a preferred frequency list for roaming.
3108  *
3109  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3110  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3111  *	a specific frequency list for roaming.
3112  */
3113 enum qca_scan_freq_list_type {
3114 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3115 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3116 };
3117 
3118 /**
3119  * enum qca_roam_scan_scheme: scan scheme
3120  *
3121  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3122  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3123  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3124  *	disconnect from the current connected AP by notifying a failure
3125  *	code in the BTM response.
3126  *
3127  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3128  *	trigger partial frequency scans. These frequencies are the ones learnt
3129  *	or maintained by the driver based on the probability of finding the
3130  *	BSSID's in the ESS for which the roaming is triggered.
3131  *
3132  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3133  *	trigger the scan on all the valid frequencies to find the better
3134  *	candidates to roam.
3135  */
3136 enum qca_roam_scan_scheme {
3137 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3138 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3139 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3140 };
3141 
3142 /**
3143  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3144  *
3145  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3146  *	List of frequencies in MHz to be considered for a roam scan.
3147  *
3148  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3149  *	Type of frequency list scheme being configured/gotten as defined by the
3150  *	enum qca_scan_freq_list_type.
3151  */
3152 enum qca_vendor_attr_scan_freq_list_scheme {
3153 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3154 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3155 
3156 	/* keep last */
3157 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3158 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3159 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3160 };
3161 
3162 /*
3163  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3164  *
3165  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3166  *	a bad packet error rates (PER).
3167  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3168  *	based on beacon misses from the connected AP.
3169  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3170  *	due to poor RSSI of the connected AP.
3171  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3172  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3173  *	Here the RSSI of the current BSSID need not be poor.
3174  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3175  *	by triggering a periodic scan to find a better AP to roam.
3176  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3177  *	when the connected channel environment is too noisy/congested.
3178  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3179  *	when BTM Request frame is received from the connected AP.
3180  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3181  *	when the channel utilization is goes above the configured threshold.
3182  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3183  *	based on the request from the user (space).
3184  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3185  *	device receives Deauthentication/Disassociation frame from connected
3186  *	AP.
3187  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3188  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3189  *	is determined to be a poor one.
3190  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3191  *	based on continuous TX Data Frame failures to the connected AP.
3192  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3193  *	based on the scan results obtained from an external scan (not
3194  *	triggered to aim roaming)
3195  *
3196  * Set the corresponding roam trigger reason bit to consider it for roam
3197  * trigger.
3198  * Userspace can set multiple bits and send to the driver. The driver shall
3199  * consider all of them to trigger/initiate a roam scan.
3200  */
3201 enum qca_vendor_roam_triggers {
3202 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3203 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3204 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3205 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3206 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3207 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3208 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3209 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3210 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3211 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3212 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3213 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3214 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3215 };
3216 
3217 /*
3218  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3219  * fail reasons. This enum value is used in
3220  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3221  *
3222  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3223  * able to trigger the scan.
3224  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3225  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3226  * scan.
3227  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3228  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3229  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3230  * status code.
3231  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3232  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3233  * frame.
3234  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3235  * with error status code.
3236  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3237  * received.
3238  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3239  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3240  * frame.
3241  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3242  * internally before transmission.
3243  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3244  * Request frame.
3245  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3246  * dropped internally.
3247  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3248  * times out.
3249  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3250  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3251  * internally.
3252  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3253  * M2 frame.
3254  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3255  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3256  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3257  * internally.
3258  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3259  * frame.
3260  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3261  * started for final beacon miss case.
3262  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3263  * received from the AP during roaming handoff.
3264  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3265  * or host is suspended and gives the indication of the last roamed AP only
3266  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3267  * progress, this ongoing roaming is aborted and the last roamed AP is
3268  * indicated to host.
3269  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3270  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3271  * out.
3272  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3273  */
3274 enum qca_vendor_roam_fail_reasons {
3275 	QCA_ROAM_FAIL_REASON_NONE = 0,
3276 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3277 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3278 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3279 	QCA_ROAM_FAIL_REASON_HOST = 4,
3280 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3281 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3282 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3283 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3284 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3285 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3286 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3287 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3288 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3289 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3290 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3291 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3292 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3293 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3294 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3295 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3296 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3297 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3298 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3299 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3300 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3301 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3302 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3303 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3304 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3305 };
3306 
3307 /*
3308  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3309  * invoke fail reasons. This enum value is used in
3310  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3311  *
3312  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3313  * in roam invoke command.
3314  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3315  * enabled.
3316  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3317  * length is invalid.
3318  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3319  * in progress.
3320  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3321  * of the AP in the roam invoke command to firmware. This reason is sent by the
3322  * firmware when the given AP is configured to be ignored or SSID/security
3323  * does not match.
3324  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3325  * firmware internal reasons.
3326  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3327  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3328  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3329  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3330  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3331  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3332  */
3333 enum qca_vendor_roam_invoke_fail_reasons {
3334 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3335 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3336 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3337 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3338 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3339 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3340 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3341 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3342 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3343 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3344 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3345 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3346 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3347 
3348 };
3349 
3350 /**
3351  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3352  *
3353  * Each attribute carries a weightage in percentage (%).
3354  *
3355  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3356  *	Represents the weightage to be given for the RSSI selection
3357  *	criteria among other parameters.
3358  *
3359  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3360  *	Represents the weightage to be given for the rate selection
3361  *	criteria among other parameters.
3362  *
3363  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3364  *	Represents the weightage to be given for the band width selection
3365  *	criteria among other parameters.
3366  *
3367  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3368  *	Represents the weightage to be given for the band selection
3369  *	criteria among other parameters.
3370  *
3371  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3372  *	Represents the weightage to be given for the NSS selection
3373  *	criteria among other parameters.
3374  *
3375  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3376  *	Represents the weightage to be given for the channel congestion
3377  *	selection criteria among other parameters.
3378  *
3379  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3380  *	Represents the weightage to be given for the beamforming selection
3381  *	criteria among other parameters.
3382  *
3383  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3384  *	Represents the weightage to be given for the OCE selection
3385  *	criteria among other parameters.
3386  */
3387 enum qca_vendor_attr_roam_candidate_selection_criteria {
3388 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3389 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3390 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3391 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3392 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3393 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3394 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3395 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3396 
3397 	/* keep last */
3398 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3399 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3400 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3401 };
3402 
3403 /**
3404  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3405  *	The following attributes are used to set/get/clear the respective
3406  *	configurations to/from the driver.
3407  *	For the get, the attribute for the configuration to be queried shall
3408  *	carry any of its acceptable values to the driver. In return, the driver
3409  *	shall send the configured values within the same attribute to the user
3410  *	space.
3411  *
3412  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3413  *	Signifies to enable/disable roam control in driver.
3414  *	1-enable, 0-disable
3415  *	Enable: Mandates the driver to do the further roams using the
3416  *	configuration parameters set through
3417  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3418  *	Disable: Disables the driver/firmware roaming triggered through
3419  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3420  *	expected to continue with the default configurations.
3421  *
3422  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3423  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3424  *	Roam control status is obtained through this attribute.
3425  *
3426  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3427  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3428  *	is to be cleared in the driver.
3429  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3430  *	and shall be ignored if used with other sub commands.
3431  *	If this attribute is specified along with subcmd
3432  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3433  *	all other attributes, if there are any.
3434  *	If this attribute is not specified when the subcmd
3435  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3436  *	clear the data corresponding to the attributes specified.
3437  *
3438  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3439  *	list of frequencies and its type, represented by
3440  *	enum qca_vendor_attr_scan_freq_list_scheme.
3441  *	Frequency list and its type are mandatory for this attribute to set
3442  *	the frequencies.
3443  *	Frequency type is mandatory for this attribute to get the frequencies
3444  *	and the frequency list is obtained through
3445  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3446  *	Frequency list type is mandatory for this attribute to clear the
3447  *	frequencies.
3448  *
3449  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3450  *	Carries the value of scan period in seconds to set.
3451  *	The value of scan period is obtained with the same attribute for get.
3452  *	Clears the scan period in the driver when specified with clear command.
3453  *	Scan period is the idle time in seconds between each subsequent
3454  *	channel scans.
3455  *
3456  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3457  *	Carries the value of full scan period in seconds to set.
3458  *	The value of full scan period is obtained with the same attribute for
3459  *	get.
3460  *	Clears the full scan period in the driver when specified with clear
3461  *	command. Full scan period is the idle period in seconds between two
3462  *	successive full channel roam scans.
3463  *
3464  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3465  *	Carries a bitmap of the roam triggers specified in
3466  *	enum qca_vendor_roam_triggers.
3467  *	The driver shall enable roaming by enabling corresponding roam triggers
3468  *	based on the trigger bits sent with this attribute.
3469  *	If this attribute is not configured, the driver shall proceed with
3470  *	default behavior.
3471  *	The bitmap configured is obtained with the same attribute for get.
3472  *	Clears the bitmap configured in driver when specified with clear
3473  *	command.
3474  *
3475  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3476  *	weightage in percentage (%) to be given for each selection criteria.
3477  *	Different roam candidate selection criteria are represented by
3478  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3479  *	The driver shall select the roam candidate based on corresponding
3480  *	candidate selection scores sent.
3481  *
3482  *	An empty nested attribute is used to indicate that no specific
3483  *	preference score/criteria is configured (i.e., to disable this mechanism
3484  *	in the set case and to show that the mechanism is disabled in the get
3485  *	case).
3486  *
3487  *	Userspace can send multiple attributes out of this enum to the driver.
3488  *	Since this attribute represents the weight/percentage of preference for
3489  *	the respective selection criteria, it is preferred to configure 100%
3490  *	total weightage. The value in each attribute or cumulative weight of the
3491  *	values in all the nested attributes should not exceed 100%. The driver
3492  *	shall reject such configuration.
3493  *
3494  *	If the weights configured through this attribute are less than 100%,
3495  *	the driver shall honor the weights (x%) passed for the corresponding
3496  *	selection criteria and choose/distribute rest of the weight (100-x)%
3497  *	for the other selection criteria, based on its internal logic.
3498  *
3499  *	The selection criteria configured is obtained with the same
3500  *	attribute for get.
3501  *
3502  *	Clears the selection criteria configured in the driver when specified
3503  *	with clear command.
3504  *
3505  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3506  *	Represents value of scan frequency scheme from
3507  *      enum qca_roam_scan_scheme.
3508  *
3509  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3510  *	signifying the RSSI threshold of the current connected AP, indicating
3511  *	the driver to trigger roam only when the current connected AP's RSSI
3512  *	is lesser than this threshold.
3513  *
3514  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3515  *	signifying the RSSI threshold of the candidate AP, indicating
3516  *	the driver to trigger roam only to the candidate AP with RSSI
3517  *	better than this threshold. If RSSI thresholds for candidate APs found
3518  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3519  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3520  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3521  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3522  *	will take precedence over the value configured using
3523  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3524  *
3525  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3526  *	user triggered reason code to be sent to the AP in response to AP's
3527  *	request to trigger the roam if the roaming cannot be triggered.
3528  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3529  *
3530  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3531  *	Carries a bitmap of the roam triggers specified in
3532  *	enum qca_vendor_roam_triggers.
3533  *	Represents the roam triggers for which the specific scan scheme from
3534  *	enum qca_roam_scan_scheme has to be applied.
3535  *	It's an optional attribute. If this attribute is not configured, but
3536  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3537  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3538  *	all the roams.
3539  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3540  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3541  *	driver shall proceed with the default behavior.
3542  *
3543  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3544  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3545  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3546  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3547  *	threshold. Optional attribute. If this attribute is not included, then
3548  *	threshold value specified by the
3549  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3550  *
3551  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3552  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3553  *	band. The driver/firmware shall trigger roaming to the candidate AP
3554  *	found in 5GHz band only if it's RSSI value is better than this
3555  *	threshold. Optional attribute. If this attribute is not included, then
3556  *	threshold value specified by the
3557  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3558  *
3559  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3560  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3561  *	band. The driver/firmware shall trigger roaming to the candidate AP
3562  *	found in 6GHz band only if it's RSSI value is better than this
3563  *	threshold. Optional attribute. If this attribute is not included, then
3564  *	threshold value specified by the
3565  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3566  *
3567  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3568  *	Carries bitmask value of bits from &enum qca_set_band and represents
3569  *	all the bands in which roaming is allowed. The configuration is valid
3570  *	until next disconnection. If this attribute is not present, the
3571  *	existing configuration shall be used. By default, roaming is allowed
3572  *	on all bands supported by local device. When the value is set to
3573  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3574  *
3575  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3576  *	Optional parameter. RX link speed threshold to disable roaming.
3577  *	If the current RX link speed is above the threshold, roaming is not
3578  *	needed. If this attribute is not configured, or if it is set to 0, the
3579  *	driver will not consider the RX link speed in the roaming decision.
3580  *
3581  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
3582  *	Optional parameter. This configuration delays hand-off (in msec) by the
3583  *	specified duration to receive pending rx frames from current BSS.
3584  *
3585  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
3586  *	value.
3587  *	During the roam scan, if there are no desired APs found in the partial
3588  *	frequency list, an immediate full scan on all the supported frequencies
3589  *	is initiated as a fallback. This flag controls the frequency list
3590  *	creation for the full scan on the following lines.
3591  *	1 - Full scan to exclude the frequencies that were already scanned by
3592  *	    the previous partial scan.
3593  *	0 - Full scan to include all the supported frequencies irrespective of
3594  *	    the ones part of the earlier partial scan.
3595  *	If this flag is not specified, a full scan shall include all the
3596  *	supported frequencies irrespective of the ones part of an earlier
3597  *	partial scan.
3598  *
3599  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
3600  *	value.
3601  *	During the roam scan, if there are no desired APs found in the partial
3602  *	frequency list, an immediate full scan on all the supported frequencies
3603  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
3604  *	frequencies, including all PSC frequencies by default. This attribute
3605  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
3606  *	as following.
3607  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
3608  *	    prior discovery of any 6 GHz frequency support in the environment.
3609  *	    This discovery can happen through a prior RNR, 11k neighbor
3610  *	    request, 11v BTM request, host scan, etc.
3611  *	0 - Default behavior. Full scan to include all the supported 6 GHz
3612  *	    PSC frequencies regardless of whether 6 GHz BSSs have been
3613  *	    discovered.
3614  *	The default behavior if this flag is not specified is to include all
3615  *	the supported 6 GHz PSC frequencies in the roam full scan.
3616  */
3617 enum qca_vendor_attr_roam_control {
3618 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3619 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3620 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3621 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3622 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3623 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3624 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3625 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3626 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3627 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3628 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3629 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3630 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3631 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3632 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3633 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3634 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3635 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3636 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
3637 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
3638 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
3639 
3640 	/* keep last */
3641 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3642 	QCA_ATTR_ROAM_CONTROL_MAX =
3643 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3644 };
3645 
3646 /**
3647  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3648  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3649  *
3650  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3651  *	Represents the different roam sub commands referred by
3652  *	enum qca_wlan_vendor_roaming_subcmd.
3653  *
3654  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3655  *	Represents the Request ID for the specific set of commands.
3656  *	This also helps to map specific set of commands to the respective
3657  *	ID / client. e.g., helps to identify the user entity configuring the
3658  *	Blacklist BSSID and accordingly clear the respective ones with the
3659  *	matching ID.
3660  *
3661  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3662  *	32-bit value.Represents the number of whitelist SSIDs configured.
3663  *
3664  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3665  *	to carry the list of Whitelist SSIDs.
3666  *
3667  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3668  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3669  *	represent the list of SSIDs to which the firmware/driver can consider
3670  *	to roam to.
3671  *
3672  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3673  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3674  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3675  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3676  *
3677  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3678  *	value, RSSI threshold above which 5GHz RSSI is favored.
3679  *
3680  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3681  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3682  *
3683  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3684  *	value, factor by which 5GHz RSSI is boosted.
3685  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3686  *
3687  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3688  *	value, factor by which 5GHz RSSI is penalized.
3689  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3690  *
3691  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3692  *	value, maximum boost that can be applied to a 5GHz RSSI.
3693  *
3694  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3695  *	value, boost applied to current BSSID to ensure the currently
3696  *	associated BSSID is favored so as to prevent ping-pong situations.
3697  *
3698  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3699  *	value, RSSI below which "Alert" roam is enabled.
3700  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3701  *	because the RSSI is low, or because many successive beacons have been
3702  *	lost or other bad link conditions.
3703  *
3704  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3705  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3706  *	firmware is hunting for a better BSSID or white listed SSID even though
3707  *	the RSSI of the link is good. The parameters enabling the roaming are
3708  *	configured through the PARAM_A_BAND_XX attrbutes.
3709  *
3710  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3711  *	represents the BSSIDs preferred over others while evaluating them
3712  *	for the roaming.
3713  *
3714  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3715  *	32-bit value. Represents the number of preferred BSSIDs set.
3716  *
3717  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3718  *	address representing the BSSID to be preferred.
3719  *
3720  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3721  *	32-bit value, representing the modifier to be applied to the RSSI of
3722  *	the BSSID for the purpose of comparing it with other roam candidate.
3723  *
3724  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3725  *	represents the BSSIDs to get blacklisted for roaming.
3726  *
3727  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3728  *	32-bit value, represents the number of blacklisted BSSIDs.
3729  *
3730  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3731  *	address representing the Blacklisted BSSID.
3732  *
3733  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3734  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3735  *	select this BSSID in the worst case (when no other BSSIDs are better).
3736  *
3737  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3738  *	set/get/clear the roam control config as
3739  *	defined @enum qca_vendor_attr_roam_control.
3740  *
3741  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3742  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3743  */
3744 enum qca_wlan_vendor_attr_roaming_config_params {
3745 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3746 
3747 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3748 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3749 
3750 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3751 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3752 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3753 
3754 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3755 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3756 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3757 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3758 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3759 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3760 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3761 
3762 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3763 
3764 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3765 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3766 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3767 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3768 
3769 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3770 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3771 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3772 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3773 
3774 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3775 
3776 	/* keep last */
3777 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3778 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3779 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3780 };
3781 
3782 /**
3783  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3784  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3785  *
3786  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3787  *	configure the white list SSIDs. These are configured through
3788  *	the following attributes.
3789  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3790  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3791  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3792  *
3793  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3794  *	configure the Roam params. These parameters are evaluated on the extscan
3795  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3796  *	params.
3797  *
3798  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3799  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3800  *	to enable/disable Lazy roam.
3801  *
3802  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3803  *	preference. Contains the attribute
3804  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3805  *	preference.
3806  *
3807  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3808  *
3809  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3810  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3811  *	set the same.
3812  *
3813  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3814  *	roam control config to the driver with the attribute
3815  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3816  *
3817  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3818  *	roam control config from driver with the attribute
3819  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3820  *	For the get, the attribute for the configuration to be queried shall
3821  *	carry any of its acceptable value to the driver. In return, the driver
3822  *	shall send the configured values within the same attribute to the user
3823  *	space.
3824  *
3825  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3826  *	roam control config in the driver with the attribute
3827  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3828  *	The driver shall continue with its default roaming behavior when data
3829  *	corresponding to an attribute is cleared.
3830  */
3831 enum qca_wlan_vendor_roaming_subcmd {
3832 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3833 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3834 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3835 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3836 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3837 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3838 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3839 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3840 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3841 };
3842 
3843 /**
3844  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3845  *
3846  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3847  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3848  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3849  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3850  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3851  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3852  */
3853 enum qca_wlan_vendor_attr_get_wifi_info {
3854 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3855 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3856 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3857 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3858 
3859 	/* KEEP LAST */
3860 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3861 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3862 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3863 };
3864 
3865 enum qca_wlan_vendor_attr_logger_results {
3866 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3867 
3868 	/*
3869 	 * Unsigned 32-bit value; must match the request Id supplied by
3870 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3871 	 */
3872 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3873 
3874 	/*
3875 	 * Unsigned 32-bit value; used to indicate the size of memory
3876 	 * dump to be allocated.
3877 	 */
3878 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3879 
3880 	/* keep last */
3881 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3882 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3883 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3884 };
3885 
3886 /**
3887  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3888  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3889  */
3890 enum qca_wlan_vendor_channel_prop_flags {
3891 	/* Bits 0, 1, 2, and 3 are reserved */
3892 
3893 	/* Turbo channel */
3894 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3895 	/* CCK channel */
3896 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3897 	/* OFDM channel */
3898 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3899 	/* 2.4 GHz spectrum channel. */
3900 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3901 	/* 5 GHz spectrum channel */
3902 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3903 	/* Only passive scan allowed */
3904 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3905 	/* Dynamic CCK-OFDM channel */
3906 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3907 	/* GFSK channel (FHSS PHY) */
3908 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3909 	/* Radar found on channel */
3910 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3911 	/* 11a static turbo channel only */
3912 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3913 	/* Half rate channel */
3914 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3915 	/* Quarter rate channel */
3916 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3917 	/* HT 20 channel */
3918 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3919 	/* HT 40 with extension channel above */
3920 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3921 	/* HT 40 with extension channel below */
3922 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3923 	/* HT 40 intolerant */
3924 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3925 	/* VHT 20 channel */
3926 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3927 	/* VHT 40 with extension channel above */
3928 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3929 	/* VHT 40 with extension channel below */
3930 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3931 	/* VHT 80 channel */
3932 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3933 	/* HT 40 intolerant mark bit for ACS use */
3934 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3935 	/* Channel temporarily blocked due to noise */
3936 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3937 	/* VHT 160 channel */
3938 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3939 	/* VHT 80+80 channel */
3940 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3941 	/* HE 20 channel */
3942 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3943 	/* HE 40 with extension channel above */
3944 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3945 	/* HE 40 with extension channel below */
3946 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3947 	/* HE 40 intolerant */
3948 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
3949 };
3950 
3951 /**
3952  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3953  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3954  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3955  */
3956 enum qca_wlan_vendor_channel_prop_flags_2 {
3957 	/* HE 40 intolerant mark bit for ACS use */
3958 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3959 	/* HE 80 channel */
3960 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3961 	/* HE 160 channel */
3962 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3963 	/* HE 80+80 channel */
3964 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3965 };
3966 
3967 /**
3968  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3969  * each channel. This is used by
3970  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3971  */
3972 enum qca_wlan_vendor_channel_prop_flags_ext {
3973 	/* Radar found on channel */
3974 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3975 	/* DFS required on channel */
3976 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3977 	/* DFS required on channel for 2nd band of 80+80 */
3978 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3979 	/* If channel has been checked for DFS */
3980 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3981 	/* Excluded in 802.11d */
3982 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3983 	/* Channel Switch Announcement received on this channel */
3984 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3985 	/* Ad-hoc is not allowed */
3986 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3987 	/* Station only channel */
3988 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3989 	/* DFS radar history for slave device (STA mode) */
3990 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
3991 	/* DFS CAC valid for slave device (STA mode) */
3992 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
3993 };
3994 
3995 /**
3996  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3997  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3998  * information to start/stop the NUD statistics collection.
3999  */
4000 enum qca_attr_nud_stats_set {
4001 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
4002 
4003 	/*
4004 	 * Flag to start/stop the NUD statistics collection.
4005 	 * Start - If included, Stop - If not included
4006 	 */
4007 	QCA_ATTR_NUD_STATS_SET_START = 1,
4008 	/* IPv4 address of the default gateway (in network byte order) */
4009 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
4010 	/*
4011 	 * Represents the data packet type to be monitored.
4012 	 * Host driver tracks the stats corresponding to each data frame
4013 	 * represented by these flags.
4014 	 * These data packets are represented by
4015 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
4016 	 */
4017 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
4018 	/* keep last */
4019 	QCA_ATTR_NUD_STATS_SET_LAST,
4020 	QCA_ATTR_NUD_STATS_SET_MAX =
4021 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
4022 };
4023 
4024 /**
4025  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
4026  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4027  *	information to start / stop the NUD stats collection.
4028  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
4029  *	Bitmap to Flag to Start / Stop the NUD stats collection
4030  *	Start - If included , Stop - If not included
4031  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
4032  *	IPv4 address of Default Gateway (in network byte order)
4033  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4034  *	information to start / stop the NUD stats collection.
4035  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
4036  *	Flag to Start / Stop the NUD stats collection
4037  *	Start - If included , Stop - If not included
4038  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
4039  *	IPv4 address of Default Gateway (in network byte order)
4040  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4041  *	information to start / stop the NUD stats collection.
4042  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
4043  *	Flag to Start / Stop the NUD stats collection
4044  *	Start - If included , Stop - If not included
4045  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
4046  *	IPv4 address of Default Gateway (in network byte order)
4047  */
4048 enum qca_attr_connectivity_check_stats_set {
4049 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
4050 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
4051 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
4052 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
4053 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
4054 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
4055 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
4056 	/* keep last */
4057 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
4058 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
4059 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
4060 };
4061 
4062 /**
4063  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4064  * data types for which the stats have to get collected.
4065  */
4066 enum qca_wlan_vendor_connectivity_check_pkt_flags {
4067 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
4068 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
4069 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
4070 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
4071 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
4072 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4073 	 * to represent the stats of respective data type.
4074 	 */
4075 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
4076 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
4077 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
4078 };
4079 
4080 enum qca_attr_connectivity_check_stats {
4081 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
4082 	/* Data packet type for which the stats are collected.
4083 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4084 	 */
4085 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
4086 	/* ID corresponding to the DNS frame for which the respective DNS stats
4087 	 * are monitored (u32).
4088 	 */
4089 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
4090 	/* source / destination port on which the respective proto stats are
4091 	 * collected (u32).
4092 	 */
4093 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
4094 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
4095 	/* IPv4/IPv6 address for which the destined data packets are
4096 	 * monitored. (in network byte order)
4097 	 */
4098 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
4099 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
4100 	/* Data packet Request count received from netdev */
4101 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4102 	/* Data packet Request count sent to lower MAC from upper MAC */
4103 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4104 	/* Data packet Request count received by lower MAC from upper MAC */
4105 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4106 	/* Data packet Request count successfully transmitted by the device */
4107 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4108 	/* Data packet Response count received by lower MAC */
4109 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4110 	/* Data packet Response count received by upper MAC */
4111 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4112 	/* Data packet Response count delivered to netdev */
4113 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4114 	/* Data Packet Response count that are dropped out of order */
4115 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4116 
4117 	/* keep last */
4118 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
4119 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
4120 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
4121 };
4122 
4123 /**
4124  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4125  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4126  * NUD statistics collected when queried.
4127  */
4128 enum qca_attr_nud_stats_get {
4129 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4130 	/* ARP Request count from netdev */
4131 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4132 	/* ARP Request count sent to lower MAC from upper MAC */
4133 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4134 	/* ARP Request count received by lower MAC from upper MAC */
4135 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4136 	/* ARP Request count successfully transmitted by the device */
4137 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4138 	/* ARP Response count received by lower MAC */
4139 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4140 	/* ARP Response count received by upper MAC */
4141 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4142 	/* ARP Response count delivered to netdev */
4143 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4144 	/* ARP Response count delivered to netdev */
4145 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4146 	/*
4147 	 * Flag indicating if the station's link to the AP is active.
4148 	 * Active Link - If included, Inactive link - If not included
4149 	 */
4150 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4151 	/*
4152 	 * Flag indicating if there is any duplicate address detected (DAD).
4153 	 * Yes - If detected, No - If not detected.
4154 	 */
4155 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4156 	/*
4157 	 * List of Data types for which the stats are requested.
4158 	 * This list does not carry ARP stats as they are done by the
4159 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4160 	 */
4161 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4162 	/* keep last */
4163 	QCA_ATTR_NUD_STATS_GET_LAST,
4164 	QCA_ATTR_NUD_STATS_GET_MAX =
4165 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4166 };
4167 
4168 enum qca_wlan_btm_candidate_status {
4169 	QCA_STATUS_ACCEPT = 0,
4170 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4171 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4172 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4173 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4174 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4175 	QCA_STATUS_REJECT_UNKNOWN = 6,
4176 };
4177 
4178 enum qca_wlan_vendor_attr_btm_candidate_info {
4179 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4180 
4181 	/* 6-byte MAC address representing the BSSID of transition candidate */
4182 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4183 	/*
4184 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4185 	 * returned by the driver. It says whether the BSSID provided in
4186 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4187 	 * the driver, if not it specifies the reason for rejection.
4188 	 * Note that the user-space can overwrite the transition reject reason
4189 	 * codes provided by driver based on more information.
4190 	 */
4191 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4192 
4193 	/* keep last */
4194 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4195 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4196 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4197 };
4198 
4199 enum qca_attr_trace_level {
4200 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4201 	/*
4202 	 * Nested array of the following attributes:
4203 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4204 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4205 	 */
4206 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4207 	/*
4208 	 * Specific QCA host driver module. Please refer to the QCA host
4209 	 * driver implementation to get the specific module ID.
4210 	 */
4211 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4212 	/* Different trace level masks represented in the QCA host driver. */
4213 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4214 
4215 	/* keep last */
4216 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4217 	QCA_ATTR_TRACE_LEVEL_MAX =
4218 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4219 };
4220 
4221 /**
4222  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4223  *                                                 supported features
4224  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4225  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4226  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4227  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4228  *
4229  * enum values are used for NL attributes for data used by
4230  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4231  */
4232 enum qca_wlan_vendor_attr_get_logger_features {
4233 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4234 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4235 
4236 	/* keep last */
4237 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4238 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4239 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4240 };
4241 
4242 /**
4243  * enum qca_wlan_vendor_attr_link_properties - link properties
4244  *
4245  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4246  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4247  *	specify the number of spatial streams negotiated
4248  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4249  *	to specify negotiated rate flags i.e. ht, vht and channel width
4250  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4251  *	specify the operating frequency
4252  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4253  * (STA / AP ) for the connected link.
4254  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4255  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4256  * address of the peer represented by
4257  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4258  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4259  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4260  */
4261 enum qca_wlan_vendor_attr_link_properties {
4262 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4263 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4264 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4265 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4266 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4267 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4268 
4269 	/* KEEP LAST */
4270 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4271 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4272 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4273 };
4274 
4275 /**
4276  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4277  *
4278  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4279  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4280  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4281  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4282  *
4283  * enum values are used for NL attributes for data used by
4284  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4285  */
4286 enum qca_wlan_vendor_attr_nd_offload {
4287 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4288 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4289 
4290 	/* Keep last */
4291 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4292 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4293 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4294 };
4295 
4296 /**
4297  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4298  *
4299  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4300  *	management offload, a mechanism where the station's firmware
4301  *	does the exchange with the AP to establish the temporal keys
4302  *	after roaming, rather than having the user space wpa_supplicant do it.
4303  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4304  *	band selection based on channel selection results.
4305  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4306  *	simultaneous off-channel operations.
4307  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4308  *	Listen offload; a mechanism where the station's firmware takes care of
4309  *	responding to incoming Probe Request frames received from other P2P
4310  *	Devices whilst in Listen state, rather than having the user space
4311  *	wpa_supplicant do it. Information from received P2P requests are
4312  *	forwarded from firmware to host whenever the host processor wakes up.
4313  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4314  *	specific features.
4315  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4316  *	features.
4317  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4318  *	specific features only. If a Device sets this bit but not the
4319  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4320  *	this Device may not support all OCE AP functionalities but can support
4321  *	only OCE STA-CFON functionalities.
4322  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4323  *	managed regulatory.
4324  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4325  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4326  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4327  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4328  *	and applying thermal configuration through
4329  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4330  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4331  *	userspace.
4332  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4333  *	With Adaptive 11r feature, access points advertise the vendor
4334  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4335  *	The Adaptive 11r supported stations are expected to identify
4336  *	such vendor specific IEs and connect to the AP in FT mode though
4337  *	the profile is configured in non-FT mode.
4338  *	The driver-based SME cases also need to have this support for
4339  *	Adaptive 11r to handle the connection and roaming scenarios.
4340  *	This flag indicates the support for the same to the user space.
4341  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4342  *	concurrent network sessions on different Wi-Fi Bands. This feature
4343  *	capability is attributed to the hardware's capability to support
4344  *	the same (e.g., DBS).
4345  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4346  *	responses for the respective TWT operations are asynchronous (separate)
4347  *	event message) from the driver. If not specified, the responses are
4348  *	synchronous (in vendor command reply) to the request. Each TWT
4349  *	operation is specifically mentioned (against its respective)
4350  *	documentation) to support either of these or both modes.
4351  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4352  * 	that the driver requires add/del virtual interface path using the
4353  *	generic nl80211 commands for NDP interface create/delete and to
4354  *	register/unregister the netdev instead of creating/deleting the NDP
4355  *	interface using the vendor commands
4356  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4357  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4358  * 	(5.12 version onward), interface creation/deletion is not allowed using
4359  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4360  * 	during the register/unregister of netdev. Create and delete NDP
4361  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4362  * 	commands respectively if the driver advertises this capability set.
4363  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4364  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4365  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4366  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4367  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4368  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4369  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4370  *	station mode supports secure RTT measurement exchange. If
4371  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4372  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4373  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4374  *	mode supports secure RTT measurement exchange. If
4375  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4376  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4377  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4378  *	the device in station mode supports protection of range negotiation and
4379  *	measurement management frames. If
4380  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4381  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4382  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4383  *	the device in AP mode supports protection of range negotiation and
4384  *	measurement management frames. If
4385  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4386  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4387  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4388  */
4389 enum qca_wlan_vendor_features {
4390 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4391 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4392 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4393 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4394 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4395 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4396 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4397 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4398 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4399 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4400 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4401 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4402 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4403 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4404 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4405 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4406 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4407 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4408 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4409 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4410 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4411 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4412 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4413 };
4414 
4415 /**
4416  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4417  *     conditional channel switch
4418  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4419  *     value
4420  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4421  * frequency list (an array of u32 values in host byte order)
4422  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4423  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4424  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4425  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4426  */
4427 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4428 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4429 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4430 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4431 
4432 	/* Keep Last */
4433 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4434 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4435 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4436 };
4437 
4438 /**
4439  * enum wifi_logger_supported_features - values for supported logger features
4440  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4441  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4442  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4443  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4444  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4445  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4446  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4447  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4448  */
4449 enum wifi_logger_supported_features {
4450 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4451 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4452 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4453 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4454 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4455 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4456 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4457 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4458 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4459 };
4460 
4461 /**
4462  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4463  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4464  *
4465  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4466  * Used with event to notify the primary channel number selected in ACS
4467  * operation.
4468  * Note: If both the driver and user-space application supports the 6 GHz band,
4469  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4470  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4471  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4472  * is still used if either of the driver or user space application doesn't
4473  * support the 6 GHz band.
4474  *
4475  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4476  * Used with event to notify the secondary channel number selected in ACS
4477  * operation.
4478  * Note: If both the driver and user-space application supports the 6 GHz band,
4479  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4480  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4481  * To maintain backward compatibility,
4482  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4483  * the driver or user space application doesn't support 6 GHz band.
4484  *
4485  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4486  * (a) Used with command to configure hw_mode from
4487  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4488  * (b) Also used with event to notify the hw_mode of selected primary channel
4489  * in ACS operation.
4490  *
4491  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4492  * Used with command to configure ACS operation for HT mode.
4493  * Disable (flag attribute not present) - HT disabled and
4494  * Enable (flag attribute present) - HT enabled.
4495  *
4496  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4497  * Used with command to configure ACS operation for HT40 mode.
4498  * Disable (flag attribute not present) - HT40 disabled and
4499  * Enable (flag attribute present) - HT40 enabled.
4500  *
4501  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4502  * Used with command to configure ACS operation for VHT mode.
4503  * Disable (flag attribute not present) - VHT disabled and
4504  * Enable (flag attribute present) - VHT enabled.
4505  *
4506  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4507  * mandatory with event.
4508  * If specified in command path, ACS operation is configured with the given
4509  * channel width (in MHz).
4510  * In event path, specifies the channel width of the primary channel selected.
4511  *
4512  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4513  * Used with command to configure channel list using an array of
4514  * channel numbers (u8).
4515  * Note: If both the driver and user-space application supports the 6 GHz band,
4516  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4517  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4518  *
4519  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4520  * Used with event to notify the VHT segment 0 center channel number selected in
4521  * ACS operation.
4522  * Note: If both the driver and user-space application supports the 6 GHz band,
4523  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4524  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4525  * To maintain backward compatibility,
4526  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4527  * the driver or user space application doesn't support the 6 GHz band.
4528  *
4529  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4530  * Used with event to notify the VHT segment 1 center channel number selected in
4531  * ACS operation.
4532  * Note: If both the driver and user-space application supports the 6 GHz band,
4533  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4534  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4535  * To maintain backward compatibility,
4536  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4537  * the driver or user space application doesn't support the 6 GHz band.
4538  *
4539  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4540  * Used with command to configure the channel list using an array of channel
4541  * center frequencies in MHz (u32).
4542  * Note: If both the driver and user-space application supports the 6 GHz band,
4543  * the driver first parses the frequency list and if it fails to get a frequency
4544  * list, parses the channel list specified using
4545  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4546  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4547  *
4548  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4549  * Used with event to notify the primary channel center frequency (MHz) selected
4550  * in ACS operation.
4551  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4552  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4553  *
4554  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4555  * Used with event to notify the secondary channel center frequency (MHz)
4556  * selected in ACS operation.
4557  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4558  * includes this attribute along with
4559  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4560  *
4561  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4562  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
4563  * selected in ACS operation.
4564  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4565  * includes this attribute along with
4566  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
4567  *
4568  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4569  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4570  * selected in ACS operation.
4571  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4572  * includes this attribute along with
4573  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4574  *
4575  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4576  * Used with command to notify the driver of EDMG request for ACS
4577  * operation.
4578  *
4579  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4580  * Used with event to notify the EDMG channel number selected in ACS
4581  * operation.
4582  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4583  *
4584  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4585  * Used with event to notify the puncture pattern selected in ACS operation.
4586  * Encoding for this attribute will follow the convention used in the Disabled
4587  * Subchannel Bitmap field of the EHT Operation IE.
4588  *
4589  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4590  * Used with command to configure ACS operation for EHT mode.
4591  * Disable (flag attribute not present) - EHT disabled and
4592  * Enable (flag attribute present) - EHT enabled.
4593  *
4594  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4595  * Used with command to configure how older scan can be considered for ACS
4596  * scoring. In case scan was performed on partial set of channels configured
4597  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4598  * (in ms), then scan only remaining channels.
4599  */
4600 enum qca_wlan_vendor_attr_acs_offload {
4601 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4602 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4603 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4604 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4605 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4606 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4607 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4608 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4609 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4610 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4611 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4612 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4613 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4614 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4615 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4616 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4617 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4618 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4619 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4620 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4621 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4622 
4623 	/* keep last */
4624 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4625 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4626 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4627 };
4628 
4629 /**
4630  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4631  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4632  *
4633  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4634  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4635  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4636  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4637  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4638  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4639  */
4640 enum qca_wlan_vendor_acs_hw_mode {
4641 	QCA_ACS_MODE_IEEE80211B,
4642 	QCA_ACS_MODE_IEEE80211G,
4643 	QCA_ACS_MODE_IEEE80211A,
4644 	QCA_ACS_MODE_IEEE80211AD,
4645 	QCA_ACS_MODE_IEEE80211ANY,
4646 	QCA_ACS_MODE_IEEE80211AX,
4647 };
4648 
4649 /**
4650  * enum qca_access_policy - access control policy
4651  *
4652  * Access control policy is applied on the configured IE
4653  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4654  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4655  *
4656  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4657  *»       with the specific configuration (IE) set, i.e. allow all the
4658  *»       connections which do not match the configuration.
4659  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4660  *»       with the specific configuration (IE) set, i.e. deny all the
4661  *»       connections which do not match the configuration.
4662  */
4663 enum qca_access_policy {
4664 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4665 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4666 };
4667 
4668 /**
4669  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4670  *
4671  * The valid values for the ignore assoc disallowed
4672  *
4673  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4674  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4675  *
4676  */
4677 enum qca_ignore_assoc_disallowed {
4678 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4679 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4680 };
4681 
4682 /* Attributes for data used by
4683  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4684  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4685  */
4686 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4687 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4688 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4689 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4690 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4691 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4692 enum qca_wlan_vendor_attr_config {
4693 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4694 	/*
4695 	 * Unsigned 32-bit value to set the DTIM period.
4696 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4697 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4698 	 * DTIM beacons.
4699 	 */
4700 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4701 	/*
4702 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4703 	 * used to calculate statistics like average the TSF offset or average
4704 	 * number of frame leaked.
4705 	 * For instance, upon Beacon frame reception:
4706 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4707 	 * For instance, when evaluating leaky APs:
4708 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4709 	 */
4710 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4711 	/*
4712 	 * Unsigned 32-bit value to configure guard time, i.e., when
4713 	 * implementing IEEE power management based on frame control PM bit, how
4714 	 * long the driver waits before shutting down the radio and after
4715 	 * receiving an ACK frame for a Data frame with PM bit set.
4716 	 */
4717 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
4718 	/* Unsigned 32-bit value to change the FTM capability dynamically */
4719 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
4720 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
4721 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
4722 	/*
4723 	 * Unsigned 32-bit value to configure the number of continuous
4724 	 * Beacon Miss which shall be used by the firmware to penalize
4725 	 * the RSSI.
4726 	 */
4727 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
4728 	/*
4729 	 * Unsigned 8-bit value to configure the channel avoidance indication
4730 	 * behavior. Firmware to send only one indication and ignore duplicate
4731 	 * indications when set to avoid multiple Apps wakeups.
4732 	 */
4733 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
4734 	/*
4735 	 * 8-bit unsigned value to configure the maximum TX MPDU for
4736 	 * aggregation.
4737 	 */
4738 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
4739 	/*
4740 	 * 8-bit unsigned value to configure the maximum RX MPDU for
4741 	 * aggregation.
4742 	 */
4743 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
4744 	/*
4745 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
4746 	 * retry threshold (0 disable, 31 max).
4747 	 */
4748 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
4749 	/*
4750 	 * 8-bit unsigned value to configure the aggregrate sw
4751 	 * retry threshold (0 disable, 31 max).
4752 	 */
4753 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
4754 	/*
4755 	 * 8-bit unsigned value to configure the MGMT frame
4756 	 * retry threshold (0 disable, 31 max).
4757 	 */
4758 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
4759 	/*
4760 	 * 8-bit unsigned value to configure the CTRL frame
4761 	 * retry threshold (0 disable, 31 max).
4762 	 */
4763 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
4764 	/*
4765 	 * 8-bit unsigned value to configure the propagation delay for
4766 	 * 2G/5G band (0~63, units in us)
4767 	 */
4768 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
4769 	/*
4770 	 * Unsigned 32-bit value to configure the number of unicast TX fail
4771 	 * packet count. The peer is disconnected once this threshold is
4772 	 * reached.
4773 	 */
4774 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
4775 	/*
4776 	 * Attribute used to set scan default IEs to the driver.
4777 	 *
4778 	 * These IEs can be used by scan operations that will be initiated by
4779 	 * the driver/firmware.
4780 	 *
4781 	 * For further scan requests coming to the driver, these IEs should be
4782 	 * merged with the IEs received along with scan request coming to the
4783 	 * driver. If a particular IE is present in the scan default IEs but not
4784 	 * present in the scan request, then that IE should be added to the IEs
4785 	 * sent in the Probe Request frames for that scan request.
4786 	 */
4787 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
4788 	/* Unsigned 32-bit attribute for generic commands */
4789 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
4790 	/* Unsigned 32-bit value attribute for generic commands */
4791 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
4792 	/* Unsigned 32-bit data attribute for generic command response */
4793 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
4794 	/*
4795 	 * Unsigned 32-bit length attribute for
4796 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4797 	 */
4798 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
4799 	/*
4800 	 * Unsigned 32-bit flags attribute for
4801 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4802 	 */
4803 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
4804 	/*
4805 	 * Unsigned 32-bit, defining the access policy.
4806 	 * See enum qca_access_policy. Used with
4807 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4808 	 */
4809 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
4810 	/*
4811 	 * Sets the list of full set of IEs for which a specific access policy
4812 	 * has to be applied. Used along with
4813 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4814 	 * Zero length payload can be used to clear this access constraint.
4815 	 */
4816 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
4817 	/*
4818 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
4819 	 * corresponding configurations are applied. If the interface index is
4820 	 * not specified, the configurations are attributed to the respective
4821 	 * wiphy.
4822 	 */
4823 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
4824 	/*
4825 	 * 8-bit unsigned value to trigger QPower:
4826 	 * 1-Enable, 0-Disable
4827 	 */
4828 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
4829 	/*
4830 	 * 8-bit unsigned value to configure the driver and below layers to
4831 	 * ignore the assoc disallowed set by APs while connecting
4832 	 * 1-Ignore, 0-Don't ignore
4833 	 */
4834 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
4835 	/*
4836 	 * 32-bit unsigned value to trigger antenna diversity features:
4837 	 * 1-Enable, 0-Disable
4838 	 */
4839 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4840 	/* 32-bit unsigned value to configure specific chain antenna */
4841 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4842 	/*
4843 	 * 32-bit unsigned value to trigger cycle selftest
4844 	 * 1-Enable, 0-Disable
4845 	 */
4846 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4847 	/*
4848 	 * 32-bit unsigned to configure the cycle time of selftest
4849 	 * the unit is micro-second
4850 	 */
4851 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4852 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
4853 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4854 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
4855 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4856 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
4857 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4858 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
4859 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4860 	/* 6-byte MAC address to point out the specific peer */
4861 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4862 	/* 32-bit unsigned value to set window size for specific peer */
4863 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4864 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4865 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4866 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4867 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4868 	/*
4869 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4870 	 * station device while in disconnect state. The attribute use the
4871 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4872 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4873 	 * 10 MHz channel width, the station will not connect to a BSS using 20
4874 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4875 	 * clear this constraint.
4876 	 */
4877 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4878 	/*
4879 	 * 32-bit unsigned value to configure the propagation absolute delay
4880 	 * for 2G/5G band (units in us)
4881 	 */
4882 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
4883 	/* 32-bit unsigned value to set probe period */
4884 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4885 	/* 32-bit unsigned value to set stay period */
4886 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4887 	/* 32-bit unsigned value to set snr diff */
4888 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4889 	/* 32-bit unsigned value to set probe dwell time */
4890 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4891 	/* 32-bit unsigned value to set mgmt snr weight */
4892 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4893 	/* 32-bit unsigned value to set data snr weight */
4894 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4895 	/* 32-bit unsigned value to set ack snr weight */
4896 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4897 	/*
4898 	 * 32-bit unsigned value to configure the listen interval.
4899 	 * This is in units of beacon intervals. This configuration alters
4900 	 * the negotiated listen interval with the AP during the connection.
4901 	 * It is highly recommended to configure a value less than or equal to
4902 	 * the one negotiated during the association. Configuring any greater
4903 	 * value can have adverse effects (frame loss, AP disassociating STA,
4904 	 * etc.).
4905 	 */
4906 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4907 	/*
4908 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4909 	 * disable operations that would cause the AP/GO to leave its operating
4910 	 * channel.
4911 	 *
4912 	 * This will restrict the scans to the AP/GO operating channel and the
4913 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4914 	 * brought up after this setting is enabled, will be restricted to
4915 	 * connecting to devices only on the AP/GO interface's operating channel
4916 	 * or on the other band in DBS case. P2P supported channel list is
4917 	 * modified, to only include AP interface's operating-channel and the
4918 	 * channels of the other band if DBS is supported.
4919 	 *
4920 	 * These restrictions are only applicable as long as the AP/GO interface
4921 	 * is alive. If the AP/GO interface is brought down then this
4922 	 * setting/restriction is forgotten.
4923 	 *
4924 	 * If this variable is set on an AP/GO interface while a multi-channel
4925 	 * concurrent session is active, it has no effect on the operation of
4926 	 * the current interfaces, other than restricting the scan to the AP/GO
4927 	 * operating channel and the other band channels if DBS is supported.
4928 	 * However, if the STA is brought down and restarted then the new STA
4929 	 * connection will either be formed on the AP/GO channel or on the
4930 	 * other band in a DBS case. This is because of the scan being
4931 	 * restricted on these channels as mentioned above.
4932 	 *
4933 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4934 	 */
4935 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4936 
4937 	/*
4938 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4939 	 * on an interface.
4940 	 * 1 - Enable , 0 - Disable.
4941 	 */
4942 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4943 
4944 	/*
4945 	 * 8 bit unsigned value to globally enable/disable scan
4946 	 * 1 - Enable, 0 - Disable.
4947 	 */
4948 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4949 
4950 	/* 8-bit unsigned value to set the total beacon miss count */
4951 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4952 
4953 	/*
4954 	 * Unsigned 32-bit value to configure the number of continuous
4955 	 * Beacon Miss which shall be used by the firmware to penalize
4956 	 * the RSSI for BTC.
4957 	 */
4958 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4959 
4960 	/*
4961 	 * 8-bit unsigned value to configure the driver and below layers to
4962 	 * enable/disable all fils features.
4963 	 * 0-enable, 1-disable
4964 	 */
4965 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4966 
4967 	/* 16-bit unsigned value to configure the level of WLAN latency
4968 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4969 	 */
4970 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4971 
4972 	/*
4973 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4974 	 * the connect interface. Exclusively used for the scenarios where the
4975 	 * device is used as a test bed device with special functionality and
4976 	 * not recommended for production. This helps driver to not validate the
4977 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4978 	 * used for testing purposes.
4979 	 * 1-enable, 0-disable.
4980 	 * Applications set/reset this configuration. If not reset, this
4981 	 * parameter remains in use until the driver is unloaded.
4982 	 */
4983 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4984 
4985 	/*
4986 	 * 8-bit unsigned value to trigger green Tx power saving.
4987 	 * 1-Enable, 0-Disable
4988 	 */
4989 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4990 
4991 	/*
4992 	 * Attribute to configure disconnect IEs to the driver.
4993 	 * This carries an array of unsigned 8-bit characters.
4994 	 *
4995 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
4996 	 * frame.
4997 	 * These IEs are expected to be considered only for the next
4998 	 * immediate disconnection (disassoc/deauth frame) originated by
4999 	 * the DUT, irrespective of the entity (user space/driver/firmware)
5000 	 * triggering the disconnection.
5001 	 * The host drivers are not expected to use the IEs set through
5002 	 * this interface for further disconnections after the first immediate
5003 	 * disconnection initiated post the configuration.
5004 	 * If the IEs are also updated through cfg80211 interface (after the
5005 	 * enhancement to cfg80211_disconnect), host driver is expected to
5006 	 * take the union of IEs from both of these interfaces and send in
5007 	 * further disassoc/deauth frames.
5008 	 */
5009 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
5010 
5011 	/* 8-bit unsigned value for ELNA bypass.
5012 	 * 0 - Disable eLNA bypass.
5013 	 * 1 - Enable eLNA bypass.
5014 	 * 2 - Reset eLNA bypass configuration, the driver should
5015 	 *	revert to the default configuration of eLNA bypass.
5016 	 */
5017 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
5018 
5019 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5020 	 * to send the Beacon Report response with failure reason for the
5021 	 * scenarios where STA cannot honor the Beacon report request from AP.
5022 	 * 1-Enable, 0-Disable.
5023 	 */
5024 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
5025 
5026 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5027 	 * to send roam reason information in the reassociation request to the
5028 	 * AP. 1-Enable, 0-Disable.
5029 	 */
5030 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
5031 
5032 	/* 32-bit unsigned value to configure different PHY modes to the
5033 	 * driver/firmware. The possible values are defined in
5034 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
5035 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
5036 	 * the driver.
5037 	 */
5038 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
5039 
5040 	/* 8-bit unsigned value to configure the maximum supported channel width
5041 	 * for STA mode. If this value is configured when STA is in connected
5042 	 * state, it should not exceed the negotiated channel width. If it is
5043 	 * configured when STA is in disconnected state, the configured value
5044 	 * will take effect for the next immediate connection.
5045 	 * Possible values are:
5046 	 *   NL80211_CHAN_WIDTH_20
5047 	 *   NL80211_CHAN_WIDTH_40
5048 	 *   NL80211_CHAN_WIDTH_80
5049 	 *   NL80211_CHAN_WIDTH_80P80
5050 	 *   NL80211_CHAN_WIDTH_160
5051 	 */
5052 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
5053 
5054 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
5055 	 * This attribute is only applicable for STA mode. When dynamic
5056 	 * bandwidth adjustment is disabled, STA will use static channel width
5057 	 * the value of which is negotiated during connection.
5058 	 * 1-enable (default), 0-disable
5059 	 */
5060 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
5061 
5062 	/* 8-bit unsigned value to configure the maximum number of subframes of
5063 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
5064 	 * it is decided by hardware.
5065 	 */
5066 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
5067 
5068 	/* 8-bit unsigned value to configure the maximum number of subframes of
5069 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
5070 	 * it is decided by hardware.
5071 	 */
5072 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
5073 
5074 	/* 8-bit unsigned value. This attribute is used to dynamically
5075 	 * enable/disable the LDPC capability of the device. When configured in
5076 	 * the disconnected state, the updated configuration will be considered
5077 	 * for the immediately following connection attempt. If this
5078 	 * configuration is modified while the device is in the connected state,
5079 	 * the LDPC TX will be updated with this configuration immediately,
5080 	 * while the LDPC RX configuration update will take place starting from
5081 	 * the subsequent association attempt.
5082 	 * 1-Enable, 0-Disable.
5083 	 */
5084 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
5085 
5086 	/* 8-bit unsigned value. This attribute is used to dynamically
5087 	 * enable/disable the TX STBC capability of the device. When configured
5088 	 * in the disconnected state, the updated configuration will be
5089 	 * considered for the immediately following connection attempt. If the
5090 	 * connection is formed with TX STBC enabled and if this configuration
5091 	 * is disabled during that association, the TX will be impacted
5092 	 * immediately. Further connection attempts will disable TX STBC.
5093 	 * However, enabling the TX STBC for a connected session with disabled
5094 	 * capability is not allowed and will fail.
5095 	 * 1-Enable, 0-Disable.
5096 	 */
5097 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
5098 
5099 	/* 8-bit unsigned value. This attribute is used to dynamically
5100 	 * enable/disable the RX STBC capability of the device. When configured
5101 	 * in the disconnected state, the updated configuration will be
5102 	 * considered for the immediately following connection attempt. If the
5103 	 * configuration is modified in the connected state, there will be no
5104 	 * impact for the current association, but further connection attempts
5105 	 * will use the updated configuration.
5106 	 * 1-Enable, 0-Disable.
5107 	 */
5108 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
5109 
5110 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5111 	 * the number of spatial streams. When configured in the disconnected
5112 	 * state, the updated configuration will be considered for the
5113 	 * immediately following connection attempt. If the NSS is updated after
5114 	 * the connection, the updated NSS value is notified to the peer using
5115 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
5116 	 * frame. The updated NSS value after the connection shall not be
5117 	 * greater than the one negotiated during the connection. Any such
5118 	 * higher value configuration shall be returned with a failure.
5119 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
5120 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
5121 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
5122 	 * configure the asymmetric NSS configuration (such as 1X2).
5123 	 */
5124 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
5125 
5126 	/*
5127 	 * 8-bit unsigned value to trigger Optimized Power Management:
5128 	 * 1-Enable, 0-Disable
5129 	 */
5130 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
5131 
5132 	/* 8-bit unsigned value. This attribute takes the QOS/access category
5133 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5134 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
5135 	 * is invalid for this attribute. This will override the DSCP value
5136 	 * configured in the frame with the intention to only upgrade the QOS.
5137 	 * That said, it is not intended to downgrade the QOS for the frames.
5138 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
5139 	 * to disable.
5140 	 *
5141 	 * If only UDP frames of BE or BK access category needs to be upgraded
5142 	 * without changing the access category of VO or VI UDP frames, refer to
5143 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
5144 	 *
5145 	 * This attribute is not recommended to be used as it blindly forces all
5146 	 * UDP packets to a higher access category which could impact the
5147 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
5148 	 */
5149 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
5150 
5151 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5152 	 * the number of chains to be used for transmitting data. This
5153 	 * configuration is allowed only when in connected state and will be
5154 	 * effective until disconnected. The driver rejects this configuration
5155 	 * if the number of spatial streams being used in the current connection
5156 	 * cannot be supported by this configuration.
5157 	 */
5158 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
5159 
5160 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5161 	 * the number of chains to be used for receiving data. This
5162 	 * configuration is allowed only when in connected state and will be
5163 	 * effective until disconnected. The driver rejects this configuration
5164 	 * if the number of spatial streams being used in the current connection
5165 	 * cannot be supported by this configuration.
5166 	 */
5167 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5168 
5169 	/* 8-bit unsigned value to configure ANI setting type.
5170 	 * See &enum qca_wlan_ani_setting for possible values.
5171 	 */
5172 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5173 	/* 32-bit signed value to configure ANI level. This is used when
5174 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5175 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5176 	 * is invalid, the driver will return a failure.
5177 	 */
5178 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5179 
5180 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5181 	 * the number of spatial streams used for transmitting the data. When
5182 	 * configured in the disconnected state, the configured value will
5183 	 * be considered for the following connection attempt.
5184 	 * If the NSS is updated after the connection, the updated NSS value
5185 	 * is notified to the peer using the Operating Mode Notification/Spatial
5186 	 * Multiplexing Power Save frame.
5187 	 * The TX NSS value configured after the connection shall not be greater
5188 	 * than the value negotiated during the connection. Any such higher
5189 	 * value configuration shall be treated as invalid configuration by
5190 	 * the driver. This attribute shall be configured along with
5191 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5192 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5193 	 * configuration (such as 1X2).
5194 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5195 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5196 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5197 	 */
5198 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5199 
5200 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5201 	 * the number of spatial streams used for receiving the data. When
5202 	 * configured in the disconnected state, the configured value will
5203 	 * be considered for the following connection attempt.
5204 	 * If the NSS is updated after the connection, the updated NSS value
5205 	 * is notified to the peer using the Operating Mode Notification/Spatial
5206 	 * Multiplexing Power Save frame.
5207 	 * The RX NSS value configured after the connection shall not be greater
5208 	 * than the value negotiated during the connection. Any such higher
5209 	 * value configuration shall be treated as invalid configuration by
5210 	 * the driver. This attribute shall be configured along with
5211 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5212 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5213 	 * configuration (such as 1X2).
5214 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5215 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5216 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5217 	 */
5218 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5219 
5220 	/*
5221 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5222 	 * specified interface is the primary STA interface when there are more
5223 	 * than one STA interfaces concurrently active.
5224 	 *
5225 	 * This configuration helps the firmware/hardware to support certain
5226 	 * features (e.g., roaming) on this primary interface, if the same
5227 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5228 	 *
5229 	 * This configuration is only applicable for a single STA interface on
5230 	 * a device and gives the priority for it only over other concurrent STA
5231 	 * interfaces.
5232 	 *
5233 	 * If the device is a multi wiphy/soc, this configuration applies to a
5234 	 * single STA interface across the wiphys.
5235 	 *
5236 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5237 	 */
5238 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5239 
5240 	/*
5241 	 * 8-bit unsigned value. This attribute can be used to configure the
5242 	 * driver to enable/disable FT-over-DS feature. Possible values for
5243 	 * this attribute are 1-Enable and 0-Disable.
5244 	 */
5245 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5246 
5247 	/*
5248 	 * 8-bit unsigned value. This attribute can be used to configure the
5249 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5250 	 * for this attribute are 0-Disable and 1-Enable.
5251 	 *
5252 	 * This attribute is only applicable for STA/P2P-Client interface,
5253 	 * and is optional, default behavior is APR/NS offload Enable.
5254 	 *
5255 	 * This attribute can be set in disconncted and connected state, and
5256 	 * will restore to default behavior if interface is closed.
5257 	 */
5258 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5259 
5260 	/*
5261 	 * 8-bit unsigned value. This attribute can be used to configure the
5262 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5263 	 * for this attribute are defined in the enum qca_dbam_config.
5264 	 */
5265 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5266 
5267 	/* 8-bit unsigned value. This attribute takes the QoS/access category
5268 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5269 	 * to upgrade the UDP frames of BE or BK access category to this access
5270 	 * category. This attribute will not modify UDP frames of VO or VI
5271 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
5272 	 * attribute.
5273 	 *
5274 	 * This will override the DSCP value configured in the frame with the
5275 	 * intention to only upgrade the access category. That said, it is not
5276 	 * intended to downgrade the access category for the frames.
5277 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
5278 	 * disabled, as BK is of the lowest priority and an upgrade to it does
5279 	 * not result in any changes for the frames.
5280 	 *
5281 	 * This attribute behavior is similar to
5282 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
5283 	 * only UDP frames of BE or BK access category are upgraded and not
5284 	 * UDP frames of VI or VO access category.
5285 	 *
5286 	 * This attribute is not recommended to be used as it blindly forces all
5287 	 * UDP packets of BE or BK access category to a higher access category
5288 	 * which could impact the traffic pattern of all apps using UDP and can
5289 	 * cause unknown behavior.
5290 	 */
5291 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
5292 
5293 	/* 8-bit unsigned value to configure the driver to enable/disable the
5294 	 * periodic sounding for Tx beamformer functionality. The default
5295 	 * behavior uses algorithm to do sounding based on packet stats.
5296 	 *
5297 	 * 0 - Default behavior.
5298 	 * 1 - Enable the periodic sounding for Tx beamformer.
5299 	 * This attribute is used for testing purposes.
5300 	 */
5301 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
5302 
5303 	/* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
5304 	 * Userspace sends this information to driver/firmware to configure
5305 	 * wfc state. Driver/Firmware uses this information to
5306 	 * optimize power savings, rate adaption, roaming, etc.
5307 	 *
5308 	 * 1 - wfc is on.
5309 	 * 0 - wfc is off.
5310 	 */
5311 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
5312 
5313 	/* keep last */
5314 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5315 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5316 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5317 };
5318 
5319 /**
5320  * enum qca_dbam_config - Specifies DBAM config mode
5321  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5322  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5323  * internal criteria are met.
5324  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5325  */
5326 enum qca_dbam_config {
5327 	QCA_DBAM_DISABLE = 0,
5328 	QCA_DBAM_ENABLE = 1,
5329 	QCA_DBAM_FORCE_ENABLE = 2,
5330 };
5331 
5332 /**
5333  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5334  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5335  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5336  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5337  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5338  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5339  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5340  */
5341 enum qca_wlan_vendor_attr_wifi_logger_start {
5342 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5343 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5344 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5345 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5346 	/* keep last */
5347 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5348 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5349 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5350 };
5351 
5352 /*
5353  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5354  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5355  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5356  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5357  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5358  */
5359 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5360 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5361 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5362 	/* keep last */
5363 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5364 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5365 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5366 };
5367 
5368 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5369 /**
5370  * enum wlan_offloaded_packets_control - control commands
5371  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5372  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5373  *
5374  */
5375 enum wlan_offloaded_packets_control {
5376 	WLAN_START_OFFLOADED_PACKETS = 1,
5377 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5378 };
5379 
5380 /**
5381  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5382  *
5383  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5384  *      the offloaded data.
5385  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5386  *      data.
5387  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5388  *      indication.
5389  */
5390 enum qca_wlan_vendor_attr_data_offload_ind {
5391 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5392 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5393 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5394 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5395 
5396 	/* keep last */
5397 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5398 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5399 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5400 };
5401 
5402 /**
5403  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5404  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5405  */
5406 enum qca_wlan_vendor_attr_offloaded_packets {
5407 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5408 	/* Takes valid value from the enum
5409 	 * qca_wlan_offloaded_packets_sending_control
5410 	 * Unsigned 32-bit value
5411 	 */
5412 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5413 	/* Unsigned 32-bit value */
5414 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5415 	/* array of u8 len: Max packet size */
5416 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5417 	/* 6-byte MAC address used to represent source MAC address */
5418 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5419 	/* 6-byte MAC address used to represent destination MAC address */
5420 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5421 	/* Unsigned 32-bit value, in milli seconds */
5422 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5423 	/* This optional unsigned 16-bit attribute is used for specifying
5424 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5425 	 */
5426 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5427 
5428 	/* keep last */
5429 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5430 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5431 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5432 };
5433 
5434 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5435 
5436 /**
5437  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5438  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5439  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5440  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5441  */
5442 enum qca_wlan_rssi_monitoring_control {
5443 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5444 	QCA_WLAN_RSSI_MONITORING_START,
5445 	QCA_WLAN_RSSI_MONITORING_STOP,
5446 };
5447 
5448 /**
5449  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5450  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5451  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5452  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5453  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5454  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5455  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5456  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5457  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5458  */
5459 enum qca_wlan_vendor_attr_rssi_monitoring {
5460 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5461 
5462 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5463 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5464 
5465 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5466 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5467 
5468 	/* attributes to be used/received in callback */
5469 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5470 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5471 
5472 	/* keep last */
5473 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5474 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5475 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5476 };
5477 
5478 /**
5479  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5480  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5481  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5482  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
5483  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
5484  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
5485  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
5486  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
5487  * address
5488  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
5489  * created
5490  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
5491  * NCS_SK_TYPE/PMK/SCID instead
5492  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
5493  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
5494  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
5495  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
5496  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
5497  * code: accept/reject
5498  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
5499  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
5500  * driver
5501  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
5502  * driver
5503  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
5504  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
5505  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
5506  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
5507  * PMKID
5508  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
5509  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
5510  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
5511  * update:
5512  *     BIT_0: NSS Update
5513  *     BIT_1: Channel list update
5514  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
5515  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
5516  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
5517  *     0:20 MHz,
5518  *     1:40 MHz,
5519  *     2:80 MHz,
5520  *     3:160 MHz
5521  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
5522  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
5523  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
5524  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
5525  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
5526  * transport port used by NDP.
5527  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
5528  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
5529  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5530  * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
5531  * NDP remote peer supports NAN NDPE. 1:support 0:not support
5532  * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
5533  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
5534  * A lower-case representation of the Service Name shall be used to
5535  * calculate the Service ID.
5536  * Array of u8: length is 6 bytes
5537  * This attribute is used and optional for ndp indication.
5538 */
5539 enum qca_wlan_vendor_attr_ndp_params {
5540 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5541 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
5542 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
5543 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
5544 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
5545 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
5546 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
5547 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
5548 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
5549 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
5550 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
5551 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
5552 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
5553 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
5554 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
5555 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
5556 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
5557 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
5558 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
5559 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
5560 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
5561 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
5562 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
5563 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
5564 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
5565 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
5566 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
5567 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5568 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5569 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5570 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
5571 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
5572 
5573 	/* keep last */
5574 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5575 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5576 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5577 };
5578 
5579 /**
5580  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
5581  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5582  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
5583  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
5584  * data path interface.
5585  * This command was initially designed to both create and start a NAN
5586  * data path interface. However, changes to Linux 5.12 no longer allow
5587  * interface creation via vendor commands. When the driver advertises
5588  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5589  * userspace must explicitly first create the interface using
5590  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
5591  * to start the interface.
5592  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
5593  * data path interface.
5594  * This command was initially designed to both stop and delete a NAN
5595  * data path interface. However, changes to Linux 5.12 no longer allow
5596  * interface deletion via vendor commands. When the driver advertises
5597  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5598  * userspace must explicitly delete the interface using
5599  * NL80211_CMD_DEL_INTERFACE after calling this command.
5600  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
5601  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
5602  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
5603  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
5604  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
5605  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
5606  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
5607  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
5608  * being received
5609  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
5610  * update
5611  */
5612 enum qca_wlan_ndp_sub_cmd {
5613 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5614 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5615 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5616 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5617 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5618 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5619 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5620 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5621 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5622 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5623 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5624 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5625 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5626 };
5627 
5628 /**
5629  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5630  * information. These attributes are sent as part of
5631  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5632  * attributes correspond to a single channel.
5633  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
5634  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5635  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
5636  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5637  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
5638  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
5639  * regulatory transmission power
5640  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
5641  * transmission power
5642  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
5643  * transmission power
5644  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
5645  * class id
5646  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
5647  * antenna gain in dbm
5648  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
5649  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
5650  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
5651  * center frequency in MHz.
5652  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
5653  * segment 0 in center freq in MHz. (this is the legacy alias)
5654  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
5655  * center frequency in MHz.
5656  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
5657  * segment 1 in center freq in MHz. (this is the legacy alias)
5658  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
5659  * flag indicating the AP power modes supported by the channel, as given by
5660  * enum qca_wlan_vendor_external_acs_chan_power_level.
5661  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
5662  * attributes for each power mode. It takes attr as defined in enum
5663  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5664  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
5665  * This indicates the overlapping 320 MHz center frequency in MHz, if the
5666  * given primary channel supports more than one 320 MHz channel bonding.
5667  *
5668  */
5669 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5670 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5671 
5672 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5673 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5674 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5675 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5676 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5677 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5678 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5679 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5680 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5681 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5682 	/*
5683 	 * A bitmask (u32) with flags specified in
5684 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5685 	 */
5686 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5687 
5688 	/*
5689 	 * Segment 0 in MHz (u32).
5690 	 *
5691 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
5692 	 * frequency index for the 20/40/80 MHz operating channel.
5693 	 * For 160 MHz bandwidth, this indicates the channel center
5694 	 * frequency of the primary 80 MHz channel.
5695 	 * For 320 MHz bandwidth, indicates the channel center frequency
5696 	 * of the primary 160 MHz channel.
5697 	 *
5698 	 * To maintain backward compatibility,
5699 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5700 	 * is also maintained.
5701 	 */
5702 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
5703 	/* Legacy alias for the Segment 0 attribute.
5704 	 *
5705 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5706 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5707 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5708 	 * along with
5709 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5710 	 *
5711 	 * If both the driver and user-space application supports the 6 GHz
5712 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5713 	 * is deprecated and
5714 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5715 	 * should be used.
5716 	 *
5717 	 * To maintain backward compatibility,
5718 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5719 	 * is still used if either of the driver or user space application
5720 	 * doesn't support the 6 GHz band.
5721 	 */
5722 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
5723 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
5724 
5725 	/*
5726 	 * Segment 1 in MHz (u32).
5727 	 *
5728 	 * For 20/40/80 MHz bandwidth, this is set to 0.
5729 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
5730 	 * 160 MHz channel.
5731 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
5732 	 * 320 MHz channel.
5733 	 *
5734 	 * To maintain backward compatibility,
5735 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5736 	 * is also maintained.
5737 	 */
5738 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
5739 	/* Legacy alias for the Segment 1 attribute.
5740 	 *
5741 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5742 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5743 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5744 	 * along with
5745 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5746 	 *
5747 	 * If both the driver and user-space application supports the 6 GHz
5748 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5749 	 * is deprecated and
5750 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5751 	 * should be considered.
5752 	 *
5753 	 * To maintain backward compatibility,
5754 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5755 	 * is still used if either of the driver or user space application
5756 	 * doesn't support the 6 GHz band.
5757 	 */
5758 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
5759 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
5760 	/*
5761 	 * 16-bit attribute of bits indicating the AP power modes supported by
5762 	 * the channel (u16).
5763 	 * Note: Currently, only 3 bits are used in the attribute and each bit
5764 	 * corresponds to the power mode mentioned in enum
5765 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
5766 	 * set if the associated mode is supported.
5767 	 */
5768 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
5769 									= 14,
5770 	/* Array of nested attributes for each power mode. It takes attr as
5771 	 * defined in enum
5772 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5773 	 */
5774 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
5775 	/*
5776 	 * This indicates the overlapping 320 MHz center frequency in MHz
5777 	 * (u32), if the given primary channel supports more than one
5778 	 * 320 MHz channel bonding.
5779 	 *
5780 	 * Example:
5781 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
5782 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
5783 	 * possible segment 2 frequencies for this (320 MHz center
5784 	 * frequencies):
5785 	 *
5786 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
5787 	 *    from frequency 5945 MHz - 6265 MHz
5788 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
5789 	 *    from frequency 6105 MHz - 6425 MHz
5790 	 *
5791 	 * In this case,
5792 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
5793 	 * return 6185 MHz.
5794 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
5795 	 * return 6105 MHz.
5796 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
5797 	 * will return 6265 MHz.
5798 	 */
5799 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
5800 									= 16,
5801 
5802 	/* keep last */
5803 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5804 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5805 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5806 };
5807 
5808 /**
5809  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
5810  * values that the vendor external ACS channel power attribute
5811  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
5812  * take.
5813  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
5814  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
5815  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
5816  */
5817 enum qca_wlan_vendor_external_acs_chan_power_level {
5818 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
5819 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
5820 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
5821 };
5822 
5823 /**
5824  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
5825  * attributes for power mode type and power values corresponding to that.
5826  * These attributes are sent as part of
5827  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
5828  */
5829 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
5830 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
5831 	/*
5832 	 * Power mode (u8) takes the values defined in enum
5833 	 * qca_wlan_vendor_external_acs_chan_power_mode
5834 	 */
5835 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
5836 									= 1,
5837 	/*
5838 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
5839 	 * present, it indicates a PSD value.
5840 	 */
5841 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
5842 	/*
5843 	 * Power value (u32) PSD/EIRP as indicated by
5844 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
5845 	 * for power mode corresponding to the
5846 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
5847 	 * Units for PSD - dBm/MHz
5848 	 * Units for EIRP - dBm
5849 	 */
5850 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
5851 									= 3,
5852 	/* keep last */
5853 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
5854 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
5855 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
5856 };
5857 
5858 /**
5859  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
5860  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
5861  * driver.
5862  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
5863  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
5864  * ACS need to be started
5865  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
5866  * driver supports spectral scanning or not
5867  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
5868  * offloaded to firmware.
5869  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
5870  * provides additional channel capability as part of scan operation.
5871  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
5872  * interface status is UP
5873  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
5874  * interface. It takes one of nl80211_iftype values.
5875  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
5876  * of chan width. ACS logic should try to get a channel with specified width
5877  * if not found then look for lower values.
5878  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
5879  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
5880  * a/b/g/n/ac.
5881  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
5882  * among which ACS should choose best frequency.
5883  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
5884  * driver which will have <channel(u8), weight(u8)> format as array of
5885  * nested values.
5886  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
5887  * for each channel. It takes attr as defined in
5888  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
5889  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
5890  * qca_wlan_vendor_attr_external_acs_policy.
5891  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
5892  * Operating Parameter (RROP) availability information (u16). It uses values
5893  * defined in enum qca_wlan_vendor_attr_rropavail_info.
5894  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
5895  * indicate if driver supports 6 GHz AFC trigger for External ACS.
5896  */
5897 enum qca_wlan_vendor_attr_external_acs_event {
5898 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5899 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5900 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5901 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5902 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5903 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5904 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5905 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5906 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5907 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5908 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5909 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5910 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5911 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5912 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5913 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
5914 
5915 	/* keep last */
5916 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5917 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5918 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5919 };
5920 
5921 enum qca_iface_type {
5922 	QCA_IFACE_TYPE_STA,
5923 	QCA_IFACE_TYPE_AP,
5924 	QCA_IFACE_TYPE_P2P_CLIENT,
5925 	QCA_IFACE_TYPE_P2P_GO,
5926 	QCA_IFACE_TYPE_IBSS,
5927 	QCA_IFACE_TYPE_TDLS,
5928 };
5929 
5930 /**
5931  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
5932  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5933  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5934  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
5935  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
5936  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
5937  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
5938  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
5939  */
5940 enum qca_wlan_vendor_attr_pcl_config {
5941 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5942 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5943 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5944 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5945 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5946 };
5947 
5948 enum qca_set_band {
5949 	QCA_SETBAND_AUTO = 0,
5950 	QCA_SETBAND_5G = BIT(0),
5951 	QCA_SETBAND_2G = BIT(1),
5952 	QCA_SETBAND_6G = BIT(2),
5953 };
5954 
5955 /**
5956  * enum set_reset_packet_filter - set packet filter control commands
5957  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
5958  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
5959  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
5960  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
5961  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
5962  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
5963  */
5964 enum set_reset_packet_filter {
5965 	QCA_WLAN_SET_PACKET_FILTER = 1,
5966 	QCA_WLAN_GET_PACKET_FILTER = 2,
5967 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
5968 	QCA_WLAN_READ_PACKET_FILTER = 4,
5969 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5970 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5971 };
5972 
5973 /**
5974  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
5975  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
5976  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
5977  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
5978  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
5979  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
5980  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
5981  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
5982  *	section in packet filter buffer
5983  */
5984 enum qca_wlan_vendor_attr_packet_filter {
5985 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5986 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
5987 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5988 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5989 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5990 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5991 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5992 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
5993 
5994 	/* keep last */
5995 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5996 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5997 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5998 };
5999 
6000 /**
6001  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
6002  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
6003  */
6004 enum qca_wlan_vendor_attr_wake_stats {
6005 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
6006 	/* Unsigned 32-bit value indicating the total count of wake event */
6007 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
6008 	/* Array of individual wake count, each index representing wake reason
6009 	 */
6010 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
6011 	/* Unsigned 32-bit value representing wake count array */
6012 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
6013 	/* Unsigned 32-bit total wake count value of driver/fw */
6014 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
6015 	/* Array of wake stats of driver/fw */
6016 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
6017 	/* Unsigned 32-bit total wake count value of driver/fw */
6018 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
6019 	/* Unsigned 32-bit total wake count value of packets received */
6020 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
6021 	/* Unsigned 32-bit wake count value unicast packets received */
6022 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
6023 	/* Unsigned 32-bit wake count value multicast packets received */
6024 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
6025 	/* Unsigned 32-bit wake count value broadcast packets received */
6026 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
6027 	/* Unsigned 32-bit wake count value of ICMP packets */
6028 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
6029 	/* Unsigned 32-bit wake count value of ICMP6 packets */
6030 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
6031 	/* Unsigned 32-bit value ICMP6 router advertisement */
6032 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
6033 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
6034 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
6035 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
6036 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
6037 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
6038 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
6039 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
6040 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
6041 	/* Unsigned 32-bit wake count value of receive side multicast */
6042 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
6043 	/* Unsigned 32-bit wake count value of a given RSSI breach */
6044 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
6045 	/* Unsigned 32-bit wake count value of low RSSI */
6046 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
6047 	/* Unsigned 32-bit value GSCAN count */
6048 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
6049 	/* Unsigned 32-bit value PNO complete count */
6050 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
6051 	/* Unsigned 32-bit value PNO match count */
6052 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
6053 	/* keep last */
6054 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
6055 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
6056 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
6057 };
6058 
6059 /**
6060  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
6061  * configured by userspace to the driver/firmware. The values will be
6062  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
6063  * The driver/firmware takes necessary actions requested by userspace
6064  * such as throttling wifi tx etc. in order to mitigate high temperature.
6065  *
6066  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
6067  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
6068  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
6069  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
6070  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
6071  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
6072  */
6073 enum qca_wlan_vendor_thermal_level {
6074 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
6075 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
6076 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
6077 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
6078 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
6079 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
6080 };
6081 
6082 /**
6083  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
6084  * cmd value. Used for NL attributes for data used by
6085  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6086  */
6087 enum qca_wlan_vendor_attr_thermal_cmd {
6088 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
6089 	/* The value of command, driver will implement different operations
6090 	 * according to this value. It uses values defined in
6091 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
6092 	 * u32 attribute.
6093 	 */
6094 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
6095 	/* Userspace uses this attribute to configure thermal level to the
6096 	 * driver/firmware, or get thermal level from the driver/firmware.
6097 	 * Used in request or response, u32 attribute,
6098 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
6099 	 */
6100 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
6101 	/* Userspace uses this attribute to configure the time in which the
6102 	 * driver/firmware should complete applying settings it received from
6103 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
6104 	 * command type. Used in request, u32 attribute, value is in
6105 	 * milliseconds. A value of zero indicates to apply the settings
6106 	 * immediately. The driver/firmware can delay applying the configured
6107 	 * thermal settings within the time specified in this attribute if
6108 	 * there is any critical ongoing operation.
6109 	 */
6110 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
6111 	/* Nested attribute, driver/firmware uses this attribute to report
6112 	 * thermal stats of different thermal levels to userspace when requested
6113 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
6114 	 * type. This attribute contains nested array of records of thermal
6115 	 * statistics of multiple levels. The attributes used inside this nested
6116 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
6117 	 */
6118 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
6119 
6120 	/* keep last */
6121 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
6122 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
6123 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
6124 };
6125 
6126 /**
6127  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
6128  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
6129  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
6130  * thermal command types sent to driver.
6131  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
6132  * get thermal shutdown configuration parameters for display. Parameters
6133  * responded from driver are defined in
6134  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
6135  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
6136  * get temperature. Host should respond with a temperature data. It is defined
6137  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
6138  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
6139  * suspend action.
6140  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
6141  * resume action.
6142  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
6143  * the driver/firmware.
6144  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
6145  * thermal level from the driver/firmware. The driver should respond with a
6146  * thermal level defined in enum qca_wlan_vendor_thermal_level.
6147  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
6148  * current thermal stats from the driver/firmware. The driver should respond
6149  * with stats of all thermal levels encapsulated in attribute
6150  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
6151  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
6152  * the current thermal stats all thermal levels maintained in the
6153  * driver/firmware and start counting from zero again.
6154  */
6155 enum qca_wlan_vendor_attr_thermal_cmd_type {
6156 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
6157 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
6158 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
6159 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
6160 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
6161 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
6162 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
6163 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
6164 };
6165 
6166 /**
6167  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
6168  * to get chip temperature by user.
6169  * enum values are used for NL attributes for data used by
6170  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
6171  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6172  */
6173 enum qca_wlan_vendor_attr_thermal_get_temperature {
6174 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
6175 	/* Temperature value (degree Celsius) from driver.
6176 	 * u32 attribute.
6177 	 */
6178 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
6179 
6180 	/* keep last */
6181 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
6182 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
6183 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
6184 };
6185 
6186 /**
6187  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
6188  * report thermal events from driver to user space.
6189  * enum values are used for NL attributes for data used by
6190  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
6191  */
6192 enum qca_wlan_vendor_attr_thermal_event {
6193 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
6194 	/* Temperature value (degree Celsius) from driver.
6195 	 * u32 attribute.
6196 	 */
6197 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
6198 	/* Indication of resume completion from power save mode.
6199 	 * NLA_FLAG attribute.
6200 	 */
6201 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
6202 	/* Thermal level from the driver.
6203 	 * u32 attribute. Possible values are defined in
6204 	 * enum qca_wlan_vendor_thermal_level.
6205 	 */
6206 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
6207 
6208 	/* keep last */
6209 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
6210 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
6211 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
6212 };
6213 
6214 /**
6215  * enum qca_vendor_element_id - QCA Vendor Specific element types
6216  *
6217  * These values are used to identify QCA Vendor Specific elements. The
6218  * payload of the element starts with the three octet OUI (OUI_QCA) and
6219  * is followed by a single octet type which is defined by this enum.
6220  *
6221  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
6222  *      This element can be used to specify preference order for supported
6223  *      channels. The channels in this list are in preference order (the first
6224  *      one has the highest preference) and are described as a pair of
6225  *      (global) Operating Class and Channel Number (each one octet) fields.
6226  *
6227  *      This extends the standard P2P functionality by providing option to have
6228  *      more than one preferred operating channel. When this element is present,
6229  *      it replaces the preference indicated in the Operating Channel attribute.
6230  *      For supporting other implementations, the Operating Channel attribute is
6231  *      expected to be used with the highest preference channel. Similarly, all
6232  *      the channels included in this Preferred channel list element are
6233  *      expected to be included in the Channel List attribute.
6234  *
6235  *      This vendor element may be included in GO Negotiation Request, P2P
6236  *      Invitation Request, and Provision Discovery Request frames.
6237  *
6238  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
6239  *      This element can be used for pre-standard publication testing of HE
6240  *      before P802.11ax draft assigns the element ID. The payload of this
6241  *      vendor specific element is defined by the latest P802.11ax draft.
6242  *      Please note that the draft is still work in progress and this element
6243  *      payload is subject to change.
6244  *
6245  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
6246  *      This element can be used for pre-standard publication testing of HE
6247  *      before P802.11ax draft assigns the element ID. The payload of this
6248  *      vendor specific element is defined by the latest P802.11ax draft.
6249  *      Please note that the draft is still work in progress and this element
6250  *      payload is subject to change.
6251  *
6252  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
6253  *      element).
6254  *      This element can be used for pre-standard publication testing of HE
6255  *      before P802.11ax draft assigns the element ID extension. The payload of
6256  *      this vendor specific element is defined by the latest P802.11ax draft
6257  *      (not including the Element ID Extension field). Please note that the
6258  *      draft is still work in progress and this element payload is subject to
6259  *      change.
6260  *
6261  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
6262  *      This element can be used for pre-standard publication testing of HE
6263  *      before P802.11ax draft assigns the element ID extension. The payload of
6264  *      this vendor specific element is defined by the latest P802.11ax draft
6265  *      (not including the Element ID Extension field). Please note that the
6266  *      draft is still work in progress and this element payload is subject to
6267  *      change.
6268  *
6269  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
6270  *      This element can be used for pre-standard publication testing of HE
6271  *      before P802.11ax draft assigns the element ID extension. The payload of
6272  *      this vendor specific element is defined by the latest P802.11ax draft
6273  *      (not including the Element ID Extension field). Please note that the
6274  *      draft is still work in progress and this element payload is subject to
6275  *      change.
6276  */
6277 enum qca_vendor_element_id {
6278 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6279 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6280 	QCA_VENDOR_ELEM_HE_OPER = 2,
6281 	QCA_VENDOR_ELEM_RAPS = 3,
6282 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6283 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6284 };
6285 
6286 /**
6287  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6288  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6289  * Specify the TSF command. Possible values are defined in
6290  * &enum qca_tsf_cmd.
6291  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6292  * This attribute contains TSF timer value. This attribute is only available
6293  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6294  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6295  * This attribute contains SOC timer value at TSF capture. This attribute is
6296  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6297  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6298  * This attribute is used to provide TSF sync interval and only applicable when
6299  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6300  * driver will use the default value. Time unit is in milliseconds.
6301  */
6302 enum qca_vendor_attr_tsf_cmd {
6303 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6304 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6305 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6306 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6307 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6308 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6309 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6310 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6311 };
6312 
6313 /**
6314  * enum qca_tsf_cmd: TSF driver commands
6315  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6316  * @QCA_TSF_GET: Get TSF capture value
6317  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6318  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6319  * will automatically send TSF report to the host. To query
6320  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6321  * initiated first.
6322  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6323  * will not automatically send TSF report to the host. If
6324  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6325  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6326  * operation needs to be initiated.
6327  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6328  * fetches TSF and host time mapping from the firmware with interval configured
6329  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6330  * interval value is not provided the driver will use the default value. The
6331  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6332  * command.
6333  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6334  */
6335 enum qca_tsf_cmd {
6336 	QCA_TSF_CAPTURE,
6337 	QCA_TSF_GET,
6338 	QCA_TSF_SYNC_GET,
6339 	QCA_TSF_AUTO_REPORT_ENABLE,
6340 	QCA_TSF_AUTO_REPORT_DISABLE,
6341 	QCA_TSF_SYNC_START,
6342 	QCA_TSF_SYNC_STOP,
6343 };
6344 
6345 /**
6346  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6347  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6348  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6349  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6350  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6351  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6352  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6353  */
6354 enum qca_vendor_attr_get_preferred_freq_list {
6355 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6356 	/* A 32-unsigned value; the interface type/mode for which the preferred
6357 	 * frequency list is requested (see enum qca_iface_type for possible
6358 	 * values); used in both south- and north-bound.
6359 	 */
6360 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6361 	/* An array of 32-unsigned values; values are frequency (MHz); used
6362 	 * in north-bound only.
6363 	 */
6364 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6365 	/* An array of nested values as per enum
6366 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6367 	 *  Each element contains frequency (MHz), weight, and flag
6368 	 *  bit mask indicating how the frequency should be used in P2P
6369 	 *  negotiation.
6370 	 */
6371 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6372 	/* keep last */
6373 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6374 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6375 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6376 };
6377 
6378 /**
6379  * enum qca_vendor_attr_probable_oper_channel - channel hint
6380  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6381  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6382  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6383  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6384  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6385  */
6386 enum qca_vendor_attr_probable_oper_channel {
6387 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6388 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6389 	 * come on this channel (see enum qca_iface_type).
6390 	 */
6391 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6392 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6393 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6394 	/* keep last */
6395 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6396 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6397 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6398 };
6399 
6400 /**
6401  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6402  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6403  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6404  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6405  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6406  */
6407 enum qca_wlan_vendor_attr_gw_param_config {
6408 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6409 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6410 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6411 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6412 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6413 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6414 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6415 };
6416 
6417 /**
6418  * enum drv_dbs_capability - DBS capability
6419  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6420  * @DRV_DBS_CAPABILITY_1X1: 1x1
6421  * @DRV_DBS_CAPABILITY_2X2: 2x2
6422  */
6423 enum drv_dbs_capability {
6424 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6425 	DRV_DBS_CAPABILITY_1X1,
6426 	DRV_DBS_CAPABILITY_2X2,
6427 };
6428 
6429 /**
6430  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6431  *
6432  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6433  */
6434 enum qca_vendor_attr_txpower_decr_db {
6435 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6436 	/*
6437 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6438 	 * a virtual interface.
6439 	 */
6440 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6441 	/* keep last */
6442 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
6443 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
6444 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
6445 };
6446 
6447 /**
6448  * enum qca_vendor_attr_ota_test - Enable OTA test
6449  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
6450  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
6451  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
6452  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
6453  */
6454 enum qca_vendor_attr_ota_test {
6455 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
6456 	/* 8-bit unsigned value to indicate if OTA test is enabled */
6457 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
6458 	/* keep last */
6459 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
6460 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
6461 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
6462 };
6463 
6464 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
6465  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
6466  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
6467  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
6468  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
6469  */
6470 enum qca_vendor_attr_txpower_scale {
6471 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
6472 	/* 8-bit unsigned value to indicate the scaling of tx power */
6473 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
6474 	/* keep last */
6475 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
6476 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
6477 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
6478 };
6479 
6480 /**
6481  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
6482  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
6483  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
6484  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
6485  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
6486  */
6487 enum qca_vendor_attr_txpower_scale_decr_db {
6488 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
6489 	/* 8-bit unsigned value to indicate the scaling of tx power */
6490 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
6491 	/* keep last */
6492 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
6493 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
6494 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
6495 };
6496 
6497 /**
6498  * enum dfs_mode - state of DFS mode
6499  * @DFS_MODE_NONE: DFS mode attribute is none
6500  * @DFS_MODE_ENABLE:  DFS mode is enabled
6501  * @DFS_MODE_DISABLE: DFS mode is disabled
6502  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
6503  */
6504 enum dfs_mode {
6505 	DFS_MODE_NONE,
6506 	DFS_MODE_ENABLE,
6507 	DFS_MODE_DISABLE,
6508 	DFS_MODE_DEPRIORITIZE
6509 };
6510 
6511 /**
6512  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
6513  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
6514  *
6515  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
6516  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
6517  *
6518  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
6519  * channel number hint for ACS operation, if valid channel is specified then
6520  * ACS operation gives priority to this channel.
6521  * Note: If both the driver and user space application supports the 6 GHz band,
6522  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
6523  * should be used.
6524  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
6525  * is still used if either of the driver or user space application doesn't
6526  * support the 6 GHz band.
6527  *
6528  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
6529  * Channel center frequency (MHz) hint for ACS operation, if a valid center
6530  * frequency is specified, ACS operation gives priority to this channel.
6531  */
6532 enum qca_wlan_vendor_attr_acs_config {
6533 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
6534 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
6535 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
6536 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
6537 
6538 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
6539 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
6540 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
6541 };
6542 
6543 /**
6544  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
6545  */
6546 enum qca_wlan_vendor_attr_get_hw_capability {
6547 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
6548 	/*
6549 	 * Antenna isolation
6550 	 * An attribute used in the response.
6551 	 * The content of this attribute is encoded in a byte array. Each byte
6552 	 * value is an antenna isolation value. The array length is the number
6553 	 * of antennas.
6554 	 */
6555 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
6556 	/*
6557 	 * Request HW capability
6558 	 * An attribute used in the request.
6559 	 * The content of this attribute is a u32 array for one or more of
6560 	 * hardware capabilities (attribute IDs) that are being requested. Each
6561 	 * u32 value has a value from this
6562 	 * enum qca_wlan_vendor_attr_get_hw_capability
6563 	 * identifying which capabilities are requested.
6564 	 */
6565 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
6566 
6567 	/* keep last */
6568 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
6569 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
6570 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
6571 };
6572 
6573 /**
6574  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
6575  *                        config params for sta roam policy
6576  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
6577  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
6578  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
6579  * If sta should skip unsafe channels or not in scanning
6580  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
6581  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
6582  */
6583 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
6584 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
6585 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
6586 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
6587 
6588 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
6589 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
6590 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
6591 };
6592 
6593 /* Attributes for FTM commands and events */
6594 
6595 /**
6596  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
6597  *
6598  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
6599  *      enum qca_wlan_vendor_attr_loc_capa_flags.
6600  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
6601  *      of measurement sessions that can run concurrently.
6602  *      Default is one session (no session concurrency).
6603  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
6604  *      peers that are supported in running sessions. For example,
6605  *      if the value is 8 and maximum number of sessions is 2, you can
6606  *      have one session with 8 unique peers, or 2 sessions with 4 unique
6607  *      peers each, and so on.
6608  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
6609  *      of bursts per peer, as an exponent (2^value). Default is 0,
6610  *      meaning no multi-burst support.
6611  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
6612  *      of measurement exchanges allowed in a single burst.
6613  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
6614  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
6615  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
6616  */
6617 enum qca_wlan_vendor_attr_loc_capa {
6618 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
6619 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
6620 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
6621 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
6622 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
6623 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
6624 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
6625 	/* keep last */
6626 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
6627 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
6628 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
6629 };
6630 
6631 /**
6632  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
6633  *
6634  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
6635  *      can be configured as an FTM responder (for example, an AP that
6636  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
6637  *      will be supported if set.
6638  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
6639  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
6640  *      will be supported if set.
6641 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
6642  *      supports immediate (ASAP) response.
6643  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
6644  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
6645  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
6646  *      requesting AOA measurements as part of an FTM session.
6647  */
6648 enum qca_wlan_vendor_attr_loc_capa_flags {
6649 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
6650 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
6651 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
6652 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
6653 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
6654 };
6655 
6656 /**
6657  * enum qca_wlan_ani_setting - ANI setting type
6658  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
6659  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
6660  */
6661 enum qca_wlan_ani_setting {
6662 	QCA_WLAN_ANI_SETTING_AUTO = 0,
6663 	QCA_WLAN_ANI_SETTING_FIXED = 1,
6664 };
6665 
6666 /**
6667  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
6668  *
6669  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
6670  * Channel number on which Access Point should restart.
6671  * Note: If both the driver and user space application supports the 6 GHz band,
6672  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
6673  * should be used.
6674  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
6675  * is still used if either of the driver or user space application doesn't
6676  * support the 6 GHz band.
6677  *
6678  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
6679  * Nested attribute to hold list of center frequencies on which AP is
6680  * expected to operate. This is irrespective of ACS configuration.
6681  * This list is a priority based one and is looked for before the AP is
6682  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
6683  * co-exist in the system.
6684  *
6685  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
6686  * Channel center frequency (MHz) on which the access point should restart.
6687  */
6688 enum qca_wlan_vendor_attr_sap_config {
6689 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
6690 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
6691 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
6692 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
6693 
6694 	/* Keep last */
6695 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
6696 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
6697 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
6698 };
6699 
6700 /**
6701  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
6702  * a single peer in a measurement session.
6703  *
6704  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
6705  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
6706  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
6707  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
6708  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
6709  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
6710  *      list of supported attributes.
6711  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
6712  *      secure measurement.
6713  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
6714  *      measurement every <value> bursts. If 0 or not specified,
6715  *      AOA measurements will be disabled for this peer.
6716  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
6717  *      the measurement frames are exchanged. Optional; if not
6718  *      specified, try to locate the peer in the kernel scan
6719  *      results cache and use frequency from there.
6720  */
6721 enum qca_wlan_vendor_attr_ftm_peer_info {
6722 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
6723 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
6724 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
6725 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
6726 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
6727 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
6728 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
6729 	/* keep last */
6730 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
6731 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
6732 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
6733 };
6734 
6735 /**
6736  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
6737  *      per-peer
6738  *
6739  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
6740  *      immediate (ASAP) response from peer.
6741  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
6742  *      LCI report from peer. The LCI report includes the absolute
6743  *      location of the peer in "official" coordinates (similar to GPS).
6744  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
6745  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
6746  *      Location civic report from peer. The LCR includes the location
6747  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
6748  *      11.24.6.7 for more information.
6749  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
6750  *      request a secure measurement.
6751  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
6752  */
6753 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
6754 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
6755 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
6756 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
6757 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
6758 };
6759 
6760 /**
6761  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
6762  *
6763  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
6764  *      to perform in a single burst.
6765  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
6766  *      perform, specified as an exponent (2^value).
6767  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
6768  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
6769  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
6770  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
6771  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
6772  */
6773 enum qca_wlan_vendor_attr_ftm_meas_param {
6774 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
6775 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
6776 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
6777 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
6778 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
6779 	/* keep last */
6780 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
6781 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
6782 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
6783 };
6784 
6785 /**
6786  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
6787  *
6788  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
6789  *       peer.
6790  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
6791  *      request for this peer.
6792  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
6793  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
6794  *      to measurement results for this peer.
6795  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
6796  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
6797  *      request failed and peer requested not to send an additional request
6798  *      for this number of seconds.
6799  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
6800  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6801  *      9.4.2.22.10.
6802  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
6803  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6804  *      9.4.2.22.13.
6805  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
6806  *      overridden some measurement request parameters. See
6807  *      enum qca_wlan_vendor_attr_ftm_meas_param.
6808  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
6809  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
6810  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
6811  *      results. Each entry is a nested attribute defined
6812  *      by enum qca_wlan_vendor_attr_ftm_meas.
6813  */
6814 enum qca_wlan_vendor_attr_ftm_peer_result {
6815 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
6816 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
6817 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
6818 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
6819 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
6820 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
6821 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
6822 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
6823 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
6824 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
6825 	/* keep last */
6826 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
6827 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
6828 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
6829 };
6830 
6831 /**
6832  * enum qca_wlan_vendor_attr_ftm_peer_result_status
6833  *
6834  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
6835  *      will be provided. Peer may have overridden some measurement parameters,
6836  *      in which case overridden parameters will be report by
6837  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
6838  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
6839  *      of performing the measurement request. No more results will be sent
6840  *      for this peer in this session.
6841  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
6842  *      failed, and requested not to send an additional request for number
6843  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
6844  *      attribute.
6845  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
6846  *      failed. Request was not sent over the air.
6847  */
6848 enum qca_wlan_vendor_attr_ftm_peer_result_status {
6849 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
6850 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
6851 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
6852 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
6853 };
6854 
6855 /**
6856  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
6857  *  for measurement result, per-peer
6858  *
6859  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
6860  *      measurement completed for this peer. No more results will be reported
6861  *      for this peer in this session.
6862  */
6863 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
6864 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
6865 };
6866 
6867 /**
6868  * enum qca_vendor_attr_loc_session_status: Session completion status code
6869  *
6870  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
6871  *      successfully.
6872  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
6873  *      by request.
6874  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
6875  *      was invalid and was not started.
6876  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
6877  *      and did not complete normally (for example out of resources).
6878  */
6879 enum qca_vendor_attr_loc_session_status {
6880 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
6881 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
6882 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
6883 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
6884 };
6885 
6886 /**
6887  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
6888  *
6889  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
6890  *      recorded by responder, in picoseconds.
6891  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6892  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
6893  *      initiator, in picoseconds.
6894  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6895  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
6896  *      initiator, in picoseconds.
6897  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6898  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
6899  *      responder, in picoseconds.
6900  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6901  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
6902  *      during this measurement exchange. Optional and will be provided if
6903  *      the hardware can measure it.
6904  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
6905  *      responder. Not always provided.
6906  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6907  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
6908  *      responder. Not always provided.
6909  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6910  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
6911  *      initiator. Not always provided.
6912  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6913  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
6914  *      initiator. Not always provided.
6915  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6916  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
6917  */
6918 enum qca_wlan_vendor_attr_ftm_meas {
6919 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
6920 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
6921 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
6922 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
6923 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
6924 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
6925 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
6926 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
6927 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
6928 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
6929 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
6930 	/* keep last */
6931 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
6932 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
6933 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
6934 };
6935 
6936 /**
6937  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
6938  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
6939  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
6940  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
6941  *     of the social channels.
6942  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
6943  *     A 32-bit unsigned value; the P2P listen offload period (ms).
6944  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
6945  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
6946  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
6947  *     A 32-bit unsigned value; number of interval times the Firmware needs
6948  *     to run the offloaded P2P listen operation before it stops.
6949  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
6950  *     An array of unsigned 8-bit characters; vendor information elements.
6951  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
6952  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
6953  *     A 32-bit unsigned value; a control flag to indicate whether listen
6954  *     results need to be flushed to wpa_supplicant.
6955  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
6956  *     A 8-bit unsigned value; reason code for P2P listen offload stop
6957  *     event.
6958  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
6959  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
6960  */
6961 enum qca_wlan_vendor_attr_p2p_listen_offload {
6962 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
6963 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
6964 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
6965 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
6966 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
6967 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
6968 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
6969 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
6970 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
6971 	/* keep last */
6972 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
6973 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
6974 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
6975 };
6976 
6977 /**
6978  * enum qca_wlan_vendor_drv_info - WLAN driver info
6979  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
6980  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
6981  * between Firmware & Host.
6982  */
6983 enum qca_wlan_vendor_drv_info {
6984 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6985 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6986 
6987 	/* keep last */
6988 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6989 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6990 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6991 };
6992 
6993 /**
6994  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
6995  *
6996  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
6997  *      CIR (channel impulse response) path for each antenna.
6998  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
6999  *      of the strongest CIR path for each antenna.
7000  */
7001 enum qca_wlan_vendor_attr_aoa_type {
7002 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
7003 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
7004 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
7005 };
7006 
7007 /**
7008  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
7009  * validate encryption engine
7010  *
7011  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
7012  *    This will be included if the request is for decryption; if not included,
7013  *    the request is treated as a request for encryption by default.
7014  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
7015  *    indicating the key cipher suite. Takes same values as
7016  *    NL80211_ATTR_KEY_CIPHER.
7017  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
7018  *    Key Id to be used for encryption
7019  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
7020  *    Key (TK) to be used for encryption/decryption
7021  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
7022  *    Packet number to be specified for encryption/decryption
7023  *    6 bytes for TKIP/CCMP/GCMP.
7024  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
7025  *    representing the 802.11 packet (header + payload + FCS) that
7026  *    needs to be encrypted/decrypted.
7027  *    Encrypted/decrypted response from the driver will also be sent
7028  *    to userspace with the same attribute.
7029  */
7030 enum qca_wlan_vendor_attr_encryption_test {
7031 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
7032 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
7033 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
7034 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
7035 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
7036 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
7037 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
7038 
7039 	/* keep last */
7040 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
7041 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
7042 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
7043 };
7044 
7045 /**
7046  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
7047  * sector for DMG RF sector operations.
7048  *
7049  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
7050  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
7051  */
7052 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
7053 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
7054 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
7055 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
7056 };
7057 
7058 /**
7059  * enum qca_wlan_vendor_attr_fw_state - State of firmware
7060  *
7061  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
7062  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
7063  */
7064 enum qca_wlan_vendor_attr_fw_state {
7065 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
7066 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
7067 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
7068 };
7069 
7070 /**
7071  * BRP antenna limit mode
7072  *
7073  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
7074  *      antenna limit, BRP will be performed as usual.
7075  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
7076  *      antennas limit. the hardware may use less antennas than the
7077  *      maximum limit.
7078  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
7079  *      use exactly the specified number of antennas for BRP.
7080  */
7081 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
7082 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
7083 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
7084 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
7085 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
7086 };
7087 
7088 /**
7089  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
7090  * DMG RF sector configuration for a single RF module.
7091  * The values are defined in a compact way which closely matches
7092  * the way it is stored in HW registers.
7093  * The configuration provides values for 32 antennas and 8 distribution
7094  * amplifiers, and together describes the characteristics of the RF
7095  * sector - such as a beam in some direction with some gain.
7096  *
7097  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
7098  *      of RF module for this configuration.
7099  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
7100  *      amplifier gain index. Unsigned 32 bit number containing
7101  *      bits for all 32 antennas.
7102  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
7103  *      amplifier gain index. Unsigned 32 bit number containing
7104  *      bits for all 32 antennas.
7105  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
7106  *      amplifier gain index. Unsigned 32 bit number containing
7107  *      bits for all 32 antennas.
7108  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
7109  *      for first 16 antennas, 2 bits per antenna.
7110  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
7111  *      for last 16 antennas, 2 bits per antenna.
7112  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
7113  *      DTYPE values (3 bits) for each distribution amplifier, followed
7114  *      by X16 switch bits for each distribution amplifier. There are
7115  *      total of 8 distribution amplifiers.
7116  */
7117 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
7118 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
7119 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
7120 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
7121 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
7122 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
7123 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
7124 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
7125 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
7126 
7127 	/* keep last */
7128 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
7129 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
7130 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
7131 };
7132 
7133 /**
7134  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
7135  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
7136  *
7137  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
7138  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
7139  *	represents the different TDLS trigger modes.
7140  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
7141  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
7142  *	of packets shall meet the criteria for implicit TDLS setup.
7143  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
7144  *	packets within a duration.
7145  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
7146  *	a TDLS setup.
7147  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
7148  *	a TDLS Discovery to the Peer.
7149  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
7150  *	discovery attempts to know the TDLS capability of the peer. A peer is
7151  *	marked as TDLS not capable if there is no response for all the attempts.
7152  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
7153  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
7154  *	number of TX / RX frames meet the criteria for TDLS teardown.
7155  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
7156  *	(u32) of Tx/Rx packets within a duration
7157  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
7158  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
7159  *	corresponding to the RSSI of the peer below which a TDLS
7160  *	setup is triggered.
7161  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
7162  *	corresponding to the RSSI of the peer above which
7163  *	a TDLS teardown is triggered.
7164  */
7165 enum qca_wlan_vendor_attr_tdls_configuration {
7166 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
7167 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
7168 
7169 	/* Attributes configuring the TDLS Implicit Trigger */
7170 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
7171 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
7172 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
7173 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
7174 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
7175 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
7176 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
7177 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
7178 
7179 	/* keep last */
7180 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
7181 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
7182 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
7183 };
7184 
7185 /**
7186  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
7187  *	the driver.
7188  *
7189  * The following are the different values for
7190  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
7191  *
7192  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
7193  *	initiate/teardown the TDLS connection to a respective peer comes
7194  *	 from the user space. wpa_supplicant provides the commands
7195  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
7196  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
7197  *	setup/teardown to the eligible peer once the configured criteria
7198  *	(such as TX/RX threshold, RSSI) is met. The attributes
7199  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
7200  *	the different configuration criteria for the TDLS trigger from the
7201  *	host driver.
7202  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
7203  *	the TDLS setup / teardown through the implicit mode, only to the
7204  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
7205  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
7206  *	External mode works on top of the implicit mode, thus the host Driver
7207  *	is expected to be configured in TDLS Implicit mode too to operate in
7208  *	External mode. Configuring External mode alone without Implicit
7209  *	mode is invalid.
7210  *
7211  * All the above implementations work as expected only when the host driver
7212  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
7213  * representing that the TDLS message exchange is not internal to the host
7214  * driver, but depends on wpa_supplicant to do the message exchange.
7215  */
7216 enum qca_wlan_vendor_tdls_trigger_mode {
7217 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
7218 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
7219 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
7220 };
7221 
7222 /**
7223  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
7224  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
7225  *	that is hard-coded in the Board Data File (BDF).
7226  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
7227  *	that is hard-coded in the Board Data File (BDF).
7228  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
7229  *	that is hard-coded in the Board Data File (BDF).
7230  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
7231  *	that is hard-coded in the Board Data File (BDF).
7232  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
7233  *	that is hard-coded in the Board Data File (BDF).
7234  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
7235  *	source of SAR power limits, thereby disabling the SAR power
7236  *	limit feature.
7237  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
7238  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7239  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
7240  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7241  *
7242  * This enumerates the valid set of values that may be supplied for
7243  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
7244  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
7245  * the response to an instance of the
7246  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7247  */
7248 enum qca_vendor_attr_sar_limits_selections {
7249 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
7250 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
7251 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
7252 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
7253 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
7254 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
7255 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7256 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
7257 };
7258 
7259 /**
7260  * enum qca_vendor_attr_sar_limits_spec_modulations -
7261  *	SAR limits specification modulation
7262  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
7263  *	CCK modulation
7264  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
7265  *	OFDM modulation
7266  *
7267  * This enumerates the valid set of values that may be supplied for
7268  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
7269  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
7270  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
7271  * command or in the response to an instance of the
7272  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7273  */
7274 enum qca_vendor_attr_sar_limits_spec_modulations {
7275 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7276 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7277 };
7278 
7279 /**
7280  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7281  *
7282  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7283  *	select which SAR power limit table should be used.  Valid
7284  *	values are enumerated in enum
7285  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7286  *	power limit selection is unchanged if this attribute is not
7287  *	present.
7288  *
7289  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7290  *	which specifies the number of SAR power limit specifications
7291  *	which will follow.
7292  *
7293  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7294  *	limit specifications. The number of specifications is
7295  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7296  *	specification contains a set of
7297  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7298  *	specification is uniquely identified by the attributes
7299  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7300  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7301  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7302  *	contains as a payload the attribute
7303  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7304  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7305  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7306  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7307  *	needed based upon the value of
7308  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7309  *
7310  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7311  *	indicate for which band this specification applies. Valid
7312  *	values are enumerated in enum %nl80211_band (although not all
7313  *	bands may be supported by a given device). If the attribute is
7314  *	not supplied then the specification will be applied to all
7315  *	supported bands.
7316  *
7317  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7318  *	to indicate for which antenna chain this specification
7319  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7320  *	attribute is not supplied then the specification will be
7321  *	applied to all chains.
7322  *
7323  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7324  *	value to indicate for which modulation scheme this
7325  *	specification applies. Valid values are enumerated in enum
7326  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7327  *	is not supplied then the specification will be applied to all
7328  *	modulation schemes.
7329  *
7330  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7331  *	value to specify the actual power limit value in units of 0.5
7332  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7333  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7334  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7335  *
7336  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7337  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7338  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7339  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7340  *
7341  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7342  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7343  */
7344 enum qca_vendor_attr_sar_limits {
7345 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7346 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7347 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7348 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7349 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7350 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7351 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7352 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7353 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7354 
7355 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7356 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7357 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7358 };
7359 
7360 /**
7361  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7362  *    offload which is an extension for LL_STATS.
7363  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7364  *    If MAC counters do not exceed the threshold, FW will report monitored
7365  *    link layer counters periodically as this setting. The first report is
7366  *    always triggered by this timer.
7367  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7368  *    For each MAC layer counter, FW holds two copies. One is the current value.
7369  *    The other is the last report. Once a current counter's increment is larger
7370  *    than the threshold, FW will indicate that counter to host even if the
7371  *    monitoring timer does not expire.
7372  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7373  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7374  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7375  *    failure code.
7376  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7377  *    1: TX packet discarded
7378  *    2: No ACK
7379  *    3: Postpone
7380  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7381  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7382  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7383  *    Threshold for all monitored parameters. If per counter dedicated threshold
7384  *    is not enabled, this threshold will take effect.
7385  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7386  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7387  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7388  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7389  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7390  *    Bit0: TX counter unit in MSDU
7391  *    Bit1: TX counter unit in MPDU
7392  *    Bit2: TX counter unit in PPDU
7393  *    Bit3: TX counter unit in byte
7394  *    Bit4: Dropped MSDUs
7395  *    Bit5: Dropped Bytes
7396  *    Bit6: MPDU retry counter
7397  *    Bit7: MPDU failure counter
7398  *    Bit8: PPDU failure counter
7399  *    Bit9: MPDU aggregation counter
7400  *    Bit10: MCS counter for ACKed MPDUs
7401  *    Bit11: MCS counter for Failed MPDUs
7402  *    Bit12: TX Delay counter
7403  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7404  *    Bit0: MAC RX counter unit in MPDU
7405  *    Bit1: MAC RX counter unit in byte
7406  *    Bit2: PHY RX counter unit in PPDU
7407  *    Bit3: PHY RX counter unit in byte
7408  *    Bit4: Disorder counter
7409  *    Bit5: Retry counter
7410  *    Bit6: Duplication counter
7411  *    Bit7: Discard counter
7412  *    Bit8: MPDU aggregation size counter
7413  *    Bit9: MCS counter
7414  *    Bit10: Peer STA power state change (wake to sleep) counter
7415  *    Bit11: Peer STA power save counter, total time in PS mode
7416  *    Bit12: Probe request counter
7417  *    Bit13: Other management frames counter
7418  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7419  *    Bit0: Idle time
7420  *    Bit1: TX time
7421  *    Bit2: time RX in current bss
7422  *    Bit3: Out of current bss time
7423  *    Bit4: Wireless medium busy time
7424  *    Bit5: RX in bad condition time
7425  *    Bit6: TX in bad condition time
7426  *    Bit7: time wlan card not available
7427  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7428  *    Bit0: Per channel SNR counter
7429  *    Bit1: Per channel noise floor counter
7430  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7431  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7432  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7433  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7434  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7435  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7436  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7437  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7438  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7439  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7440  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7441  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
7442  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
7443  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
7444  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
7445  *    aggregation stats buffer length
7446  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
7447  *    buffer for ACKed MPDUs.
7448  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
7449  *    buffer for failed MPDUs.
7450  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
7451  *    length of delay stats array.
7452  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
7453  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
7454  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
7455  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
7456  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
7457  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
7458  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
7459  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
7460  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
7461  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
7462  *    flagged as retransmissions
7463  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
7464  *    flagged as duplicated
7465  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
7466  *    packets discarded
7467  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
7468  *    stats buffer.
7469  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
7470  *    stats buffer.
7471  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
7472  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
7473  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
7474  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
7475  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
7476  *    requests received
7477  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
7478  *    frames received
7479  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
7480  *    there is no TX, nor RX, nor interference.
7481  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
7482  *    transmitting packets.
7483  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
7484  *    for receiving.
7485  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
7486  *    interference detected.
7487  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
7488  *    receiving packets with errors.
7489  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
7490  *    TX no-ACK.
7491  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
7492  *    the chip is unable to work in normal conditions.
7493  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
7494  *    receiving packets in current BSS.
7495  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
7496  *    receiving packets not in current BSS.
7497  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
7498  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
7499  *    This is a container for per antenna signal stats.
7500  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
7501  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
7502  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
7503  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
7504  */
7505 enum qca_wlan_vendor_attr_ll_stats_ext {
7506 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
7507 
7508 	/* Attributes for configurations */
7509 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
7510 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
7511 
7512 	/* Peer STA power state change */
7513 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
7514 
7515 	/* TX failure event */
7516 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
7517 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
7518 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
7519 
7520 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
7521 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
7522 
7523 	/* MAC counters */
7524 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
7525 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
7526 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
7527 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
7528 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
7529 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
7530 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
7531 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
7532 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
7533 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
7534 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
7535 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
7536 
7537 	/* Sub-attributes for PEER_AC_TX */
7538 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
7539 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
7540 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
7541 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
7542 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
7543 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
7544 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
7545 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
7546 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
7547 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
7548 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
7549 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
7550 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
7551 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
7552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
7553 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
7554 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
7555 
7556 	/* Sub-attributes for PEER_AC_RX */
7557 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
7558 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
7559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
7560 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
7561 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
7562 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
7563 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
7564 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
7565 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
7566 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
7567 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
7568 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
7569 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
7570 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
7571 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
7572 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
7573 
7574 	/* Sub-attributes for CCA_BSS */
7575 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
7576 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
7577 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
7578 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
7579 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
7580 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
7581 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
7582 
7583 	/* sub-attribute for BSS_RX_TIME */
7584 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
7585 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
7586 
7587 	/* Sub-attributes for PEER_SIGNAL */
7588 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
7589 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
7590 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
7591 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
7592 
7593 	/* Sub-attributes for IFACE_BSS */
7594 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
7595 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
7596 
7597 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
7598 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
7599 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
7600 };
7601 
7602 /**
7603  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
7604  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7605  * in priority order as decided after ACS operation in userspace.
7606  *
7607  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7608  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7609  *
7610  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7611  * Array of nested values for each channel with following attributes:
7612  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7613  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7614  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7615  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7616  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7617  * Note: If both the driver and user-space application supports the 6 GHz band,
7618  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7619  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7620  * To maintain backward compatibility,
7621  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7622  * is still used if either of the driver or user space application doesn't
7623  * support the 6 GHz band.
7624  *
7625  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7626  * Primary channel number
7627  * Note: If both the driver and user-space application supports the 6 GHz band,
7628  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7629  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7630  * To maintain backward compatibility,
7631  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7632  * is still used if either of the driver or user space application doesn't
7633  * support the 6 GHz band.
7634  *
7635  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7636  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7637  * Note: If both the driver and user-space application supports the 6 GHz band,
7638  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7639  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7640  * To maintain backward compatibility,
7641  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7642  * is still used if either of the driver or user space application
7643  * doesn't support the 6 GHz band.
7644  *
7645  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7646  * VHT seg0 channel number
7647  * Note: If both the driver and user-space application supports the 6 GHz band,
7648  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7649  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7650  * To maintain backward compatibility,
7651  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7652  * is still used if either of the driver or user space application
7653  * doesn't support the 6 GHz band.
7654  *
7655  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7656  * VHT seg1 channel number
7657  * Note: If both the driver and user-space application supports the 6 GHz band,
7658  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7659  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7660  * To maintain backward compatibility,
7661  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7662  * is still used if either of the driver or user space application
7663  * doesn't support the 6 GHz band.
7664  *
7665  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7666  * Takes one of enum nl80211_chan_width values.
7667  *
7668  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7669  * Array of nested values for each channel with following attributes:
7670  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7671  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7672  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7673  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7674  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7675  * Note: If user-space application has no support of the 6 GHz band, this
7676  * attribute is optional.
7677  *
7678  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7679  * Primary channel frequency in MHz
7680  * Note: If user-space application has no support of the 6 GHz band, this
7681  * attribute is optional.
7682  *
7683  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7684  * Secondary channel frequency in MHz used for HT 40 MHz channels.
7685  * Note: If user-space application has no support of the 6 GHz band, this
7686  * attribute is optional.
7687  *
7688  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7689  * VHT seg0 channel frequency in MHz
7690  * Note: If user-space application has no support of the 6GHz band, this
7691  * attribute is optional.
7692  *
7693  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7694  * VHT seg1 channel frequency in MHz
7695  * Note: If user-space application has no support of the 6 GHz band, this
7696  * attribute is optional.
7697  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7698  * Puncture Bitmap for selected primary channel. Optional if no support
7699  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7700  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7701  * element.
7702  */
7703 enum qca_wlan_vendor_attr_external_acs_channels {
7704 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7705 
7706 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7707 	 */
7708 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7709 
7710 	/* Array of nested values for each channel with following attributes:
7711 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7712 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7713 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7714 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7715 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7716 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7717 	 */
7718 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7719 	/* This (u8) will hold values of one of enum nl80211_bands */
7720 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7721 	/* Primary channel (u8) */
7722 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7723 	/* Secondary channel (u8) used for HT 40 MHz channels */
7724 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7725 	/* VHT seg0 channel (u8) */
7726 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7727 	/* VHT seg1 channel (u8) */
7728 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7729 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7730 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7731 
7732 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7733 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7734 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7735 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7736 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
7737 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
7738 
7739 	/* keep last */
7740 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7741 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7742 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7743 };
7744 
7745 /**
7746  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7747  * the ACS has to be triggered. These values are used by
7748  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7749  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7750  */
7751 enum qca_wlan_vendor_acs_select_reason {
7752 	/* Represents the reason that the ACS triggered during the AP start */
7753 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7754 	/* Represents the reason that DFS found with the current channel */
7755 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7756 	/* Represents the reason that LTE co-exist in the current band. */
7757 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
7758 	/* Represents the reason that generic, uncategorized interference has
7759 	 * been found in the current channel.
7760 	 */
7761 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7762 	/* Represents the reason that excessive 802.11 interference has been
7763 	 * found in the current channel.
7764 	 */
7765 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7766 	/* Represents the reason that generic Continuous Wave (CW) interference
7767 	 * has been found in the current channel.
7768 	 */
7769 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7770 	/* Represents the reason that Microwave Oven (MWO) interference has been
7771 	 * found in the current channel.
7772 	 */
7773 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7774 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
7775 	 * (FHSS) interference has been found in the current channel. This may
7776 	 * include 802.11 waveforms.
7777 	 */
7778 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7779 	/* Represents the reason that non-802.11 generic Frequency-Hopping
7780 	 * Spread Spectrum (FHSS) interference has been found in the current
7781 	 * channel.
7782 	 */
7783 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7784 	/* Represents the reason that generic Wideband (WB) interference has
7785 	 * been found in the current channel. This may include 802.11 waveforms.
7786 	 */
7787 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7788 	/* Represents the reason that non-802.11 generic Wideband (WB)
7789 	 * interference has been found in the current channel.
7790 	 */
7791 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7792 	/* Represents the reason that Jammer interference has been found in the
7793 	 * current channel.
7794 	 */
7795 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
7796 	/* Represents the reason that ACS triggered by AFC */
7797 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
7798 };
7799 
7800 /**
7801  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
7802  *
7803  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
7804  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
7805  * to get the available value that this item can use.
7806  *
7807  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
7808  * value to specify the gpio number.
7809  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7810  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
7811  *
7812  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
7813  * value to specify the gpio output level, please refer to enum qca_gpio_value
7814  * to get the available value that this item can use.
7815  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7816  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
7817  *
7818  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
7819  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
7820  * to get the available value that this item can use.
7821  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7822  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7823  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7824  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7825  * attribute is present.
7826  *
7827  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
7828  * value to specify the gpio interrupt mode, please refer to enum
7829  * qca_gpio_interrupt_mode to get the available value that this item can use.
7830  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7831  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7832  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7833  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7834  * attribute is present.
7835  *
7836  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
7837  * value to specify the gpio direction, please refer to enum qca_gpio_direction
7838  * to get the available value that this item can use.
7839  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7840  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7841  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7842  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7843  * attribute is present.
7844  *
7845  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
7846  * Value to specify the mux config. Meaning of a given value is dependent
7847  * on the target chipset and gpio pin. Must be of the range 0-15.
7848  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7849  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
7850  *
7851  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
7852  * Value to specify the drive, Refer to enum qca_gpio_drive.
7853  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7854  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
7855  *
7856  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
7857  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7858  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
7859  * other parameters for the given GPIO will be obtained from internal
7860  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
7861  * specified to indicate the GPIO pin being configured.
7862  */
7863 enum qca_wlan_gpio_attr {
7864 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
7865 	/* Unsigned 32-bit attribute for GPIO command */
7866 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
7867 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
7868 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
7869 	/* Unsigned 32-bit attribute for GPIO value to configure */
7870 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
7871 	/* Unsigned 32-bit attribute for GPIO pull type */
7872 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
7873 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
7874 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
7875 	/* Unsigned 32-bit attribute for GPIO direction to configure */
7876 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
7877 	/* Unsigned 32-bit attribute for GPIO mux config */
7878 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
7879 	/* Unsigned 32-bit attribute for GPIO drive */
7880 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
7881 	/* Flag attribute for using internal gpio configuration */
7882 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
7883 
7884 	/* keep last */
7885 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
7886 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
7887 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
7888 };
7889 
7890 /**
7891  * enum gpio_cmd_type - GPIO configuration command type
7892  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
7893  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
7894  */
7895 enum qca_gpio_cmd_type {
7896 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
7897 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
7898 };
7899 
7900 /**
7901  * enum qca_gpio_pull_type - GPIO pull type
7902  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
7903  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
7904  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
7905  */
7906 enum qca_gpio_pull_type {
7907 	QCA_WLAN_GPIO_PULL_NONE = 0,
7908 	QCA_WLAN_GPIO_PULL_UP = 1,
7909 	QCA_WLAN_GPIO_PULL_DOWN = 2,
7910 	QCA_WLAN_GPIO_PULL_MAX,
7911 };
7912 
7913 /**
7914  * enum qca_gpio_direction - GPIO direction
7915  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
7916  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
7917  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
7918  */
7919 enum qca_gpio_direction {
7920 	QCA_WLAN_GPIO_INPUT = 0,
7921 	QCA_WLAN_GPIO_OUTPUT = 1,
7922 	QCA_WLAN_GPIO_DIR_MAX,
7923 };
7924 
7925 /**
7926  * enum qca_gpio_value - GPIO Value
7927  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
7928  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
7929  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
7930  */
7931 enum qca_gpio_value {
7932 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
7933 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
7934 	QCA_WLAN_GPIO_LEVEL_MAX,
7935 };
7936 
7937 /**
7938  * enum gpio_interrupt_mode - GPIO interrupt mode
7939  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
7940  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
7941  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
7942  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
7943  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
7944  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
7945  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
7946  */
7947 enum qca_gpio_interrupt_mode {
7948 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
7949 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
7950 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
7951 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
7952 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
7953 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
7954 	QCA_WLAN_GPIO_INTMODE_MAX,
7955 };
7956 
7957 /**
7958  * enum gpio_drive - GPIO drive
7959  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
7960  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
7961  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
7962  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
7963  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
7964  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
7965  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
7966  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
7967  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
7968  */
7969 enum qca_gpio_drive {
7970 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
7971 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
7972 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
7973 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
7974 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
7975 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
7976 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
7977 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
7978 	QCA_WLAN_GPIO_DRIVE_MAX,
7979 };
7980 
7981 /**
7982  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
7983  * MSDUQ depth threshold per peer per tid in the target
7984  *
7985  * Associated Vendor Command:
7986  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
7987  */
7988 enum qca_wlan_set_qdepth_thresh_attr {
7989 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
7990 	/* 6-byte MAC address */
7991 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
7992 	/* Unsigned 32-bit attribute for holding the TID */
7993 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
7994 	/* Unsigned 32-bit attribute for holding the update mask
7995 	 * bit 0 - Update high priority msdu qdepth threshold
7996 	 * bit 1 - Update low priority msdu qdepth threshold
7997 	 * bit 2 - Update UDP msdu qdepth threshold
7998 	 * bit 3 - Update Non UDP msdu qdepth threshold
7999 	 * rest of bits are reserved
8000 	 */
8001 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
8002 	/* Unsigned 32-bit attribute for holding the threshold value */
8003 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
8004 
8005 	/* keep last */
8006 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
8007 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
8008 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
8009 };
8010 
8011 /**
8012  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
8013  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
8014  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
8015  * external ACS policies to select the channels w.r.t. the PCL weights.
8016  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
8017  * their PCL weights.)
8018  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
8019  * select a channel with non-zero PCL weight.
8020  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
8021  * channel with non-zero PCL weight.
8022  *
8023  */
8024 enum qca_wlan_vendor_attr_external_acs_policy {
8025 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
8026 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
8027 };
8028 
8029 /**
8030  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
8031  */
8032 enum qca_wlan_vendor_attr_spectral_scan {
8033 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
8034 	/*
8035 	 * Number of times the chip enters spectral scan mode before
8036 	 * deactivating spectral scans. When set to 0, chip will enter spectral
8037 	 * scan mode continuously. u32 attribute.
8038 	 */
8039 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
8040 	/*
8041 	 * Spectral scan period. Period increment resolution is 256*Tclk,
8042 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
8043 	 */
8044 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
8045 	/* Spectral scan priority. u32 attribute. */
8046 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
8047 	/* Number of FFT data points to compute. u32 attribute. */
8048 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
8049 	/*
8050 	 * Enable targeted gain change before starting the spectral scan FFT.
8051 	 * u32 attribute.
8052 	 */
8053 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
8054 	/* Restart a queued spectral scan. u32 attribute. */
8055 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
8056 	/*
8057 	 * Noise floor reference number for the calculation of bin power.
8058 	 * u32 attribute.
8059 	 */
8060 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
8061 	/*
8062 	 * Disallow spectral scan triggers after TX/RX packets by setting
8063 	 * this delay value to roughly SIFS time period or greater.
8064 	 * u32 attribute.
8065 	 */
8066 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
8067 	/*
8068 	 * Number of strong bins (inclusive) per sub-channel, below
8069 	 * which a signal is declared a narrow band tone. u32 attribute.
8070 	 */
8071 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
8072 	/*
8073 	 * Specify the threshold over which a bin is declared strong (for
8074 	 * scan bandwidth analysis). u32 attribute.
8075 	 */
8076 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
8077 	/* Spectral scan report mode. u32 attribute. */
8078 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
8079 	/*
8080 	 * RSSI report mode, if the ADC RSSI is below
8081 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
8082 	 * then FFTs will not trigger, but timestamps and summaries get
8083 	 * reported. u32 attribute.
8084 	 */
8085 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
8086 	/*
8087 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
8088 	 * to ensure spectral scan reporting with normal error code.
8089 	 * u32 attribute.
8090 	 */
8091 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
8092 	/*
8093 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
8094 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
8095 	 * u32 attribute.
8096 	 */
8097 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
8098 	/*
8099 	 * Format of FFT report to software for spectral scan triggered FFTs.
8100 	 * 0: No FFT report (only spectral scan summary report)
8101 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
8102 	 * report
8103 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
8104 	 * bins (in-band) per FFT + spectral scan summary report
8105 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
8106 	 * bins (all) per FFT + spectral scan summary report
8107 	 * u32 attribute.
8108 	 */
8109 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
8110 	/*
8111 	 * Number of LSBs to shift out in order to scale the FFT bins.
8112 	 * u32 attribute.
8113 	 */
8114 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
8115 	/*
8116 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
8117 	 * in dBm power. u32 attribute.
8118 	 */
8119 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
8120 	/*
8121 	 * Per chain enable mask to select input ADC for search FFT.
8122 	 * u32 attribute.
8123 	 */
8124 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
8125 	/*
8126 	 * An unsigned 64-bit integer provided by host driver to identify the
8127 	 * spectral scan request. This attribute is included in the scan
8128 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
8129 	 * and used as an attribute in
8130 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
8131 	 * specific scan to be stopped.
8132 	 */
8133 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
8134 	/* Skip interval for FFT reports. u32 attribute */
8135 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
8136 	/* Set to report only one set of FFT results.
8137 	 * u32 attribute.
8138 	 */
8139 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
8140 	/* Debug level for spectral module in driver.
8141 	 * 0 : Verbosity level 0
8142 	 * 1 : Verbosity level 1
8143 	 * 2 : Verbosity level 2
8144 	 * 3 : Matched filterID display
8145 	 * 4 : One time dump of FFT report
8146 	 * u32 attribute.
8147 	 */
8148 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8149 	/* Type of spectral scan request. u32 attribute.
8150 	 * It uses values defined in enum
8151 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
8152 	 */
8153 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
8154 	/* This specifies the frequency span over which spectral
8155 	 * scan would be carried out. Its value depends on the
8156 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8157 	 * the relation is as follows.
8158 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8159 	 *    Not applicable. Spectral scan would happen in the
8160 	 *    operating span.
8161 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8162 	 *    Center frequency (in MHz) of the span of interest or
8163 	 *    for convenience, center frequency (in MHz) of any channel
8164 	 *    in the span of interest. For 80+80 MHz agile spectral scan
8165 	 *    request it represents center frequency (in MHz) of the primary
8166 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
8167 	 *    channel in the primary 80 MHz span. If agile spectral scan is
8168 	 *    initiated without setting a valid frequency it returns the
8169 	 *    error code
8170 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8171 	 * u32 attribute.
8172 	 */
8173 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8174 	/* Spectral scan mode. u32 attribute.
8175 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8176 	 * If this attribute is not present, it is assumed to be
8177 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8178 	 */
8179 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8180 	/* Spectral scan error code. u32 attribute.
8181 	 * It uses values defined in enum
8182 	 * qca_wlan_vendor_spectral_scan_error_code.
8183 	 * This attribute is included only in failure scenarios.
8184 	 */
8185 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8186 	/* 8-bit unsigned value to enable/disable debug of the
8187 	 * Spectral DMA ring.
8188 	 * 1-enable, 0-disable
8189 	 */
8190 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8191 	/* 8-bit unsigned value to enable/disable debug of the
8192 	 * Spectral DMA buffers.
8193 	 * 1-enable, 0-disable
8194 	 */
8195 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
8196 	/* This specifies the frequency span over which spectral scan would be
8197 	 * carried out. Its value depends on the value of
8198 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8199 	 * follows.
8200 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8201 	 *    Not applicable. Spectral scan would happen in the operating span.
8202 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8203 	 *    This attribute is applicable only for agile spectral scan
8204 	 *    requests in 80+80 MHz mode. It represents center frequency (in
8205 	 *    MHz) of the secondary 80 MHz span or for convenience, center
8206 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
8207 	 * u32 attribute.
8208 	 */
8209 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
8210 	/* This attribute specifies the bandwidth to be used for Spectral scan
8211 	 * operation. This is an u8 attribute and uses the values in enum
8212 	 * nl80211_chan_width.  This is an optional attribute.
8213 	 * If this attribute is not populated, the driver should configure the
8214 	 * Spectral scan bandwidth to the maximum value supported by the target
8215 	 * for the current operating bandwidth.
8216 	 */
8217 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
8218 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
8219 	 * recapture. Recapture can only be enabled for Scan period greater
8220 	 * than 52us.
8221 	 * If this attribute is enabled, re-triggers will be enabled in uCode
8222 	 * when AGC gain changes.
8223 	 */
8224 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
8225 
8226 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8227 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8228 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8229 };
8230 
8231 /**
8232  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8233  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8234  */
8235 enum qca_wlan_vendor_attr_spectral_diag_stats {
8236 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8237 	/* Number of spectral TLV signature mismatches.
8238 	 * u64 attribute.
8239 	 */
8240 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8241 	/* Number of spectral phyerror events with insufficient length when
8242 	 * parsing for secondary 80 search FFT report. u64 attribute.
8243 	 */
8244 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8245 	/* Number of spectral phyerror events without secondary 80
8246 	 * search FFT report. u64 attribute.
8247 	 */
8248 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8249 	/* Number of spectral phyerror events with vht operation segment 1 id
8250 	 * mismatches in search fft report. u64 attribute.
8251 	 */
8252 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8253 	/* Number of spectral phyerror events with vht operation segment 2 id
8254 	 * mismatches in search fft report. u64 attribute.
8255 	 */
8256 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
8257 
8258 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8259 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8260 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8261 };
8262 
8263 /**
8264  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8265  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8266  */
8267 enum qca_wlan_vendor_attr_spectral_cap {
8268 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8269 	/* Flag attribute to indicate phydiag capability */
8270 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8271 	/* Flag attribute to indicate radar detection capability */
8272 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8273 	/* Flag attribute to indicate spectral capability */
8274 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8275 	/* Flag attribute to indicate advanced spectral capability */
8276 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8277 	/* Spectral hardware generation. u32 attribute.
8278 	 * It uses values defined in enum
8279 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8280 	 */
8281 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8282 	/* Spectral bin scaling formula ID. u16 attribute.
8283 	 * It uses values defined in enum
8284 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8285 	 */
8286 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8287 	/* Spectral bin scaling param - low level offset.
8288 	 * s16 attribute.
8289 	 */
8290 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8291 	/* Spectral bin scaling param - high level offset.
8292 	 * s16 attribute.
8293 	 */
8294 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8295 	/* Spectral bin scaling param - RSSI threshold.
8296 	 * s16 attribute.
8297 	 */
8298 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8299 	/* Spectral bin scaling param - default AGC max gain.
8300 	 * u8 attribute.
8301 	 */
8302 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8303 	/* Flag attribute to indicate agile spectral scan capability
8304 	 * for 20/40/80 MHz modes.
8305 	 */
8306 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8307 	/* Flag attribute to indicate agile spectral scan capability
8308 	 * for 160 MHz mode.
8309 	 */
8310 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8311 	/* Flag attribute to indicate agile spectral scan capability
8312 	 * for 80+80 MHz mode.
8313 	 */
8314 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8315 	/* Number of spectral detectors used for scan in 20 MHz.
8316 	 * u32 attribute.
8317 	 */
8318 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8319 	/* Number of spectral detectors used for scan in 40 MHz.
8320 	 * u32 attribute.
8321 	 */
8322 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8323 	/* Number of spectral detectors used for scan in 80 MHz.
8324 	 * u32 attribute.
8325 	 */
8326 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8327 	/* Number of spectral detectors used for scan in 160 MHz.
8328 	 * u32 attribute.
8329 	 */
8330 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8331 	/* Number of spectral detectors used for scan in 80+80 MHz.
8332 	 * u32 attribute.
8333 	 */
8334 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8335 	/* Flag attribute to indicate agile spectral scan capability
8336 	 * for 320 MHz mode.
8337 	 */
8338 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8339 	/* Number of spectral detectors used for scan in 320 MHz.
8340 	 * u32 attribute.
8341 	 */
8342 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8343 
8344 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8345 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8346 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8347 };
8348 
8349 /**
8350  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8351  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8352  */
8353 enum qca_wlan_vendor_attr_spectral_scan_status {
8354 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8355 	/* Flag attribute to indicate whether spectral scan is enabled */
8356 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8357 	/* Flag attribute to indicate whether spectral scan is in progress*/
8358 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8359 	/* Spectral scan mode. u32 attribute.
8360 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8361 	 * If this attribute is not present, normal mode
8362 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8363 	 * requested.
8364 	 */
8365 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8366 
8367 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8368 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8369 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8370 };
8371 
8372 /**
8373  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8374  * wlan latency module.
8375  *
8376  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8377  * power saving which would causing data exchange out of service, this
8378  * would be a big impact on latency. For latency sensitive applications over
8379  * Wi-Fi are intolerant to such operations and thus would configure them
8380  * to meet their respective needs. It is well understood by such applications
8381  * that altering the default behavior would degrade the Wi-Fi functionality
8382  * w.r.t the above pointed WLAN operations.
8383  *
8384  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8385  *      Default WLAN operation level which throughput orientated.
8386  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8387  *      Use XR level to benefit XR (extended reality) application to achieve
8388  *      latency and power by via constraint scan/roaming/adaptive PS.
8389  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8390  *      Use low latency level to benefit application like concurrent
8391  *      downloading or video streaming via constraint scan/adaptive PS.
8392  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8393  *      Use ultra low latency level to benefit for gaming/voice
8394  *      application via constraint scan/roaming/adaptive PS.
8395  */
8396 enum qca_wlan_vendor_attr_config_latency_level {
8397 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8398 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8399 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8400 	/* legacy name */
8401 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8402 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8403 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8404 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8405 
8406 	/* keep last */
8407 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8408 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8409 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8410 };
8411 
8412 /**
8413  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8414  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8415  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8416  * spectral scan request types.
8417  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8418  * set the spectral parameters and start scan.
8419  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8420  * only set the spectral parameters.
8421  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8422  * only start the spectral scan.
8423  */
8424 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8425 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8426 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8427 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8428 };
8429 
8430 /**
8431  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8432  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8433  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8434  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8435  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8436  * spectral scan modes.
8437  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8438  * spectral scan in the current operating span.
8439  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8440  * spectral scan in the configured agile span.
8441  */
8442 enum qca_wlan_vendor_spectral_scan_mode {
8443 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8444 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8445 };
8446 
8447 /**
8448  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8449  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8450  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8451  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8452  * of a parameter is not supported.
8453  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8454  * mode is not supported.
8455  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8456  * has invalid value.
8457  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8458  * is not initialized.
8459  */
8460 enum qca_wlan_vendor_spectral_scan_error_code {
8461 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8462 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8463 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8464 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8465 };
8466 
8467 /**
8468  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8469  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8470  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8471  * spectral hardware generation.
8472  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8473  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8474  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8475  */
8476 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8477 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8478 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8479 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8480 };
8481 
8482 /**
8483  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8484  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8485  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8486  * Spectral bin scaling formula ID.
8487  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8488  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8489  * and RSSI threshold based formula.
8490  */
8491 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8492 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8493 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8494 };
8495 
8496 /**
8497  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8498  * RF Operating Parameter (RROP) information is available, and if so, at which
8499  * point in the application-driver interaction sequence it can be retrieved by
8500  * the application from the driver. This point may vary by architecture and
8501  * other factors. This is a u16 value.
8502  */
8503 enum qca_wlan_vendor_attr_rropavail_info {
8504 	/* RROP information is unavailable. */
8505 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8506 	/* RROP information is available and the application can retrieve the
8507 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8508 	 * event from the driver.
8509 	 */
8510 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8511 	/* RROP information is available only after a vendor specific scan
8512 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8513 	 * successfully completed. The application can retrieve the information
8514 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8515 	 * the driver.
8516 	 */
8517 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8518 };
8519 
8520 /**
8521  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8522  * Representative RF Operating Parameter (RROP) information. It is sent for the
8523  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8524  * intended for use by external Auto Channel Selection applications. It provides
8525  * guidance values for some RF parameters that are used by the system during
8526  * operation. These values could vary by channel, band, radio, and so on.
8527  */
8528 enum qca_wlan_vendor_attr_rrop_info {
8529 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8530 
8531 	/* Representative Tx Power List (RTPL) which has an array of nested
8532 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8533 	 */
8534 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8535 
8536 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8537 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8538 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8539 };
8540 
8541 /**
8542  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8543  * entry instances in the Representative Tx Power List (RTPL). It provides
8544  * simplified power values intended for helping external Auto channel Selection
8545  * applications compare potential Tx power performance between channels, other
8546  * operating conditions remaining identical. These values are not necessarily
8547  * the actual Tx power values that will be used by the system. They are also not
8548  * necessarily the max or average values that will be used. Instead, they are
8549  * relative, summarized keys for algorithmic use computed by the driver or
8550  * underlying firmware considering a number of vendor specific factors.
8551  */
8552 enum qca_wlan_vendor_attr_rtplinst {
8553 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8554 
8555 	/* Primary channel number (u8).
8556 	 * Note: If both the driver and user space application support the
8557 	 * 6 GHz band, this attribute is deprecated and
8558 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8559 	 * maintain backward compatibility,
8560 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8561 	 * driver or user space application or both do not support the 6 GHz
8562 	 * band.
8563 	 */
8564 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8565 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
8566 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8567 	/* Representative Tx power in dBm (s32) with emphasis on range. */
8568 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
8569 	/* Primary channel center frequency (u32) in MHz */
8570 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
8571 
8572 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8573 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8574 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8575 };
8576 
8577 /**
8578  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
8579  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8580  *
8581  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
8582  *  array of nested values as per attributes in
8583  *  enum qca_wlan_vendor_attr_mac_mode_info.
8584  */
8585 enum qca_wlan_vendor_attr_mac {
8586 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8587 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8588 
8589 	/* keep last */
8590 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8591 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8592 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8593 };
8594 
8595 /**
8596  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8597  * WiFi netdev interface on a respective MAC. Used by the attribute
8598  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8599  *
8600  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
8601  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
8602  *  the connected Wi-Fi interface(u32).
8603  */
8604 enum qca_wlan_vendor_attr_mac_iface_info {
8605 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8606 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8607 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8608 
8609 	/* keep last */
8610 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8611 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8612 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8613 };
8614 
8615 /**
8616  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8617  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8618  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8619  *
8620  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
8621  *  MAC (u32)
8622  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
8623  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
8624  *  in enum nl80211_band.
8625  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
8626  * interfaces associated with this MAC. Represented by enum
8627  * qca_wlan_vendor_attr_mac_iface_info.
8628  */
8629 enum qca_wlan_vendor_attr_mac_info {
8630 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8631 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8632 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8633 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8634 
8635 	/* keep last */
8636 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8637 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8638 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8639 
8640 };
8641 
8642 /**
8643  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8644  * to get thermal status from driver/firmware.
8645  * enum values are used for NL attributes encapsulated inside
8646  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8647  *
8648  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8649  * of a thermal level in Celsius. u32 size.
8650  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8651  * of a thermal level in Celsius. u32 size.
8652  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8653  * thermal level in milliseconds. u32 size.
8654  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8655  * of times the temperature crossed into the temperature range defined by the
8656  * thermal level from both higher and lower directions. u32 size.
8657  */
8658 enum qca_wlan_vendor_attr_thermal_stats {
8659 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8660 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8661 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8662 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8663 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8664 
8665 	/* keep last */
8666 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8667 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8668 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8669 };
8670 
8671 /**
8672  * enum he_fragmentation_val - HE fragmentation support values
8673  * Indicates level of dynamic fragmentation that is supported by
8674  * a STA as a recipient.
8675  * HE fragmentation values are defined as per 11ax spec and are used in
8676  * HE capability IE to advertise the support. These values are validated
8677  * in the driver to check the device capability and advertised in the HE
8678  * capability element.
8679  *
8680  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8681  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8682  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8683  *	within an A-MPDU that is not an S-MPDU.
8684  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8685  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8686  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8687  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8688  *	MPDU or S-MPDU.
8689  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8690  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8691  *	fragments for each MSDU and for each A-MSDU if supported by the
8692  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8693  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8694  */
8695 enum he_fragmentation_val {
8696 	HE_FRAG_DISABLE,
8697 	HE_FRAG_LEVEL1,
8698 	HE_FRAG_LEVEL2,
8699 	HE_FRAG_LEVEL3,
8700 };
8701 
8702 /**
8703  * enum he_mcs_config - HE MCS support configuration
8704  *
8705  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8706  * These values are used in driver to configure the HE MCS map to advertise
8707  * Tx/Rx MCS map in HE capability and these values are applied for all the
8708  * streams supported by the device. To configure MCS for different bandwidths,
8709  * vendor command needs to be sent using this attribute with appropriate value.
8710  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8711  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
8712  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
8713  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
8714  *
8715  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
8716  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
8717  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
8718  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
8719  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
8720  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
8721  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
8722  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
8723  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
8724  */
8725 enum he_mcs_config {
8726 	HE_80_MCS0_7 = 0,
8727 	HE_80_MCS0_9 = 1,
8728 	HE_80_MCS0_11 = 2,
8729 	HE_160_MCS0_7 = 4,
8730 	HE_160_MCS0_9 = 5,
8731 	HE_160_MCS0_11 = 6,
8732 	HE_80p80_MCS0_7 = 8,
8733 	HE_80p80_MCS0_9 = 9,
8734 	HE_80p80_MCS0_11 = 10,
8735 };
8736 
8737 /**
8738  * enum qca_wlan_ba_session_config - BA session configuration
8739  *
8740  * Indicates the configuration values for BA session configuration attribute.
8741  *
8742  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8743  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8744  */
8745 enum qca_wlan_ba_session_config {
8746 	QCA_WLAN_ADD_BA = 1,
8747 	QCA_WLAN_DELETE_BA = 2,
8748 };
8749 
8750 /**
8751  * enum qca_wlan_ac_type - access category type
8752  *
8753  * Indicates the access category type value.
8754  *
8755  * @QCA_WLAN_AC_BE: BE access category
8756  * @QCA_WLAN_AC_BK: BK access category
8757  * @QCA_WLAN_AC_VI: VI access category
8758  * @QCA_WLAN_AC_VO: VO access category
8759  * @QCA_WLAN_AC_ALL: All ACs
8760  */
8761 enum qca_wlan_ac_type {
8762 	QCA_WLAN_AC_BE = 0,
8763 	QCA_WLAN_AC_BK = 1,
8764 	QCA_WLAN_AC_VI = 2,
8765 	QCA_WLAN_AC_VO = 3,
8766 	QCA_WLAN_AC_ALL = 4,
8767 };
8768 
8769 /**
8770  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8771  *
8772  * Indicates the HE LTF configuration value.
8773  *
8774  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
8775  * the mandatory HE-LTF based on the GI setting
8776  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8777  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8778  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8779  */
8780 enum qca_wlan_he_ltf_cfg {
8781 	QCA_WLAN_HE_LTF_AUTO = 0,
8782 	QCA_WLAN_HE_LTF_1X = 1,
8783 	QCA_WLAN_HE_LTF_2X = 2,
8784 	QCA_WLAN_HE_LTF_4X = 3,
8785 };
8786 
8787 /**
8788  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8789  *
8790  * Indicates the HE trigger frame MAC padding duration value.
8791  *
8792  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8793  * process the trigger frame.
8794  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8795  * trigger frame.
8796  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8797  * trigger frame.
8798  */
8799 enum qca_wlan_he_mac_padding_dur {
8800 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8801 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8802 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8803 };
8804 
8805 /**
8806  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8807  *
8808  * Indicates the HE Operating mode control channel width setting value.
8809  *
8810  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8811  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8812  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8813  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8814  */
8815 enum qca_wlan_he_om_ctrl_ch_bw {
8816 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8817 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8818 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8819 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8820 };
8821 
8822 /**
8823  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8824  *
8825  * Indicates the frame types to use for keep alive data.
8826  *
8827  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8828  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8829  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8830  */
8831 enum qca_wlan_keep_alive_data_type {
8832 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8833 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8834 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8835 };
8836 
8837 /**
8838  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8839  * HE operating mode control transmit request. These attributes are
8840  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8841  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8842  *
8843  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8844  * indicates the maximum number of spatial streams, NSS, that the STA
8845  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8846  * and is set to NSS - 1.
8847  *
8848  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8849  * indicates the operating channel width supported by the STA for both
8850  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8851  *
8852  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8853  * indicates the all trigger based UL MU operations by the STA.
8854  * 0 - UL MU operations are enabled by the STA.
8855  * 1 - All triggered UL MU transmissions are suspended by the STA.
8856  *
8857  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8858  * indicates the maximum number of space-time streams, NSTS, that
8859  * the STA supports in transmission and is set to NSTS - 1.
8860  *
8861  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8862  * combined with the UL MU Disable subfield and the recipient's setting
8863  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8864  * capabilities to determine which HE TB PPDUs are possible by the
8865  * STA to transmit.
8866  * 0 - UL MU data operations are enabled by the STA.
8867  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8868  * bit is not set, else UL MU Tx is suspended.
8869  *
8870  */
8871 enum qca_wlan_vendor_attr_he_omi_tx {
8872 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8873 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8874 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8875 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8876 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8877 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8878 
8879 	/* keep last */
8880 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8881 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8882 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8883 };
8884 
8885 /**
8886  * enum qca_wlan_vendor_phy_mode - Different PHY modes
8887  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8888  *
8889  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8890  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8891  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8892  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8893  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8894  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8895  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8896  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8897  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8898  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8899  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8900  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8901  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8902  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8903  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8904  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8905  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8906  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8907  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8908  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8909  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8910  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8911  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8912  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8913  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8914  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8915  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8916  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8917  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8918  */
8919 enum qca_wlan_vendor_phy_mode {
8920 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8921 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8922 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8923 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8924 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8925 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8926 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8927 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8928 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8929 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8930 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8931 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8932 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8933 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8934 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8935 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8936 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8937 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8938 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8939 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8940 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8941 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8942 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8943 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8944 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8945 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8946 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8947 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8948 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8949 };
8950 
8951 /* Attributes for data used by
8952  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8953  */
8954 enum qca_wlan_vendor_attr_wifi_test_config {
8955 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8956 	/* 8-bit unsigned value to configure the driver to enable/disable
8957 	 * WMM feature. This attribute is used to configure testbed device.
8958 	 * 1-enable, 0-disable
8959 	 */
8960 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8961 
8962 	/* 8-bit unsigned value to configure the driver to accept/reject
8963 	 * the addba request from peer. This attribute is used to configure
8964 	 * the testbed device.
8965 	 * 1-accept addba, 0-reject addba
8966 	 */
8967 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8968 
8969 	/* 8-bit unsigned value to configure the driver to send or not to
8970 	 * send the addba request to peer.
8971 	 * This attribute is used to configure the testbed device.
8972 	 * 1-send addba, 0-do not send addba
8973 	 */
8974 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8975 
8976 	/* 8-bit unsigned value to indicate the HE fragmentation support.
8977 	 * Uses enum he_fragmentation_val values.
8978 	 * This attribute is used to configure the testbed device to
8979 	 * allow the advertised hardware capabilities to be downgraded
8980 	 * for testing purposes.
8981 	 */
8982 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8983 
8984 	/* 8-bit unsigned value to indicate the HE MCS support.
8985 	 * Uses enum he_mcs_config values.
8986 	 * This attribute is used to configure the testbed device to
8987 	 * allow the advertised hardware capabilities to be downgraded
8988 	 * for testing purposes.
8989 	 */
8990 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8991 
8992 	/* 8-bit unsigned value to configure the driver to allow or not to
8993 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8994 	 * This attribute is used to configure the testbed device.
8995 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
8996 	 */
8997 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8998 
8999 	/* 8-bit unsigned value to configure the driver to add a
9000 	 * new BA session or delete the existing BA session for
9001 	 * given TID. ADDBA command uses the buffer size and tid
9002 	 * configuration if user specifies the values else default
9003 	 * value for buffer size is used for all tids if the tid
9004 	 * also not specified. For DEL_BA command TID value is
9005 	 * required to process the command.
9006 	 * Uses enum qca_wlan_ba_session_config values.
9007 	 * This attribute is used to configure the testbed device.
9008 	 */
9009 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9010 
9011 	/* 16-bit unsigned value to configure the buffer size in addba
9012 	 * request and response frames.
9013 	 * This attribute is used to configure the testbed device.
9014 	 * The range of the value is 0 to 256.
9015 	 */
9016 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9017 
9018 	/* 8-bit unsigned value to configure the buffer size in addba
9019 	 * request and response frames.
9020 	 * This attribute is used to configure the testbed device.
9021 	 */
9022 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9023 
9024 	/* 8-bit unsigned value to configure the no ack policy.
9025 	 * To configure no ack policy, access category value
9026 	 * is required to process the command.
9027 	 * This attribute is used to configure the testbed device.
9028 	 * 1 - enable no ack, 0 - disable no ack
9029 	 */
9030 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9031 
9032 	/* 8-bit unsigned value to configure the AC for no ack policy
9033 	 * This attribute is used to configure the testbed device.
9034 	 * uses the enum qca_wlan_ac_type values
9035 	 */
9036 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9037 
9038 	/* 8-bit unsigned value to configure the HE LTF
9039 	 * This attribute is used to configure the testbed device.
9040 	 * Uses the enum qca_wlan_he_ltf_cfg values.
9041 	 */
9042 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9043 
9044 	/* 8-bit unsigned value to configure the tx beamformee.
9045 	 * This attribute is used to configure the testbed device.
9046 	 * 1 - enable, 0 - disable.
9047 	 */
9048 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9049 
9050 	/* 8-bit unsigned value to configure the tx beamformee number of
9051 	 * space-time streams.
9052 	 * This attribute is used to configure the testbed device.
9053 	 * The range of the value is 0 to 8
9054 	 */
9055 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9056 
9057 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
9058 	 * This attribute is used to configure the testbed device.
9059 	 * Uses the enum qca_wlan_ac_type values.
9060 	 */
9061 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9062 
9063 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9064 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
9065 	 * is required to process the command.
9066 	 * This attribute is used to configure the testbed device.
9067 	 */
9068 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9069 
9070 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
9071 	 * given AC.
9072 	 * To configure MU EDCA ECW min value, MU EDCA access category value
9073 	 * is required to process the command.
9074 	 * This attribute is used to configure the testbed device.
9075 	 */
9076 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9077 
9078 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
9079 	 * given AC.
9080 	 * To configure MU EDCA ECW max value, MU EDCA access category value
9081 	 * is required to process the command.
9082 	 * This attribute is used to configure the testbed device.
9083 	 */
9084 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9085 
9086 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
9087 	 * To configure MU EDCA timer value, MU EDCA access category value
9088 	 * is required to process the command.
9089 	 * This attribute is used to configure the testbed device.
9090 	 */
9091 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9092 
9093 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
9094 	 * duration.
9095 	 * This attribute is used to configure the testbed device.
9096 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
9097 	 */
9098 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9099 
9100 	/* 8-bit unsigned value to override the MU EDCA params to defaults
9101 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
9102 	 * the default values else use the MU EDCA params from AP beacon.
9103 	 * This attribute is used to configure the testbed device.
9104 	 * 1 - enable override, 0 - disable.
9105 	 */
9106 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9107 
9108 	/* 8-bit unsigned value to configure the support for receiving
9109 	 * an MPDU that contains an operating mode control subfield.
9110 	 * This attribute is used to configure the testbed device.
9111 	 * 1-enable, 0-disable.
9112 	 */
9113 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9114 
9115 	/* Nested attribute values required to setup the TWT session.
9116 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9117 	 * information to set up the session. It contains broadcast flags,
9118 	 * set_up flags, trigger value, flow type, flow ID, wake interval
9119 	 * exponent, protection, target wake time, wake duration, wake interval
9120 	 * mantissa. These nested attributes are used to setup a host triggered
9121 	 * TWT session.
9122 	 */
9123 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9124 
9125 	/* This nested attribute is used to terminate the current TWT session.
9126 	 * It does not currently carry any attributes.
9127 	 */
9128 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9129 
9130 	/* This nested attribute is used to suspend the current TWT session.
9131 	 * It does not currently carry any attributes.
9132 	 */
9133 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9134 
9135 	/* Nested attribute values to indicate the request for resume.
9136 	 * This attribute is used to resume the TWT session.
9137 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9138 	 * parameters required to resume the TWT session.
9139 	 */
9140 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9141 
9142 	/* 8-bit unsigned value to set the HE operating mode control
9143 	 * (OM CTRL) Channel Width subfield.
9144 	 * The Channel Width subfield indicates the operating channel width
9145 	 * supported by the STA for both reception and transmission.
9146 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9147 	 * This setting is cleared with the
9148 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9149 	 * flag attribute to reset defaults.
9150 	 * This attribute is used to configure the testbed device.
9151 	 */
9152 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9153 
9154 	/* 8-bit unsigned value to configure the number of spatial
9155 	 * streams in HE operating mode control field.
9156 	 * This setting is cleared with the
9157 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9158 	 * flag attribute to reset defaults.
9159 	 * This attribute is used to configure the testbed device.
9160 	 */
9161 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9162 
9163 	/* Flag attribute to configure the UL MU disable bit in
9164 	 * HE operating mode control field.
9165 	 * This setting is cleared with the
9166 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9167 	 * flag attribute to reset defaults.
9168 	 * This attribute is used to configure the testbed device.
9169 	 */
9170 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9171 
9172 	/* Flag attribute to clear the previously set HE operating mode
9173 	 * control field configuration.
9174 	 * This attribute is used to configure the testbed device to reset
9175 	 * defaults to clear any previously set HE operating mode control
9176 	 * field configuration.
9177 	 */
9178 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9179 
9180 	/* 8-bit unsigned value to configure HE single user PPDU
9181 	 * transmission. By default this setting is disabled and it
9182 	 * is disabled in the reset defaults of the device configuration.
9183 	 * This attribute is used to configure the testbed device.
9184 	 * 1-enable, 0-disable
9185 	 */
9186 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9187 
9188 	/* 8-bit unsigned value to configure action frame transmission
9189 	 * in HE trigger based PPDU transmission.
9190 	 * By default this setting is disabled and it is disabled in
9191 	 * the reset defaults of the device configuration.
9192 	 * This attribute is used to configure the testbed device.
9193 	 * 1-enable, 0-disable
9194 	 */
9195 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9196 
9197 	/* Nested attribute to indicate HE operating mode control field
9198 	 * transmission. It contains operating mode control field Nss,
9199 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9200 	 * These nested attributes are used to send HE operating mode control
9201 	 * with configured values.
9202 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
9203 	 * This attribute is used to configure the testbed device.
9204 	 */
9205 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
9206 
9207 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
9208 	 * support for the reception of a frame that carries an HE variant
9209 	 * HT Control field.
9210 	 * This attribute is used to configure the testbed device.
9211 	 * 1-enable, 0-disable
9212 	 */
9213 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9214 
9215 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
9216 	 * This attribute is used to configure the testbed device.
9217 	 * 1-enable, 0-disable
9218 	 */
9219 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9220 
9221 	/* 8-bit unsigned value to configure HE testbed defaults.
9222 	 * This attribute is used to configure the testbed device.
9223 	 * 1-set the device HE capabilities to testbed defaults.
9224 	 * 0-reset the device HE capabilities to supported config.
9225 	 */
9226 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9227 
9228 	/* 8-bit unsigned value to configure twt request support.
9229 	 * This attribute is used to configure the testbed device.
9230 	 * 1-enable, 0-disable.
9231 	 */
9232 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9233 
9234 	/* 8-bit unsigned value to configure protection for Management
9235 	 * frames when PMF is enabled for the association.
9236 	 * This attribute is used to configure the testbed device.
9237 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9238 	 */
9239 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9240 
9241 	/* Flag attribute to inject Disassociation frame to the connected AP.
9242 	 * This attribute is used to configure the testbed device.
9243 	 */
9244 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9245 
9246 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9247 	 * subfield in the MIC control field of the FTE in FT Reassociation
9248 	 * Request frame.
9249 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9250 	 * This attribute is used to configure the testbed device.
9251 	 * This attribute can be configured when STA is in disconnected or
9252 	 * associated state and the configuration is valid until the next
9253 	 * disconnection.
9254 	 */
9255 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9256 
9257 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9258 	 * Switch Announcement) when STA is in connected state.
9259 	 * 0 - Default behavior, 1 - Ignore CSA.
9260 	 * This attribute is used to configure the testbed device.
9261 	 * This attribute can be configured when STA is in disconnected or
9262 	 * associated state and the configuration is valid until the next
9263 	 * disconnection.
9264 	 */
9265 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9266 
9267 	/* Nested attribute values required to configure OCI (Operating Channel
9268 	 * Information). Attributes defined in enum
9269 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9270 	 * This attribute is used to configure the testbed device.
9271 	 * This attribute can be configured when STA is in disconnected or
9272 	 * associated state and the configuration is valid until the next
9273 	 * disconnection.
9274 	 */
9275 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9276 
9277 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9278 	 * Query timeout. If this configuration is enabled STA shall not send
9279 	 * Deauthentication frmae when SA Query times out (mainly, after a
9280 	 * channel switch when OCV is enabled).
9281 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9282 	 * This attribute is used to configure the testbed device.
9283 	 * This attribute can be configured only when STA is in associated state
9284 	 * and the configuration is valid until the disconnection.
9285 	 */
9286 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9287 
9288 	/* 8-bit unsigned value to configure the driver/firmware to start or
9289 	 * stop transmitting FILS discovery frames.
9290 	 * 0 - Stop transmitting FILS discovery frames
9291 	 * 1 - Start transmitting FILS discovery frames
9292 	 * This attribute is used to configure the testbed device.
9293 	 * This attribute can be configured only in AP mode and the
9294 	 * configuration is valid until AP restart.
9295 	 */
9296 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9297 
9298 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9299 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9300 	 * information field.
9301 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9302 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9303 	 * This attribute is used to configure the testbed device.
9304 	 */
9305 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9306 
9307 	/* 16-bit unsigned value to configure the driver with a specific BSS
9308 	 * max idle period to advertise in the BSS Max Idle Period element
9309 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9310 	 * This attribute is used to configure the testbed device.
9311 	 */
9312 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9313 
9314 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9315 	 * for data transmission.
9316 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9317 	 * This attribute is used to configure the testbed device.
9318 	 */
9319 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9320 
9321 	/* 8-bit unsigned value to configure the driver to disable data and
9322 	 * management response frame transmission to test the BSS max idle
9323 	 * feature.
9324 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9325 	 * This attribute is used to configure the testbed device.
9326 	 */
9327 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9328 
9329 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9330 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9331 	 * information field.
9332 	 * 0 - Disable Punctured Preamble Rx subfield
9333 	 * 1 - Enable Punctured Preamble Rx subfield
9334 	 * This attribute is used to configure the testbed device.
9335 	 */
9336 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9337 
9338 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9339 	 * requirement mismatch for 6 GHz connection.
9340 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9341 	 * This attribute is used to configure the testbed device.
9342 	 */
9343 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9344 
9345 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9346 	 * connection with all security modes.
9347 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9348 	 * modes.
9349 	 * This attribute is used for testing purposes.
9350 	 */
9351 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9352 
9353 	/* 8-bit unsigned value to configure the driver to transmit data with
9354 	 * ER SU PPDU type.
9355 	 *
9356 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9357 	 * This attribute is used for testing purposes.
9358 	 */
9359 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9360 
9361 	/* 8-bit unsigned value to configure the driver to use Data or
9362 	 * Management frame type for keep alive data.
9363 	 * Uses enum qca_wlan_keep_alive_data_type values.
9364 	 *
9365 	 * This attribute is used for testing purposes.
9366 	 */
9367 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9368 
9369 	/* 8-bit unsigned value to configure the driver to use scan request
9370 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9371 	 * driver saves this configuration and applies this setting to all user
9372 	 * space scan requests until the setting is cleared. If this
9373 	 * configuration is set, the driver uses the BSSID value from the scan
9374 	 * request to set the RA(A1) in the Probe Request frames during the
9375 	 * scan.
9376 	 *
9377 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9378 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9379 	 * This attribute is used for testing purposes.
9380 	 */
9381 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9382 
9383 	/* 8-bit unsigned value to configure the driver to enable/disable the
9384 	 * BSS max idle period support.
9385 	 *
9386 	 * 0 - Disable the BSS max idle support.
9387 	 * 1 - Enable the BSS max idle support.
9388 	 * This attribute is used for testing purposes.
9389 	 */
9390 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9391 
9392 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9393 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9394 	 * capabilities information field.
9395 	 * 0 - Disable Rx control frame to MultiBSS subfield
9396 	 * 1 - Enable Rx control frame to MultiBSS subfield
9397 	 * This attribute is used to configure the testbed device.
9398 	 */
9399 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9400 
9401 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9402 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9403 	 * information field.
9404 	 * 0 - Disable Broadcast TWT support subfield
9405 	 * 1 - Enable Broadcast TWT support subfield
9406 	 * This attribute is used to configure the testbed device.
9407 	 */
9408 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9409 
9410 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9411 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
9412 	 * and if the FW supports this capability too, then the STA host
9413 	 * advertises this capability to AP over assoc request frame. This
9414 	 * attribute will not have any effect on legacy devices with no 802.11be
9415 	 * support.
9416 	 * 0 - Default behavior
9417 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9418 	 * This attribute is used to configure the testbed device.
9419 	 */
9420 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9421 
9422 	/* 8-bit unsigned value to configure the driver to enable/disable the
9423 	 * periodic sounding for Tx beamformer functionality. The default
9424 	 * behavior uses algorithm to do sounding based on packet stats.
9425 	 *
9426 	 * 0 - Default behavior.
9427 	 * 1 - Enable the periodic sounding for Tx beamformer.
9428 	 * This attribute is used for testing purposes.
9429 	 */
9430 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9431 
9432 	/* keep last */
9433 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9434 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9435 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9436 };
9437 
9438 /**
9439  * enum qca_wlan_twt_operation - Operation of the config TWT request
9440  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9441  * The response for the respective operations can be either synchronous or
9442  * asynchronous (wherever specified). If synchronous, the response to this
9443  * operation is obtained in the corresponding vendor command reply to the user
9444  * space. For the asynchronous case the response is obtained as an event with
9445  * the same operation type.
9446  *
9447  * Drivers shall support either of these modes but not both simultaneously.
9448  * This support for asynchronous mode is advertised through the flag
9449  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9450  * the driver shall support synchronous mode.
9451  *
9452  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9453  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9454  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9455  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9456  * synchronous or asynchronous operation.
9457  *
9458  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9459  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9460  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9461  *
9462  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9463  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9464  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9465  * This terminate can either get triggered by the user space or can as well be
9466  * a notification from the firmware if it initiates a terminate.
9467  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9468  * the request from user space can either be a synchronous or asynchronous
9469  * operation.
9470  *
9471  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9472  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9473  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9474  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9475  * this is either a synchronous or asynchronous operation.
9476  *
9477  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9478  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9479  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9480  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9481  * request.
9482  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9483  * capability, this is either a synchronous or asynchronous operation.
9484  *
9485  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9486  * combination of suspend and resume in a single request. Required parameters
9487  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9488  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9489  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9490  * capability, this is either a synchronous or asynchronous operation.
9491  *
9492  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9493  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9494  * session is setup. It's a synchronous operation.
9495  *
9496  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9497  * Valid only after the TWT session is setup. It's a synchronous operation.
9498  *
9499  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9500  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9501  * operation.
9502  *
9503  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
9504  * ready for a new TWT session setup after it issued a twt teardown.
9505  *
9506  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9507  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9508  * the enum qca_wlan_vendor_attr_twt_set_param.
9509  *
9510  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9511  * related information for example TWT required bit in AP capabilities etc.
9512  * The reason for the notification is sent using
9513  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9514  */
9515 enum qca_wlan_twt_operation {
9516 	QCA_WLAN_TWT_SET = 0,
9517 	QCA_WLAN_TWT_GET = 1,
9518 	QCA_WLAN_TWT_TERMINATE = 2,
9519 	QCA_WLAN_TWT_SUSPEND = 3,
9520 	QCA_WLAN_TWT_RESUME = 4,
9521 	QCA_WLAN_TWT_NUDGE = 5,
9522 	QCA_WLAN_TWT_GET_STATS = 6,
9523 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9524 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9525 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9526 	QCA_WLAN_TWT_SET_PARAM = 10,
9527 	QCA_WLAN_TWT_NOTIFY = 11,
9528 };
9529 
9530 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9531  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
9532  *
9533  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
9534  * u8 attribute. Specify the TWT operation of this request. Possible values
9535  * are defined in enum qca_wlan_twt_operation. The parameters for the
9536  * respective operation is specified through
9537  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9538  *
9539  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9540  * parameters configured for TWT. These parameters are represented by
9541  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9542  * enum qca_wlan_vendor_attr_twt_set_param or
9543  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9544  *
9545  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9546  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9547  * The values used by this attribute are defined in
9548  * enum qca_wlan_vendor_twt_status.
9549  */
9550 enum qca_wlan_vendor_attr_config_twt {
9551 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9552 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9553 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9554 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9555 
9556 	/* keep last */
9557 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9558 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9559 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9560 };
9561 
9562 /**
9563  * qca_wlan_twt_setup_state: Represents the TWT session states.
9564  *
9565  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9566  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9567  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9568  */
9569 enum qca_wlan_twt_setup_state {
9570 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9571 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9572 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9573 };
9574 
9575 /**
9576  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9577  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9578  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9579  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9580  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9581  *
9582  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9583  * Disable (flag attribute not present) - Individual TWT
9584  * Enable (flag attribute present) - Broadcast TWT.
9585  * Individual means the session is between the STA and the AP.
9586  * This session is established using a separate negotiation between
9587  * STA and AP.
9588  * Broadcast means the session is across multiple STAs and an AP. The
9589  * configuration parameters are announced in Beacon frames by the AP.
9590  * This is used in
9591  * 1. TWT SET Request and Response
9592  * 2. TWT GET Response
9593  *
9594  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9595  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9596  * specify the TWT request type. This is used in TWT SET operation.
9597  *
9598  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9599  * Enable (flag attribute present) - TWT with trigger support.
9600  * Disable (flag attribute not present) - TWT without trigger support.
9601  * Trigger means the AP will send the trigger frame to allow STA to send data.
9602  * Without trigger, the STA will wait for the MU EDCA timer before
9603  * transmitting the data.
9604  * This is used in
9605  * 1. TWT SET Request and Response
9606  * 2. TWT GET Response
9607  *
9608  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9609  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9610  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9611  * NULL frame to AP.
9612  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9613  * This is a required parameter for
9614  * 1. TWT SET Request and Response
9615  * 2. TWT GET Response
9616  *
9617  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9618  * Flow ID is the unique identifier for each TWT session.
9619  * If not provided then dialog ID will be set to zero.
9620  * This is an optional parameter for
9621  * 1. TWT SET Request and Response
9622  * 2. TWT GET Request and Response
9623  * 3. TWT TERMINATE Request and Response
9624  * 4. TWT SUSPEND Request and Response
9625  * Flow Id values from 0 to 254 represent a single TWT session
9626  * Flow ID value of 255 represents all twt sessions for the following
9627  * 1. TWT TERMINATE Request and Response
9628  * 2. TWT SUSPEND Request and Response
9629  * 4. TWT CLEAR STATISTICS request
9630  * 5. TWT GET STATISTICS request and response
9631  * If an invalid dialog id is provided, status
9632  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9633  *
9634  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9635  * This attribute (exp) is used along with the mantissa to derive the
9636  * wake interval using the following formula:
9637  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9638  * Wake interval is the interval between 2 successive SP.
9639  * This is a required parameter for
9640  * 1. TWT SET Request and Response
9641  * 2. TWT GET Response
9642  *
9643  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9644  * Enable (flag attribute present) - Protection required.
9645  * Disable (flag attribute not present) - Protection not required.
9646  * If protection is enabled, then the AP will use protection
9647  * mechanism using RTS/CTS to self to reserve the airtime.
9648  * This is used in
9649  * 1. TWT SET Request and Response
9650  * 2. TWT GET Response
9651  *
9652  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9653  * This attribute is used as the SP offset which is the offset from
9654  * TSF after which the wake happens. The units are in microseconds. If
9655  * this attribute is not provided, then the value will be set to zero.
9656  * This is an optional parameter for
9657  * 1. TWT SET Request and Response
9658  * 2. TWT GET Response
9659  *
9660  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9661  * This is the duration of the service period. This is specified as
9662  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9663  * This is a required parameter for
9664  * 1. TWT SET Request and Response
9665  * 2. TWT GET Response
9666  *
9667  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9668  * This attribute is used to configure wake interval mantissa.
9669  * The units are in TU.
9670  * This is a required parameter for
9671  * 1. TWT SET Request and Response
9672  * 2. TWT GET Response
9673  *
9674  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9675  * This field is applicable for TWT response only.
9676  * This contains status values in enum qca_wlan_vendor_twt_status
9677  * and is passed to the userspace. This is used in TWT SET operation.
9678  * This is a required parameter for
9679  * 1. TWT SET Response
9680  * 2. TWT TERMINATE Response
9681  * 3. TWT SUSPEND Response
9682  * 4. TWT RESUME Response
9683  * 5. TWT NUDGE Response
9684  *
9685  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9686  * This field is applicable for TWT response only.
9687  * This field contains response type from the TWT responder and is
9688  * passed to the userspace. The values for this field are defined in
9689  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9690  * response.
9691  *
9692  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
9693  * In TWT setup command this field contains absolute TSF that will
9694  * be used by TWT requester during setup.
9695  * In TWT response this field contains absolute TSF value of the
9696  * wake time received from the TWT responder and is passed to
9697  * the userspace.
9698  * This is an optional parameter for
9699  * 1. TWT SET Request
9700  * This is a required parameter for
9701  * 1. TWT SET Response
9702  * 2. TWT GET Response
9703  *
9704  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9705  * Enable (flag attribute present) - Indicates that the TWT responder
9706  * supports reception of TWT information frame from the TWT requestor.
9707  * Disable (flag attribute not present) - Indicates that the responder
9708  * doesn't support reception of TWT information frame from requestor.
9709  * This is used in
9710  * 1. TWT SET Response
9711  * 2. TWT GET Response
9712  *
9713  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9714  * Represents the MAC address of the peer for which the TWT session
9715  * is being configured. This is used in AP mode to represent the respective
9716  * client
9717  * In AP mode, this is a required parameter in response for
9718  * 1. TWT SET
9719  * 2. TWT GET
9720  * 3. TWT TERMINATE
9721  * 4. TWT SUSPEND
9722  * In STA mode, this is an optional parameter in request and response for
9723  * the above four TWT operations.
9724  * In AP mode, this is a required parameter in request for
9725  * 1. TWT GET
9726  * 2. TWT TERMINATE
9727  *
9728  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9729  * Minimum tolerance limit of wake interval parameter in microseconds.
9730  *
9731  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9732  * Maximum tolerance limit of wake interval parameter in microseconds.
9733  *
9734  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9735  * Minimum tolerance limit of wake duration parameter in microseconds.
9736  *
9737  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9738  * Maximum tolerance limit of wake duration parameter in microseconds.
9739  *
9740  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9741  * TWT state for the given dialog id. The values for this are represented
9742  * by enum qca_wlan_twt_setup_state.
9743  * This is obtained through TWT GET operation.
9744  *
9745  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9746  * This attribute is used to configure wake interval mantissa.
9747  * The unit is microseconds. This attribute, when specified, takes
9748  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9749  * This parameter is used for
9750  * 1. TWT SET Request and Response
9751  * 2. TWT GET Response
9752  *
9753  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9754  * This attribute is used to configure Broadcast TWT ID.
9755  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9756  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9757  * This parameter is used for
9758  * 1. TWT SET Request
9759  * 2. TWT TERMINATE Request
9760  *
9761  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9762  * This attribute is used to configure Broadcast TWT recommendation.
9763  * The Broadcast TWT Recommendation subfield contains a value that indicates
9764  * recommendations on the types of frames that are transmitted by TWT
9765  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9766  * The allowed values are 0 - 3.
9767  * This parameter is used for
9768  * 1. TWT SET Request
9769  *
9770  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9771  * This attribute is used to configure Broadcast TWT Persistence.
9772  * The Broadcast TWT Persistence subfield indicates the number of
9773  * TBTTs during which the Broadcast TWT SPs corresponding to this
9774  * broadcast TWT Parameter set are present. The number of beacon intervals
9775  * during which the Broadcast TWT SPs are present is equal to the value in the
9776  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9777  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9778  * This parameter is used for
9779  * 1. TWT SET Request
9780  *
9781  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9782  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9783  * from TWT response frame.
9784  * This parameter is used for
9785  * 1. TWT SET Response
9786  * 2. TWT GET Response
9787  *
9788  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9789  * This attribute is used to configure the announce timeout value (in us) in
9790  * firmware. This timeout value is only applicable for announced TWT. If
9791  * timeout value is non-zero then firmware waits upto timeout value to use
9792  * data frame as announcement frame. If timeout value is 0 then firmware sends
9793  * explicit QoS NULL frame as announcement frame on SP start. Default value in
9794  * firmware is 0.
9795  * This parameter is used for
9796  * 1. TWT SET Request
9797  */
9798 enum qca_wlan_vendor_attr_twt_setup {
9799 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9800 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9801 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9802 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9803 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9804 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9805 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9806 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9807 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9808 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9809 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9810 
9811 	/* TWT Response only attributes */
9812 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9813 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9814 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9815 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9816 
9817 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9818 
9819 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9820 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9821 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9822 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9823 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9824 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9825 
9826 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9827 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9828 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9829 
9830 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9831 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9832 
9833 	/* keep last */
9834 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9835 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9836 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9837 };
9838 
9839 /**
9840  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9841  * TWT operation
9842  *
9843  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9844  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9845  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9846  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9847  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9848  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9849  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9850  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9851  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9852  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9853  * request/response frame
9854  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9855  * frame
9856  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9857  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9858  * unknown reason
9859  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9860  * suspend state
9861  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9862  * invalid IE in the received TWT frame
9863  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9864  * the responder are not in the specified range
9865  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9866  * session due to request from the responder. Used on the TWT_TERMINATE
9867  * notification from the firmware.
9868  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9869  * session due to roaming. Used on the TWT_TERMINATE notification from the
9870  * firmware.
9871  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9872  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
9873  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9874  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9875  * request due to roaming in progress.
9876  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9877  * setup request due to channel switch in progress.
9878  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9879  * request due to scan in progress.
9880  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9881  * terminate an existing TWT session on power save exit request from userspace.
9882  * Used on the TWT_TERMINATE notification from the driver/firmware.
9883  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9884  * required bit in its capabilities.
9885  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9886  * the TWT required bit(1->0) in its capabilities.
9887  */
9888 enum qca_wlan_vendor_twt_status {
9889 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9890 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9891 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9892 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9893 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9894 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9895 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9896 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9897 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9898 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9899 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9900 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9901 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9902 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
9903 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9904 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9905 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9906 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
9907 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9908 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9909 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9910 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9911 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
9912 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9913 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
9914 };
9915 
9916 /**
9917  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
9918  * TWT (Target Wake Time) resume request. These attributes are sent as part of
9919  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
9920  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9921  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9922  *
9923  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
9924  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9925  * These attributes are used as the SP offset which is the offset from TSF after
9926  * which the wake happens. The units are in microseconds. Please note that
9927  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9928  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9929  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9930  * will be set to zero.
9931  *
9932  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9933  * This attribute represents the next TWT subfield size.
9934  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9935  * and 4 for 64 bits.
9936  *
9937  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9938  * Flow ID is the unique identifier for each TWT session. This attribute
9939  * represents the respective TWT session to resume.
9940  * Flow Id values from 0 to 254 represent a single TWT session
9941  * Flow ID value of 255 represents all TWT sessions.
9942  * If an invalid dialog id is provided, status
9943  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9944  *
9945  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9946  * Represents the MAC address of the peer to which TWT Resume is
9947  * being sent. This is used in AP mode to represent the respective
9948  * client and is a required parameter. In STA mode, this is an optional
9949  * parameter
9950  *
9951  */
9952 enum qca_wlan_vendor_attr_twt_resume {
9953 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9954 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9955 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
9956 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9957 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9958 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
9959 
9960 	/* keep last */
9961 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9962 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9963 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9964 };
9965 
9966 /**
9967  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9968  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9969  * and resume in a single request. These attributes are sent as part of
9970  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9971  *
9972  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9973  * Flow ID is the unique identifier for each TWT session. This attribute
9974  * represents the respective TWT session to suspend and resume.
9975  *
9976  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9977  * Flow ID is the unique identifier for each TWT session. This attribute
9978  * represents the respective TWT session to suspend and resume.
9979  * Flow Id values from 0 to 254 represent a single TWT session
9980  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9981  * and response.
9982  * If an invalid dialog id is provided, status
9983  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9984  *
9985  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9986  * This attribute is used as the SP offset which is the offset from
9987  * TSF after which the wake happens. The units are in microseconds.
9988  *
9989  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9990  * This attribute represents the next TWT subfield size.
9991  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9992  * and 4 for 64 bits.
9993  *
9994  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9995  * Represents the MAC address of the peer to which TWT Suspend and Resume is
9996  * being sent. This is used in AP mode to represent the respective
9997  * client and is a required parameter. In STA mode, this is an optional
9998  * parameter.
9999  *
10000  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
10001  * This field contains absolute TSF value of the time at which twt
10002  * sesion will be resumed.
10003  *
10004  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
10005  * This field will be used when device supports Flexible TWT.
10006  * This field contains an offset value by which to shift the starting time
10007  * of the next service period. The value of offset can be negative or positive.
10008  * If provided, this attribute will override
10009  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10010  */
10011 enum qca_wlan_vendor_attr_twt_nudge {
10012 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10013 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10014 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10015 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10016 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10017 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
10018 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
10019 
10020 	/* keep last */
10021 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10022 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10023 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10024 };
10025 
10026 /**
10027  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10028  * TWT (Target Wake Time) get statistics and clear statistics request.
10029  * These attributes are sent as part of
10030  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10031  *
10032  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10033  * Flow ID is the unique identifier for each TWT session. This attribute
10034  * represents the respective TWT session for get and clear TWT statistics.
10035  * Flow Id values from 0 to 254 represent a single TWT session
10036  * Flow ID value of 255 represents all TWT sessions in
10037  * 1) TWT GET STATISTICS request and response
10038  * 2) TWT CLEAR STATISTICS request
10039  *
10040  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10041  * Represents the MAC address of the peer for which TWT Statistics
10042  * is required.
10043  * In AP mode this is used to represent the respective
10044  * client and is a required parameter for
10045  * 1) TWT GET STATISTICS request and response
10046  * 2) TWT CLEAR STATISTICS request and response
10047  * In STA mode, this is an optional parameter.
10048  *
10049  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10050  * This is the duration of the service period in microseconds.
10051  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10052  *
10053  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10054  * Average of actual wake duration observed so far. Unit is microseconds.
10055  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10056  *
10057  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10058  * Number of TWT service period elapsed so far.
10059  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10060  *
10061  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10062  * This is the minimum value of wake duration observed across
10063  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10064  * microseconds.
10065  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10066  *
10067  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10068  * This is the maximum value of wake duration observed across
10069  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10070  * microseconds.
10071  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10072  *
10073  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10074  * Average number of MPDU's transmitted successfully across
10075  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10076  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10077  *
10078  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10079  * Average number of MPDU's received successfully across
10080  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10081  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10082  *
10083  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10084  * Average number of bytes transmitted successfully across
10085  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10086  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10087  *
10088  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
10089  * Average number of bytes received successfully across
10090  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10091  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10092  *
10093  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10094  * Status of the TWT GET STATISTICS request.
10095  * This contains status values in enum qca_wlan_vendor_twt_status
10096  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10097  */
10098 enum qca_wlan_vendor_attr_twt_stats {
10099 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10100 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10101 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10102 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10103 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10104 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10105 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10106 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10107 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10108 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10109 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10110 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10111 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10112 
10113 	/* keep last */
10114 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10115 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10116 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10117 };
10118 
10119 /**
10120  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
10121  * supported by the device and peer.
10122  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10123  *
10124  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10125  * TWT non-scheduling STA. This capability is advertised in the HE
10126  * capability/Extended capabilities information element in the
10127  * Association request frame by the device.
10128  *
10129  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
10130  * by the TWT scheduling AP. This capability is advertised in the extended
10131  * capabilities/HE capabilities information element.
10132  *
10133  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
10134  * for the broadcast TWT functionality. On responder side, this	indicates
10135  * support for the role of broadcast TWT scheduling functionality. This
10136  * capability is advertised in the HE capabilities information element.
10137  *
10138  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
10139  * This capability is advertised in the HE capabilities information element.
10140  *
10141  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10142  * that it mandates the associated HE STAs to support TWT. This capability is
10143  * advertised by AP in the HE Operation Parameters field of the HE operation
10144  * information element.
10145  */
10146 enum qca_wlan_twt_capa {
10147 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10148 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10149 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10150 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
10151 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
10152 
10153 };
10154 
10155 /**
10156  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
10157  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10158  * operation.
10159  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10160  * Represents the MAC address of the peer for which the TWT capabilities
10161  * are being queried. This is used in AP mode to represent the respective
10162  * client. In STA mode, this is an optional parameter.
10163  *
10164  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10165  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10166  * enum qca_wlan_twt_capa.
10167  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10168  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10169  * enum qca_wlan_twt_capa.
10170  */
10171 enum qca_wlan_vendor_attr_twt_capability {
10172 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10173 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10174 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10175 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10176 
10177 	/* keep last */
10178 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10179 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10180 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10181 };
10182 
10183 /**
10184  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10185  * TWT (Target Wake Time) related parameters. It is used when
10186  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10187  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10188  *
10189  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10190  * This attribute configures AC parameters to be used for all TWT
10191  * sessions in AP mode.
10192  * Uses the enum qca_wlan_ac_type values.
10193  */
10194 enum qca_wlan_vendor_attr_twt_set_param {
10195 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10196 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10197 
10198 	/* keep last */
10199 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10200 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10201 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10202 };
10203 
10204 /**
10205  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10206  * the TWT responder
10207  *
10208  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10209  * parameters that are different from TWT requesting STA suggested
10210  * or demanded TWT parameters
10211  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10212  * parameters that are different from TWT requesting STA TWT suggested
10213  * or demanded parameters
10214  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10215  * setup
10216  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10217  * setup.
10218  */
10219 enum qca_wlan_vendor_twt_setup_resp_type {
10220 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10221 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10222 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10223 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10224 };
10225 
10226 /**
10227  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10228  * Represents the setup type being requested for TWT.
10229  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10230  * parameters but relying on AP to fill the parameters during the negotiation.
10231  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10232  * values which the AP may accept or AP may provide alternative parameters
10233  * which the STA may accept.
10234  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10235  * alternate parameters than the requested ones.
10236  */
10237 enum qca_wlan_vendor_twt_setup_req_type {
10238 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10239 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10240 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10241 };
10242 
10243 /**
10244  * enum qca_wlan_throughput_level - Current throughput level
10245  *
10246  * Indicates the current level of throughput calculated by driver. The driver
10247  * may choose different thresholds to decide whether the throughput level is
10248  * low or medium or high based on variety of parameters like physical link
10249  * capacity of current connection, number of pakcets being dispatched per
10250  * second etc. The throughput level events might not be consistent with the
10251  * actual current throughput value being observed.
10252  *
10253  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10254  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10255  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10256  */
10257 enum qca_wlan_throughput_level {
10258 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10259 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10260 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10261 };
10262 
10263 /**
10264  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10265  * report throughput changes from driver to user space. enum values are used
10266  * for NL attributes sent with
10267  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10268  */
10269 enum qca_wlan_vendor_attr_throughput_change {
10270 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10271 	/*
10272 	 * Indicates the direction of throughput in which the change is being
10273 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10274 	 */
10275 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10276 
10277 	/*
10278 	 * Indicates the newly observed throughput level.
10279 	 * qca_wlan_throughput_level describes the possible range of values.
10280 	 * u8 attribute.
10281 	 */
10282 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10283 
10284 	/*
10285 	 * Indicates the driver's guidance on the new value to be set to
10286 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
10287 	 * may optionally include this attribute.
10288 	 */
10289 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10290 
10291 	/*
10292 	 * Indicates the driver's guidance on the new value to be set to
10293 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
10294 	 * values are from -31 to 31. Driver may optionally include this
10295 	 * attribute.
10296 	 */
10297 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10298 
10299 	/*
10300 	 * Indicates the driver's guidance on the new value to be set to
10301 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
10302 	 * optionally include this attribute.
10303 	 */
10304 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10305 
10306 	/* keep last */
10307 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10308 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10309 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10310 };
10311 
10312 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10313  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10314  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10315  */
10316 enum qca_wlan_nan_ext_subcmd_type {
10317 	/* Subcmd of type NAN Enable Request */
10318 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10319 	/* Subcmd of type NAN Disable Request */
10320 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10321 };
10322 
10323 /**
10324  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10325  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10326  */
10327 enum qca_wlan_vendor_attr_nan_params {
10328 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10329 	/* Carries NAN command for firmware component. Every vendor command
10330 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10331 	 * payload containing the NAN command. NLA_BINARY attribute.
10332 	 */
10333 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10334 	/* Indicates the type of NAN command sent with
10335 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10336 	 * describes the possible range of values. This attribute is mandatory
10337 	 * if the command being issued is either
10338 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10339 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10340 	 */
10341 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10342 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10343 	 * band. This attribute is mandatory when command type is
10344 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10345 	 */
10346 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10347 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10348 	 * band. This attribute is optional and should be included when command
10349 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10350 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10351 	 */
10352 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10353 
10354 	/* keep last */
10355 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10356 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10357 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10358 };
10359 
10360 /**
10361  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10362  * transport modes and is used by attribute
10363  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
10364  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10365  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
10366  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10367  * data. The data shall be encapsulated within
10368  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
10369  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10370  */
10371 enum qca_wlan_vendor_cfr_data_transport_modes {
10372 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10373 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10374 };
10375 
10376 /**
10377  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10378  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10379  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10380  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
10381  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
10382  * with phase
10383  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
10384  */
10385 enum qca_wlan_vendor_cfr_method {
10386 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10387 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10388 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10389 };
10390 
10391 /**
10392  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10393  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10394  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10395  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10396  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10397  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10398  * is provided by one or more of below attributes:
10399  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10400  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10401  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10402  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10403  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10404  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10405  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10406  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10407  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10408  */
10409 enum qca_wlan_vendor_cfr_capture_type {
10410 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10411 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10412 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10413 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10414 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10415 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10416 };
10417 
10418 /**
10419  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10420  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10421  * Channel Frequency Response capture parameters and enable periodic CFR
10422  * capture.
10423  *
10424  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10425  * MAC address of peer. This is for CFR version 1 only.
10426  *
10427  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10428  * Enable peer CFR Capture. This attribute is mandatory to
10429  * enable peer CFR capture. If this attribute is not present,
10430  * peer CFR capture is disabled.
10431  *
10432  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10433  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10434  * Supported values: 20, 40, 80, 80+80, 160.
10435  * Note that all targets may not support all bandwidths.
10436  * This attribute is mandatory for version 1 if attribute
10437  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10438  *
10439  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10440  * Periodicity of CFR measurement in msec.
10441  * Periodicity should be a multiple of Base timer.
10442  * Current Base timer value supported is 10 msecs (default).
10443  * 0 for one shot capture.
10444  * This attribute is mandatory for version 1 if attribute
10445  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10446  *
10447  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10448  * Method used to capture Channel Frequency Response.
10449  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10450  * This attribute is mandatory for version 1 if attribute
10451  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10452  *
10453  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10454  * Enable periodic CFR capture.
10455  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10456  * If this attribute is not present, periodic CFR capture is disabled.
10457  *
10458  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
10459  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10460  * can't be enabled at same time. This attribute is mandatory if target
10461  * support both versions and use one of them.
10462  *
10463  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10464  * This attribute is mandatory for version 2 if
10465  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10466  * Bits 15:0 Bit fields indicating which group to be enabled.
10467  * Bits 31:16 Reserved for future use.
10468  *
10469  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10470  * CFR capture duration in microsecond. This attribute is mandatory for
10471  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10472  *
10473  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10474  * CFR capture interval in microsecond. This attribute is mandatory for
10475  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10476  *
10477  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10478  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10479  * This attribute is mandatory for version 2.
10480  *
10481  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10482  * Bit fields indicating which user in the current UL MU
10483  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
10484  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
10485  * then the CFR capture will happen for user index 0 in the current
10486  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
10487  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
10488  * This is for CFR version 2 only.
10489  *
10490  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10491  * Indicates the number of consecutive Rx packets to be skipped
10492  * before CFR capture is enabled again.
10493  * This is for CFR version 2 only.
10494  *
10495  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10496  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10497  *
10498  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10499  * the following GROUP attributes:
10500  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10501  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10502  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10503  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10504  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10505  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10506  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10507  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10508  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10509  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10510  *
10511  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10512  * Target support multiple groups for some configurations. Group number could be
10513  * any value between 0 and 15. This is for CFR version 2 only.
10514  *
10515  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10516  * Transmitter address which is used to filter packets, this MAC address takes
10517  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
10518  * This is for CFR version 2 only.
10519  *
10520  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10521  * Receiver address which is used to filter packets, this MAC address takes
10522  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
10523  * This is for CFR version 2 only.
10524  *
10525  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10526  * Mask of transmitter address which is used to filter packets.
10527  * This is for CFR version 2 only.
10528  *
10529  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10530  * Mask of receiver address which is used to filter packets.
10531  * This is for CFR version 2 only.
10532  *
10533  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10534  * Indicates packets with a specific NSS will be filtered for CFR capture.
10535  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
10536  * be done for packets matching the NSS specified within this bitmask.
10537  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
10538  *     bit 0 : NSS 1
10539  *     bit 1 : NSS 2
10540  *     ...
10541  *     bit 7 : NSS 8
10542  *
10543  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10544  * Indicates packets with a specific BW will be filtered for CFR capture.
10545  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
10546  * will be done for packets matching the bandwidths specified within this
10547  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
10548  * numerated in enum nl80211_band (although not all bands may be supported
10549  * by a given device).
10550  *
10551  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10552  * Management packets matching the subtype filter categories will be
10553  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10554  * represents the corresponding mgmt subtype value as per
10555  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10556  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
10557  * This is for CFR version 2 only
10558  *
10559  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10560  * Control packets matching the subtype filter categories will be
10561  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10562  * represents the corresponding control subtype value as per
10563  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10564  * This is for CFR version 2 only.
10565  *
10566  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10567  * Data packets matching the subtype filter categories will be
10568  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10569  * represents the corresponding data subtype value as per
10570  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10571  * This is for CFR version 2 only.
10572  *
10573  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10574  * Userspace can use this attribute to specify the driver about which transport
10575  * mode shall be used by the driver to send CFR data to userspace. Uses values
10576  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10577  * not present, driver shall choose the default transport mechanism which is
10578  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10579  *
10580  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10581  * Userspace can use this attribute to specify the nl port id of the application
10582  * which receives the CFR data and processes it further so that the drivers can
10583  * unicast the NL events to a specific application. Optionally included when
10584  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10585  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10586  * shall multicast the netlink events when this attribute is not included.
10587  *
10588  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10589  * This attribute will be used by the driver to encapsulate and send CFR data
10590  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10591  * asynchronous event when the driver is configured to send CFR data using NL
10592  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
10593  *
10594  */
10595 enum qca_wlan_vendor_peer_cfr_capture_attr {
10596 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10597 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10598 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10599 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10600 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10601 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10602 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10603 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10604 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10605 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10606 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10607 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10608 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10609 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10610 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10611 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10612 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10613 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10614 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10615 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10616 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10617 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10618 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10619 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10620 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10621 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10622 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10623 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10624 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10625 
10626 	/* Keep last */
10627 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10628 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10629 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10630 };
10631 
10632 /**
10633  * enum qca_coex_config_profiles - This enum defines different types of
10634  * traffic streams that can be prioritized one over the other during coex
10635  * scenarios.
10636  * The types defined in this enum are categorized in the below manner.
10637  * 0 - 31 values corresponds to WLAN
10638  * 32 - 63 values corresponds to BT
10639  * 64 - 95 values corresponds to Zigbee
10640  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10641  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10642  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10643  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10644  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10645  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10646  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10647  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10648  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10649  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10650  * @QCA_BT_A2DP: Prioritize BT A2DP
10651  * @QCA_BT_BLE: Prioritize BT BLE
10652  * @QCA_BT_SCO: Prioritize BT SCO
10653  * @QCA_ZB_LOW: Prioritize Zigbee Low
10654  * @QCA_ZB_HIGH: Prioritize Zigbee High
10655  */
10656 enum qca_coex_config_profiles {
10657 	/* 0 - 31 corresponds to WLAN */
10658 	QCA_WIFI_STA_DISCOVERY = 0,
10659 	QCA_WIFI_STA_CONNECTION = 1,
10660 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10661 	QCA_WIFI_STA_DATA = 3,
10662 	QCA_WIFI_STA_ALL = 4,
10663 	QCA_WIFI_SAP_DISCOVERY = 5,
10664 	QCA_WIFI_SAP_CONNECTION = 6,
10665 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10666 	QCA_WIFI_SAP_DATA = 8,
10667 	QCA_WIFI_SAP_ALL = 9,
10668 	QCA_WIFI_CASE_MAX = 31,
10669 	/* 32 - 63 corresponds to BT */
10670 	QCA_BT_A2DP = 32,
10671 	QCA_BT_BLE = 33,
10672 	QCA_BT_SCO = 34,
10673 	QCA_BT_CASE_MAX = 63,
10674 	/* 64 - 95 corresponds to Zigbee */
10675 	QCA_ZB_LOW = 64,
10676 	QCA_ZB_HIGH = 65,
10677 	QCA_ZB_CASE_MAX = 95,
10678 	/* 0xff is default value if the u8 profile value is not set. */
10679 	QCA_PROFILE_DEFAULT_VALUE = 255
10680 };
10681 
10682 /**
10683  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10684  * This enum defines the valid set of values of coex configuration types. These
10685  * values may used by attribute
10686  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10687  *
10688  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10689  *	weights to default values.
10690  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10691  *	weights with configurability value.
10692  */
10693 enum qca_vendor_attr_coex_config_types {
10694 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10695 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10696 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
10697 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
10698 };
10699 
10700 /**
10701  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10702  * attributes
10703  * Attributes for data used by
10704  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10705  *
10706  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10707  * Indicate config type.
10708  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
10709  *
10710  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10711  *	Indicate the Priority 1 profiles.
10712  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10713  *	In same priority level, maximum to 4 profiles can be set here.
10714  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10715  *	Indicate the Priority 2 profiles.
10716  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10717  *	In same priority level, maximum to 4 profiles can be set here.
10718  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10719  *	Indicate the Priority 3 profiles.
10720  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10721  *	In same priority level, maximum to 4 profiles can be set here.
10722  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10723  *	Indicate the Priority 4 profiles.
10724  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10725  *	In same priority level, maximum to 4 profiles can be set here.
10726  * NOTE:
10727  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10728  * arrangement:
10729  *	1: In the same u32 attribute(priority x), the profiles enum values own
10730  *	same priority level.
10731  *	2: 0xff is default value if the u8 profile value is not set.
10732  *	3: max to 4 rules/profiles in same priority level.
10733  *	4: max to 4 priority level (priority 1 - priority 4)
10734  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
10735  *	hybrid rules not support.
10736  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10737  *	remain blank to reset all parameters.
10738  * For example:
10739  *
10740  *	If the attributes as follow:
10741  *	priority 1:
10742  *	------------------------------------
10743  *	|  0xff  |    0   |   1   |    2   |
10744  *	------------------------------------
10745  *	priority 2:
10746  *	-------------------------------------
10747  *	|  0xff  |  0xff  |  0xff  |   32   |
10748  *	-------------------------------------
10749  *	priority 3:
10750  *	-------------------------------------
10751  *	|  0xff  |  0xff  |  0xff  |   65   |
10752  *	-------------------------------------
10753  *	then it means:
10754  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10755  *		owns same priority level.
10756  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10757  *		has priority over BT_A2DP and ZB_HIGH.
10758  *	3: BT_A2DP has priority over ZB_HIGH.
10759  */
10760 
10761 enum qca_vendor_attr_coex_config_three_way {
10762 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10763 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10764 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10765 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10766 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10767 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10768 
10769 	/* Keep last */
10770 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10771 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10772 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10773 };
10774 
10775 /**
10776  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10777  * This enum defines the valid set of values of peer stats cache types. These
10778  * values are used by attribute
10779  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
10780  *
10781  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
10782  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
10783  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
10784  * statistics
10785  */
10786 enum qca_vendor_attr_peer_stats_cache_type {
10787 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10788 
10789 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10790 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10791 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10792 };
10793 
10794 /**
10795  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10796  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10797  * Attributes are required to flush peer rate statistics from driver to
10798  * user application.
10799  *
10800  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10801  * Indicate peer stats cache type.
10802  * The statistics types are 32-bit values from
10803  * qca_vendor_attr_peer_stats_cache_type
10804  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10805  * of size 6, representing peer mac address.
10806  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10807  * containing buffer of statistics to send event to application layer entity.
10808  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10809  * representing cookie for peer unique session.
10810  */
10811 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10812 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10813 
10814 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10815 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10816 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10817 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10818 
10819 	/* Keep last */
10820 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10821 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10822 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10823 };
10824 
10825 /**
10826  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
10827  * this enum defines all the possible state of zigbee, which can be
10828  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
10829  *
10830  * @ZIGBEE_IDLE: zigbee in idle state
10831  * @ZIGBEE_FORM_NETWORK: zibee forming network
10832  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
10833  * @ZIGBEE_JOIN: zigbee joining network
10834  * @ZIGBEE_NETWORK_UP: zigbee network is up
10835  * @ZIGBEE_HMI: zigbee in HMI mode
10836  */
10837 enum qca_mpta_helper_attr_zigbee_state {
10838 	ZIGBEE_IDLE = 0,
10839 	ZIGBEE_FORM_NETWORK = 1,
10840 	ZIGBEE_WAIT_JOIN = 2,
10841 	ZIGBEE_JOIN = 3,
10842 	ZIGBEE_NETWORK_UP = 4,
10843 	ZIGBEE_HMI = 5,
10844 };
10845 
10846 /**
10847  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
10848  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10849  */
10850 enum qca_mpta_helper_vendor_attr {
10851 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10852 	/* Optional attribute used to update zigbee state.
10853 	 * enum qca_mpta_helper_attr_zigbee_state.
10854 	 * NLA_U32 attribute.
10855 	 */
10856 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10857 	/* Optional attribute used to configure wlan duration for Shape-OCS
10858 	 * during interrupt.
10859 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10860 	 * Value range 0 ~ 300 (ms).
10861 	 * NLA_U32 attribute.
10862 	 */
10863 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10864 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10865 	 * during interrupt.
10866 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10867 	 * Value range 0 ~ 300 (ms).
10868 	 * NLA_U32 attribute.
10869 	 */
10870 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10871 	/* Optional attribute used to configure wlan duration for Shape-OCS
10872 	 * monitor period.
10873 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10874 	 * Value range 0 ~ 300 (ms)
10875 	 * NLA_U32 attribute
10876 	 */
10877 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10878 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10879 	 * monitor period.
10880 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10881 	 * Value range 0 ~ 300 (ms)
10882 	 * NLA_U32 attribute
10883 	 */
10884 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10885 	/* Optional attribute used to configure ocs interrupt duration.
10886 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10887 	 * Value range 1000 ~ 20000 (ms)
10888 	 * NLA_U32 attribute
10889 	 */
10890 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10891 	/* Optional attribute used to configure ocs monitor duration.
10892 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10893 	 * Value range 1000 ~ 20000 (ms)
10894 	 * NLA_U32 attribute
10895 	 */
10896 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10897 	/* Optional attribute used to notify wlan FW current zigbee channel.
10898 	 * Value range 11 ~ 26
10899 	 * NLA_U32 attribute
10900 	 */
10901 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10902 	/* Optional attribute used to configure wlan mute duration.
10903 	 * Value range 0 ~ 400 (ms)
10904 	 * NLA_U32 attribute
10905 	 */
10906 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10907 
10908 	/* keep last */
10909 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10910 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10911 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10912 };
10913 
10914 /**
10915  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10916  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
10917  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10918  *
10919  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10920  * to request the driver to start reporting Beacon frames.
10921  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
10922  * to request the driver to stop reporting Beacon frames.
10923  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10924  * userspace to report received Beacon frames.
10925  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10926  * to indicate that the driver is going to pause reporting Beacon frames.
10927  */
10928 enum qca_wlan_vendor_beacon_reporting_op_types {
10929 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10930 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10931 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10932 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10933 };
10934 
10935 /**
10936  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
10937  * types of reasons for which the driver is pausing reporting Beacon frames.
10938  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10939  *
10940  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10941  * reasons.
10942  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10943  * driver/firmware is starting a scan.
10944  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10945  * driver/firmware disconnects from the ESS and indicates the disconnection to
10946  * userspace (non-seamless roaming case). This reason code will be used by the
10947  * driver/firmware to indicate stopping of beacon report events. Userspace
10948  * will need to start beacon reporting again (if desired) by sending vendor
10949  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10950  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10951  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10952  * completed.
10953  */
10954 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10955 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10956 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10957 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10958 };
10959 
10960 /*
10961  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10962  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10963  */
10964 enum qca_wlan_vendor_attr_beacon_reporting_params {
10965 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10966 	/* Specifies the type of operation that the vendor command/event is
10967 	 * intended for. Possible values for this attribute are defined in
10968 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10969 	 */
10970 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10971 	/* Optionally set by userspace to request the driver to report Beacon
10972 	 * frames using asynchronous vendor events when the
10973 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10974 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10975 	 * If this flag is not set, the driver will only update Beacon frames
10976 	 * in cfg80211 scan cache but not send any vendor events.
10977 	 */
10978 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10979 	/* Optionally used by userspace to request the driver/firmware to
10980 	 * report Beacon frames periodically when the
10981 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10982 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10983 	 * u32 attribute, indicates the period of Beacon frames to be reported
10984 	 * and in the units of beacon interval.
10985 	 * If this attribute is missing in the command, then the default value
10986 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10987 	 * Zero is an invalid value.
10988 	 * If a valid value is received for this attribute, the driver will
10989 	 * update the cfg80211 scan cache periodically as per the value
10990 	 * received in this attribute in addition to updating the cfg80211 scan
10991 	 * cache when there is significant change in Beacon frame IEs.
10992 	 */
10993 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10994 	/* Used by the driver to encapsulate the SSID when the
10995 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10996 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10997 	 * u8 array with a maximum size of 32.
10998 	 *
10999 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
11000 	 * will be taken from the SSID element of the received Beacon frame.
11001 	 *
11002 	 * When generating beacon report from Multiple BSSID Beacon frame and
11003 	 * if the BSSID of the current connected BSS matches the BSSID of the
11004 	 * transmitting BSS, the SSID will be taken from the SSID element of
11005 	 * the received Beacon frame.
11006 	 *
11007 	 * When generating beacon report from Multiple BSSID Beacon frame and
11008 	 * if the BSSID of the current connected BSS matches the BSSID of one
11009 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
11010 	 * field included in the nontransmitted BSS profile whose derived BSSI
11011 	 * is same as the BSSID of the current connected BSS. When there is no
11012 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11013 	 * of current connected* BSS, this attribute will not be present.
11014 	 */
11015 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11016 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
11017 	 * is currently connected to when the
11018 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11019 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11020 	 * fixed size of 6 bytes.
11021 	 *
11022 	 * When generating beacon report from a Multiple BSSID beacon and the
11023 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
11024 	 * a Multiple BSSID set, this BSSID will be that particular
11025 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
11026 	 * transmitting address of the Beacon frame).
11027 	 */
11028 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11029 	/* Used by the driver to encapsulate the frequency in MHz on which
11030 	 * the Beacon frame was received when the
11031 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11032 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11033 	 * u32 attribute.
11034 	 */
11035 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11036 	/* Used by the driver to encapsulate the Beacon interval
11037 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11038 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11039 	 * u16 attribute. The value will be copied from the Beacon frame and
11040 	 * the units are TUs.
11041 	 */
11042 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11043 	/* Used by the driver to encapsulate the Timestamp field from the
11044 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
11045 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11046 	 * u64 attribute.
11047 	 */
11048 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11049 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11050 	 * Beacon frame is received in the driver when the
11051 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11052 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11053 	 * the units of nanoseconds. This value is expected to have accuracy of
11054 	 * about 10 ms.
11055 	 */
11056 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11057 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
11058 	 * which this event is generated when the
11059 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11060 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11061 	 */
11062 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11063 	/* Used by the driver to specify the reason for the driver/firmware to
11064 	 * pause sending beacons to userspace when the
11065 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11066 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11067 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11068 	 * attribute.
11069 	 */
11070 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11071 	/* Used by the driver to specify whether the driver will automatically
11072 	 * resume reporting beacon events to userspace later (for example after
11073 	 * the ongoing off-channel activity is completed etc.) when the
11074 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11075 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11076 	 */
11077 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11078 	/* Optionally set by userspace to request the driver not to resume
11079 	 * beacon reporting after a pause is completed, when the
11080 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11081 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11082 	 * If this flag is set, the driver will not resume beacon reporting
11083 	 * after any pause in beacon reporting is completed. Userspace has to
11084 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11085 	 * to initiate beacon reporting again. If this flag is set in the recent
11086 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11087 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11088 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11089 	 * set by the driver. Setting this flag until and unless there is a
11090 	 * specific need is not recommended as there is a chance of some beacons
11091 	 * received after pause command and next start command being not
11092 	 * reported.
11093 	 */
11094 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
11095 
11096 	/* Keep last */
11097 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11098 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11099 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11100 };
11101 
11102 /**
11103  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11104  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11105  *
11106  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11107  * a virtual device.
11108  *
11109  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11110  * a physical device.
11111  */
11112 enum qca_vendor_oem_device_type {
11113 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11114 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11115 };
11116 
11117 /*
11118  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
11119  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11120  *
11121  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11122  * used to set/query the data to/from the firmware. On query, the same
11123  * attribute is used to carry the respective data in the reply sent by the
11124  * driver to userspace. The request to set/query the data and the format of the
11125  * respective data from the firmware are embedded in the attribute. The
11126  * maximum size of the attribute payload is 1024 bytes.
11127  *
11128  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11129  * based on this field. This optional attribute is included to specify whether
11130  * the device type is a virtual device or a physical device for the command.
11131  * This attribute can be omitted for a virtual device (default) command.
11132  * This u8 attribute is used to carry information for the device type using
11133  * values defined by enum qca_vendor_oem_device_type.
11134  *
11135  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11136  * attribute when the data is queried from the firmware.
11137  *
11138  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11139  * is set when the userspace queries data from the firmware. This attribute
11140  * should not be set when userspace sets the OEM data to the firmware.
11141  */
11142 enum qca_wlan_vendor_attr_oem_data_params {
11143 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11144 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11145 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
11146 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
11147 
11148 	/* keep last */
11149 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11150 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11151 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11152 };
11153 
11154 /**
11155  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11156  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11157  *
11158  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11159  * Nested attribute containing multiple ranges with following attributes:
11160  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11161  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11162  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
11163  *
11164  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11165  * Starting center frequency in MHz.
11166  *
11167  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11168  * Ending center frequency in MHz.
11169  *
11170  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11171  * s32 attribute, optional. It is a per frequency range attribute.
11172  * The maximum TX power limit from user space is to be applied on an
11173  * unrestricted interface for corresponding frequency range. It is also
11174  * possible that the actual TX power may be even lower than this cap due to
11175  * other considerations such as regulatory compliance, SAR, etc. In absence of
11176  * this attribute the driver shall follow current behavior which means
11177  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11178  * power derived by the driver based on regulatory/SAR during interface up.
11179  *
11180  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11181  * u32 attribute, optional. Indicates all the interface types which are
11182  * restricted for all frequency ranges provided in
11183  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11184  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11185  * This attribute encapsulates bitmasks of interface types defined in
11186  * enum nl80211_iftype. If an interface is marked as restricted the driver must
11187  * move to a safe channel and if no safe channel is available the driver shall
11188  * terminate that interface functionality. In absence of this attribute,
11189  * interface (SAP/P2P) can still continue operating on an unsafe channel with
11190  * TX power limit derived from either
11191  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11192  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11193  * is not provided.
11194  */
11195 enum qca_wlan_vendor_attr_avoid_frequency_ext {
11196 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11197 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11198 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11199 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
11200 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11201 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
11202 
11203 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11204 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11205 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11206 };
11207 
11208 /*
11209  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11210  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11211  */
11212 enum qca_wlan_vendor_attr_add_sta_node_params {
11213 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11214 	/* 6 byte MAC address of STA */
11215 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11216 	/* Authentication algorithm used by the station of size u16;
11217 	 * defined in enum nl80211_auth_type.
11218 	 */
11219 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11220 
11221 	/* keep last */
11222 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11223 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11224 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11225 };
11226 
11227 /**
11228  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11229  * This enum defines the valid set of values of BT coex chain mode.
11230  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11231  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11232  *
11233  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11234  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11235  * separated, hybrid mode.
11236  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11237  * separated, fixed FDD mode.
11238  */
11239 enum qca_btc_chain_mode {
11240 	QCA_BTC_CHAIN_SHARED = 0,
11241 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11242 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
11243 };
11244 
11245 /* deprecated legacy name */
11246 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11247 
11248 /**
11249  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11250  * chain mode.
11251  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11252  *
11253  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11254  * Indicates the BT coex chain mode, are 32-bit values from
11255  * enum qca_btc_chain_mode. This attribute is mandatory.
11256  *
11257  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11258  * If set, vdev should be restarted when BT coex chain mode is updated.
11259  * This attribute is optional.
11260  */
11261 enum qca_vendor_attr_btc_chain_mode {
11262 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11263 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11264 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11265 
11266 	/* Keep last */
11267 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11268 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11269 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11270 };
11271 
11272 /**
11273  * enum qca_vendor_wlan_sta_flags - Station feature flags
11274  * Bits will be set to 1 if the corresponding features are enabled.
11275  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11276  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11277     for the station
11278  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11279     for the station
11280  */
11281 enum qca_vendor_wlan_sta_flags {
11282 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11283 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11284 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11285 };
11286 
11287 /**
11288  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11289  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11290  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11291  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11292  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11293  */
11294 enum qca_vendor_wlan_sta_guard_interval {
11295 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11296 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11297 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11298 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11299 };
11300 
11301 /**
11302  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11303  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11304  *
11305  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11306  * Required attribute in request for AP mode only, 6-byte MAC address,
11307  * corresponding to the station's MAC address for which information is
11308  * requested. For STA mode this is not required as the info always correspond
11309  * to the self STA and the current/last association.
11310  *
11311  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11312  * Optionally used in response, u32 attribute, contains a bitmap of different
11313  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11314  *
11315  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11316  * Optionally used in response, u32 attribute, possible values are defined in
11317  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11318  * Guard interval used by the station.
11319  *
11320  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11321  * Optionally used in response, u32 attribute, used in AP mode only.
11322  * Value indicates the number of data frames received from station with retry
11323  * bit set to 1 in FC.
11324  *
11325  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11326  * Optionally used in response, u32 attribute, used in AP mode only.
11327  * Counter for number of data frames with broadcast or multicast address in
11328  * the destination address received from the station.
11329  *
11330  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11331  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11332  * Value indicates the number of data frames successfully transmitted only
11333  * after retrying the packets and for which the TX status has been updated
11334  * back to host from target.
11335  *
11336  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11337  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11338  * Value indicates the number of data frames not transmitted successfully even
11339  * after retrying the packets for the number of times equal to the total number
11340  * of retries allowed for that packet and for which the TX status has been
11341  * updated back to host from target.
11342  *
11343  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11344  * Optionally used in response, u32 attribute, used in AP mode only.
11345  * Counter in the target for the number of data frames successfully transmitted
11346  * to the station.
11347  *
11348  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11349  * Optionally used in response, u32 attribute, used in AP mode only.
11350  * Value indicates the number of data frames successfully transmitted only
11351  * after retrying the packets.
11352  *
11353  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11354  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11355  * Value indicates the number of data frames not transmitted successfully even
11356  * after retrying the packets for the number of times equal to the total number
11357  * of retries allowed for that packet.
11358  *
11359  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11360  * the STA mode only. Represent the number of probe requests sent by the STA
11361  * while attempting to roam on missing certain number of beacons from the
11362  * connected AP. If queried in the disconnected state, this represents the
11363  * count for the last connected state.
11364  *
11365  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11366  * the STA mode. Represent the number of probe responses received by the station
11367  * while attempting to roam on missing certain number of beacons from the
11368  * connected AP. When queried in the disconnected state, this represents the
11369  * count when in last connected state.
11370  *
11371  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11372  * STA mode only. Represents the total number of frames sent out by STA
11373  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11374  * only for the connect session. Represents the count of last connected session,
11375  * when queried in the disconnected state.
11376  *
11377  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11378  * Total number of RTS sent out by the STA. This data is maintained per connect
11379  * session. Represents the count of last connected session, when queried in the
11380  * disconnected state.
11381  *
11382  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11383  * STA mode.Represent the number of RTS transmission failure that reach retry
11384  * limit. This data is maintained per connect session. Represents the count of
11385  * last connected session, when queried in the disconnected state.
11386  *
11387  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11388  * the STA mode. Represent the total number of non aggregated frames transmitted
11389  * by the STA. This data is maintained per connect session. Represents the count
11390  * of last connected session, when queried in the disconnected state.
11391  *
11392  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11393  * STA mode. Represent the total number of aggregated frames transmitted by the
11394  * STA. This data is maintained per connect session. Represents the count of
11395  * last connected session, when queried in the disconnected state.
11396  *
11397  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11398  * the STA mode. Represents the number of received frames with a good PLCP. This
11399  * data is maintained per connect session. Represents the count of last
11400  * connected session, when queried in the disconnected state.
11401  *
11402  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11403  * used in the STA mode. Represents the number of occasions that no valid
11404  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11405  * session. Represents the count of last connected session, when queried in the
11406  * disconnected state.
11407  *
11408  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11409  * STA mode. Represents the number of frames for which CRC check failed in the
11410  * MAC. This data is maintained per connect session. Represents the count of
11411  * last connected session, when queried in the disconnected state.
11412  *
11413  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11414  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11415  * data is maintained per connect session. Represents the count of last
11416  * connected session, when queried in the disconnected state.
11417  *
11418  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11419  * mode. Represents the number of received Block Acks. This data is maintained
11420  * per connect session. Represents the count of last connected session, when
11421  * queried in the disconnected state.
11422  *
11423  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11424  * mode. Represents the number of beacons received from the connected BSS. This
11425  * data is maintained per connect session. Represents the count of last
11426  * connected session, when queried in the disconnected state.
11427  *
11428  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11429  * STA mode. Represents the number of beacons received by the other BSS when in
11430  * connected state (through the probes done by the STA). This data is maintained
11431  * per connect session. Represents the count of last connected session, when
11432  * queried in the disconnected state.
11433  *
11434  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11435  * the STA mode. Represents the number of received DATA frames with good FCS and
11436  * matching Receiver Address when in connected state. This data is maintained
11437  * per connect session. Represents the count of last connected session, when
11438  * queried in the disconnected state.
11439  *
11440  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11441  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11442  * when in the connected state. This data is maintained per connect session.
11443  * Represents the count of last connected session, when queried in the
11444  * disconnected state.
11445  *
11446  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11447  * STA mode. This represents the target power in dBm for the transmissions done
11448  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11449  * connect session. Represents the count of last connected session, when
11450  * queried in the disconnected state.
11451  *
11452  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11453  * STA mode. This represents the Target power in dBm for transmissions done to
11454  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11455  * session. Represents the count of last connected session, when queried in the
11456  * disconnected state.
11457  *
11458  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11459  * STA mode. This represents the Target power in dBm for transmissions done to
11460  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11461  * Represents the count of last connected session, when queried in the
11462  * disconnected state.
11463  *
11464  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11465  * STA mode. This represents the Target power in dBm for transmissions done to
11466  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11467  * session. Represents the count of last connected session, when queried in
11468  * the disconnected state.
11469  *
11470  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11471  * STA mode. This represents the Target power in dBm for for transmissions done
11472  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11473  * Represents the count of last connected session, when queried in the
11474  * disconnected state.
11475  *
11476  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11477  * in the STA mode. This represents the Nested attribute representing the
11478  * overflow counts of each receive buffer allocated to the hardware during the
11479  * STA's connection. The number of hw buffers might vary for each WLAN
11480  * solution and hence this attribute represents the nested array of all such
11481  * HW buffer count. This data is maintained per connect session. Represents
11482  * the count of last connected session, when queried in the disconnected state.
11483  *
11484  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11485  * allowed as per the regulatory requirements for the current or last connected
11486  * session. Used in the STA mode.
11487  *
11488  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11489  * (dBm) used by the station in its latest unicast frame while communicating
11490  * to the AP in the connected state. When queried in the disconnected state,
11491  * this represents the TX power used by the STA with last AP communication
11492  * when in connected state.
11493  *
11494  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11495  * level used to adjust the RX sensitivity. Represents the current ANI level
11496  * when queried in the connected state. When queried in the disconnected
11497  * state, this corresponds to the latest ANI level at the instance of
11498  * disconnection.
11499  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11500  * only. This represents the number of group addressed robust management frames
11501  * received from this station with an invalid MIC or a missing MME when PMF is
11502  * enabled.
11503  *
11504  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11505  * only. This represents the number of group addressed robust management frames
11506  * received from this station with the packet number less than or equal to the
11507  * last received packet number when PMF is enabled.
11508  *
11509  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11510  * mode only. This represents the number of Beacon frames received from this
11511  * station with an invalid MIC or a missing MME when beacon protection is
11512  * enabled.
11513  *
11514  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11515  * only. This represents number of Beacon frames received from this station with
11516  * the packet number less than or equal to the last received packet number when
11517  * beacon protection is enabled.
11518  *
11519  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11520  * STA mode only. Driver uses this attribute to populate the connection failure
11521  * reason codes and the values are defined in
11522  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11523  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11524  * connection failure from driver. The driver shall not include this attribute
11525  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
11526  * connection failure observed in the last attempted connection.
11527  *
11528  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11529  * used by the station in its last TX frame while communicating to the AP in the
11530  * connected state. When queried in the disconnected state, this represents the
11531  * rate used by the STA in the last TX frame to the AP when it was connected.
11532  * This attribute is used for STA mode only.
11533  *
11534  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11535  * This represents the rate index used by the STA for the last TX frame to the
11536  * AP. When queried in the disconnected state, this gives the last RIX used by
11537  * the STA in the last TX frame to the AP when it was connected.
11538  *
11539  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11540  * mode only. This represents the number of times the STA TSF goes out of sync
11541  * from the AP after the connection. If queried in the disconnected state, this
11542  * gives the count of TSF out of sync for the last connection.
11543  *
11544  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11545  * mode only. This represents the roam trigger reason for the last roaming
11546  * attempted by the firmware. This can be queried either in connected state or
11547  * disconnected state. Each bit of this attribute represents the different
11548  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11549  *
11550  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11551  * only. This represents the roam fail reason for the last failed roaming
11552  * attempt by the firmware. Different roam failure reason codes are specified
11553  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11554  * connected state or disconnected state.
11555  *
11556  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11557  * STA mode only. This represents the roam invoke fail reason for the last
11558  * failed roam invoke. Different roam invoke failure reason codes
11559  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11560  * queried either in connected state or disconnected state.
11561  *
11562  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11563  * This represents the average congestion duration of uplink frames in MAC
11564  * queue in unit of ms. This can be queried either in connected state or
11565  * disconnected state.
11566  *
11567  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
11568  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11569  * rate value of TX packets. Every index of this nested attribute corresponds
11570  * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
11571  * queried in connected state.
11572  *
11573  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
11574  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11575  * rate value of RX packets. Every index of this nested attribute corresponds
11576  * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
11577  * queried in connected state.
11578  */
11579 enum qca_wlan_vendor_attr_get_sta_info {
11580 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11581 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11582 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11583 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11584 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11585 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11586 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11587 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11588 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11589 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11590 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
11591 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11592 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11593 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11594 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11595 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11596 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11597 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11598 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11599 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11600 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11601 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11602 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11603 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11604 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11605 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11606 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11607 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11608 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11609 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11610 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11611 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11612 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11613 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11614 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11615 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11616 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11617 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11618 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11619 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11620 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
11621 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11622 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11623 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11624 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11625 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11626 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
11627 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
11628 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11629 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
11630 
11631 	/* keep last */
11632 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11633 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11634 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11635 };
11636 
11637 /**
11638  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11639  * Used when the driver triggers the STA to disconnect from the AP.
11640  *
11641  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11642  * disconnection with the AP due to unspecified reasons.
11643  *
11644  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11645  * disconnection with the AP due to a roaming failure. This roaming is triggered
11646  * internally (host driver/firmware).
11647  *
11648  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11649  * the AP when the user/external triggered roaming fails.
11650  *
11651  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11652  * by the host driver whenever gateway reachability failure is detected and the
11653  * driver disconnects with AP.
11654  *
11655  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11656  * the AP on a channel switch announcement from it with an unsupported channel.
11657  *
11658  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11659  * with indoor channels disabled and if the STA is connected on one of these
11660  * disabled channels, the host driver disconnected the STA with this reason
11661  * code.
11662  *
11663  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11664  * explicit request from the user to disable the current operating channel.
11665  *
11666  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11667  * the internal host driver/firmware recovery.
11668  *
11669  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11670  * a timeout for the key installations from the user space.
11671  *
11672  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11673  * STA on a band change request from the user space to a different band from the
11674  * current operation channel/band.
11675  *
11676  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11677  * interface down trigger from the user space.
11678  *
11679  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11680  * STA on getting continuous transmission failures for multiple Data frames.
11681  *
11682  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11683  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11684  * represents inactivity from AP on such transmissions.
11685 
11686  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11687  * disconnection when SA Query times out (AP does not respond to SA Query).
11688  *
11689  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11690  * STA on missing the beacons continuously from the AP.
11691  *
11692  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11693  * able to move to the channel mentioned by the AP in CSA.
11694  *
11695  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11696  */
11697 enum qca_disconnect_reason_codes {
11698 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11699 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11700 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11701 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11702 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11703 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11704 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11705 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11706 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11707 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11708 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11709 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11710 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11711 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11712 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11713 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11714 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11715 };
11716 
11717 /**
11718  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11719  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11720  *
11721  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11722  * This attribute represents the driver specific reason codes (local
11723  * driver/firmware initiated reasons for disconnection) defined
11724  * in enum qca_disconnect_reason_codes.
11725  */
11726 enum qca_wlan_vendor_attr_driver_disconnect_reason {
11727 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11728 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11729 
11730 	/* keep last */
11731 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11732 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11733 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11734 };
11735 
11736 /**
11737  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11738  *
11739  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11740  */
11741 enum qca_wlan_tspec_operation {
11742 	QCA_WLAN_TSPEC_ADD = 0,
11743 	QCA_WLAN_TSPEC_DEL = 1,
11744 	QCA_WLAN_TSPEC_GET = 2,
11745 };
11746 
11747 /**
11748  * enum qca_wlan_tspec_direction - Direction in TSPEC
11749  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11750  *
11751  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11752  */
11753 enum qca_wlan_tspec_direction {
11754 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11755 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11756 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11757 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11758 };
11759 
11760 /**
11761  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
11762  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11763  *
11764  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11765  */
11766 enum qca_wlan_tspec_ack_policy {
11767 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11768 	QCA_WLAN_TSPEC_NO_ACK = 1,
11769 	/* Reserved */
11770 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11771 };
11772 
11773 /**
11774  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11775  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11776  *
11777  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11778  * u8 attribute. Specify the TSPEC operation of this request. Possible values
11779  * are defined in enum qca_wlan_tspec_operation.
11780  * Mandatory attribute for all kinds of config TSPEC requests.
11781  *
11782  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11783  * u8 attribute. TS ID. Possible values are 0-7.
11784  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11785  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11786  *
11787  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11788  * u8 attribute. Direction of data carried by the TS. Possible values are
11789  * defined in enum qca_wlan_tspec_direction.
11790  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11791  *
11792  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11793  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11794  * with the TS. set - enabled, not set - disabled.
11795  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11796  *
11797  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11798  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
11799  * belonging to this TS. Possible values are 0-7.
11800  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11801  *
11802  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11803  * u8 attribute. Indicate whether MAC acknowledgements are required for
11804  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11805  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11806  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11807  *
11808  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11809  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11810  * belonging to this TS.
11811  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11812  *
11813  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11814  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11815  * belonging to this TS.
11816  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11817  *
11818  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11819  * u32 attribute. Specify the minimum interval in microseconds between the
11820  * start of two successive SPs.
11821  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11822  *
11823  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11824  * u32 attribute. Specify the maximum interval in microseconds between the
11825  * start of two successive SPs.
11826  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11827  *
11828  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11829  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11830  * without arrival or transfer of an MPDU belonging to the TS before this TS
11831  * is deleted by the MAC entity at the HC.
11832  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11833  *
11834  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11835  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11836  * without arrival or transfer of an MSDU belonging to the TS before the
11837  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11838  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11839  * interval is always less than or equal to the inactivity interval.
11840  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11841  *
11842  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11843  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11844  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11845  * bounds of this TSPEC.
11846  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11847  *
11848  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11849  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11850  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11851  * bounds of this TSPEC.
11852  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11853  *
11854  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11855  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11856  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11857  * the bounds of this TSPEC.
11858  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11859  *
11860  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11861  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11862  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11863  * value of 0 indicates that there are no bursts.
11864  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11865  *
11866  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11867  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11868  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11869  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11870  *
11871  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11872  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11873  * and above the stated application rates required to transport an MSDU/A-MSDU
11874  * belonging to the TS in this TSPEC.
11875  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11876  */
11877 enum qca_wlan_vendor_attr_config_tspec {
11878 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11879 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11880 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11881 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11882 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11883 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11884 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11885 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11886 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11887 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11888 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11889 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11890 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11891 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11892 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11893 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11894 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11895 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11896 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11897 
11898 	/* keep last */
11899 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11900 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11901 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11902 };
11903 
11904 /**
11905  * enum qca_wlan_medium_assess_type - Type of medium assess request
11906  *
11907  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11908  */
11909 enum qca_wlan_medium_assess_type {
11910 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11911 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11912 };
11913 
11914 /**
11915  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11916  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11917  *
11918  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11919  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11920  * Specify the type of medium assess request and indicate its type in response.
11921  * Possible values are defined in enum qca_wlan_medium_assess_type.
11922  *
11923  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11924  * u32 attribute. Mandatory in CCA request.
11925  * Specify the assessment period in terms of seconds. Assessment result will be
11926  * sent as the response to the CCA request after the assessment period.
11927  *
11928  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11929  * u32 attribute. Mandatory in response to CCA request.
11930  * Total timer tick count of the assessment cycle.
11931  *
11932  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11933  * u32 attribute. Mandatory in response to CCA request.
11934  * Timer tick count of idle time in the assessment cycle.
11935  *
11936  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11937  * u32 attribute. Mandatory in response to CCA request.
11938  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11939  *
11940  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11941  * u32 attribute. Mandatory in response to CCA request.
11942  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11943  *
11944  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11945  * s32 attribute. Mandatory in response to CCA request.
11946  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11947  *
11948  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11949  * s32 attribute. Mandatory in response to CCA request.
11950  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11951  *
11952  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11953  * u8 attribute. Mandatory in congestion report request.
11954  * 1-enable 0-disable.
11955  *
11956  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11957  * u8 attribute. Mandatory in congestion report enable request and will be
11958  * ignored if present in congestion report disable request. Possible values are
11959  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11960  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11961  * congestion percentage reaches the configured threshold.
11962  *
11963  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11964  * u8 attribute. Optional in congestion report enable request and will be
11965  * ignored if present in congestion report disable request.
11966  * Specify the interval of congestion report event in terms of seconds. Possible
11967  * values are 1-255. Default value 1 will be used if this attribute is omitted
11968  * or using invalid values.
11969  *
11970  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11971  * u8 attribute. Mandatory in congestion report event.
11972  * Indicate the actual congestion percentage. Possible values are 0-100.
11973  */
11974 enum qca_wlan_vendor_attr_medium_assess {
11975 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11976 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11977 
11978 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11979 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11980 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11981 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11982 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11983 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11984 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11985 
11986 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11987 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11988 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11989 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11990 
11991 	/* keep last */
11992 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11993 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11994 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11995 };
11996 
11997 /**
11998  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11999  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12000  *
12001  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12002  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12003  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12004  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
12005  *
12006  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12007  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
12008  *
12009  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12010  * u8 attribute, required. indicates group id of Tx VDEV
12011  *
12012  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12013  * Nested attribute. This attribute shall be used by the driver to send
12014  * group information. The attributes defined in enum
12015  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12016  * are nested in this attribute.
12017  */
12018 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12019 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12020 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
12021 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12022 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12023 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
12024 
12025 	/* keep last */
12026 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12027 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12028 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12029 };
12030 
12031 /**
12032  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12033  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12034  *
12035  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12036  * u32 attribute, required. contains interface index.
12037  *
12038  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12039  * u8 attribute, required. 0 - means vdev is in down state.
12040  * 1- means vdev is in up state.
12041  */
12042 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12043 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12044 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12045 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12046 
12047 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12048 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12049 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12050 };
12051 
12052 /**
12053  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12054  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12055  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12056  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12057  * frame
12058  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12059  * Request frame.
12060  */
12061 enum qca_wlan_vendor_oci_override_frame_type {
12062 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12063 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12064 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12065 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12066 };
12067 
12068 /**
12069  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12070  *
12071  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12072  * STA interface has to be given while selecting the connection policies
12073  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12074  * An interface is set as primary through the attribute
12075  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12076  * applicable if the primary interface has not been set earlier.
12077  *
12078  * The intention is not to downgrade the primary STA performance, such as:
12079  * - Do not reduce the number of TX/RX chains of primary connection.
12080  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12081  *   chains.
12082  * - If using MCC, should set the MCC duty cycle of the primary connection to
12083  *   be higher than the secondary connection.
12084  *
12085  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12086  * subsequent STA connection shall be chosen to balance with the existing
12087  * concurrent STA's performance.
12088  * Such as
12089  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12090  *   capability.
12091  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12092  *   to the secondary.
12093  * - Prefer BSSID candidates which will help provide the best "overall"
12094  *   performance for all the STA connections.
12095  */
12096 enum qca_wlan_concurrent_sta_policy_config {
12097 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12098 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12099 };
12100 
12101 /**
12102  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
12103  *
12104  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12105  * interface.
12106  *
12107  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12108  * to meet gaming audio latency requirements.
12109  *
12110  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12111  * concurrencies to meet lossless audio streaming requirements.
12112  */
12113 enum qca_wlan_concurrent_ap_policy_config {
12114 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12115 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12116 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
12117 };
12118 
12119 /**
12120  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12121  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12122  *
12123  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
12124  * u8 attribute. Configures the concurrent STA policy configuration.
12125  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
12126 
12127  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12128  * u8 attribute. Configures the concurrent AP policy configuration.
12129  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
12130  */
12131 enum qca_wlan_vendor_attr_concurrent_policy {
12132 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12133 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12134 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
12135 
12136 	/* keep last */
12137 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12138 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12139 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
12140 
12141 };
12142 
12143 /* Compatibility defines for previously used enum
12144  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12145  * in any new implementation.
12146  */
12147 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12148 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12149 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12150 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12151 #define qca_wlan_vendor_attr_concurrent_sta_policy \
12152 	qca_wlan_vendor_attr_concurrent_policy
12153 
12154 /**
12155  * enum qca_sta_connect_fail_reason_codes - Defines values carried
12156  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12157  * attribute.
12158  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
12159  * for unicast probe request.
12160  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12161  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12162  * ath request.
12163  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12164  * received from AP.
12165  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
12166  * request.
12167  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12168  * assoc request.
12169  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
12170  * received from AP.
12171  */
12172 enum qca_sta_connect_fail_reason_codes {
12173 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12174 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12175 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12176 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12177 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12178 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12179 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12180 };
12181 
12182 /**
12183  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12184  * OCI override request. These attributes are used inside nested attribute
12185  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12186  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12187  *
12188  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12189  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12190  * attribute to specify the frame type in which the OCI is to be overridden.
12191  *
12192  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12193  * OCI frequency (in MHz) to override in the specified frame type.
12194  */
12195 enum qca_wlan_vendor_attr_oci_override {
12196 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12197 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12198 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12199 
12200 	/* keep last */
12201 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12202 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12203 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12204 };
12205 
12206 /**
12207  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12208  * filters defined in this enum are used in attribute
12209  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12210  *
12211  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12212  * shall filter the channels which are not usable because of coexistence with
12213  * cellular radio.
12214  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12215  * shall filter the channels which are not usable because of existing active
12216  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12217  *
12218  */
12219 enum qca_wlan_vendor_usable_channels_filter {
12220 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12221 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12222 };
12223 
12224 /**
12225  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12226  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12227  *
12228  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12229  * u32 attribute, required. Indicates the center frequency of the primary
12230  * channel in MHz.
12231  *
12232  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12233  * u32 attribute. Indicates the center frequency of the primary segment of the
12234  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12235  * 160 MHz, and 320 MHz channels.
12236  *
12237  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12238  * u32 attribute. Indicates the center frequency of the secondary segment of
12239  * 80+80 channel in MHz. This attribute is required only when
12240  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12241  *
12242  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12243  * u32 attribute, required. Indicates the bandwidth of the channel, possible
12244  * values are defined in enum nl80211_chan_width.
12245  *
12246  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12247  * u32 attribute, required. Indicates all the interface types for which this
12248  * channel is usable. This attribute encapsulates bitmasks of interface types
12249  * defined in enum nl80211_iftype.
12250  *
12251  */
12252 enum qca_wlan_vendor_attr_chan_info {
12253 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12254 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12255 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12256 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12257 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12258 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12259 
12260 	/* keep last */
12261 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12262 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12263 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12264 };
12265 
12266 /**
12267  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12268  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12269  *
12270  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12271  * u32 attribute. Indicates the bands from which the channels should be reported
12272  * in response. This attribute encapsulates bit masks of bands defined in enum
12273  * nl80211_band. Optional attribute, if not present in the request the driver
12274  * shall return channels from all supported bands.
12275  *
12276  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12277  * u32 attribute. Indicates all the interface types for which the usable
12278  * channels information is requested. This attribute encapsulates bitmasks of
12279  * interface types defined in enum nl80211_iftype. Optional attribute, if not
12280  * present in the request the driver shall send information of all supported
12281  * interface modes.
12282  *
12283  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12284  * u32 attribute. This attribute carries information of all filters that shall
12285  * be applied while populating usable channels information by the driver. This
12286  * attribute carries bit masks of different filters defined in enum
12287  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12288  * in the request the driver shall send information of channels without applying
12289  * any of the filters that can be configured through this attribute.
12290  *
12291  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12292  * Nested attribute. This attribute shall be used by the driver to send
12293  * usability information of each channel. The attributes defined in enum
12294  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12295  */
12296 enum qca_wlan_vendor_attr_usable_channels {
12297 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12298 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12299 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12300 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12301 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12302 
12303 	/* keep last */
12304 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12305 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12306 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12307 };
12308 
12309 /**
12310  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12311  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12312  *
12313  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12314  *	the list of radar history entries.
12315  *	Each entry contains freq, timestamp, and radar signal detect flag.
12316  *	The driver shall add an entry when CAC has finished, or radar signal
12317  *	has been detected post AP beaconing. The driver shall maintain at least
12318  *	8 entries in order to save CAC result for a 160 MHz channel.
12319  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12320  *	Channel frequency in MHz.
12321  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12322  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12323  *	or radar detection.
12324  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12325  *	This flag indicates radar signal has been detected.
12326  */
12327 enum qca_wlan_vendor_attr_radar_history {
12328 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12329 
12330 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12331 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12332 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12333 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12334 
12335 	/* keep last */
12336 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12337 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12338 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12339 };
12340 
12341 /**
12342  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12343  *
12344  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12345  *	target exited MCC state and cleared the quota information. In the
12346  *	command it clears MCC quota setting and restores adaptive scheduling.
12347  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12348  *      will not be changed.
12349  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12350  *      and the target may change the quota based on the data activity.
12351  */
12352 enum qca_wlan_vendor_mcc_quota_type {
12353 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12354 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12355 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12356 };
12357 
12358 /**
12359  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12360  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12361  * quota information or as a command to set the required MCC quota for an
12362  * interface.
12363  *
12364  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12365  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12366  * In a command this specifies the MCC quota type to be set for the interface.
12367  * In an event this provides the current quota type in force.
12368  * This is required in a command and an event.
12369  *
12370  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12371  * the list of channel quota entries.
12372  * In an event each entry contains the frequency and respective time quota for
12373  * all the MCC interfaces.
12374  * In a command it specifies the interface index and respective time quota.
12375  * In a command only one entry (ifindex, quota pair) may be specified.
12376  *
12377  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12378  * Channel frequency in MHz. This is present only in an event.
12379  *
12380  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12381  * Channel time quota expressed as percentage.
12382  * This is present in an event and a command.
12383  * In an command, the user shall specify the quota to be allocated for the
12384  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12385  * In an event this provides the existing quota for the channel.
12386  *
12387  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12388  * Specifies the interface index (netdev) for which the corresponding
12389  * configurations are applied. This is required in a command only. Only one
12390  * interface index may be specified. If not specified, the configuration is
12391  * rejected.
12392  */
12393 enum qca_wlan_vendor_attr_mcc_quota {
12394 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12395 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12396 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12397 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12398 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12399 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12400 
12401 	/* keep last */
12402 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12403 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12404 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12405 };
12406 
12407 /**
12408  * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
12409  * are used by the attribute
12410  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
12411  *
12412  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
12413  *  invoke roam.
12414  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
12415  *  detection failed when the roam trigger.
12416  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
12417  */
12418 
12419 enum qca_wlan_roam_stats_invoke_reason {
12420 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
12421 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
12422 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
12423 };
12424 
12425 /**
12426  * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
12427  * values are used by the attribute
12428  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
12429  *
12430  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
12431  *  roam by kickout.
12432  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
12433  *  trigger by kickout.
12434  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
12435  *  roam trigger by kickout.
12436  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
12437  *  roam trigger by kickout.
12438  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
12439  *  disappeared, and all TX is failing when roam trigger by kickout.
12440  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
12441  *   timeout when roam trigger by kickout.
12442  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
12443  *  peer has roamed to a repeater.
12444  */
12445 enum qca_wlan_roam_stats_tx_failures_reason {
12446 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
12447 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
12448 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
12449 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
12450 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
12451 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
12452 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
12453 };
12454 
12455 /**
12456  * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
12457  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
12458  *
12459  * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
12460  *  detailed reason for roam scan being aborted.
12461  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
12462  *  started due to high data RSSI during LOW-RSSI roaming.
12463  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
12464  *  started due to good link speed during LOW-RSSI roaming.
12465  * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
12466  *  due to high data RSSI during background roaming.
12467  * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
12468  *  started due to high beacon RSSI during background roaming
12469  */
12470 enum qca_wlan_roam_stats_abort_reason {
12471 	QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
12472 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
12473 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
12474 	QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
12475 	QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
12476 };
12477 
12478 /**
12479  * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
12480  * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
12481  */
12482 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
12483 	/* 32-bit unsigned value to indicate center frequency of the primary
12484 	 * channel in MHz for each roam scan channel.
12485 	 */
12486 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
12487 	/* 8-bit unsigned value to indicate channel scan type for each
12488 	 * roam scan channel. 0-passive, 1-active.
12489 	 */
12490 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
12491 	/* 32-bit unsigned value to indicate maximum scan time in milliseconds
12492 	 * for each roam scan channel.
12493 	 */
12494 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
12495 
12496 	/* keep last */
12497 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
12498 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
12499 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
12500 };
12501 
12502 /**
12503  * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
12504  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
12505  *
12506  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
12507  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
12508  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
12509  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
12510  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
12511  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
12512  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
12513  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
12514  */
12515 enum qca_wlan_roam_stats_frame_subtype {
12516 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
12517 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
12518 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
12519 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
12520 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
12521 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
12522 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
12523 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
12524 };
12525 
12526 /**
12527  * enum roam_frame_status - Specifies the valid values the vendor roam frame
12528  * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
12529  *
12530  * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
12531  *  sent or received successfully.
12532  * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
12533  *  receiving failed.
12534  */
12535 enum qca_wlan_roam_stats_frame_status {
12536 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
12537 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
12538 };
12539 
12540 /**
12541  * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
12542  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
12543  */
12544 enum qca_wlan_vendor_attr_roam_stats_frame_info {
12545 	/* 8-bit unsigned value to indicate the frame subtype during
12546 	 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
12547 	 */
12548 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
12549 	/* 8-bit unsigned value to indicate the frame is successful or failed
12550 	 * during roaming, one of the values in
12551 	 * qca_wlan_roam_stats_frame_status.
12552 	 */
12553 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
12554 	/* 64-bit unsigned value to indicate the timestamp for frame of
12555 	 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
12556 	 * when sent or received during roaming, timestamp in milliseconds
12557 	 * from system boot.
12558 	 */
12559 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
12560 
12561 	/* keep last */
12562 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
12563 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
12564 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
12565 };
12566 
12567 /**
12568  * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
12569  * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
12570  */
12571 enum qca_wlan_vendor_attr_roam_stats_info {
12572 	/* 64-bit unsigned value to indicate the timestamp when roam was
12573 	 * triggered by the firmware, timestamp in milliseconds from system
12574 	 * boot.
12575 	 */
12576 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
12577 	/* 32-bit unsigned value to indicate the roam trigger reason for the
12578 	 * last roaming attempted by the firmware. This can be queried either
12579 	 * in a connected state or disconnected state. The values of this
12580 	 * attribute represent the roam trigger reason codes, which
12581 	 * are defined in enum qca_roam_reason.
12582 	 */
12583 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
12584 	/* 8-bit unsigned value to indicate percentage of packets for which
12585 	 * the RX rate is lower than the RX rate threshold in total RX packets,
12586 	 * used for roaming trigger by per.
12587 	 */
12588 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
12589 	/* 8-bit unsigned value to indicate percentage of packets for which
12590 	 * the TX rate is lower than TX rate threshold in total TX packets,
12591 	 * used for roaming trigger by per.
12592 	 */
12593 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
12594 	/* 32-bit unsigned value to indicate final beacon miss count for
12595 	 * trigger reason of beacon miss.
12596 	 */
12597 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
12598 	/* 32-bit unsigned value to indicate consecutive beacon miss count
12599 	 * for trigger reason of beacon miss.
12600 	 */
12601 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
12602 	/* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
12603 	 * reason of beacon miss, 0 - success, 1 - fail.
12604 	 * If QOS-NULL TX status is successful, beacon miss final count and
12605 	 * consecutive beacon miss count will be reset to zero, and roam will
12606 	 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
12607 	 * count and consecutive beacon miss count continue to calculate until
12608 	 * roaming trigger by beacon miss.
12609 	 */
12610 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
12611 	/* 8-bit unsigned value to indicate connected AP RSSI in dBm
12612 	 * for trigger reason of poor RSSI.
12613 	 */
12614 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
12615 	/* 8-bit unsigned value to indicate RSSI threshold value in dBm
12616 	 * for trigger reason of poor RSSI.
12617 	 */
12618 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
12619 	/* 8-bit unsigned value to indicate RX link speed status
12620 	 * for trigger reason of poor RSSI, 0 - good link speed,
12621 	 * 1 - bad link speed.
12622 	 */
12623 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
12624 	/* 8-bit unsigned value to indicate connected AP RSSI in dBm
12625 	 * for trigger reason of better RSSI.
12626 	 */
12627 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
12628 	/* 8-bit unsigned value to indicate RSSI threshold value in dBm
12629 	 * for trigger reason of better RSSI.
12630 	 */
12631 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
12632 	/* 32-bit unsigned value to indicate RX throughput in bytes per second
12633 	 * for trigger reason of congestion.
12634 	 */
12635 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
12636 	/* 32-bit unsigned value to indicate TX throughput in bytes per second
12637 	 * for trigger reason of congestion.
12638 	 */
12639 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
12640 	/* 8-bit unsigned value to indicate roamable AP count
12641 	 * for trigger reason of congestion.
12642 	 */
12643 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
12644 	/* 8-bit unsigned value to indicate invoke reason, one of the values
12645 	 * defined in qca_wlan_roam_stats_invoke_reason.
12646 	 */
12647 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
12648 	/* 8-bit unsigned value to indicate request mode for trigger reason
12649 	 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
12650 	 */
12651 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
12652 	/* 32-bit unsigned value to indicate disassociate time in milliseconds
12653 	 * for trigger reason of BTM.
12654 	 */
12655 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
12656 	/* 32-bit unsigned value to indicate preferred candidate list valid
12657 	 * interval in milliseconds for trigger reason of BTM.
12658 	 */
12659 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
12660 	/* 8-bit unsigned value to indicate the number of preferred
12661 	 * candidates for trigger reason of BTM.
12662 	 */
12663 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
12664 	/* 8-bit unsigned value to indicate response status for trigger
12665 	 * reason of BTM, values are defined in IEEE Std 802.11-2020,
12666 	 * Table 9-428 (BTM status code definitions).
12667 	 */
12668 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
12669 	/* 32-bit unsigned value to indicate BSS termination timeout value
12670 	 * in milliseconds for trigger reason of BTM.
12671 	 */
12672 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
12673 	/* 32-bit unsigned value to indicate MBO associate retry timeout
12674 	 * value in milliseconds for trigger reason of BTM.
12675 	 */
12676 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
12677 	/* 8-bit unsigned value to indicate dialog token number
12678 	 * for trigger reason of BTM.
12679 	 */
12680 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
12681 	/* 8-bit unsigned value to indicate percentage of connected AP
12682 	 * channel congestion utilization for trigger reason of BSS load.
12683 	 */
12684 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
12685 	/* 8-bit unsigned value to indicate disconnection type
12686 	 * for trigger reason of disconnection. 1 - Deauthentication,
12687 	 * 2 - Disassociation.
12688 	 */
12689 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
12690 	/* 16-bit unsigned value to indicate deauthentication or disassociation
12691 	 * reason for trigger reason of disconnection, values are defined
12692 	 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
12693 	 */
12694 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
12695 	/* 32-bit unsigned value to indicate milliseconds of roam scan
12696 	 * periodicity when needing to roam to find a better AP for trigger
12697 	 * reason of periodic timer.
12698 	 */
12699 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
12700 	/* 8-bit unsigned value to indicate connected AP RSSI in dBm for
12701 	 * trigger reason of background scan.
12702 	 */
12703 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
12704 	/* 8-bit unsigned value to indicate data RSSI in dBm for trigger reason
12705 	 * of background scan.
12706 	 */
12707 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
12708 	/* 8-bit unsigned value to indicate data RSSI threshold in dBm
12709 	 * for trigger reason of background scan.
12710 	 */
12711 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
12712 	/* 32-bit unsigned value to indicate consecutive TX failure threshold
12713 	 * for trigger reason of TX failures.
12714 	 */
12715 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
12716 	/* 8-bit unsigned value to indicate TX failure reason for trigger
12717 	 * reason of TX failures, one of the values defined in
12718 	 *  qca_wlan_roam_stats_tx_failures_reason.
12719 	 */
12720 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
12721 	/* 8-bit unsigned value to indicate detail abort reason. One of the
12722 	 * values in enum qca_wlan_roam_stats_abort_reason.
12723 	 */
12724 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
12725 	/* 8-bit unsigned value to indicate data RSSI in dBm when aborting the
12726 	 * roam scan.
12727 	 */
12728 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
12729 	/* 8-bit unsigned value to indicate data RSSI threshold in dBm when
12730 	 * aborting the roam scan.
12731 	 */
12732 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
12733 	/* 8-bit unsigned value to indicate data RSSI threshold in RX link
12734 	 * speed status when aborting the roam scan.
12735 	 * 0 - good link speed, 1 - bad link speed
12736 	 */
12737 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
12738 	/* 8-bit unsigned value to indicate roaming scan type.
12739 	 * 0 - Partial roam scan, 1 - Full roam scan
12740 	 */
12741 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
12742 	/* 8-bit unsigned value to indicate roaming result, used in STA mode
12743 	 * only.
12744 	 * 0-Roaming is successful, 1-Roaming is failed
12745 	 */
12746 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
12747 	/* 8-bit unsigned value to indicate the roam fail reason for the
12748 	 * last failed roaming attempt by the firmware. Different roam failure
12749 	 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
12750 	 * This can be queried either in connected state or disconnected state.
12751 	 */
12752 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
12753 	/* Nested attribute. Indicate roam scan info for each channel, the
12754 	 * attributes defined in enum
12755 	 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
12756 	 * this attribute.
12757 	 */
12758 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
12759 	/* 32-bit unsigned value to indicate total scan time during roam scan
12760 	 * all channels, time in milliseconds.
12761 	 */
12762 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
12763 	/* Nested attribute. This attribute shall be used by the driver to
12764 	 * send roam information of each subtype. The attributes defined in
12765 	 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
12766 	 * this attribute.
12767 	 */
12768 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
12769 
12770 	/* keep last */
12771 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
12772 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
12773 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
12774 };
12775 
12776 /**
12777  * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
12778  * report cached roam info from the driver to user space, enum values are used
12779  * for netlink attributes sent with the
12780  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
12781  */
12782 enum qca_wlan_vendor_attr_roam_cached_stats {
12783 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
12784 	/* Nested attribute, this attribute contains nested array roam info
12785 	 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
12786 	 */
12787 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
12788 
12789 	/* keep last */
12790 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
12791 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
12792 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
12793 };
12794 
12795 /**
12796  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12797  * radio configurations present in each radio combination.
12798  *
12799  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12800  * the band info in the radio configuration. Uses the enum qca_set_band values.
12801  *
12802  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12803  * the number of antennas info in the radio configuration.
12804  */
12805 enum qca_wlan_vendor_attr_supported_radio_cfg {
12806 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12807 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12808 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12809 
12810 	/* keep last */
12811 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12812 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12813 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12814 };
12815 
12816 /**
12817  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12818  * radio combinations supported by the device.
12819  *
12820  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12821  * provides the radio configurations present in the radio combination.
12822  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12823  * This attribute provides the values for radio combination matrix.
12824  * For standalone config, the number of config values is one and the config
12825  * carries the band and antenna information for standalone configuration. For
12826  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12827  * configuration the number of config values is two and the config carries the
12828  * band and antenna information for each simultaneous radio.
12829  */
12830 enum qca_wlan_vendor_attr_radio_combination {
12831 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12832 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12833 
12834 	/* keep last */
12835 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12836 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12837 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12838 };
12839 
12840 /**
12841  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12842  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12843  *
12844  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12845  * provides the radio combinations supported by the device.
12846  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12847  * For example, in the radio combination matrix for a device which has two
12848  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12849  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12850  * combinations is 5 and the radio combinations are
12851  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12852  * {{5 GHz 2X2}}, //Standalone 5 GHz
12853  * {{6 GHz 2X2}}, //Standalone 6 GHz
12854  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12855  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12856  * The band and antenna info together as nested data provides one radio config.
12857  * Standalone configuration has one config with band and antenna nested data.
12858  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12859  * have two nested band and antenna info data.
12860  */
12861 enum qca_wlan_vendor_attr_radio_combination_matrix {
12862 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12863 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12864 
12865 	/* keep last */
12866 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12867 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12868 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12869 };
12870 
12871 /**
12872  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12873  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12874  *
12875  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12876  * Enable mDNS offload. This attribute is mandatory to enable
12877  * mDNS offload feature. If this attribute is not present, mDNS offload
12878  * is disabled.
12879  *
12880  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12881  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12882  * attribute is mandatory when enabling the feature, and not required when
12883  * disabling the feature.
12884  *
12885  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12886  * the following attributes:
12887  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12888  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12889  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12890  *
12891  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12892  * It consists of a hostname and ".local" as the domain name. The character
12893  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12894  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
12895  * supported per vdev.
12896  * For example: myphone.local
12897  *
12898  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12899  * u16 attribute. It specifies the total number of resource records present
12900  * in the answer section of the answer payload. This attribute is needed by the
12901  * firmware to populate the mDNS response frame for mNDS queries without having
12902  * to parse the answer payload.
12903  *
12904  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
12905  * attribute sent by the mdnsResponder from userspace. It contains resource
12906  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
12907  * payload is passed down to firmware and is transmitted in response to
12908  * mDNS queries.
12909  * The maximum size of the answer payload supported is 512 bytes.
12910  */
12911 enum qca_wlan_vendor_attr_mdns_offload {
12912 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12913 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12914 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12915 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12916 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12917 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12918 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12919 
12920 	/* keep last */
12921 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12922 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12923 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12924 };
12925 
12926 /**
12927  * enum qca_vendor_attr_diag_event_type  - Attributes used by
12928  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
12929  *
12930  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
12931  * driver/firmware during Connection request from Userspace. Uses the
12932  * following attributes of enum qca_wlan_vendor_attr_diag:
12933  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12934  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
12935  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12936  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
12937  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12938  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
12939  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
12940  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
12941  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
12942  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12943  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
12944  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
12945  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12946  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12947  *
12948  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
12949  * driver/firmware when a connection is failed. Uses the
12950  * following attributes of enum qca_wlan_vendor_attr_diag:
12951  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12952  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12953  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12954  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12955  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12956  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12957  *
12958  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
12959  * driver/firmware during Authentication request from a device. Uses the
12960  * following attributes of enum qca_wlan_vendor_attr_diag:
12961  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12962  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12963  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12964  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12965  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12966  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12967  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12968  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12969  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12970  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12971  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12972  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12973  *
12974  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
12975  * driver/firmware when device receives an authentication response. Uses the
12976  * following attributes of enum qca_wlan_vendor_attr_diag:
12977  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12978  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12979  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12980  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12981  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12982  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12983  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12984  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12985  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12986  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12987  *
12988  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
12989  * driver/firmware when device sends an association request. Uses the
12990  * following attributes of enum qca_wlan_vendor_attr_diag:
12991  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12992  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12993  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12994  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12995  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12996  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12997  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12998  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12999  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13000  *
13001  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
13002  * driver/firmware when device receives an association response. Uses the
13003  * following attributes of enum qca_wlan_vendor_attr_diag:
13004  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13005  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13006  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13007  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13008  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13009  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13010  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13011  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13012  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
13013  *
13014  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
13015  * driver/userspace when device receives a deauthentication response. Uses the
13016  * following attributes of enum qca_wlan_vendor_attr_diag:
13017  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13018  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13019  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13020  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13021  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13022  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13023  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13024  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13025  *
13026  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
13027  * driver/userspace when device sends a deauthentication request. Uses the
13028  * following attributes of enum qca_wlan_vendor_attr_diag:
13029  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13030  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13031  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13032  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13033  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13034  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13035  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13036  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13037  *
13038  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
13039  * driver/firmware when device receives a disassociation response. Uses the
13040  * following attributes of enum qca_wlan_vendor_attr_diag:
13041  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13042  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13043  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13044  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13045  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13046  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13047  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13048  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13049  *
13050  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
13051  * driver/firmware when device sends a disassociation request. Uses the
13052  * following attributes of enum qca_wlan_vendor_attr_diag:
13053  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13054  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13055  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13056  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13057  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13058  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13059  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13060  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13061  *
13062  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
13063  * driver/firmware when device did not receive beacon packets during connection.
13064  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
13065  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13066  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13067  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13068  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13069  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13070  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13071  *
13072  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
13073  * driver/firmware when Roaming scan is triggered. Uses the following
13074  * attributes of enum qca_wlan_vendor_attr_diag:
13075  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13076  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
13077  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
13078  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13079  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13080  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
13081  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
13082  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13083  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13084  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13085  *
13086  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
13087  * driver/firmware Roam scanning is processed. Uses the following
13088  * attributes of enum qca_wlan_vendor_attr_diag:
13089  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13090  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13091  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
13092  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
13093  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13094  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13095  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13096  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13097  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
13098  *
13099  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
13100  * driver/firmware to provide Roam information of the current AP. Uses the
13101  * following attributes of enum qca_wlan_vendor_attr_diag:
13102  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13103  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13104  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13105  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13106  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13107  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
13108  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13109  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13110  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13111  *
13112  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
13113  * driver/firmware to provide Roam information of the candid AP. Uses the
13114  * following attributes of enum qca_wlan_vendor_attr_diag:
13115  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13116  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13117  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13118  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13119  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13120  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
13121  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
13122  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13123  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13124  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13125  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13126  *
13127  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
13128  * driver/firmware to provide Roam result after selecting a candidate. Uses the
13129  * following attributes of enum qca_wlan_vendor_attr_diag:
13130  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13131  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
13132  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13133  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13134  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13135  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13136  *
13137  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
13138  * driver/firmware to indicate Roam Cancellation due to higher priority events.
13139  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13140  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13141  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13142  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13143  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13144  *
13145  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
13146  * /firmware when STA sends a BTM request frame. Uses the following attributes
13147  * of enum qca_wlan_vendor_attr_diag:
13148  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13149  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13150  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
13151  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
13152  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
13153  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
13154  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13155  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13156  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13157  *
13158  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
13159  * driver/firmware when STA queries about BTM transition. Uses the following
13160  * attributes of enum qca_wlan_vendor_attr_diag:
13161  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13162  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13163  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
13164  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13165  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13166  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13167  *
13168  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
13169  * /firmware when STA receives BTM response frame. Uses the following
13170  * attributes of enum qca_wlan_vendor_attr_diag:
13171  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13172  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13173  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
13174  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
13175  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
13176  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13177  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13178  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13179  *
13180  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
13181  * driver/firmware to provide BTM request candidate information. Uses the
13182  * following attributes of enum qca_wlan_vendor_attr_diag:
13183  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13184  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13185  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
13186  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13187  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13188  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13189  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13190  *
13191  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
13192  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
13193  * enum qca_wlan_vendor_attr_diag:
13194  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13195  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
13196  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13197  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
13198  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13199  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13200  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13201  *
13202  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
13203  * driver/firmware to indicate DHCP discovery to AP. Uses the following
13204  * attributes of enum qca_wlan_vendor_attr_diag:
13205  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13206  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13207  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13208  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13209  *
13210  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
13211  * driver/firmware to indicate DHCP offering to AP. Uses the following
13212  * attributes of enum qca_wlan_vendor_attr_diag:
13213  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13214  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13215  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13216  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13217  *
13218  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
13219  * driver/firmware to indicate driver sent DHCP packets. Uses the following
13220  * attributes of enum qca_wlan_vendor_attr_diag:
13221  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13222  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13223  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13224  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13225  *
13226  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
13227  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
13228  * attributes of enum qca_wlan_vendor_attr_diag:
13229  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13230  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13231  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13232  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13233  *
13234  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
13235  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
13236  * following attributes of enum qca_wlan_vendor_attr_diag:
13237  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13238  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13239  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13240  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13241  *
13242  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
13243  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
13244  * enum qca_wlan_vendor_attr_diag:
13245  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13246  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13247  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13248  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13249  *
13250  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
13251  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
13252  * enum qca_wlan_vendor_attr_diag:
13253  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13254  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13255  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13256  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13257  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13258  *
13259  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
13260  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
13261  * enum qca_wlan_vendor_attr_diag:
13262  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13263  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13264  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13265  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13266  *
13267  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
13268  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
13269  * enum qca_wlan_vendor_attr_diag:
13270  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13271  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13272  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13273  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13274  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13275  *
13276  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
13277  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
13278  * enum qca_wlan_vendor_attr_diag:
13279  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13280  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13281  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13282  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13283  *
13284  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
13285  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
13286  * enum qca_wlan_vendor_attr_diag:
13287  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13288  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13289  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13290  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13291  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13292  *
13293  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
13294  * /firmware to indicate device sent EAP request. Uses the following attributes
13295  * of enum qca_wlan_vendor_attr_diag:
13296  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13297  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
13298  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
13299  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13300  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13301  *
13302  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
13303  * /firmware to indicate device received EAP response. Uses the following
13304  * attributes of enum qca_wlan_vendor_attr_diag:
13305  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13306  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
13307  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
13308  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13309  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13310  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13311  *
13312  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
13313  * /firmware to indicate EAP frame transmission is success. Uses the following
13314  * attributes of enum qca_wlan_vendor_attr_diag:
13315  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13316  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13317  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13318  *
13319  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
13320  * /firmware to indicate EAP frame transmission is failed. Uses the following
13321  * attributes of enum qca_wlan_vendor_attr_diag:
13322  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13323  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13324  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13325  *
13326  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
13327  * /firmware to indicate Reassocation request. Uses the following attributes
13328  * of enum qca_wlan_vendor_attr_diag:
13329  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13330  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13331  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13332  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13333  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13334  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13335  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13336  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
13337  *
13338  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
13339  * /firmware to indicate Reassocation response. Uses the following attributes
13340  * of enum qca_wlan_vendor_attr_diag:
13341  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13342  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13343  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13344  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13345  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
13346  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13347  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13348  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
13349  */
13350 enum qca_vendor_attr_diag_event_type {
13351 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
13352 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
13353 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
13354 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
13355 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
13356 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
13357 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
13358 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
13359 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
13360 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
13361 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
13362 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
13363 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
13364 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
13365 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
13366 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
13367 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
13368 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
13369 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
13370 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
13371 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
13372 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
13373 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
13374 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
13375 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
13376 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
13377 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
13378 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
13379 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
13380 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
13381 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
13382 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
13383 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
13384 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
13385 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
13386 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
13387 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
13388 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
13389 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
13390 
13391 	/* keep last */
13392 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
13393 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
13394 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
13395 };
13396 
13397 /**
13398  * enum qca_wlan_vendor_tx_status - Used by attribute
13399  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
13400  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
13401  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
13402  * is not received.
13403  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
13404  * acknowledged.
13405  */
13406 enum qca_wlan_vendor_tx_status {
13407 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
13408 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
13409 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
13410 };
13411 
13412 /**
13413  * enum qca_roam_sub_reason - Used by attribute
13414  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
13415  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
13416  * timer expiry
13417  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
13418  * to no candidate found during LOW RSSI trigger.
13419  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
13420  * Imminent timeout
13421  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
13422  * failure
13423  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
13424  * emergency like deauth/disassoc.
13425  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
13426  * BSS transition management request.
13427  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
13428  * Roam scan triggered due to Low RSSI periodic timer
13429  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
13430  * Roam trigger due to periodic timer after no candidate found during CU
13431  * inactivity timer scan.
13432  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
13433  * found in high CU roam trigger.
13434  */
13435 enum qca_roam_sub_reason {
13436 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
13437 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
13438 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
13439 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
13440 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
13441 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
13442 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
13443 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
13444 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
13445 };
13446 
13447 /*
13448  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
13449  * to send diag data to the userspace. The attributes defined in this enum are
13450  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
13451  *
13452  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
13453  * by driver/firmware to send diag data. Each instance of this nested attribute
13454  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
13455  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
13456  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
13457  * nested attribute can be sent with one vendor command
13458  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
13459  *
13460  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
13461  * attribute indicates the type of the diag event from driver/firmware. Uses
13462  * values from enum qca_vendor_attr_diag_event_type.
13463  *
13464  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
13465  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
13466  * API to send time of the day in microseconds to userspace.
13467  *
13468  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
13469  * This attribute indicates firmware timestamp in microseconds.
13470  *
13471  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
13472  * indicates wlan interface index.
13473  *
13474  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
13475  * indicates 6-byte MAC address representing the BSSID of the AP.
13476  *
13477  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
13478  * indicates the 6-byte MAC address representing the BSSID hint sent in
13479  * the connect request.
13480  *
13481  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
13482  * indicates the SSID in u8 array with a maximum length of 32.
13483  *
13484  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
13485  * indicates the frequency of AP in MHz.
13486  *
13487  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
13488  * indicates frequency hint given in the connect request in MHz.
13489  *
13490  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
13491  * This attribute indicates RSSI of the 802.11 frame in dBm.
13492  *
13493  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
13494  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
13495  * Table 12-10—Integrity and key wrap algorithms.
13496  *
13497  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
13498  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
13499  * Table 12-10—Integrity and key wrap algorithms.
13500  *
13501  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
13502  * attribute indicates Group management cipher suite defined in IEEE Std
13503  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
13504  *
13505  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
13506  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
13507  * Table 9-151—AKM suite selectors.
13508  *
13509  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
13510  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
13511  * Section 9.4.1.1 Authentication Algorithm Number field.
13512  *
13513  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
13514  * indicates bluetooth COEX is active or not.
13515  *
13516  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
13517  * attribute indicates SAE authentication frame type. The possible values are
13518  * 1 - SAE commit frame
13519  * 2 - SAE confirm frame
13520  *
13521  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
13522  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
13523  * Table 9-49—Reason codes.
13524  *
13525  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
13526  * attribute indicates sequence number of the frame defined in IEEE Std
13527  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
13528  * field.
13529  *
13530  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
13531  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
13532  * 9-50—Status codes.
13533  *
13534  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
13535  * Uses enum qca_wlan_vendor_tx_status.
13536  *
13537  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
13538  * indicates if frame transmission is retried.
13539  *
13540  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
13541  * Uses enum qca_roam_reason.
13542  *
13543  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
13544  * Uses enum qca_roam_sub_reason.
13545  *
13546  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
13547  * indicates channel utilization in percentage.
13548  *
13549  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
13550  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
13551  *
13552  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
13553  * This attribute indicates current RSSI threshold in dBm.
13554  *
13555  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
13556  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
13557  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
13558  *
13559  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
13560  * This attribute indicates number of scanned candidate APs.
13561  *
13562  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
13563  * attribute indicates roam AP rank computed based on connection preference.
13564  *
13565  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
13566  * This attribute indicates expected throughput in kbps.
13567  *
13568  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
13569  * This attribute indicates the preference value of candidate AP / connected AP
13570  * calculated in the firmware.
13571  *
13572  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
13573  * indicates connection/roaming is successful or not.
13574  *
13575  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
13576  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
13577  * IE present in the BTM frame.
13578  *
13579  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
13580  * This attribute indicates BTM WTC duration in milliseconds.
13581  *
13582  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
13583  * indicates dialog token value of BTM query/request/response frames.
13584  *
13585  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
13586  * attribute indicates the Transition Reason field indicates the reason why
13587  * a transition attempt occurred and contains one of the values defined in IEEE
13588  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
13589  *
13590  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
13591  * indicates BTM mode defined in IEEE Std 802.11‐2020
13592  * Figure 9-924—Request Mode field format.
13593  *
13594  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
13595  * This attribute indicates the Disassociation Timer field which is the number
13596  * of beacon transmission times (TBTTs) until the serving AP will send a
13597  * Disassociation frame to this STA.
13598  *
13599  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
13600  * This attribute indicates BTM validity interval field in TBTTs defined in
13601  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
13602  * Action field format.
13603  *
13604  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
13605  * This attribute indicates BTM candidate list entries.
13606  *
13607  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
13608  * This attribute indicates network preference for BTM transition defined in
13609  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
13610  *
13611  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
13612  * This attribute indicates BTM transition status code defined in IEEE Std
13613  * 802.11‐2020 Table 9-428—BTM status code definitions.
13614  *
13615  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
13616  * This attribute indicates BSS termination delay defined in IEEE Std
13617  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
13618  *
13619  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
13620  * This attribute indicates 6-byte MAC address representing the BSSID of the
13621  * BSS that the non-AP STA transitions to.
13622  *
13623  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
13624  * indicates EAP frame type. The methods are enumerated by IANA at
13625  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
13626  *
13627  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
13628  * indicates EAP frame length.
13629  *
13630  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
13631  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
13632  * (Time from boot but not the time spent in suspend) to send in microseconds
13633  * to userspace.
13634  *
13635  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
13636  * indicates the association id received in the (re)association response frame
13637  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
13638  */
13639 enum qca_wlan_vendor_attr_diag {
13640 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
13641 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
13642 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
13643 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
13644 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
13645 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
13646 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
13647 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
13648 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
13649 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
13650 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
13651 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
13652 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
13653 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
13654 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
13655 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
13656 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
13657 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
13658 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
13659 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
13660 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
13661 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
13662 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
13663 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
13664 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
13665 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
13666 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
13667 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
13668 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
13669 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
13670 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
13671 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
13672 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
13673 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
13674 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
13675 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
13676 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
13677 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
13678 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
13679 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
13680 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
13681 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
13682 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
13683 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
13684 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
13685 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
13686 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
13687 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
13688 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
13689 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
13690 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
13691 
13692 	/* keep last */
13693 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
13694 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
13695 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
13696 };
13697 
13698 /**
13699  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13700  * data types to be sent over the monitor interface.
13701  */
13702 enum qca_wlan_vendor_monitor_data_frame_type {
13703 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13704 
13705 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
13706 	not set */
13707 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13708 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13709 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13710 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13711 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13712 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13713 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13714 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13715 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13716 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13717 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13718 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13719 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13720 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13721 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13722 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13723 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13724 };
13725 
13726 /**
13727  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13728  * mgmt types to be sent over the monitor interface.
13729  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
13730  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
13731  * except the Beacons. Valid only in the Connect state.
13732  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13733  * BSSID Beacons. Valid only in the Connect state.
13734  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
13735  * the Beacons obtained during the scan (off channel and connected channel)
13736  * when in connected state.
13737  */
13738 
13739 enum qca_wlan_vendor_monitor_mgmt_frame_type {
13740 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13741 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
13742 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
13743 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13744 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13745 };
13746 
13747 /**
13748  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13749  * ctrl types to be sent over the monitor interface.
13750  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
13751  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
13752  */
13753 enum qca_wlan_vendor_monitor_ctrl_frame_type {
13754 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13755 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
13756 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13757 };
13758 
13759 /**
13760  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13761  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13762  * monitor mode.
13763  *
13764  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
13765  * Represents the tx data packet type to be monitored (u32). These data packets
13766  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13767  *
13768  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
13769  * Represents the tx data packet type to be monitored (u32). These data packets
13770  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13771  *
13772  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
13773  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13774  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13775  *
13776  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
13777  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13778  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13779  *
13780  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
13781  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13782  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13783  *
13784  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
13785  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13786  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13787  *
13788  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
13789  * u32 attribute, An interval only for the connected beacon interval, which
13790  * expects that the connected BSSID's beacons shall be sent on the monitor
13791  * interface only on this specific interval.
13792  */
13793 enum qca_wlan_vendor_attr_set_monitor_mode {
13794 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13795 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13796 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13797 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13798 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13799 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13800 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13801 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13802 
13803 	/* keep last */
13804 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13805 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13806 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13807 
13808 };
13809 
13810 /**
13811  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13812  * Bits will be set to 1 if the corresponding state is enabled.
13813  *
13814  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13815  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13816  */
13817 enum qca_wlan_vendor_roam_scan_state {
13818 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13819 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13820 };
13821 
13822 /**
13823  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13824  * Bits will be set to 1 if the corresponding event is notified.
13825  *
13826  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13827  * carries the trigger reason. When set, it is expected that the roam event
13828  * carries the respective reason via the attribute
13829  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13830  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13831  *
13832  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13833  * carries the roam fail reason. When set, it is expected that the roam event
13834  * carries the respective reason via the attribute
13835  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13836  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13837  *
13838  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13839  * event carries the roam invoke fail reason. When set, it is expected that
13840  * the roam event carries the respective reason via the attribute
13841  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13842  *
13843  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13844  * carries the roam scan state. When set, it is expected that the roam event
13845  * carries the respective scan state via the attribute
13846  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13847  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13848  */
13849 enum qca_wlan_vendor_roam_event_type {
13850 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13851 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13852 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13853 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13854 };
13855 
13856 /**
13857  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13858  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13859  *
13860  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13861  * representing the BSSID of the AP to which the Roam is attempted.
13862  *
13863  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13864  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13865  * attempted.
13866  *
13867  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
13868  * on which the roam is attempted.
13869  *
13870  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13871  * STA mode only. This represents the roam fail reason for the last failed
13872  * roaming attempt by the firmware for the specific BSSID. Different roam
13873  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13874  */
13875 enum qca_wlan_vendor_attr_roam_events_candidate_info {
13876 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13877 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13878 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13879 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13880 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13881 
13882 	/* keep last */
13883 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13884 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13885 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13886 };
13887 
13888 /**
13889  * enum qca_wlan_vendor_attr_roam_events - Used by the
13890  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13891  * roam events to the driver or notify these events from the driver.
13892  *
13893  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13894  * driver/firmware to enable/disable the notification of roam events. It's a
13895  * mandatory attribute and used only in the request from the userspace to the
13896  * host driver. 1-Enable, 0-Disable.
13897  * If the roaming is totally offloaded to the firmware, this request when
13898  * enabled shall mandate the firmware to notify all the relevant roam events
13899  * represented by the below attributes. If the host is in the suspend mode,
13900  * the behavior of the firmware to notify these events is guided by
13901  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13902  * these events in the suspend state, the firmware is expected to wake up the
13903  * host before the respective events are notified. Please note that such a
13904  * request to get the events in the suspend state will have a definite power
13905  * implication.
13906  *
13907  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13908  * that the roam events need to be notified in the suspend state too. By
13909  * default, these roam events are notified in the resume state. With this flag,
13910  * the roam events are notified in both resume and suspend states.
13911  * This attribute is used in the request from the userspace to the host driver.
13912  *
13913  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13914  * Represents the different roam event types, signified by the enum
13915  * qca_wlan_vendor_roam_event_type.
13916  * Each bit of this attribute represents the different roam even types reported
13917  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13918  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13919  *
13920  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13921  * mode only. This represents the roam trigger reason for the last roaming
13922  * attempted by the firmware. Each bit of this attribute represents the
13923  * different roam trigger reason code which are defined in enum
13924  * qca_vendor_roam_triggers.
13925  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13926  *
13927  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13928  * STA mode only. This represents the roam invoke fail reason for the last
13929  * failed roam invoke. Different roam invoke failure reason codes
13930  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13931  *
13932  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13933  * for which the roam is attempted. Each entry is a nested attribute defined
13934  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13935  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13936  *
13937  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13938  * the scan state on which the roam events need to be notified. The values for
13939  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13940  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13941  *
13942  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13943  * u32 values. List of frequencies in MHz considered for a roam scan.
13944  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13945  */
13946 
13947 enum qca_wlan_vendor_attr_roam_events {
13948 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13949 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13950 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13951 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13952 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13953 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13954 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13955 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13956 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13957 
13958 	/* keep last */
13959 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13960 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13961 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
13962 };
13963 
13964 /*
13965  * enum qca_wlan_ratemask_params_type - Rate mask config type.
13966  *
13967  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
13968  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13969  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13970  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13971  */
13972 enum qca_wlan_ratemask_params_type {
13973 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13974 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13975 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13976 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13977 };
13978 
13979 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
13980  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13981  * This is used to set the rate mask value to be used in rate selection.
13982  *
13983  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13984  * Array of nested containing attributes
13985  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13986  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13987  *
13988  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13989  * the different phy types to which the rate mask config is to be applied.
13990  * The values for this attribute are referred from enum
13991  * qca_wlan_vendor_ratemask_params_type.
13992  *
13993  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13994  * A bit value of 1 represents rate is enabled and a value of 0
13995  * represents rate is disabled.
13996  * For HE targets, 12 bits correpond to one NSS setting.
13997  * b0-13  => NSS1, MCS 0-13
13998  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13999  * For VHT targets, 10 bits correspond to one NSS setting.
14000  * b0-9   => NSS1, MCS 0-9
14001  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
14002  * For HT targets, 8 bits correspond to one NSS setting.
14003  * b0-7  => NSS1, MCS 0-7
14004  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
14005  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
14006  */
14007 
14008 enum qca_wlan_vendor_attr_ratemask_params {
14009 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
14010 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
14011 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
14012 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
14013 
14014 	/* keep last */
14015 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
14016 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
14017 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
14018 };
14019 
14020 /**
14021  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
14022  * the policy to flush pending frames, configured via
14023  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
14024  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
14025  *
14026  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
14027  * the flush policy configured before. This command basically disables the
14028  * flush config set by the user.
14029  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
14030  * the flush policy to be immediate. All pending packets for the peer/TID are
14031  * flushed when this command/policy is received.
14032  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
14033  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
14034  * are flushed when the end of TWT SP is reached.
14035  */
14036 enum qca_wlan_vendor_flush_pending_policy  {
14037 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
14038 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
14039 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
14040 };
14041 
14042 /**
14043  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
14044  * flushing pending traffic in firmware.
14045  *
14046  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
14047  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
14048  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
14049  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
14050  * flush packets with access category. This is optional. See below.
14051  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
14052  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
14053  * bit to 1 to act upon the TID. This is optional. Either this attribute or
14054  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
14055  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
14056  * it is an error.
14057  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
14058  * packets corresponding to the peer/TID provided. It is a u32 value,
14059  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
14060  * value is honored only when TID mask is provided. This is not honored when AC
14061  * mask is provided.
14062  */
14063 enum qca_wlan_vendor_attr_flush_pending {
14064 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
14065 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
14066 	QCA_WLAN_VENDOR_ATTR_AC = 2,
14067 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
14068 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
14069 	/* keep last */
14070 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
14071 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
14072 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
14073 };
14074 
14075 /**
14076  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
14077  *	for) or drop existing PASN security association for the listed the
14078  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
14079  *	to userspace.
14080  *
14081  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
14082  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
14083  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
14084  *	the driver to userspace to inform that the existing PASN keys of the
14085  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
14086  *	not valid anymore.
14087  */
14088 enum qca_wlan_vendor_pasn_action {
14089 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
14090 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
14091 };
14092 
14093 /**
14094  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
14095  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
14096  *
14097  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
14098  *	event from the driver to userspace and represents the local MAC address
14099  *	to be used for PASN handshake. When this attribute is present, userspace
14100  *	shall use the source address specified in this attribute by the driver
14101  *	for PASN handshake with peer device.
14102  *	This attribute is required in a command response from userspace to the
14103  *	driver and represents the MAC address that was used in PASN handshake
14104  *	with the peer device.
14105  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
14106  *	peer device to which PASN handshake is requested in an event from the
14107  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14108  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
14109  *	Indicates the MAC address of the peer device for which the keys are to
14110  *	be invalidated in an event from the driver to userspace when
14111  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14112  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
14113  *	Indicates the MAC address of the peer device for which the status is
14114  *	being sent in a status report from userspace to the driver.
14115  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
14116  *	in the event from the driver to userspace. When set, userspace is
14117  *	required to derive LTF key seed from KDK and set it to the driver.
14118  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
14119  *	attribute is used in the command response from userspace to the driver.
14120  *	If present, it indicates the successful PASN handshake with the peer. If
14121  *	this flag is not present, it indicates that the PASN handshake with the
14122  *	peer device failed.
14123  */
14124 enum qca_wlan_vendor_attr_pasn_peer {
14125 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
14126 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
14127 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
14128 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
14129 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
14130 
14131 	/* keep last */
14132 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
14133 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
14134 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
14135 };
14136 
14137 /**
14138  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
14139  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
14140  *
14141  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
14142  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
14143  *	from the driver to userspace.
14144  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
14145  *	details for each peer and used in both an event and a command response.
14146  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
14147  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
14148  */
14149 enum qca_wlan_vendor_attr_pasn {
14150 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
14151 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
14152 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
14153 
14154 	/* keep last */
14155 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
14156 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
14157 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
14158 };
14159 
14160 /**
14161  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
14162  *	the ranging security context derived from PASN for each peer. Used in
14163  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
14164  *
14165  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
14166  *	context for the peer.
14167  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
14168  *	context for the peer.
14169  */
14170 enum qca_wlan_vendor_secure_ranging_ctx_action {
14171 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
14172 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
14173 };
14174 
14175 /**
14176  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
14177  *	used for deriving PASN keys to the driver. Used in
14178  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
14179  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
14180  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
14181  */
14182 enum qca_wlan_vendor_sha_type {
14183 	QCA_WLAN_VENDOR_SHA_256,
14184 	QCA_WLAN_VENDOR_SHA_384,
14185 };
14186 
14187 /**
14188  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
14189  *	to set security context for the PASN peer from userspace to the driver.
14190  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
14191  *
14192  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
14193  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
14194  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
14195  *	was used during the PASN handshake.
14196  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
14197  *	the peer device for which secure ranging context is being configured.
14198  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
14199  *	hash algorithm to be used, possible values are defined in enum
14200  *	qca_wlan_vendor_sha_type.
14201  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
14202  *	the temporal key generated from the PASN handshake. The length of this
14203  *	attribute is dependent on the value of
14204  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
14205  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
14206  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
14207  *	(e.g., 0x000FAC04).
14208  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
14209  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
14210  *	The length of this attribute is dependent on the value of
14211  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
14212  *
14213  */
14214 enum qca_wlan_vendor_attr_secure_ranging_ctx {
14215 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
14216 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
14217 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
14218 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
14219 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
14220 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
14221 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
14222 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
14223 
14224 	/* keep last */
14225 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
14226 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
14227 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
14228 };
14229 
14230 /**
14231  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
14232  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
14233  * nested attribute. The packets that match a filter will be replied with
14234  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
14235  *
14236  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
14237  * u32 attribute. Destination IPv4 address in network byte order, the
14238  * IPv4 packets with different address will be filtered out.
14239  * This attribute is optional.
14240  *
14241  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
14242  * Flag attribute. If it's present, indicates that
14243  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
14244  * address; while if not, indicates that the address is a unicast/multicast
14245  * address.
14246  * This attribute is optional.
14247  *
14248  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
14249  * NLA_BINARY attribute, length is 16 bytes.
14250  * Destination IPv6 address in network byte order, the IPv6 packets
14251  * with different destination address will be filtered out.
14252  * This attribute is optional.
14253  *
14254  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
14255  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
14256  * Packets on both IPv4 and IPv6 will be processed if both are configured.
14257  *
14258  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
14259  * u16 attribute. Destination UDP port, the packets with different destination
14260  * UDP port will be filtered out.
14261  * This attribute is mandatory.
14262  *
14263  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
14264  * u32 attribute. Represents the offset (in UDP payload) of the data
14265  * to be matched.
14266  * This attribute is mandatory.
14267  *
14268  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
14269  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
14270  * Binary data that is compared bit-by-bit against the data (specified
14271  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
14272  * payload, the packets don't match will be filtered out.
14273  * This attribute is mandatory.
14274  */
14275 enum qca_wlan_vendor_attr_coap_offload_filter {
14276 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
14277 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
14278 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
14279 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
14280 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
14281 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
14282 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
14283 
14284 	/* keep last */
14285 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
14286 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
14287 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
14288 };
14289 
14290 /**
14291  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
14292  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
14293  *
14294  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
14295  * u32 attribute. Source address (in network byte order) for replying
14296  * the matching broadcast/multicast IPv4 packets.
14297  * This attribute is optional.
14298  *
14299  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
14300  * NLA_BINARY attribute, length is 16 bytes.
14301  * Source address (in network byte order) for replying the matching
14302  * multicast IPv6 packets.
14303  * This attribute is optional.
14304  *
14305  * For broadcast/multicast offload reply, one of
14306  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
14307  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
14308  * configured according to version of the IP address(es) configured in
14309  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
14310  * while for unicast case, firmware will take the destination IP address
14311  * in the received matching packet as the source address for replying.
14312  *
14313  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
14314  * Nested attribute. Filter for the received UDP packets, only the matching
14315  * packets will be replied and cached.
14316  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
14317  * attributes.
14318  * This attribute is mandatory.
14319  *
14320  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
14321  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14322  * CoAP message (UDP payload) to be sent upon receiving matching packets.
14323  * Firmware is responsible for adding any necessary protocol headers.
14324  * This attribute is mandatory.
14325  *
14326  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
14327  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
14328  * A cached message will be dropped by firmware if it's expired.
14329  * This attribute is optional. A default value of 40000 will be used in the
14330  * absence of it.
14331  */
14332 enum qca_wlan_vendor_attr_coap_offload_reply {
14333 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
14334 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
14335 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
14336 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
14337 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
14338 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
14339 
14340 	/* keep last */
14341 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
14342 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
14343 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
14344 };
14345 
14346 /**
14347  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
14348  * CoAP message (UDP) transmitting on IPv4.
14349  *
14350  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
14351  * u32 attribute. Source address (in network byte order) for transmitting
14352  * packets on IPv4.
14353  * This attribute is mandatory.
14354  *
14355  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
14356  * u16 attribute. Source UDP port.
14357  * This attribute is optional, a random port is taken if it's not present.
14358  *
14359  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
14360  * u32 attribute. Destination IPv4 address (in network byte order).
14361  * This attribute is mandatory.
14362  *
14363  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
14364  * Flag attribute. If it's present, indicates that
14365  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
14366  * address; while if not, indicates that the address is unicast/multicast
14367  * address.
14368  * This attribute is optional.
14369  *
14370  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
14371  * u16 attribute. Destination UDP port.
14372  * This attribute is mandatory.
14373  */
14374 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
14375 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
14376 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
14377 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
14378 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
14379 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
14380 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
14381 
14382 	/* keep last */
14383 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
14384 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
14385 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
14386 };
14387 
14388 /**
14389  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
14390  * CoAP message (UDP) transmitting on IPv6.
14391  *
14392  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
14393  * NLA_BINARY attribute, length is 16 bytes.
14394  * Source address (in network byte order) for transmitting packets on IPv6.
14395  * This attribute is mandatory.
14396  *
14397  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
14398  * u16 attribute. Source UDP port.
14399  * This attribute is optional, a random port is taken if it's not present.
14400  *
14401  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
14402  * NLA_BINARY attribute, length is 16 bytes.
14403  * Destination IPv6 address (in network byte order).
14404  * This attribute is mandatory.
14405  *
14406  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
14407  * u16 attribute. Destination UDP port.
14408  * This attribute is mandatory.
14409  */
14410 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
14411 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
14412 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
14413 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
14414 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
14415 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
14416 
14417 	/* keep last */
14418 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
14419 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
14420 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
14421 };
14422 
14423 /**
14424  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
14425  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
14426  *
14427  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
14428  * Nested attribute. The IPv4 source/destination address/port for offload
14429  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
14430  * of supported attributes.
14431  * This attribute is optional.
14432  *
14433  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
14434  * Nested attribute. The IPv6 source/destination address/port for offload
14435  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
14436  * of supported attributes.
14437  * This attribute is optional.
14438  *
14439  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
14440  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
14441  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
14442  * configured.
14443  *
14444  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
14445  * u32 attribute. Period in milliseconds for the periodic transmitting.
14446  * This attribute is mandatory.
14447  *
14448  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
14449  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14450  * CoAP message (UDP payload) to be periodically transmitted. Firmware
14451  * is responsible for adding any necessary protocol headers.
14452  * This attribute is mandatory.
14453  */
14454 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
14455 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
14456 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
14457 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
14458 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
14459 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
14460 
14461 	/* keep last */
14462 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
14463 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
14464 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
14465 };
14466 
14467 /**
14468  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
14469  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
14470  *
14471  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
14472  * u64 attribute. Received time (since system booted in microseconds) of
14473  * the cached CoAP message.
14474  * This attribute is mandatory.
14475  *
14476  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
14477  * u32 attribute. Source IPv4 address (in network byte order) of the cached
14478  * CoAP message.
14479  * This attribute is optional.
14480  *
14481  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
14482  * NLA_BINARY attribute, length is 16 bytes.
14483  * Source IPv6 address (in network byte order) of the cached CoAP message.
14484  * This attribute is optional.
14485  *
14486  * At most and at least one of
14487  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
14488  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
14489  * an entry.
14490  *
14491  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
14492  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14493  * The cached CoAP message (UDP payload). If the actual message size is
14494  * greater than the maximum size, it will be truncated and leaving only
14495  * the first 1152 bytes.
14496  * This attribute is mandatory.
14497  */
14498 enum qca_wlan_vendor_attr_coap_offload_cache_info {
14499 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
14500 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
14501 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
14502 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
14503 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
14504 
14505 	/* keep last */
14506 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
14507 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
14508 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
14509 };
14510 
14511 /**
14512  * enum qca_wlan_vendor_coap_offload_action - Actions for
14513  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14514  *
14515  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
14516  * Enable CoAP offload reply.
14517  * If it's enabled, firmware will start offload processing on each suspend
14518  * and stop on each resume.
14519  *
14520  * Offload reply on match works as follows:
14521  * Reply the packets that match the filter with the given CoAP
14522  * message (with necessary protocol headers), increase the CoAP message
14523  * ID in the given CoAP message by one for the next use after each successful
14524  * transmission, and try to store the information of the received packet,
14525  * including the received time, source IP address, and CoAP message (UDP
14526  * payload).
14527  *
14528  * Firmware has a limit to the maximum stored entries, it takes the source IP
14529  * address as the key of an entry, and keeps at most one entry for each key.
14530  * A packet won't be stored if no entry for the same key is present and the
14531  * total number of the existing unexpired entries reaches the maximum value.
14532  *
14533  * If any configured item is changed, user space should disable offload reply
14534  * first and then issue a new enable request.
14535  *
14536  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
14537  * Disable CoAP offload reply and return information of any cached CoAP
14538  * messages.
14539  *
14540  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
14541  * Enable CoAP offload periodic transmitting.
14542  * If it's enabled, firmware will start offload periodic transmitting on
14543  * each suspend and stop on each resume.
14544  *
14545  * Offload periodic transmitting works as follows:
14546  * Send the given CoAP message (with necessary protocol headers) with the given
14547  * source/destination IP address/UDP port periodically based on the given
14548  * period and increase the CoAP message ID in the given CoAP message by one
14549  * for the next use after each successful transmission.
14550  *
14551  * If any configured item is changed, user space should disable offload
14552  * periodic transmitting first and then issue a new enable request.
14553  *
14554  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
14555  * Disable CoAP offload periodic transmitting.
14556  *
14557  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
14558  * Get information of the CoAP messages cached during offload reply
14559  * processing. The cache is cleared after retrieval.
14560  */
14561 enum qca_wlan_vendor_coap_offload_action {
14562 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
14563 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
14564 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
14565 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
14566 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
14567 };
14568 
14569 /**
14570  * enum qca_wlan_vendor_attr_coap_offload - Used by the
14571  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14572  * This is used to set parameters for CoAP offload processing, or get
14573  * cached CoAP messages from firmware.
14574  *
14575  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
14576  * u32 attribute. Action to take in this vendor command.
14577  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
14578  * This attribute is mandatory.
14579  *
14580  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
14581  * u32 attribute. Represents the Request ID for the CoAP offload
14582  * configuration, which can help to identify the user entity starting
14583  * the CoAP offload processing and accordingly stop the respective
14584  * ones/get the cached CoAP messages with the matching ID.
14585  * This attribute is mandatory.
14586  *
14587  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
14588  * Nested attribute. Parameters for offload reply.
14589  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
14590  * supported attributes.
14591  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14592  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
14593  * otherwise.
14594  *
14595  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
14596  * Nested attribute. Parameters for offload periodic transmitting.
14597  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
14598  * supported attributes.
14599  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
14600  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
14601  * otherwise.
14602  *
14603  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
14604  * Array of nested attributes. Information of the cached CoAP messages,
14605  * where each entry is taken from
14606  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
14607  * This attribute is used for reporting the cached CoAP messages
14608  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14609  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
14610  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
14611  * cached item if this attribute is not present.
14612  */
14613 enum qca_wlan_vendor_attr_coap_offload {
14614 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
14615 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
14616 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
14617 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
14618 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
14619 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
14620 
14621 	/* keep last */
14622 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
14623 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
14624 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
14625 };
14626 
14627 /**
14628  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
14629  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
14630  * Service (SCS) rule.
14631  *
14632  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
14633  * Represents the unique id of SCS rule to be configured.
14634 
14635  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
14636  * Represents the request type: add, remove, or change.
14637  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
14638  * Type definitions).
14639  *
14640  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
14641  * in case of add/change request type.
14642  * Represents the output traffic identifier (TID) to be assigned to the flow
14643  * matching the rule.
14644  *
14645  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
14646  * attribute in case of add/change request type.
14647  * Represents type of classifier parameters present in SCS rule.
14648  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
14649  * Only classifier types 4 and 10 are supported for SCS.
14650  *
14651  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
14652  * in case of add/change request type when classifier type is TCLAS4.
14653  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
14654  *
14655  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
14656  * attribute in case of add/change request type when classifier type is TCLAS4
14657  * and version attribute is IPv4.
14658  * Represents the source IPv4 address in the rule which is to be compared
14659  * against the source IP address in the IPv4 header.
14660  *
14661  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
14662  * attribute in case of add/change request type when classifier type is TCLAS4
14663  * and version attribute is IPv4.
14664  * Represents the destination IPv4 address in the rule which is to be compared
14665  * against the destination IP address in the IPv4 header.
14666  *
14667  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
14668  * attribute in case of add/change request type when classifier type is TCLAS4
14669  * and version attribute is IPv6.
14670  * Represents the source IPv6 address in the rule which is to be compared
14671  * against the source IP address in the IPv6 header.
14672  *
14673  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14674  * attribute in case of add/change request type when classifier type is TCLAS4
14675  * and version attribute is IPv6.
14676  * Represents the destination IPv6 address in the rule which is to be compared
14677  * against the destination IP address in the IPv6 header.
14678  *
14679  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14680  * in case of add/change request type when classifier type is TCLAS4.
14681  * Represents the source port number in the rule which is to be compared against
14682  * the source port number in the protocol header.
14683  *
14684  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14685  * in case of add/change request type when classifier type is TCLAS4.
14686  * Represents the destination port number in the rule which is to be compared
14687  * against the destination port number in the protocol header.
14688  *
14689  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14690  * in case of add/change request type when classifier type is TCLAS4.
14691  * Represents the DSCP value in the rule which is to be compared against the
14692  * DSCP field present in the IP header.
14693  *
14694  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14695  * attribute in case of add/change request type when classifier type is TCLAS4.
14696  * Represents the protocol/next header in the rule which is to be compared
14697  * against the protocol/next header field present in the IPv4/IPv6 header.
14698  *
14699  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14700  * attribute of size 3 bytes present in case of add/change request type
14701  * when classifier type is TCLAS4 and version is IPv6.
14702  * Represents the flow label value in the rule which is to be compared against
14703  * the flow label field present in the IPv6 header.
14704  *
14705  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14706  * attribute in case of add/change request type when classifier type is TCLAS10.
14707  * Represents the protocol instance number in the rule.
14708  *
14709  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14710  * attribute in case of add/change request type when classifier type is TCLAS10.
14711  * Represents the protocol/next header in the rule which is to be compared
14712  * against the protocol/next header field present in the IPv4/IPv6 header.
14713  *
14714  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14715  * attribute of variable length present when request type is add/change and
14716  * classifier type is TCLAS10.
14717  * Represents the mask to be used for masking the header contents of the header
14718  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14719  * attribute.
14720  *
14721  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14722  * attribute of variable length present when request type is add/change and
14723  * classifier type is TCLAS10.
14724  * Represents the value to be compared against after masking the header contents
14725  * of the header specified by the
14726  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14727  * filter mask specified by the
14728  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
14729  *
14730  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
14731  * attribute.
14732  * Represents the service class id of the configured SCS rule.
14733  *
14734  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
14735  * MAC address.
14736  * Represents the destination MAC address in the rule.
14737  *
14738  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
14739  * Represents the netdevice interface index in the rule.
14740  */
14741 enum qca_wlan_vendor_attr_scs_rule_config {
14742 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14743 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14744 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14745 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14746 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14747 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14748 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14749 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14750 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14751 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14752 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14753 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14754 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14755 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14756 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14757 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14758 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14759 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14760 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
14761 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
14762 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
14763 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
14764 
14765 	/* Keep last */
14766 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14767 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14768 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14769 };
14770 
14771 /**
14772  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
14773  * used in the firmware.
14774  *
14775  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
14776  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
14777  *
14778  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14779  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14780  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14781  * groups.
14782  *
14783  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14784  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14785  * CTL group but user can choose up to 3 SAR set index only, as the top half
14786  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14787  * the SAR index (3 to 5) is used for DBS mode.
14788  */
14789 enum qca_wlan_vendor_sar_version {
14790 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14791 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14792 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14793 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14794 };
14795 
14796 /**
14797  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14798  * CTL grouping is enabled or disabled in the firmware.
14799  *
14800  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14801  * is enabled in firmware.
14802  *
14803  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14804  * is disabled in firmware.
14805  *
14806  */
14807 enum qca_wlan_vendor_sar_ctl_group_state {
14808 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14809 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14810 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14811 };
14812 
14813 /**
14814  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
14815  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
14816  * supported by the firmware.
14817 
14818  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
14819  * u32 attribute. This field describes current SAR version supported by the
14820  * firmware.
14821  * See enum qca_wlan_vendor_sar_version for more information.
14822  * This attribute is mandatory.
14823 
14824  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
14825  * u32 attribute. This field describes whether CTL groups are enabled
14826  * or disabled in the firmware.
14827  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
14828  * This attribute is optional.
14829  */
14830 
14831 enum qca_wlan_vendor_attr_sar_capability {
14832 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
14833 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
14834 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
14835 
14836 	/* Keep last */
14837 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
14838 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
14839 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
14840 };
14841 
14842 /**
14843  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
14844  * These statistics are sent from the driver in a response when userspace
14845  * queries to get the statistics using the operation
14846  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
14847  * by the driver when the SR feature is enabled, when the driver receives
14848  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
14849  *
14850  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14851  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14852  * This represents the number of non-SRG TX opportunities.
14853  *
14854  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14855  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14856  * This represents the number of non-SRG PPDUs tried to transmit.
14857  *
14858  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14859  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14860  * This represents the number of non-SRG PPDUs successfully transmitted.
14861  *
14862  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14863  * Mandatory only when SRG is supported by the AP and optional otherwise.
14864  * This represents the number of SRG TX opportunities.
14865  *
14866  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14867  * Mandatory only when SRG is supported by the AP and optional otherwise.
14868  * This represents the number of SRG PPDUs tried to transmit.
14869  *
14870  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14871  * Mandatory only when SRG is supported by the AP and optional otherwise.
14872  * This represents the number of SRG PPDUs successfully transmitted.
14873  */
14874 enum qca_wlan_vendor_attr_sr_stats {
14875 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
14876 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
14877 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
14878 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
14879 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
14880 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
14881 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
14882 
14883 	/* Keep last */
14884 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
14885 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
14886 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
14887 };
14888 
14889 /**
14890  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
14891  * Spatial Reuse feature.
14892  *
14893  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
14894  * roaming to an AP that doesn't support/supports SR feature, respectively.
14895  *
14896  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
14897  * to change in concurrent interfaces that are supported by the driver.
14898  */
14899 enum qca_wlan_sr_reason_code {
14900 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
14901 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
14902 };
14903 
14904 /**
14905  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
14906  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
14907  *
14908  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
14909  * driver to enable the Spatial Reuse feature. Attributes
14910  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14911  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
14912  * operation.
14913  *
14914  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
14915  * driver to disable the Spatial Reuse feature.
14916  *
14917  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
14918  * asynchronous event sent to userspace when the SR feature is disabled.
14919  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
14920  * and sent along with the asynchronous event.
14921  *
14922  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
14923  * asynchronous event when the SR feature is enabled again after the SR feature
14924  * was suspended by the driver earlier. The enable reason is
14925  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
14926  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14927  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
14928  *
14929  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
14930  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14931  * reuse transmissions. Userspace sends this operation to the driver.
14932  * The driver/firmware upon receiving this operation shall prohibit PSR-based
14933  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14934  *
14935  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
14936  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14937  * reuse transmissions. Userspace sends this operation to the driver.
14938  * The driver/firmware upon receiving this operation shall allow PSR-based
14939  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14940  *
14941  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
14942  * driver to get the SR statistics and the driver sends a synchronous response
14943  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
14944  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
14945  *
14946  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
14947  * driver to clear the SR statistics and upon receiving this operation
14948  * the driver/firmware shall clear the SR statistics.
14949  *
14950  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
14951  * driver to get the SR parameters and the driver sends the synchronous response
14952  * with the following required attributes:
14953  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14954  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14955  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14956  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14957  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14958  *
14959  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
14960  * asynchronous event to userspace to update any changes in SR parameters.
14961  * The following attributes are used with this operation:
14962  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14963  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14964  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14965  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14966  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14967  */
14968 enum qca_wlan_sr_operation {
14969 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
14970 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
14971 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
14972 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
14973 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
14974 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
14975 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
14976 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
14977 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
14978 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
14979 };
14980 
14981 /**
14982  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
14983  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
14984  *
14985  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
14986  * This attribute is optionally set in response to
14987  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
14988  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
14989  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
14990  * about HESIGA_Spatial_reuse_value15_allowed.
14991  *
14992  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
14993  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
14994  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
14995  * allowed or not at non-AP STAs that are associated with the AP. If present
14996  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
14997  *
14998  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
14999  * attribute. This attribute is used in response to
15000  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15001  * Min Offset field which contains an unsigned integer that is added to -82 dBm
15002  * to generate the value of the SRG OBSS PD Min parameter.
15003  *
15004  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15005  * attribute. This attribute is used in response to
15006  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15007  * Max Offset field which contains an unsigned integer that is added to -82 dBm
15008  * to generate the value of the SRG OBSS PD Max parameter.
15009  *
15010  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15011  * attribute. This attribute is used in response to
15012  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
15013  * PD Max Offset field which contains an unsigned integer that is added to -82
15014  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
15015  *
15016  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15017  * Userspace optionally sends this attribute with
15018  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15019  * preferred SRG PD threshold. The driver shall send this attribute to
15020  * userspace in SR resume event to indicate the PD threshold being used for SR.
15021  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
15022  * the driver shall indicate the userspace the newly configured SRG PD threshold
15023  * using an asynchronous event.
15024  *
15025  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15026  * Userspace optionally sends this attribute with
15027  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15028  * preferred non-SRG PD threshold. The driver shall send this attribute to
15029  * userspace in SR resume event to indicate the PD threshold being used for SR.
15030  * When there is change in non-SRG PD threshold (for example, due to roaming,
15031  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
15032  * threshold using an asynchronous event.
15033  *
15034  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
15035  * values are defined in enum qca_wlan_sr_reason_code. This
15036  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
15037  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
15038  */
15039 enum qca_wlan_vendor_attr_sr_params {
15040 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
15041 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
15042 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
15043 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
15044 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
15045 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
15046 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
15047 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
15048 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
15049 
15050 	/* keep last */
15051 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
15052 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
15053 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
15054 };
15055 
15056 /**
15057  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
15058  * command QCA_NL80211_VENDOR_SUBCMD_SR.
15059  *
15060  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
15061  * from userspace to the driver. Possible values are defined in enum
15062  * qca_wlan_sr_operation.
15063  *
15064  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
15065  * configuration parameters. The possible attributes inside this attribute are
15066  * defined in enum qca_wlan_vendor_attr_sr_params.
15067  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15068  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
15069  * also in response from the driver to userspace when the response is sent for
15070  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
15071  * The driver uses this attribute in asynchronous events in which the operation
15072  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
15073  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
15074  *
15075  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
15076  * statistics. These attributes used inside this are defined in enum
15077  * qca_wlan_vendor_attr_sr_stats.
15078  * This attribute is used in response from the driver to a command in which
15079  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15080  * %QCA_WLAN_SR_OPERATION_GET_STATS.
15081  */
15082 enum qca_wlan_vendor_attr_sr {
15083 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
15084 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
15085 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
15086 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
15087 
15088 	/* Keep last */
15089 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
15090 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
15091 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
15092 };
15093 
15094 /**
15095  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
15096  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
15097  *
15098  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
15099  * used by the peer on the link that corresponds to the link used for sending
15100  * the event notification.
15101  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
15102  * MLD MAC address of the peer.
15103  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
15104  * used to pass ifindex of the primary netdev.
15105  */
15106 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
15107 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
15108 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
15109 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
15110 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
15111 
15112 	/* keep last */
15113 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
15114 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
15115 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
15116 };
15117 
15118 /**
15119  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
15120  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
15121  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
15122  * and PSD information.
15123  *
15124  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
15125  * u32. This attribute is used to indicate the start of the queried frequency
15126  * range in MHz.
15127  *
15128  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
15129  * This attribute is used to indicate the end of the queried frequency range
15130  * in MHz.
15131  *
15132  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
15133  * This attribute will contain the PSD information for a single range as
15134  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
15135  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
15136  *
15137  * The PSD power info (dBm/MHz) from user space should be multiplied
15138  * by a factor of 100 when sending to the driver to preserve granularity
15139  * up to 2 decimal places.
15140  * Example:
15141  *     PSD power value: 10.21 dBm/MHz
15142  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
15143  *
15144  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
15145  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
15146  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
15147  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15148  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15149  *
15150  * The following set of attributes will be used to exchange frequency and
15151  * corresponding PSD information for AFC between the user space and the driver.
15152  */
15153 enum qca_wlan_vendor_attr_afc_freq_psd_info {
15154 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
15155 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
15156 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
15157 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
15158 
15159 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
15160 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
15161 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
15162 };
15163 
15164 /**
15165  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
15166  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
15167  * channel list and corresponding EIRP information.
15168  *
15169  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
15170  * This attribute is used to indicate queried channel from
15171  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
15172  *
15173  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
15174  * This attribute is used to configure the EIRP power info corresponding
15175  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
15176  * The EIRP power info(dBm) from user space should be multiplied
15177  * by a factor of 100 when sending to Driver to preserve granularity up to
15178  * 2 decimal places.
15179  * Example:
15180  *     EIRP power value: 34.23 dBm
15181  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
15182  *
15183  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
15184  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15185  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
15186  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15187  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
15188  *
15189  * The following set of attributes will be used to exchange Channel and
15190  * corresponding EIRP information for AFC between the user space and Driver.
15191  */
15192 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
15193 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
15194 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
15195 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
15196 
15197 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
15198 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
15199 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
15200 };
15201 
15202 /**
15203  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
15204  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15205  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
15206  * channel, and EIRP related information.
15207  *
15208  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
15209  * This attribute is used to indicate the operating class, as listed under
15210  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
15211  *
15212  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
15213  * for updating the channel number and EIRP power information.
15214  * It uses the attributes defined in
15215  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
15216  *
15217  * Operating class information packing format for
15218  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15219  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15220  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
15221  *
15222  * m - Total number of operating classes.
15223  * n, j - Number of queried channels for the corresponding operating class.
15224  *
15225  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15226  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15227  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15228  *      .....
15229  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15230  *  ....
15231  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15232  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15233  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15234  *      ....
15235  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15236  *
15237  * Operating class information packing format for
15238  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15239  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15240  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15241  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15242  *
15243  * m - Total number of operating classes.
15244  * n, j - Number of channels for the corresponding operating class.
15245  *
15246  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15247  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15248  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15249  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15250  *      .....
15251  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15252  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
15253  *  ....
15254  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15255  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15256  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15257  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15258  *      ....
15259  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15260  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
15261  *
15262  * The following set of attributes will be used to exchange operating class
15263  * information for AFC between the user space and the driver.
15264  */
15265 enum qca_wlan_vendor_attr_afc_opclass_info {
15266 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
15267 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
15268 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
15269 
15270 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
15271 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
15272 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
15273 };
15274 
15275 /**
15276  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
15277  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
15278  *
15279  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
15280  * driver to userspace in order to query the new AFC power values.
15281  *
15282  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
15283  * complete event will be sent from the driver to userspace to indicate
15284  * processing of the AFC response.
15285  *
15286  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
15287  * will be sent from the driver to userspace to indicate last received
15288  * AFC response data has been cleared on the AP due to invalid data
15289  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
15290  *
15291  * The following enum defines the different event types that will be
15292  * used by the driver to help trigger corresponding AFC functionality in user
15293  * space.
15294  */
15295 enum qca_wlan_vendor_afc_event_type {
15296 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
15297 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
15298 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
15299 };
15300 
15301 /**
15302  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
15303  * deployment type.
15304  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
15305  *
15306  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
15307  *
15308  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
15309  *
15310  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
15311  *
15312  * The following enum defines different deployment modes that the AP might
15313  * come up in. This information will be essential to retrieve deployment-type
15314  * specific SP power values for AFC operation.
15315  */
15316 enum qca_wlan_vendor_afc_ap_deployment_type {
15317 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
15318 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
15319 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
15320 };
15321 
15322 /**
15323  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
15324  * indicate AFC response status.
15325  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
15326  *
15327  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
15328  *
15329  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
15330  * command was not received within the expected time of the AFC expiry event
15331  * being triggered.
15332  *
15333  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
15334  * parsing error by the driver.
15335  *
15336  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
15337  * error.
15338  *
15339  * The following enum defines the status codes that the driver will use to
15340  * indicate whether the AFC data is valid or not.
15341  */
15342 enum qca_wlan_vendor_afc_evt_status_code {
15343 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
15344 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
15345 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
15346 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
15347 };
15348 
15349 /**
15350  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
15351  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
15352  * support sending only a single request to the user space at a time.
15353  *
15354  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
15355  * Used with event to notify the type of AFC event received.
15356  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
15357  *
15358  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
15359  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15360  * otherwise unused.
15361  *
15362  * This attribute is used to indicate the AP deployment type in the AFC request.
15363  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
15364  *
15365  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
15366  * Unique request identifier generated by the AFC client for every
15367  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
15368  * The user space application is responsible for ensuring no duplicate values
15369  * are in-flight with the server, e.g., by delaying a request, should the same
15370  * value be received from different radios in parallel.
15371  *
15372  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
15373  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15374  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
15375  *
15376  * This attribute indicates the AFC spec version information. This will
15377  * indicate the AFC version AFC client must use to query the AFC data.
15378  * Bits 15:0  - Minor version
15379  * Bits 31:16 - Major version
15380  *
15381  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
15382  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15383  * otherwise unused.
15384  * This attribute indicates the minimum desired power (in dBm) for
15385  * the queried spectrum.
15386  *
15387  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
15388  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15389  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15390  *
15391  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
15392  * This attribute is used to indicate if there were any errors parsing the
15393  * AFC response.
15394  *
15395  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
15396  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15397  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15398  *
15399  * This attribute indicates the AFC response code. The AFC response codes are
15400  * in the following categories:
15401  * -1: General Failure.
15402  * 0: Success.
15403  * 100 - 199: General errors related to protocol.
15404  * 300 - 399: Error events specific to message exchange
15405  *            for the Available Spectrum Inquiry.
15406  *
15407  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
15408  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15409  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15410  *
15411  * This attribute indicates the date until which the current response is
15412  * valid for in UTC format.
15413  * Date format: bits 7:0   - DD (Day 1-31)
15414  *              bits 15:8  - MM (Month 1-12)
15415  *              bits 31:16 - YYYY (Year)
15416  *
15417  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
15418  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15419  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15420  *
15421  * This attribute indicates the time until which the current response is
15422  * valid for in UTC format.
15423  * Time format: bits 7:0   - SS (Seconds 0-59)
15424  *              bits 15:8  - MM (Minutes 0-59)
15425  *              bits 23:16 - HH (Hours 0-23)
15426  *              bits 31:24 - Reserved
15427  *
15428  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
15429  * for updating the list of frequency ranges to be queried.
15430  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15431  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15432  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15433  * It uses the attributes defined in
15434  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
15435  *
15436  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
15437  * for updating the list of operating classes and corresponding channels to be
15438  * queried.
15439  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15440  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15441  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15442  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
15443  */
15444 enum qca_wlan_vendor_attr_afc_event {
15445 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
15446 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
15447 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
15448 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
15449 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
15450 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
15451 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
15452 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
15453 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
15454 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
15455 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
15456 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
15457 
15458 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
15459 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
15460 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
15461 };
15462 
15463 /**
15464  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
15465  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
15466  * will support sending only a single AFC response to the driver at a time.
15467  *
15468  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
15469  * This attribute will be used to send a single Spectrum Inquiry response object
15470  * from the 'availableSpectrumInquiryResponses' array object from the response
15471  * JSON.
15472  *
15473  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
15474  *
15475  * This attribute indicates the period (in seconds) for which the response
15476  * data received is valid for.
15477  *
15478  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
15479  *
15480  * This attribute indicates the request ID for which the corresponding
15481  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
15482  *
15483  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
15484  *
15485  * This attribute indicates the date until which the current response is
15486  * valid for in UTC format.
15487  * Date format: bits 7:0   - DD (Day 1-31)
15488  *              bits 15:8  - MM (Month 1-12)
15489  *              bits 31:16 - YYYY (Year)
15490  *
15491  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
15492  *
15493  * This attribute indicates the time until which the current response is
15494  * valid for in UTC format.
15495  * Time format: bits 7:0   - SS (Seconds 0-59)
15496  *              bits 15:8  - MM (Minutes 0-59)
15497  *              bits 23:16 - HH (Hours 0-23)
15498  *              bits 31:24 - Reserved
15499  *
15500  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
15501  *
15502  * This attribute indicates the AFC response code. The AFC response codes are
15503  * in the following categories:
15504  * -1: General Failure.
15505  * 0: Success.
15506  * 100 - 199: General errors related to protocol.
15507  * 300 - 399: Error events specific to message exchange
15508  *            for the Available Spectrum Inquiry.
15509  *
15510  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
15511  * for PSD info of all the queried frequency ranges. It uses the attributes
15512  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
15513  *
15514  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
15515  * attributes for EIRP info of all queried operating class/channels. It uses
15516  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
15517  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
15518  *
15519  */
15520 enum qca_wlan_vendor_attr_afc_response {
15521 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
15522 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
15523 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
15524 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
15525 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
15526 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
15527 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
15528 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
15529 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
15530 
15531 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
15532 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
15533 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
15534 };
15535 
15536 /**
15537  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
15538  *
15539  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
15540  *
15541  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
15542  * beaconing at higher beacon interval with Rx disabled.
15543  */
15544 enum qca_wlan_dozed_ap_state {
15545 	QCA_WLAN_DOZED_AP_DISABLE = 0,
15546 	QCA_WLAN_DOZED_AP_ENABLE = 1,
15547 };
15548 
15549 /**
15550  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
15551  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
15552  * configuration.
15553  *
15554  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
15555  * Configures the doze state for an AP interface. Possible values are defined
15556  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
15557  * gets triggered asynchronously to provide updated AP interface configuration.
15558  *
15559  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
15560  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
15561  * command, which is used later to maintain synchronization between commands
15562  * and asynchronous events.
15563  *
15564  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
15565  * Used in event to indicate the next TBTT TSF timer value after applying the
15566  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
15567  * the first beacon after entering or exiting dozed mode.
15568  *
15569  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
15570  * Used with event to inform the periodicity of beacon transmission that would
15571  * be skipped at all TBTTs in between.
15572  */
15573 enum qca_wlan_vendor_attr_dozed_ap {
15574 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
15575 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
15576 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
15577 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
15578 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
15579 
15580 	/* Keep last */
15581 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
15582 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
15583 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
15584 };
15585 
15586 #endif
15587