xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 70a19e16789e308182f63b15c75decec7bf0b342)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: declares vendor commands interfacing with linux kernel
22  */
23 
24 
25 #ifndef _WLAN_QCA_VENDOR_H_
26 #define _WLAN_QCA_VENDOR_H_
27 
28 /* Vendor id to be used in vendor specific command and events
29  * to user space.
30  * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
31  * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
32  * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
33  * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
34  */
35 
36 #define QCA_NL80211_VENDOR_ID           0x001374
37 
38 #ifndef BIT
39 #define BIT(x) (1U << (x))
40 #endif
41 
42 /**
43  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
44  *
45  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
46  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
47  *	Sub commands 2 to 8 are not used
48  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
49  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
50  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
51  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52  *	NAN Request/Response and NAN Indication messages. These messages are
53  *	interpreted between the framework and the firmware component. While
54  *	sending the command from userspace to the driver, payload is not
55  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56  *	is used when receiving vendor events in userspace from the driver.
57  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
59  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
61  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
62  *	results
63  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
64  *	results
65  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
66  *	results
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
68  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
69  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
70  *	channels
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
72  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
73  *	results
74  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
75  *	available. Used when report_threshold is reached in scan cache.
76  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
77  *	result. Used to report scan results when each probe rsp. is received,
78  *	if report_events enabled in wifi_scan_cmd_params.
79  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
80  *	Indicates progress of scanning state-machine.
81  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
82  *	ap found
83  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
84  *	bssid
85  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
86  *	hotlist bssid
87  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
88  *	change
89  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
90  *	significant change
91  *	ap found
92  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
93  *	significant change
94  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
95  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
96  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
97  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
98  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
99  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
100  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
101  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
102  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
103  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
104  * roaming and auth information.
105  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
106  *
107  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
108  *	invoke the ACS function in device and pass selected channels to
109  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
110  *
111  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
112  * driver.
113  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
114  *	started CAC on DFS channel
115  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
116  * 	completed the CAC check on DFS channel
117  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
118  * 	check was aborted by the driver
119  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
120  * 	driver completed NOP
121  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
122  * 	driver detected radar signal on the current operating channel
123  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
124  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
125  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
126  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
127  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
128  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
129  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
130  *	extscan reset ssid hotlist
131  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
132  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
133  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
134  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
135  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
136  *	reset passpoint list
137  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
138  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
139  *	passpoint network found
140  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
141  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
142  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
143  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
144  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
145  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
146 	list
147  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
148  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
149  *	to the host driver. This command sets the band through either
150  *	the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
151  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
152  *	refers enum qca_set_band as unsigned integer values and
153  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
154  *	values. Also, the acceptable values for
155  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
156  *	values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
157  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
158  *	recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
159  *	implementations configure using both the attributes, the configurations
160  *	through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
161  *	precedence.
162  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
163  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
164  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
165  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
166  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
167  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
168  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
169  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
170  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
171  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
172  *	start the P2P Listen Offload function in device and pass the listen
173  *	channel, period, interval, count, number of device types, device
174  *	types and vendor information elements to device driver and firmware.
175  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
176  *	indicate stop request/response of the P2P Listen Offload function in
177  *	device. As an event, it indicates either the feature stopped after it
178  *	was already running or feature has actually failed to start.
179  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
180  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
181  *     beaconing, this sub command provides the driver, the frequencies on the
182  *     5 GHz to check for any radar activity. Driver selects one channel from
183  *     this priority list provided through
184  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
185  *     to check for radar activity on it. If no radar activity is detected
186  *     during the channel availability check period, driver internally switches
187  *     to the selected frequency of operation. If the frequency is zero, driver
188  *     internally selects a channel. The status of this conditional switch is
189  *     indicated through an event using the same sub command through
190  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
191  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
192  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
193  *      indication period and threshold for MAC layer counters.
194  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
195  *	in the host driver. The different TDLS configurations are defined
196  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
197  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
198  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
199  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
200  *	require methods to set SAR limits on TX power of WLAN/WWAN.
201  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
202  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
203  *      configuration of vendor ACS.
204  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
205  *      requisite information leading to a power save failure. The information
206  *      carried as part of this event is represented by the
207  *      enum qca_attr_chip_power_save_failure attributes.
208  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
209  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
210  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
211  *      statistics are represented by the enum qca_attr_nud_stats_get
212  *      attributes.
213  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
214  *      the BSS transition status, whether accept or reject, for a list of
215  *      candidate BSSIDs provided by the userspace. This uses the vendor
216  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
217  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
218  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
219  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
220  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
221  *      the driver shall specify array of
222  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
223  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
224  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
225  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
226  *      specific QCA module. The trace levels are represented by
227  *      enum qca_attr_trace_level attributes.
228  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
229  *      Protocol antenna limit in different modes. See enum
230  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
231  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
232  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
233  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
234  *      identifying the operation in success case. In failure cases an
235  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
236  *      describing the reason for the failure is returned.
237  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
238  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
239  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
240  *      be stopped.
241  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
242  *     specific interface. This can be used to modify some of the low level
243  *     scan parameters (off channel dwell time, home channel time) in the
244  *     driver/firmware. These parameters are maintained within the host
245  *     driver.
246  *     This command is valid only when the interface is in the connected
247  *     state.
248  *     These scan parameters shall be reset by the driver/firmware once
249  *     disconnected. The attributes used with this command are defined in
250  *     enum qca_wlan_vendor_attr_active_tos.
251  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
252  *      driver has detected an internal failure. This event carries the
253  *      information indicating the reason that triggered this detection. The
254  *      attributes for this command are defined in
255  *      enum qca_wlan_vendor_attr_hang.
256  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
257  *     of spectral parameters used. The spectral scan parameters are specified
258  *     by enum qca_wlan_vendor_attr_spectral_scan.
259  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
260  *     for spectral scan functionality. The debug stats are specified by
261  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
262  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
263  *     scan system capabilities. The capabilities are specified
264  *     by enum qca_wlan_vendor_attr_spectral_cap.
265  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
266  *     status of spectral scan. The status values are specified
267  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
268  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
269  *     peer pending packets. Specify the peer MAC address in
270  *     QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
271  *     in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
272  *     in enum qca_wlan_vendor_attr_flush_pending.
273  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
274  *     RF Operating Parameter (RROP) information. The attributes for this
275  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
276  *     intended for use by external Auto Channel Selection applications.
277  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
278  *	(SAR) power limits. This is a companion to the command
279  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
280  *	settings currently in use. The attributes returned by this command are
281  *	defined by enum qca_vendor_attr_sar_limits.
282  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
283  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
284  *      This works both as a query (user space asks the current mode) or event
285  *      interface (driver advertizing the current mode to the user space).
286  *      Driver does not trigger this event for temporary hardware mode changes.
287  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
288  *      channel change etc ) are updated with this event. Attributes for this
289  *      interface are defined in enum qca_wlan_vendor_attr_mac.
290  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
291  *	per peer per TID. Attributes for this command are define in
292  *	enum qca_wlan_set_qdepth_thresh_attr
293  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
294  *	guide for WLAN driver. Request to suspend of driver and FW if the
295  *	temperature is higher than the suspend threshold; resume action is
296  *	requested to driver if the temperature is lower than the resume
297  *	threshold. In user poll mode, request temperature data by user. For test
298  *	purpose, getting thermal shutdown configuration parameters is needed.
299  *	Attributes for this interface are defined in
300  *	enum qca_wlan_vendor_attr_thermal_cmd.
301  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
302  *	driver. Thermal temperature and indication of resume completion are
303  *	reported as thermal events. The attributes for this command are defined
304  *	in enum qca_wlan_vendor_attr_thermal_event.
305  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
306  *	test configuration. Attributes for this command are defined in
307  *	enum qca_wlan_vendor_attr_wifi_test_config.
308  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
309  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
310  *	carried a payload which was a binary blob of data. The command was not
311  *	extendable to send more information. The newer version carries the
312  *	legacy blob encapsulated within an attribute and can be extended with
313  *	additional vendor attributes that can enhance the NAN command
314  *	interface.
315  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
316  *	configure parameters per peer to capture Channel Frequency Response
317  *	(CFR) and enable Periodic CFR capture. The attributes for this command
318  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
319  *	can also be used to send CFR data from the driver to userspace when
320  *	netlink events are used to send CFR data.
321  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
322  *	The returned firmware state is specified in the attribute
323  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
324  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
325  *	is used by host driver to flush per-peer cached statistics to user space
326  *	application. This interface is used as an event from host driver to
327  *	user space application. Attributes for this event are specified in
328  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
329  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
330  *	sent as event from host driver.
331  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
332  *	improve the success rate of Zigbee joining network.
333  *	Due to PTA master limitation, zigbee joining network success rate is
334  *	low while wlan is working. Wlan host driver need to configure some
335  *	parameters including Zigbee state and specific WLAN periods to enhance
336  *	PTA master. All this parameters are delivered by the NetLink attributes
337  *	defined in "enum qca_mpta_helper_vendor_attr".
338  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
339  *	implement Beacon frame reporting feature.
340  *
341  *	Userspace can request the driver/firmware to periodically report
342  *	received Beacon frames whose BSSID is same as the current connected
343  *	BSS's MAC address.
344  *
345  *	In case the STA seamlessly (without sending disconnect indication to
346  *	userspace) roams to a different BSS, Beacon frame reporting will be
347  *	automatically enabled for the Beacon frames whose BSSID is same as the
348  *	MAC address of the new BSS. Beacon reporting will be stopped when the
349  *	STA is disconnected (when the disconnect indication is sent to
350  *	userspace) and need to be explicitly enabled by userspace for next
351  *	connection.
352  *
353  *	When a Beacon frame matching configured conditions is received, and if
354  *	userspace has requested to send asynchronous beacon reports, the
355  *	driver/firmware will encapsulate the details of the Beacon frame in an
356  *	event and send it to userspace along with updating the BSS information
357  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
358  *	scan cache with the information from the received Beacon frame but
359  *	will not send any active report to userspace.
360  *
361  *	The userspace can request the driver/firmware to stop reporting Beacon
362  *	frames. If the driver/firmware is not able to receive Beacon frames
363  *	due to other Wi-Fi operations such as off-channel activities, etc.,
364  *	the driver/firmware will send a pause event to userspace and stop
365  *	reporting Beacon frames. Whether the beacon reporting will be
366  *	automatically resumed or not by the driver/firmware later will be
367  *	reported to userspace using the
368  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
369  *	reporting shall be resumed for all the cases except either when
370  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
371  *	in the command which triggered the current beacon reporting or during
372  *	any disconnection case as indicated by setting
373  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
374  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
375  *	driver.
376  *
377  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
378  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
379  *	flag not set, the next first
380  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
381  *	shall be considered as un-pause event.
382  *
383  *	All the attributes used with this command are defined in
384  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
385  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
386  *	interop issues with the DUT. This sub command is used to transfer the
387  *	ap info between driver and user space. This works both as a command
388  *	or event. As a command, it configs the stored list of aps from user
389  *	space to firmware; as an event, it indicates the ap info detected by
390  *	firmware to user space for persistent storage. The attributes defined
391  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
392  *	parameters.
393  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
394  *	binary blobs from application/service to firmware. The attributes
395  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
396  *	deliver the parameters.
397  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
398  *	to send/receive avoid frequency data using
399  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
400  *	This new command is alternative to existing command
401  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
402  *	is using stream of bytes instead of structured data using vendor
403  *	attributes. User space sends unsafe frequency ranges to the driver using
404  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
405  *	reception of this command, the driver shall check if an interface is
406  *	operating on an unsafe frequency and the driver shall try to move to a
407  *	safe channel when needed. If the driver is not able to find a safe
408  *	channel the interface can keep operating on an unsafe channel with the
409  *	TX power limit derived based on internal configurations	like
410  *	regulatory/SAR rules.
411  *
412  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
413  *	add the STA node details in driver/firmware. Attributes for this event
414  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
415  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
416  *	coex chain mode from application/service.
417  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
418  *	to deliver the parameters.
419  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
420  *	get information of a station from driver to userspace. This command can
421  *	be used in both STA and AP modes. For STA mode, it provides information
422  *	of the current association when in connected state or the last
423  *	association when in disconnected state. For AP mode, only information
424  *	of the currently connected stations is available. This command uses
425  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
426  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
427  *	Host drivers can request the user space entity to set the SAR power
428  *	limits with this event. Accordingly, the user space entity is expected
429  *	to set the SAR power limits. Host drivers can retry this event to the
430  *	user space for the SAR power limits configuration from user space. If
431  *	the driver does not get the SAR power limits from user space for all
432  *	the retried attempts, it can configure a default SAR power limit.
433  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
434  *	is used to update the information about the station from the driver to
435  *	userspace. Uses attributes from enum
436  *	qca_wlan_vendor_attr_update_sta_info.
437  *
438  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
439  *	The host driver initiates the disconnection for scenarios such as beacon
440  *	miss, NUD failure, peer kick out, etc. The disconnection indication
441  *	through cfg80211_disconnected() expects the reason codes from enum
442  *	ieee80211_reasoncode which does not signify these various reasons why
443  *	the driver has triggered the disconnection. This event will be used to
444  *	send the driver specific reason codes by the host driver to userspace.
445  *	Host drivers should trigger this event and pass the respective reason
446  *	code immediately prior to triggering cfg80211_disconnected(). The
447  *	attributes used with this event are defined in enum
448  *	qca_wlan_vendor_attr_driver_disconnect_reason.
449  *
450  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
451  *	add/delete TSPEC for each AC. One command is for one specific AC only.
452  *	This command can only be used in STA mode and the STA must be
453  *	associated with an AP when the command is issued. Uses attributes
454  *	defined in enum qca_wlan_vendor_attr_config_tspec.
455  *
456  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
457  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
458  *
459  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
460  *	the host driver. The band configurations obtained are referred through
461  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
462  *
463  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
464  *	assessment.
465  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
466  *
467  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
468  *	used to update SSID information in hostapd when it is updated in the
469  *	driver. Uses the attribute NL80211_ATTR_SSID.
470  *
471  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
472  *	the driver to send opaque data from the firmware to userspace. The
473  *	driver sends an event to userspace whenever such data is received from
474  *	the firmware.
475  *
476  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
477  *	send this opaque data for this event.
478  *
479  *	The format of the opaque data is specific to the particular firmware
480  *	version and there is no guarantee of the format remaining same.
481  *
482  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
483  *	The host driver selects Tx VDEV, and notifies user. The attributes
484  *	used with this event are defined in enum
485  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
486  *	This event contains Tx VDEV group information contains other VDEVs
487  *	interface index and status information.
488  *
489  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_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 
667 enum qca_nl80211_vendor_subcmds {
668 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
669 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
670 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
671 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
672 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
673 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
674 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
675 
676 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
677 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
678 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
679 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
680 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
681 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
682 
683 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
684 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
685 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
686 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
687 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
688 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
689 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
690 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
691 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
692 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
693 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
694 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
695 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
696 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
697 
698 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
699 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
700 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
701 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
702 
703 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
704 
705 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
706 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
707 
708 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
709 
710 	/* Get Concurrency Matrix */
711 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
712 
713 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
714 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
715 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
716 
717 	/* Deprecated */
718 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
719 
720 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
721 
722 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
723 
724 	/* Off loaded DFS events */
725 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
726 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
727 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
728 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
729 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
730 
731 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
732 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
733 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
734 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
735 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
736 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
737 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
738 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
739 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
740 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
741 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
742 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
743 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
744 
745 	/* Wi-Fi Configuration subcommands */
746 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
747 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
748 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
749 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
750 
751 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
752 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
753 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
754 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
755 
756 	/* NS Offload enable/disable cmd */
757 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
758 
759 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
760 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
761 
762 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
763 
764 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
765 	/* OCB commands */
766 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
767 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
768 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
769 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
770 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
771 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
772 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
773 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
774 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
775 
776 	/* subcommand to get link properties */
777 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
778 	/* LFR Subnet Detection */
779 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
780 
781 	/* DBS subcommands */
782 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
783 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
784 
785 	/* Vendor setband command */
786 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
787 
788 	/* Vendor scan commands */
789 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
790 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
791 
792 	/* OTA test subcommand */
793 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
794 	/* Tx power scaling subcommands */
795 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
796 	/* Tx power scaling in db subcommands */
797 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
798 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
799 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
800 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
801 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
802 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
803 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
804 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
805 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
806 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
807 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
808 
809 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
810 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
811 	/* FTM/indoor location subcommands */
812 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
813 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
814 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
815 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
816 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
817 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
818 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
819 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
820 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
821 
822 	/* Encrypt/Decrypt command */
823 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
824 
825 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
826 	/* DMG low level RF sector operations */
827 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
828 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
829 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
830 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
831 
832 	/* Configure the TDLS mode from user space */
833 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
834 
835 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
836 
837 	/* Vendor abort scan command */
838 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
839 
840 	/* Set Specific Absorption Rate(SAR) Power Limits */
841 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
842 
843 	/* External Auto channel configuration setting */
844 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
845 
846 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
847 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
848 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
849 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
850 
851 	/* Set the trace level for QDF */
852 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
853 
854 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
855 
856 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
857 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
858 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
859 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
860 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
861 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
862 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
863 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
864 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
865 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
866 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
867 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
868 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
869 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
870 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
871 	/* Wi-Fi test configuration subcommand */
872 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
873 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
874 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
875 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
876 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
877 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
878 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
879 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
880 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
881 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
882 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
883 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
884 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
885 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
886 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
887 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
888 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
889 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
890 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
891 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
892 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
893 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
894 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
895 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
896 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
897 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
898 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
899 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
900 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
901 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
902 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
903 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
904 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
905 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
906 	/* 206..212 - reserved for QCA */
907 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
908 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
909 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
910 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
911 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
912 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
913 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
914 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
915 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
916 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
917 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
918 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
919 };
920 
921 enum qca_wlan_vendor_tos {
922 	QCA_WLAN_VENDOR_TOS_BK = 0,
923 	QCA_WLAN_VENDOR_TOS_BE = 1,
924 	QCA_WLAN_VENDOR_TOS_VI = 2,
925 	QCA_WLAN_VENDOR_TOS_VO = 3,
926 };
927 
928 /**
929  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
930  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
931  */
932 enum qca_wlan_vendor_attr_active_tos {
933 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
934 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
935 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
936 	/* Flag attribute representing the start (attribute included) or stop
937 	 * (attribute not included) of the respective TOS.
938 	 */
939 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
940 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
941 };
942 
943 enum qca_wlan_vendor_hang_reason {
944 	/* Unspecified reason */
945 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
946 	/* No Map for the MAC entry for the received frame */
947 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
948 	/* peer deletion timeout happened */
949 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
950 	/* peer unmap timeout */
951 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
952 	/* Scan request timed out */
953 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
954 	/* Consecutive Scan attempt failures */
955 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
956 	/* Unable to get the message buffer */
957 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
958 	/* Current command processing is timedout */
959 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
960 	/* Timeout for an ACK from FW for suspend request */
961 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
962 	/* Timeout for an ACK from FW for resume request */
963 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
964 	/* Transmission timeout for consecutive data frames */
965 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
966 	/* Timeout for the TX completion status of data frame */
967 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
968 	/* DXE failure for tx/Rx, DXE resource unavailability */
969 	QCA_WLAN_HANG_DXE_FAILURE = 12,
970 	/* WMI pending commands exceed the maximum count */
971 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
972 	/* Timeout for peer STA connection accept command's response from the
973 	 * FW in AP mode. This command is triggered when a STA (peer) connects
974 	 * to AP (DUT).
975 	 */
976 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
977 	/* Timeout for the AP connection accept command's response from the FW
978 	 * in STA mode. This command is triggered when the STA (DUT) connects
979 	 * to an AP (peer).
980 	 */
981 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
982 	/* Timeout waiting for the response to the MAC HW mode change command
983 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
984 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
985 	 * Channel Concurrency) mode.
986 	 */
987 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
988 	/* Timeout waiting for the response from FW to configure the MAC HW's
989 	 * mode. This operation is to configure the single/two MACs in either
990 	 * SCC/MCC/DBS mode.
991 	 */
992 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
993 	/* Timeout waiting for response of VDEV start command from the FW */
994 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
995 	/* Timeout waiting for response of VDEV restart command from the FW */
996 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
997 	/* Timeout waiting for response of VDEV stop command from the FW */
998 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
999 	/* Timeout waiting for response of VDEV delete command from the FW */
1000 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
1001 	/* Timeout waiting for response of peer all delete request command to
1002 	 * the FW on a specific VDEV.
1003 	 */
1004 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
1005 	/* WMI sequence mismatch between WMI command and Tx completion */
1006 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
1007 	/* Write to Device HAL register failed */
1008 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
1009 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
1010 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
1011 	/* Bus failure */
1012 	QCA_WLAN_HANG_BUS_FAILURE = 26,
1013 	/* tasklet/credit latency found */
1014 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
1015 	/* MSDU buffers received in REO error ring, exceeding certain
1016 	 * threshold
1017 	 */
1018 	QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
1019 	/* Vdev SM is out of sync and connect req received
1020 	 * when already connected
1021 	 */
1022 	QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
1023 	/* Stats request timeout */
1024 	QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
1025 	/* Leak in TX descriptor for a packet */
1026 	QCA_WLAN_HANG_TX_DESC_LEAK = 31,
1027 	/* Scheduler watchdog timeout */
1028 	QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
1029 	/* Failed to send self peer deletion cmd to firmware */
1030 	QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
1031 	/* Received del self sta without del bss */
1032 	QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
1033 	/* Recovery needed when sending flush completion to userspace */
1034 	QCA_WLAN_HANG_FLUSH_LOGS = 35,
1035 	/* Host wakeup because of page fault */
1036 	QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
1037 };
1038 
1039 /**
1040  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
1041  * QCA_NL80211_VENDOR_SUBCMD_HANG.
1042  */
1043 enum qca_wlan_vendor_attr_hang {
1044 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
1045 	/*
1046 	 * Reason for the Hang - Represented by enum
1047 	 * qca_wlan_vendor_hang_reason.
1048 	 */
1049 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
1050 	/* The binary blob data associated with the hang reason specified by
1051 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
1052 	 * contain the required dump to analyze the reason for the hang.
1053 	 * NLA_BINARY attribute, the max size is 1024 bytes.
1054 	 */
1055 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
1056 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
1057 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
1058 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
1059 };
1060 
1061 /**
1062  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
1063  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
1064  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
1065  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
1066     level needs to be updated.
1067  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
1068  * to be set.
1069  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
1070  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
1071  */
1072 enum qca_vendor_attr_set_trace_level {
1073 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1074 	/*
1075 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1076 	* attributes.
1077 	*/
1078 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1079 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1080 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1081 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1082 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1083 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1084 };
1085 
1086 /**
1087  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1088  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1089  * station information. The information obtained through these
1090  * commands signify the current info in connected state and
1091  * latest cached information during the connected state , if queried
1092  * when in disconnected state.
1093  *
1094  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1095  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1096  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1097  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1098  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1099  */
1100 enum qca_wlan_vendor_attr_get_station {
1101 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1102 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1103 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1104 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1105 
1106 	/* keep last */
1107 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1108 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1109 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1110 };
1111 
1112 /**
1113  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1114  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1115  *
1116  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1117  * Used in STA mode. This attribute represents the list of channel center
1118  * frequencies in MHz (u32) the station has learnt during the last connection
1119  * or roaming attempt. This information shall not signify the channels for
1120  * an explicit scan request from the user space. Host drivers can update this
1121  * information to the user space in both connected and disconnected state.
1122  * In the disconnected state this information shall signify the channels
1123  * scanned in the last connection/roam attempt that lead to the disconnection.
1124  */
1125 enum qca_wlan_vendor_attr_update_sta_info {
1126 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1127 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1128 
1129 	/* keep last */
1130 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1131 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1132 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1133 };
1134 
1135 /**
1136  * enum qca_wlan_802_11_mode - dot11 mode
1137  * @QCA_WLAN_802_11_MODE_11B: mode B
1138  * @QCA_WLAN_802_11_MODE_11G: mode G
1139  * @QCA_WLAN_802_11_MODE_11N: mode N
1140  * @QCA_WLAN_802_11_MODE_11A: mode A
1141  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1142  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1143  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1144  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1145  */
1146 enum qca_wlan_802_11_mode {
1147 	QCA_WLAN_802_11_MODE_11B,
1148 	QCA_WLAN_802_11_MODE_11G,
1149 	QCA_WLAN_802_11_MODE_11N,
1150 	QCA_WLAN_802_11_MODE_11A,
1151 	QCA_WLAN_802_11_MODE_11AC,
1152 	QCA_WLAN_802_11_MODE_11AX,
1153 	QCA_WLAN_802_11_MODE_11BE,
1154 	QCA_WLAN_802_11_MODE_INVALID,
1155 };
1156 
1157 /**
1158  * enum qca_wlan_auth_type - Authentication key management type
1159  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1160  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1161  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1162  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1163  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1164  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1165  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1166  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1167  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1168  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1169  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1170  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1171  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1172  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1173  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1174  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1175  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1176  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1177  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1178  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1179  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1180  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1181  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1182  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1183  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1184  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1185  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1186  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1187  */
1188 enum qca_wlan_auth_type {
1189 	QCA_WLAN_AUTH_TYPE_INVALID,
1190 	QCA_WLAN_AUTH_TYPE_OPEN,
1191 	QCA_WLAN_AUTH_TYPE_SHARED,
1192 	QCA_WLAN_AUTH_TYPE_WPA,
1193 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1194 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1195 	QCA_WLAN_AUTH_TYPE_RSN,
1196 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1197 	QCA_WLAN_AUTH_TYPE_FT,
1198 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1199 	QCA_WLAN_AUTH_TYPE_SHA256,
1200 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1201 	QCA_WLAN_AUTH_TYPE_WAI,
1202 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1203 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1204 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1205 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1206 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1207 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1208 	QCA_WLAN_AUTH_TYPE_SAE,
1209 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1210 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1211 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1212 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1213 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1214 	QCA_WLAN_AUTH_TYPE_OWE,
1215 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1216 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1217 };
1218 
1219 /**
1220  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1221  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1222  *
1223  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1224  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1225  *  Get the standard NL attributes Nested with this attribute.
1226  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1227  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1228  *  NL80211_ATTR_STA_INFO
1229  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1230  *  Get the standard NL attributes Nested with this attribute.
1231  *  Ex : Query HT/VHT Capability advertized by the AP.
1232  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1233  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1234  *  Number of successful Roam attempts before a
1235  *  disconnect, Unsigned 32 bit value
1236  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1237  *  Authentication Key Management Type used for the connected session.
1238  *  Signified by enum qca_wlan_auth_type
1239  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1240  *  connected Session, signified by enum qca_wlan_802_11_mode
1241  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1242  *  HS20 Indication Element
1243  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1244  *  Status Code Corresponding to the Association Failure.
1245  *  Unsigned 32 bit value.
1246  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1247  *  Max phy rate of remote station
1248  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1249  *  TX packets to remote station
1250  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1251  *  TX bytes to remote station
1252  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1253  *  RX packets from remote station
1254  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1255  *  RX bytes from remote station
1256  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1257  *  Last TX rate with remote station
1258  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1259  *  Last RX rate with remote station
1260  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1261  *  Remote station enable/disable WMM
1262  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1263  *  Remote station connection mode
1264  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1265  *  Remote station AMPDU enable/disable
1266  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1267  *  Remote station TX Space-time block coding enable/disable
1268  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1269  *  Remote station RX Space-time block coding enable/disable
1270  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1271  *  Remote station channel width
1272  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1273  *  Remote station short GI enable/disable
1274  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1275  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1276  *  containing the raw information elements from Beacon frames. Represents
1277  *  the Beacon frames of the current BSS in the connected state. When queried
1278  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1279  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1280  *  disconnect reason for the last disconnection if the disconnection is
1281  *  triggered from the host driver. The values are referred from
1282  *  enum qca_disconnect_reason_codes. If the disconnect is from
1283  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1284  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1285  *  Applicable in AP mode only. It contains the raw information elements
1286  *  from assoc request frame of the given peer station. User queries with the
1287  *  mac address of peer station when it disconnects. Host driver sends
1288  *  assoc request frame of the given station. Host driver doesn't provide
1289  *  the IEs when the peer station is still in connected state.
1290  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1291  * sending HE operation info.
1292  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1293  *
1294  */
1295 enum qca_wlan_vendor_attr_get_station_info {
1296 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1297 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1298 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1299 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1300 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1301 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1302 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1303 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1304 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1305 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1306 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1307 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1308 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1309 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1310 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1311 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1312 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1313 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1314 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1315 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1316 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1317 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1318 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1319 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1320 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1321 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1322 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1323 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1324 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1325 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1326 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1327 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1328 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1329 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1330 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1331 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1332 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1333 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1334 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1335 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1336 
1337 	/* keep last */
1338 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1339 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1340 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1341 };
1342 
1343 /**
1344  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1345  *
1346  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1347  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1348  *	value
1349  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1350  *	keep as unsigned for now
1351  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1352  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1353  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1354  *	in KBPS
1355  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1356  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1357  */
1358 enum qca_wlan_vendor_attr_tdls_enable {
1359 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1360 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1361 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1362 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1363 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1364 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1365 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1366 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1367 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1368 };
1369 
1370 /**
1371  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1372  *
1373  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1374  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1375  *	8-bit value
1376  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1377  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1378  */
1379 enum qca_wlan_vendor_attr_tdls_disable {
1380 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1381 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1382 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1383 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1384 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1385 };
1386 
1387 /**
1388  * qca_chip_power_save_failure_reason: Power save failure reason
1389  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1390  * due to protocol/module.
1391  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1392  * due to hardware
1393  */
1394 enum qca_chip_power_save_failure_reason {
1395 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1396 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1397 };
1398 
1399 /**
1400  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1401  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1402  * information leading to the power save failure.
1403  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1404  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1405  * represented by enum qca_chip_power_save_failure_reason
1406  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1407  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1408  */
1409 enum qca_attr_chip_power_save_failure {
1410 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1411 
1412 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1413 
1414 	/* keep last */
1415 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1416 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1417 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1418 };
1419 
1420 
1421 /**
1422  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1423  *
1424  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1425  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1426  *	8-bit value
1427  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1428  *	unsigned 32-bit value
1429  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1430  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1431  *	unsigned 32-bit value
1432  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1433  *	class, unsigned 32-bit value
1434  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1435  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1436  */
1437 enum qca_wlan_vendor_attr_tdls_get_status {
1438 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1439 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1440 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1441 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1442 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1443 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1444 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1445 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1446 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1447 };
1448 
1449 /**
1450  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1451  *
1452  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1453  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1454  *	8-bit value
1455  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1456  *	unsigned 32-bit value
1457  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1458  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1459  *	unsigned 32-bit value
1460  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1461  *	operating class, unsigned 32-bit value
1462  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1463  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1464  */
1465 enum qca_wlan_vendor_attr_tdls_state {
1466 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1467 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1468 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1469 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1470 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1471 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1472 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1473 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1474 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1475 };
1476 
1477 /* enum's to provide TDLS capabilities */
1478 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1479 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1480 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1481 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1482 
1483 	/* keep last */
1484 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1485 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1486 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1487 };
1488 
1489 /* Compatibility defines for previously used subcmd names.
1490  * These values should not be used in any new implementation.
1491  */
1492 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1493 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1494 
1495 enum qca_wlan_vendor_attr {
1496 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1497 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1498 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1499 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1500 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1501 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1502 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1503 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1504 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1505 	/*
1506 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1507 	 * by enum qca_roaming_policy.
1508 	 */
1509 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1510 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1511 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1512 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1513 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1514 	/*
1515 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1516 	 * Unsigned 32-bit value.
1517 	 */
1518 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1519 	/* Unsigned 32-bit value */
1520 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1521 	/* Unsigned 32-bit value */
1522 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1523 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1524 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1525 	 * is deprecated. Recommendation is to use
1526 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1527 	 * using both the attributes, the ones configured through
1528 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1529 	 */
1530 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1531 	/* Dummy (NOP) attribute for 64 bit padding */
1532 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1533 	/*
1534 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1535 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1536 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1537 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1538 	 */
1539 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1540 	/*
1541 	 * Indoor location capabilities, returned by
1542 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1543 	 * see enum qca_wlan_vendor_attr_loc_capa.
1544 	 */
1545 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1546 	/*
1547 	 * Array of nested attributes containing information about each peer
1548 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1549 	 * for supported attributes for each peer.
1550 	 */
1551 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1552 	/*
1553 	 * Array of nested attributes containing measurement results for
1554 	 * one or more peers, reported by the
1555 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1556 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1557 	 * attributes.
1558 	 */
1559 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1560 	/* Flag attribute for enabling or disabling responder functionality. */
1561 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1562 	/*
1563 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1564 	 * command to specify the LCI report that will be sent by
1565 	 * the responder during a measurement exchange. The format is
1566 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1567 	 */
1568 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1569 	/*
1570 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1571 	 * command to specify the location civic report that will
1572 	 * be sent by the responder during a measurement exchange.
1573 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1574 	 */
1575 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1576 	/*
1577 	 * Session/measurement completion status code,
1578 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1579 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1580 	 * see enum qca_vendor_attr_loc_session_status.
1581 	 */
1582 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1583 	/*
1584 	 * Initial dialog token used by responder (0 if not specified),
1585 	 * unsigned 8 bit value.
1586 	 */
1587 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1588 	/*
1589 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1590 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1591 	 * AOA measurements are needed as part of an FTM session.
1592 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1593 	 * enum qca_wlan_vendor_attr_aoa_type.
1594 	 */
1595 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1596 	/*
1597 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1598 	 * by indoor location measurements. Refers to the antenna
1599 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1600 	 */
1601 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1602 	/*
1603 	 * AOA measurement data. Its contents depends on the AOA measurement
1604 	 * type and antenna array mask:
1605 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1606 	 * phase of the strongest CIR path for each antenna in the measured
1607 	 * array(s).
1608 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1609 	 * values, phase and amplitude of the strongest CIR path for each
1610 	 * antenna in the measured array(s).
1611 	 */
1612 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1613 	/*
1614 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1615 	 * to specify the chain number (unsigned 32 bit value) to inquire
1616 	 * the corresponding antenna RSSI value */
1617 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1618 	/*
1619 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1620 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1621 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1622 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1623 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1624 	/*
1625 	 *  TSF timer value, unsigned 64 bit value.
1626 	 * May be returned by various commands.
1627 	 */
1628 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1629 	/*
1630 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1631 	 * 0..127 for sector indices or 65535 as special value used to
1632 	 * unlock sector selection in
1633 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1634 	 */
1635 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1636 	/*
1637 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1638 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1639 	 */
1640 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1641 	/*
1642 	 * Bitmask of DMG RF modules for which information is requested. Each
1643 	 * bit corresponds to an RF module with the same index as the bit
1644 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1645 	 * all DMG chips currently have up to 8 RF modules.
1646 	 */
1647 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1648 	/*
1649 	 * Array of nested attributes where each entry is DMG RF sector
1650 	 * configuration for a single RF module.
1651 	 * Attributes for each entry are taken from enum
1652 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1653 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1654 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1655 	 */
1656 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1657 	/*
1658 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1659 	 * to report frame aggregation statistics to userspace.
1660 	 */
1661 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1662 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1663 	/*
1664 	 * Unsigned 8-bit value representing MBO transition reason code as
1665 	 * provided by the AP used by subcommand
1666 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1667 	 * specified by the userspace in the request to the driver.
1668 	 */
1669 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1670 	/*
1671 	 * Array of nested attributes, BSSID and status code, used by subcommand
1672 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1673 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1674 	 * The userspace space specifies the list/array of candidate BSSIDs in
1675 	 * the order of preference in the request. The driver specifies the
1676 	 * status code, for each BSSID in the list, in the response. The
1677 	 * acceptable candidates are listed in the order preferred by the
1678 	 * driver.
1679 	 */
1680 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1681 	/*
1682 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1683 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1684 	 */
1685 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1686 	/*
1687 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1688 	 * to define the number of antennas to use for BRP.
1689 	 * different purpose in each ANT_LIMIT_MODE:
1690 	 * DISABLE - ignored
1691 	 * EFFECTIVE - upper limit to number of antennas to be used
1692 	 * FORCE - exact number of antennas to be used
1693 	 * unsigned 8 bit value
1694 	 */
1695 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1696 	/*
1697 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1698 	 * to report the corresponding antenna index to the chain RSSI value
1699 	 */
1700 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1701 	/*
1702 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1703 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1704 	 * With a determinate group of antennas, the driver specifies the
1705 	 * EVM value for each antenna ID, and application extract them
1706 	 * in user space.
1707 	 */
1708 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1709 	/*
1710 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1711 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1712 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1713 	 */
1714 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1715 
1716 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1717 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1718 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1719 	 * This attribute shall consider the bitmask combinations to define
1720 	 * the respective Band combinations and always takes precedence over
1721 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1722 	 */
1723 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1724 
1725 	/* keep last */
1726 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1727 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1728 };
1729 
1730 enum qca_wlan_vendor_attr_extscan_config_params {
1731 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1732 
1733 	/* Unsigned 32-bit value */
1734 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1735 
1736 	/*
1737 	 * Attributes for data used by
1738 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1739 	 */
1740 
1741 	/* Unsigned 32-bit value */
1742 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1743 	= 2,
1744 	/* Unsigned 32-bit value */
1745 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1746 	= 3,
1747 
1748 	/*
1749 	 * Attributes for input params used by
1750 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1751 	 */
1752 
1753 	/* Unsigned 32-bit value; channel frequency */
1754 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1755 	/* Unsigned 32-bit value; dwell time in ms. */
1756 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1757 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1758 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1759 	/* Unsigned 8-bit value; channel class */
1760 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1761 
1762 	/* Unsigned 8-bit value; bucket index, 0 based */
1763 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1764 	/* Unsigned 8-bit value; band. */
1765 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1766 	/* Unsigned 32-bit value; desired period, in ms. */
1767 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1768 	/* Unsigned 8-bit value; report events semantics. */
1769 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1770 	/*
1771 	 * Unsigned 32-bit value. Followed by a nested array of
1772 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1773 	 */
1774 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1775 
1776 	/*
1777 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1778 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1779 	 */
1780 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1781 
1782 	/* Unsigned 32-bit value; base timer period in ms. */
1783 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1784 	/*
1785 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1786 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1787 	 */
1788 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1789 	/*
1790 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1791 	 * up AP.
1792 	 */
1793 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1794 	= 16,
1795 
1796 	/*
1797 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1798 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1799 	 * of the array is determined by NUM_BUCKETS.
1800 	 */
1801 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1802 
1803 	/*
1804 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1805 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1806 	 */
1807 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1808 
1809 	/* Unsigned 8-bit value */
1810 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1811 	= 19,
1812 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1813 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1814 	= 20,
1815 
1816 	/* An array of 6 x unsigned 8-bit value */
1817 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1818 	/* Signed 32-bit value */
1819 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1820 	/* Signed 32-bit value */
1821 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1822 	/* Unsigned 32-bit value */
1823 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1824 
1825 	/*
1826 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1827 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1828 	 * array is determined by NUM_AP.
1829 	 */
1830 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1831 
1832 	/*
1833 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1834 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1835 	 */
1836 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1837 
1838 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1839 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1840 	= 27,
1841 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1842 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1843 	= 28,
1844 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1845 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1846 	/*
1847 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1848 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1849 	 */
1850 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1851 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1852 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1853 	= 31,
1854 	/*
1855 	 * Unsigned 32-bit value. If max_period is non zero or different than
1856 	 * period, then this bucket is an exponential backoff bucket.
1857 	 */
1858 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1859 	/* Unsigned 32-bit value. */
1860 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1861 	/*
1862 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1863 	 * scans to perform for a given period.
1864 	 */
1865 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1866 	/*
1867 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1868 	 * many scans.
1869 	 */
1870 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1871 	= 35,
1872 
1873 	/*
1874 	 * Attributes for data used by
1875 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1876 	 */
1877 
1878 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1879 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1880 	= 36,
1881 	/*
1882 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1883 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1884 	 * size of the array is determined by NUM_SSID.
1885 	 */
1886 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1887 	/*
1888 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1889 	 * attributes.
1890 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1891 	 */
1892 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1893 
1894 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1895 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1896 	/* Unsigned 8-bit value */
1897 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1898 	/* Signed 32-bit value */
1899 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1900 	/* Signed 32-bit value */
1901 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1902 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1903 	 */
1904 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1905 
1906 	/* keep last */
1907 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1908 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1909 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1910 };
1911 
1912 enum qca_wlan_vendor_attr_extscan_results {
1913 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1914 
1915 	/*
1916 	 * Unsigned 32-bit value; must match the request Id supplied by
1917 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1918 	 */
1919 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1920 
1921 	/*
1922 	 * Unsigned 32-bit value; used to indicate the status response from
1923 	 * firmware/driver for the vendor sub-command.
1924 	 */
1925 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1926 
1927 	/*
1928 	 * EXTSCAN Valid Channels attributes */
1929 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1930 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1931 	/*
1932 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1933 	 * representing channel numbers.
1934 	 */
1935 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1936 
1937 	/* EXTSCAN Capabilities attributes */
1938 
1939 	/* Unsigned 32-bit value */
1940 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1941 	/* Unsigned 32-bit value */
1942 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1943 	/* Unsigned 32-bit value */
1944 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1945 	= 7,
1946 	/* Unsigned 32-bit value */
1947 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1948 	= 8,
1949 	/* Signed 32-bit value */
1950 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1951 	= 9,
1952 	/* Unsigned 32-bit value */
1953 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1954 	/* Unsigned 32-bit value */
1955 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1956 	= 11,
1957 	/* Unsigned 32-bit value */
1958 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1959 	= 12,
1960 
1961 	/*
1962 	 * EXTSCAN Attributes used with
1963 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1964 	 */
1965 
1966 	/* Unsigned 32-bit value */
1967 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1968 
1969 	/*
1970 	 * EXTSCAN attributes used with
1971 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1972 	 */
1973 
1974 	/*
1975 	 * An array of NUM_RESULTS_AVAILABLE x
1976 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1977 	 */
1978 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1979 
1980 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1981 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1982 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1983 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1984 	/* An array of 6 x unsigned 8-bit value */
1985 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1986 	/* Unsigned 32-bit value; channel frequency in MHz */
1987 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1988 	/* Signed 32-bit value */
1989 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1990 	/* Unsigned 32-bit value */
1991 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1992 	/* Unsigned 32-bit value */
1993 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
1994 	/* Unsigned 16-bit value */
1995 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
1996 	/* Unsigned 16-bit value */
1997 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
1998 	/* Unsigned 32-bit value; size of the IE DATA blob */
1999 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
2000 	/*
2001 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
2002 	 * information elements found in the beacon; this data should be a
2003 	 * packed list of wifi_information_element objects, one after the
2004 	 * other.
2005 	 */
2006 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
2007 
2008 	/*
2009 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
2010 	 * available.
2011 	 */
2012 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
2013 
2014 	/*
2015 	 * EXTSCAN attributes for
2016 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
2017 	 */
2018 	/* Unsigned 8-bit value */
2019 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
2020 	/* Unsigned 32-bit value */
2021 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
2022 
2023 	/*
2024 	 * EXTSCAN attributes for
2025 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
2026 	 */
2027 	/*
2028 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2029 	 * to indicate number of results.
2030 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2031 	 * list of results.
2032 	 */
2033 
2034 	/*
2035 	 * EXTSCAN attributes for
2036 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
2037 	 */
2038 	/* An array of 6 x unsigned 8-bit value */
2039 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
2040 	/* Unsigned 32-bit value */
2041 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
2042 	= 30,
2043 	/* Unsigned 32-bit value. */
2044 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
2045 	= 31,
2046 	/*
2047 	 * A nested array of signed 32-bit RSSI values. Size of the array is
2048 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
2049 	 */
2050 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
2051 	= 32,
2052 
2053 	/*
2054 	 * EXTSCAN attributes used with
2055 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
2056 	 */
2057 	/*
2058 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2059 	 * to indicate number of extscan cached results returned.
2060 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
2061 	 *  the list of extscan cached results.
2062 	 */
2063 
2064 	/*
2065 	 * An array of NUM_RESULTS_AVAILABLE x
2066 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
2067 	 */
2068 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
2069 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
2070 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
2071 	/*
2072 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
2073 	 */
2074 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
2075 	/*
2076 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2077 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
2078 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2079 	 * list of wifi scan results returned for each cached result block.
2080 	 */
2081 
2082 	/*
2083 	 * EXTSCAN attributes for
2084 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2085 	 */
2086 	/*
2087 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2088 	 * number of results.
2089 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2090 	 * list of wifi scan results returned for each
2091 	 * wifi_passpoint_match_result block.
2092 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2093 	 */
2094 
2095 	/*
2096 	 * EXTSCAN attributes for
2097 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2098 	 */
2099 	/* Unsigned 32-bit value */
2100 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2101 	= 36,
2102 	/*
2103 	 * A nested array of
2104 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2105 	 * attributes. Array size =
2106 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2107 	 */
2108 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2109 
2110 	/* Unsigned 32-bit value; network block id for the matched network */
2111 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2112 	/*
2113 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2114 	 * list of wifi scan results returned for each
2115 	 * wifi_passpoint_match_result block.
2116 	 */
2117 	/* Unsigned 32-bit value */
2118 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2119 	/*
2120 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2121 	 * ANQP data in the information_element format.
2122 	 */
2123 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2124 
2125 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2126 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2127 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2128 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2129 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2130 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2131 	= 43,
2132 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2133 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2134 	= 44,
2135 
2136 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2137 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2138 
2139 	/* keep last */
2140 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2141 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2142 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2143 };
2144 
2145 /**
2146  * enum qca_vendor_interop_issues_ap_type - interop issues type
2147  * This enum defines the valid set of values of interop issues type. These
2148  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2149  *
2150  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2151  * when the STA's Qpower feature is enabled.
2152  */
2153 enum qca_vendor_interop_issues_ap_type {
2154 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2155 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2156 };
2157 
2158 /**
2159  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2160  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2161  *
2162  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2163  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2164  * 32-bit unsigned value, The type defined in enum
2165  * qca_vendor_interop_issues_ap_type are used.
2166  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2167  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2168  * it is present and mandatory for the command but is not used for
2169  * the event since only a single BSSID is reported in an event.
2170  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2171  * 6-byte MAC address. It is used within the nested
2172  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2173  * and without such encapsulation in the event case.
2174  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2175  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2176  */
2177 enum qca_vendor_attr_interop_issues_ap {
2178 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2179 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2180 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2181 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2182 	/* keep last */
2183 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2184 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2185 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2186 };
2187 
2188 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2189 
2190 /**
2191  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
2192  *
2193  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
2194  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
2195  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
2196  *	Aggressive stats gathering
2197  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
2198  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
2199  */
2200 enum qca_wlan_vendor_attr_ll_stats_set {
2201 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2202 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2203 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
2204 	/* keep last */
2205 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2206 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2207 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
2208 };
2209 
2210 /**
2211  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
2212  *
2213  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
2214  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
2215  *	provided by the caller issuing the GET stats command. When reporting
2216  *	the stats results, the driver uses the same value to indicate which
2217  *	GET request the results correspond to.
2218  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
2219  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2220  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2221  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
2222  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
2223  */
2224 enum qca_wlan_vendor_attr_ll_stats_get {
2225 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2226 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
2227 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
2228 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2229 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2230 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
2231 };
2232 
2233 /**
2234  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
2235  *
2236  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
2237  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
2238  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
2239  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2240  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2241  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
2242  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
2243  */
2244 enum qca_wlan_vendor_attr_ll_stats_clr {
2245 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2246 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
2247 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
2248 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
2249 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
2250 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2251 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2252 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
2253 };
2254 
2255 /**
2256  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2257  *
2258  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2259  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2260  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2261  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2262  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2263  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2264  */
2265 enum qca_wlan_vendor_attr_ll_stats_results_type {
2266 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2267 
2268 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2269 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2270 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2271 
2272 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2273 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2274 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2275 };
2276 
2277 enum qca_wlan_vendor_attr_ll_stats_results {
2278 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2279 	/* Unsigned 32bit value. Used by the driver; must match the request id
2280 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2281 	 */
2282 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2283 
2284 	/* Unsigned 32 bit value */
2285 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2286 	/* Unsigned 32 bit value */
2287 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2288 	/* Unsigned 32 bit value */
2289 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2290 	/* Unsigned 32 bit value */
2291 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2292 	/* Signed 32 bit value */
2293 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2294 	/* Signed 32 bit value */
2295 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2296 	/* Signed 32 bit value */
2297 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2298 
2299 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2300 	 * nested within the interface stats.
2301 	 */
2302 
2303 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2304 	 * Type = enum wifi_interface_mode.
2305 	 */
2306 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2307 	/* Interface MAC address. An array of 6 Unsigned int8 */
2308 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2309 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2310 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2311 	 */
2312 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2313 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2314 	 */
2315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2316 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2317 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2318 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2319 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2320 	/* BSSID. An array of 6 unsigned 8 bit values */
2321 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2322 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2323 	 * values.
2324 	 */
2325 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2326 	/* Country string for this association. An array of 3 unsigned 8 bit
2327 	 * values.
2328 	 */
2329 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2330 
2331 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2332 	 * be nested within the interface stats.
2333 	 */
2334 
2335 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2336 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2337 	/* Unsigned int 32 value corresponding to respective AC */
2338 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2339 	/* Unsigned int 32 value corresponding to respective AC */
2340 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2341 	/* Unsigned int 32 value corresponding to respective AC */
2342 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2343 	/* Unsigned int 32 value corresponding to respective AC */
2344 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2345 	/* Unsigned int 32 value corresponding to respective AC */
2346 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2347 	/* Unsigned int 32 value corresponding to respective AC */
2348 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2349 	/* Unsigned int 32 value corresponding to respective AC */
2350 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2351 	/* Unsigned int 32 value corresponding to respective AC */
2352 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2353 	/* Unsigned int 32 value corresponding to respective AC  */
2354 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2355 	/* Unsigned int 32 values corresponding to respective AC */
2356 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2357 	/* Unsigned int 32 values corresponding to respective AC */
2358 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2359 	/* Unsigned int 32 values corresponding to respective AC */
2360 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2361 	/* Unsigned int 32 values corresponding to respective AC */
2362 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2363 	/* Unsigned int 32 values corresponding to respective AC */
2364 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2365 	/* Unsigned 32 bit value. Number of peers */
2366 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2367 
2368 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2369 	 * nested within the interface stats.
2370 	 */
2371 
2372 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2373 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2374 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2375 	 * 8 bit values.
2376 	 */
2377 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2378 	/* Unsigned int 32 bit value representing capabilities corresponding
2379 	 * to respective peer.
2380 	 */
2381 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2382 	/* Unsigned 32 bit value. Number of rates */
2383 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2384 
2385 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2386 	 * are nested within the rate stat.
2387 	 */
2388 
2389 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2390 
2391 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2392 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2393 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2394 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2395 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2396 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2397 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2398 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2399 	 */
2400 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2401 
2402 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2403 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2404 
2405 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2406 	 * nested within the peer info stats.
2407 	 */
2408 
2409 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2410 	 * packets, i.e., with ACK received corresponding to the respective
2411 	 * rate.
2412 	 */
2413 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2414 	/* Unsigned int 32 bit value. Number of received data packets
2415 	 * corresponding to the respective rate.
2416 	 */
2417 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2418 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2419 	 * received corresponding to the respective rate.
2420 	 */
2421 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2422 	/* Unsigned int 32 bit value. Total number of data packet retries for
2423 	 * the respective rate.
2424 	 */
2425 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2426 	/* Unsigned int 32 bit value. Total number of short data packet retries
2427 	 * for the respective rate.
2428 	 */
2429 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2430 	/* Unsigned int 32 bit value. Total number of long data packet retries
2431 	 * for the respective rate.
2432 	 */
2433 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2434 
2435 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2436 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2437 	 * accruing over time.
2438 	 */
2439 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2440 	/* Unsigned 32 bit value. Total number of msecs the radio is
2441 	 * transmitting accruing over time.
2442 	 */
2443 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2444 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2445 	 * receive accruing over time.
2446 	 */
2447 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2448 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2449 	 * to all scan accruing over time.
2450 	 */
2451 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2452 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2453 	 * to NAN accruing over time.
2454 	 */
2455 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2456 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2457 	 * to GSCAN accruing over time.
2458 	 */
2459 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2460 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2461 	 * to roam scan accruing over time.
2462 	 */
2463 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2464 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2465 	 * to PNO scan accruing over time.
2466 	 */
2467 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2468 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2469 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2470 	 */
2471 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2472 	/* Unsigned 32 bit value. Number of channels. */
2473 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2474 
2475 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2476 	 * be nested within the channel stats.
2477 	 */
2478 
2479 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2481 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2482 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2483 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2484 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2485 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2486 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2487 
2488 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2489 	 * nested within the radio stats.
2490 	 */
2491 
2492 	/* Unsigned int 32 bit value representing total number of msecs the
2493 	 * radio is awake on that channel accruing over time, corresponding to
2494 	 * the respective channel.
2495 	 */
2496 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2497 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2498 	 * register is busy accruing over time corresponding to the respective
2499 	 * channel.
2500 	 */
2501 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2502 
2503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2504 
2505 	/* Signifies the nested list of channel attributes
2506 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2507 	 */
2508 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2509 
2510 	/* Signifies the nested list of peer info attributes
2511 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2512 	 */
2513 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2514 
2515 	/* Signifies the nested list of rate info attributes
2516 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2517 	 */
2518 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2519 
2520 	/* Signifies the nested list of wmm info attributes
2521 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2522 	 */
2523 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2524 
2525 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2526 	 * that more stats, e.g., peers or radio, are to follow in the next
2527 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2528 	 * Otherwise, it is set to 0.
2529 	 */
2530 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2531 
2532 	/* Unsigned 64 bit value */
2533 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2534 
2535 	/* Unsigned 32 bit value */
2536 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2537 
2538 	/* Unsigned 32 bit value */
2539 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2540 
2541 	/* Unsigned 32 bit value */
2542 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2543 
2544 	/* Unsigned 32 bit value */
2545 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2546 
2547 	/* Unsigned 32 bit value */
2548 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2549 
2550 	/* Number of msecs the radio spent in transmitting for each power level
2551 	 */
2552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2553 
2554 	/* Unsigned 32 bit value */
2555 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2556 	/* Unsigned 32 bit value */
2557 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2558 	/* Unsigned 32 bit value */
2559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2560 	/* Unsigned 32 bit value */
2561 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2562 
2563 	/* Unsigned int 32 value.
2564 	 * Pending MSDUs corresponding to respective AC.
2565 	 */
2566 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2567 
2568 	/* u32 value representing total time in milliseconds for which the radio
2569 	 * is transmitting on this channel. This attribute will be nested
2570 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2571 	 */
2572 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2573 	/* u32 value representing total time in milliseconds for which the radio
2574 	 * is receiving all 802.11 frames intended for this device on this
2575 	 * channel. This attribute will be nested within
2576 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2577 	 */
2578 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2579 	/* u8 value representing the channel load percentage. Possible values
2580 	 * are 0-100.
2581 	 */
2582 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2583 	/* u8 value representing the time slicing duty cycle percentage.
2584 	 * Possible values are 0-100.
2585 	 */
2586 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2587 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2588 	 * from the associated AP and indicate buffered unicast frame(s) for us
2589 	 * in the TIM element.
2590 	 */
2591 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2592 	/* Unsigned 32 bit value. The total number of Beacon frames received
2593 	 * from the associated AP that have wrongly indicated buffered unicast
2594 	 * traffic in the TIM element for us.
2595 	 * Below scenarios will be considered as wrong TIM element beacon:
2596 	 * 1) The related TIM element is set in the beacon for STA but STA
2597 	 *    doesn’t receive any unicast data after this beacon.
2598 	 * 2) The related TIM element is still set in the beacon for STA
2599 	 *    after STA has indicated power save exit by QoS Null Data frame.
2600 	 */
2601 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2602 
2603 	/* keep last */
2604 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2605 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2606 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2607 };
2608 
2609 enum qca_wlan_vendor_attr_ll_stats_type {
2610 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2611 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2612 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2613 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2614 
2615 	/* keep last */
2616 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2617 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2618 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2619 };
2620 
2621 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2622 
2623 /**
2624  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2625  *
2626  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2627  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2628  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2629  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2630  */
2631 enum qca_wlan_vendor_attr_get_supported_features {
2632 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2633 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2634 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2635 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2636 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2637 };
2638 
2639 /**
2640  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2641  *
2642  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2643  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2644  *	value
2645  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2646  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2647  */
2648 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2649 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2650 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2651 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2652 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2653 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2654 };
2655 
2656 /**
2657  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2658  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2659  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2660  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2661  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2662  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2663  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2664  */
2665 enum qca_wlan_vendor_scan_priority {
2666 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2667 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2668 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2669 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2670 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2671 };
2672 
2673 /**
2674  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2675  *
2676  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2677  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2678  *	with frequencies to be scanned (in MHz)
2679  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2680  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2681  *	rates to be included
2682  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2683  *	at non CCK rate in 2GHz band
2684  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2685  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2686  *	driver for the specific scan request
2687  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2688  *	request decoded as in enum scan_status
2689  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2690  *	scan flag is set
2691  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2692  *	randomisation
2693  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2694  *	specific BSSID to scan for.
2695  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2696  *	microseconds. This is a common value which applies across all
2697  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2698  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2699  *      other scan requests. It is a u32 attribute and takes values from enum
2700  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2701  *      If this attribute is not configured, the driver shall use
2702  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2703  */
2704 enum qca_wlan_vendor_attr_scan {
2705 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2706 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2707 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2708 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2709 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2710 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2711 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2712 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2713 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2714 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2715 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2716 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2717 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2718 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2719 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2720 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2721 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2722 };
2723 
2724 /**
2725  * enum scan_status - Specifies the valid values the vendor scan attribute
2726  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2727  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2728  *	new scan results
2729  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2730  */
2731 enum scan_status {
2732 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2733 	VENDOR_SCAN_STATUS_ABORTED,
2734 	VENDOR_SCAN_STATUS_MAX,
2735 };
2736 
2737 /**
2738  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2739  *
2740  * NL attributes for data used by
2741  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2742  *
2743  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2744  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2745  *	Unsigned 32-bit value
2746  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2747  *	Unsigned 32-bit value
2748  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2749  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2750  *	combinations
2751  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2752  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2753  */
2754 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2755 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2756 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2757 									= 1,
2758 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2759 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2760 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2761 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2762 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2763 };
2764 
2765 /**
2766  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2767  *
2768  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2769  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2770  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2771  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2772  */
2773 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2774 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2775 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2776 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2777 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2778 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2779 };
2780 
2781 /**
2782  * enum qca_vendor_attr_wisa_cmd
2783  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2784  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2785  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2786  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2787  * WISA setup vendor commands
2788  */
2789 enum qca_vendor_attr_wisa_cmd {
2790 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2791 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2792 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2793 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2794 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2795 };
2796 
2797 enum qca_roaming_policy {
2798 	QCA_ROAMING_NOT_ALLOWED,
2799 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2800 };
2801 
2802 /**
2803  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2804  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2805  *
2806  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2807  * reasons.
2808  *
2809  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2810  * the configured threshold.
2811  *
2812  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2813  * beacon misses from the then connected AP.
2814  *
2815  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2816  * by the connected AP.
2817  *
2818  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2819  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2820  * not poor.
2821  *
2822  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2823  * or environment being very noisy / congested.
2824  *
2825  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2826  * from the user (user space).
2827  *
2828  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2829  * connected AP.
2830  *
2831  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2832  * breaching out the configured threshold.
2833  *
2834  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
2835  * transition request.
2836  *
2837  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
2838  * there is no data activity with the AP and the current rssi falls below a
2839  * certain threshold.
2840  *
2841  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
2842  * deauthentication or disassociation frames received from the connected AP.
2843  *
2844  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
2845  * scan that happens when there is no candidate AP found during the poor
2846  * RSSI scan trigger.
2847  *
2848  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
2849  * results obtained from an external scan (not aimed at roaming).
2850  *
2851  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
2852  * connection is established when the station is connected in 2.4 Ghz band.
2853  */
2854 enum qca_roam_reason {
2855 	QCA_ROAM_REASON_UNKNOWN,
2856 	QCA_ROAM_REASON_PER,
2857 	QCA_ROAM_REASON_BEACON_MISS,
2858 	QCA_ROAM_REASON_POOR_RSSI,
2859 	QCA_ROAM_REASON_BETTER_RSSI,
2860 	QCA_ROAM_REASON_CONGESTION,
2861 	QCA_ROAM_REASON_USER_TRIGGER,
2862 	QCA_ROAM_REASON_BTM,
2863 	QCA_ROAM_REASON_BSS_LOAD,
2864 	QCA_ROAM_REASON_WTC,
2865 	QCA_ROAM_REASON_IDLE,
2866 	QCA_ROAM_REASON_DISCONNECTION,
2867 	QCA_ROAM_REASON_PERIODIC_TIMER,
2868 	QCA_ROAM_REASON_BACKGROUND_SCAN,
2869 	QCA_ROAM_REASON_BT_ACTIVITY,
2870 };
2871 
2872 /**
2873  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2874  *
2875  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2876  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2877  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2878  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2879  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2880  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2881  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2882  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2883  * Indicates the status of re-association requested by user space for
2884  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2885  * Type u16.
2886  * Represents the status code from AP. Use
2887  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2888  * real status code for failures.
2889  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2890  * This attribute indicates that the old association was maintained when
2891  * a re-association is requested by user space and that re-association
2892  * attempt fails (i.e., cannot connect to the requested BSS, but can
2893  * remain associated with the BSS with which the association was in
2894  * place when being requested to roam). Used along with
2895  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2896  * re-association status. Type flag.
2897  * This attribute is applicable only for re-association failure cases.
2898  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2899  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2900  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2901  * seq number
2902  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2903  * representing the reasons for the roaming. Defined by enum
2904  * qca_roam_reason.
2905  */
2906 enum qca_wlan_vendor_attr_roam_auth {
2907 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2908 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
2909 	 * of the roamed AP for MLO roaming.
2910 	 */
2911 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2912 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2913 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2914 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2915 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2916 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2917 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2918 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2919 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2920 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2921 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2922 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2923 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2924 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2925 	/* A nested attribute containing per-link information of all the links
2926 	 * of MLO connection done while roaming. The attributes used inside this
2927 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
2928 	 */
2929 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
2930 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2931 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2932 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2933 };
2934 
2935 /**
2936  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
2937  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
2938  *
2939  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
2940  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
2941  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
2942  */
2943 enum qca_wlan_vendor_attr_mlo_links {
2944 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
2945 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
2946 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
2947 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
2948 
2949 	/* Keep last */
2950 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
2951 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
2952 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
2953 };
2954 
2955 /**
2956  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2957  *
2958  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2959  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2960  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2961  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2962  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2963  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2964  */
2965 enum qca_wlan_vendor_attr_wifi_config {
2966 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2967 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2968 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2969 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2970 
2971 	/* keep last */
2972 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2973 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2974 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2975 };
2976 
2977 /**
2978  * enum qca_wlan_epno_type - the type of request to the EPNO command
2979  * @QCA_WLAN_EPNO: epno type request
2980  * @QCA_WLAN_PNO: pno type request
2981  */
2982 enum qca_wlan_epno_type {
2983 	QCA_WLAN_EPNO,
2984 	QCA_WLAN_PNO
2985 };
2986 
2987 /**
2988  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
2989  *
2990  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
2991  *
2992  *	NL attributes for data used by
2993  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
2994  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
2995  *	Unsigned 32-bit value; pno passpoint number of networks
2996  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
2997  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
2998  *	attributes. Array size =
2999  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3000  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
3001  *	Unsigned 32-bit value; network id
3002  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
3003  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
3004  *	realm, 0 if unspecified.
3005  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
3006  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
3007  *	to match, 0 if unspecified.
3008  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
3009  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
3010  *	unspecified.
3011  *
3012  *	NL attributes for data used by
3013  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3014  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
3015  *	Unsigned 32-bit value; set pno number of networks
3016  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
3017  *	Array of nested
3018  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3019  *	attributes. Array size =
3020  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
3021  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
3022  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
3023  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
3024  *	Signed 8-bit value; threshold for considering this SSID as found,
3025  *	required granularity for this threshold is 4dBm to 8dBm
3026  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
3027  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
3028  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
3029  *	Unsigned 8-bit value; auth bit field for matching WPA IE
3030  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
3031  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
3032  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
3033  *	Nested attribute to send the channel list
3034  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
3035  *	Unsigned 32-bit value; indicates the Interval between PNO scan
3036  *	cycles in msec
3037  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
3038  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
3039  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
3040  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
3041  *	This attribute is obsolete now.
3042  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
3043  *	Signed 32-bit value; the maximum score that a network
3044  *	can have before bonuses
3045  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
3046  *	Signed 32-bit value; only report when there is a network's
3047  *	score this much higher han the current connection
3048  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
3049  *	Signed 32-bit value; score bonus for all networks with
3050  *	the same network flag
3051  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
3052  *	Signed 32-bit value; score bonus for networks that are not open
3053  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
3054  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
3055  *	5GHz networks
3056  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
3057  *	Unsigned 32-bit value, representing the PNO Request ID
3058  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
3059  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
3060  */
3061 enum qca_wlan_vendor_attr_pno_config_params {
3062 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3063 
3064 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3065 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3066 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3067 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3068 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3069 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3070 
3071 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3072 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3073 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3074 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
3075 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3076 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3077 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3078 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3079 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3080 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3081 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3082 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3083 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3084 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3085 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3086 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3087 
3088 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3089 	/* keep last */
3090 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3091 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3092 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3093 };
3094 
3095 /**
3096  * enum qca_scan_freq_list_type: Frequency list types
3097  *
3098  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3099  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3100  *	a preferred frequency list for roaming.
3101  *
3102  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3103  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3104  *	a specific frequency list for roaming.
3105  */
3106 enum qca_scan_freq_list_type {
3107 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3108 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3109 };
3110 
3111 /**
3112  * enum qca_roam_scan_scheme: scan scheme
3113  *
3114  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3115  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3116  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3117  *	disconnect from the current connected AP by notifying a failure
3118  *	code in the BTM response.
3119  *
3120  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3121  *	trigger partial frequency scans. These frequencies are the ones learnt
3122  *	or maintained by the driver based on the probability of finding the
3123  *	BSSID's in the ESS for which the roaming is triggered.
3124  *
3125  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3126  *	trigger the scan on all the valid frequencies to find the better
3127  *	candidates to roam.
3128  */
3129 enum qca_roam_scan_scheme {
3130 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3131 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3132 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3133 };
3134 
3135 /**
3136  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3137  *
3138  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3139  *	List of frequencies in MHz to be considered for a roam scan.
3140  *
3141  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3142  *	Type of frequency list scheme being configured/gotten as defined by the
3143  *	enum qca_scan_freq_list_type.
3144  */
3145 enum qca_vendor_attr_scan_freq_list_scheme {
3146 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3147 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3148 
3149 	/* keep last */
3150 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3151 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3152 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3153 };
3154 
3155 /*
3156  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3157  *
3158  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3159  *	a bad packet error rates (PER).
3160  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3161  *	based on beacon misses from the connected AP.
3162  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3163  *	due to poor RSSI of the connected AP.
3164  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3165  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3166  *	Here the RSSI of the current BSSID need not be poor.
3167  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3168  *	by triggering a periodic scan to find a better AP to roam.
3169  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3170  *	when the connected channel environment is too noisy/congested.
3171  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3172  *	when BTM Request frame is received from the connected AP.
3173  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3174  *	when the channel utilization is goes above the configured threshold.
3175  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3176  *	based on the request from the user (space).
3177  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3178  *	device receives Deauthentication/Disassociation frame from connected
3179  *	AP.
3180  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3181  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3182  *	is determined to be a poor one.
3183  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3184  *	based on continuous TX Data Frame failures to the connected AP.
3185  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3186  *	based on the scan results obtained from an external scan (not
3187  *	triggered to aim roaming)
3188  *
3189  * Set the corresponding roam trigger reason bit to consider it for roam
3190  * trigger.
3191  * Userspace can set multiple bits and send to the driver. The driver shall
3192  * consider all of them to trigger/initiate a roam scan.
3193  */
3194 enum qca_vendor_roam_triggers {
3195 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3196 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3197 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3198 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3199 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3200 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3201 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3202 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3203 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3204 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3205 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3206 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3207 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3208 };
3209 
3210 /*
3211  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3212  * fail reasons. This enum value is used in
3213  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3214  *
3215  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3216  * able to trigger the scan.
3217  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3218  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3219  * scan.
3220  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3221  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3222  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3223  * status code.
3224  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3225  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3226  * frame.
3227  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3228  * with error status code.
3229  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3230  * received.
3231  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3232  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3233  * frame.
3234  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3235  * internally before transmission.
3236  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3237  * Request frame.
3238  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3239  * dropped internally.
3240  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3241  * times out.
3242  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3243  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3244  * internally.
3245  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3246  * M2 frame.
3247  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3248  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3249  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3250  * internally.
3251  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3252  * frame.
3253  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3254  * started for final beacon miss case.
3255  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3256  * received from the AP during roaming handoff.
3257  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3258  * or host is suspended and gives the indication of the last roamed AP only
3259  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3260  * progress, this ongoing roaming is aborted and the last roamed AP is
3261  * indicated to host.
3262  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3263  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3264  * out.
3265  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3266  */
3267 enum qca_vendor_roam_fail_reasons {
3268 	QCA_ROAM_FAIL_REASON_NONE = 0,
3269 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3270 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3271 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3272 	QCA_ROAM_FAIL_REASON_HOST = 4,
3273 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3274 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3275 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3276 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3277 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3278 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3279 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3280 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3281 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3282 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3283 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3284 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3285 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3286 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3287 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3288 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3289 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3290 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3291 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3292 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3293 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3294 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3295 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3296 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3297 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3298 };
3299 
3300 /*
3301  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3302  * invoke fail reasons. This enum value is used in
3303  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3304  *
3305  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3306  * in roam invoke command.
3307  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3308  * enabled.
3309  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3310  * length is invalid.
3311  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3312  * in progress.
3313  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3314  * of the AP in the roam invoke command to firmware. This reason is sent by the
3315  * firmware when the given AP is configured to be ignored or SSID/security
3316  * does not match.
3317  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3318  * firmware internal reasons.
3319  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3320  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3321  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3322  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3323  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3324  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3325  */
3326 enum qca_vendor_roam_invoke_fail_reasons {
3327 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3328 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3329 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3330 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3331 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3332 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3333 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3334 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3335 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3336 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3337 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3338 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3339 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3340 
3341 };
3342 
3343 /**
3344  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3345  *
3346  * Each attribute carries a weightage in percentage (%).
3347  *
3348  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3349  *	Represents the weightage to be given for the RSSI selection
3350  *	criteria among other parameters.
3351  *
3352  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3353  *	Represents the weightage to be given for the rate selection
3354  *	criteria among other parameters.
3355  *
3356  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3357  *	Represents the weightage to be given for the band width selection
3358  *	criteria among other parameters.
3359  *
3360  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3361  *	Represents the weightage to be given for the band selection
3362  *	criteria among other parameters.
3363  *
3364  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3365  *	Represents the weightage to be given for the NSS selection
3366  *	criteria among other parameters.
3367  *
3368  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3369  *	Represents the weightage to be given for the channel congestion
3370  *	selection criteria among other parameters.
3371  *
3372  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3373  *	Represents the weightage to be given for the beamforming selection
3374  *	criteria among other parameters.
3375  *
3376  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3377  *	Represents the weightage to be given for the OCE selection
3378  *	criteria among other parameters.
3379  */
3380 enum qca_vendor_attr_roam_candidate_selection_criteria {
3381 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3382 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3383 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3384 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3385 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3386 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3387 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3388 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3389 
3390 	/* keep last */
3391 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3392 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3393 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3394 };
3395 
3396 /**
3397  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3398  *	The following attributes are used to set/get/clear the respective
3399  *	configurations to/from the driver.
3400  *	For the get, the attribute for the configuration to be queried shall
3401  *	carry any of its acceptable values to the driver. In return, the driver
3402  *	shall send the configured values within the same attribute to the user
3403  *	space.
3404  *
3405  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3406  *	Signifies to enable/disable roam control in driver.
3407  *	1-enable, 0-disable
3408  *	Enable: Mandates the driver to do the further roams using the
3409  *	configuration parameters set through
3410  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3411  *	Disable: Disables the driver/firmware roaming triggered through
3412  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3413  *	expected to continue with the default configurations.
3414  *
3415  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3416  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3417  *	Roam control status is obtained through this attribute.
3418  *
3419  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3420  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3421  *	is to be cleared in the driver.
3422  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3423  *	and shall be ignored if used with other sub commands.
3424  *	If this attribute is specified along with subcmd
3425  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3426  *	all other attributes, if there are any.
3427  *	If this attribute is not specified when the subcmd
3428  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3429  *	clear the data corresponding to the attributes specified.
3430  *
3431  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3432  *	list of frequencies and its type, represented by
3433  *	enum qca_vendor_attr_scan_freq_list_scheme.
3434  *	Frequency list and its type are mandatory for this attribute to set
3435  *	the frequencies.
3436  *	Frequency type is mandatory for this attribute to get the frequencies
3437  *	and the frequency list is obtained through
3438  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3439  *	Frequency list type is mandatory for this attribute to clear the
3440  *	frequencies.
3441  *
3442  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3443  *	Carries the value of scan period in seconds to set.
3444  *	The value of scan period is obtained with the same attribute for get.
3445  *	Clears the scan period in the driver when specified with clear command.
3446  *	Scan period is the idle time in seconds between each subsequent
3447  *	channel scans.
3448  *
3449  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3450  *	Carries the value of full scan period in seconds to set.
3451  *	The value of full scan period is obtained with the same attribute for
3452  *	get.
3453  *	Clears the full scan period in the driver when specified with clear
3454  *	command. Full scan period is the idle period in seconds between two
3455  *	successive full channel roam scans.
3456  *
3457  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3458  *	Carries a bitmap of the roam triggers specified in
3459  *	enum qca_vendor_roam_triggers.
3460  *	The driver shall enable roaming by enabling corresponding roam triggers
3461  *	based on the trigger bits sent with this attribute.
3462  *	If this attribute is not configured, the driver shall proceed with
3463  *	default behavior.
3464  *	The bitmap configured is obtained with the same attribute for get.
3465  *	Clears the bitmap configured in driver when specified with clear
3466  *	command.
3467  *
3468  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3469  *	weightage in percentage (%) to be given for each selection criteria.
3470  *	Different roam candidate selection criteria are represented by
3471  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3472  *	The driver shall select the roam candidate based on corresponding
3473  *	candidate selection scores sent.
3474  *
3475  *	An empty nested attribute is used to indicate that no specific
3476  *	preference score/criteria is configured (i.e., to disable this mechanism
3477  *	in the set case and to show that the mechanism is disabled in the get
3478  *	case).
3479  *
3480  *	Userspace can send multiple attributes out of this enum to the driver.
3481  *	Since this attribute represents the weight/percentage of preference for
3482  *	the respective selection criteria, it is preferred to configure 100%
3483  *	total weightage. The value in each attribute or cumulative weight of the
3484  *	values in all the nested attributes should not exceed 100%. The driver
3485  *	shall reject such configuration.
3486  *
3487  *	If the weights configured through this attribute are less than 100%,
3488  *	the driver shall honor the weights (x%) passed for the corresponding
3489  *	selection criteria and choose/distribute rest of the weight (100-x)%
3490  *	for the other selection criteria, based on its internal logic.
3491  *
3492  *	The selection criteria configured is obtained with the same
3493  *	attribute for get.
3494  *
3495  *	Clears the selection criteria configured in the driver when specified
3496  *	with clear command.
3497  *
3498  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3499  *	Represents value of scan frequency scheme from
3500  *      enum qca_roam_scan_scheme.
3501  *
3502  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3503  *	signifying the RSSI threshold of the current connected AP, indicating
3504  *	the driver to trigger roam only when the current connected AP's RSSI
3505  *	is lesser than this threshold.
3506  *
3507  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3508  *	signifying the RSSI threshold of the candidate AP, indicating
3509  *	the driver to trigger roam only to the candidate AP with RSSI
3510  *	better than this threshold. If RSSI thresholds for candidate APs found
3511  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3512  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3513  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3514  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3515  *	will take precedence over the value configured using
3516  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3517  *
3518  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3519  *	user triggered reason code to be sent to the AP in response to AP's
3520  *	request to trigger the roam if the roaming cannot be triggered.
3521  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3522  *
3523  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3524  *	Carries a bitmap of the roam triggers specified in
3525  *	enum qca_vendor_roam_triggers.
3526  *	Represents the roam triggers for which the specific scan scheme from
3527  *	enum qca_roam_scan_scheme has to be applied.
3528  *	It's an optional attribute. If this attribute is not configured, but
3529  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3530  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3531  *	all the roams.
3532  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3533  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3534  *	driver shall proceed with the default behavior.
3535  *
3536  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3537  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3538  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3539  *	AP found in 2.4GHz band only if it's RSSI value is better than this
3540  *	threshold. Optional attribute. If this attribute is not included, then
3541  *	threshold value specified by the
3542  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3543  *
3544  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3545  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3546  *	band. The driver/firmware shall trigger roaming to the candidate AP
3547  *	found in 5GHz band only if it's RSSI value is better than this
3548  *	threshold. Optional attribute. If this attribute is not included, then
3549  *	threshold value specified by the
3550  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3551  *
3552  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3553  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3554  *	band. The driver/firmware shall trigger roaming to the candidate AP
3555  *	found in 6GHz band only if it's RSSI value is better than this
3556  *	threshold. Optional attribute. If this attribute is not included, then
3557  *	threshold value specified by the
3558  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3559  *
3560  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3561  *	Carries bitmask value of bits from &enum qca_set_band and represents
3562  *	all the bands in which roaming is allowed. The configuration is valid
3563  *	until next disconnection. If this attribute is not present, the
3564  *	existing configuration shall be used. By default, roaming is allowed
3565  *	on all bands supported by local device. When the value is set to
3566  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3567  *
3568  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3569  *	Optional parameter. RX link speed threshold to disable roaming.
3570  *	If the current RX link speed is above the threshold, roaming is not
3571  *	needed. If this attribute is not configured, or if it is set to 0, the
3572  *	driver will not consider the RX link speed in the roaming decision.
3573  *
3574  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
3575  *	Optional parameter. This configuration delays hand-off (in msec) by the
3576  *	specified duration to receive pending rx frames from current BSS.
3577  *
3578  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
3579  *	value.
3580  *	During the roam scan, if there are no desired APs found in the partial
3581  *	frequency list, an immediate full scan on all the supported frequencies
3582  *	is initiated as a fallback. This flag controls the frequency list
3583  *	creation for the full scan on the following lines.
3584  *	1 - Full scan to exclude the frequencies that were already scanned by
3585  *	    the previous partial scan.
3586  *	0 - Full scan to include all the supported frequencies irrespective of
3587  *	    the ones part of the earlier partial scan.
3588  *	If this flag is not specified, a full scan shall include all the
3589  *	supported frequencies irrespective of the ones part of an earlier
3590  *	partial scan.
3591  *
3592  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
3593  *	value.
3594  *	During the roam scan, if there are no desired APs found in the partial
3595  *	frequency list, an immediate full scan on all the supported frequencies
3596  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
3597  *	frequencies, including all PSC frequencies by default. This attribute
3598  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
3599  *	as following.
3600  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
3601  *	    prior discovery of any 6 GHz frequency support in the environment.
3602  *	    This discovery can happen through a prior RNR, 11k neighbor
3603  *	    request, 11v BTM request, host scan, etc.
3604  *	0 - Default behavior. Full scan to include all the supported 6 GHz
3605  *	    PSC frequencies regardless of whether 6 GHz BSSs have been
3606  *	    discovered.
3607  *	The default behavior if this flag is not specified is to include all
3608  *	the supported 6 GHz PSC frequencies in the roam full scan.
3609  */
3610 enum qca_vendor_attr_roam_control {
3611 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3612 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3613 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3614 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3615 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3616 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3617 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3618 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3619 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3620 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3621 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3622 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3623 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3624 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3625 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3626 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3627 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3628 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3629 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
3630 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
3631 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
3632 
3633 	/* keep last */
3634 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3635 	QCA_ATTR_ROAM_CONTROL_MAX =
3636 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3637 };
3638 
3639 /**
3640  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3641  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3642  *
3643  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3644  *	Represents the different roam sub commands referred by
3645  *	enum qca_wlan_vendor_roaming_subcmd.
3646  *
3647  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3648  *	Represents the Request ID for the specific set of commands.
3649  *	This also helps to map specific set of commands to the respective
3650  *	ID / client. e.g., helps to identify the user entity configuring the
3651  *	Blacklist BSSID and accordingly clear the respective ones with the
3652  *	matching ID.
3653  *
3654  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3655  *	32-bit value.Represents the number of whitelist SSIDs configured.
3656  *
3657  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3658  *	to carry the list of Whitelist SSIDs.
3659  *
3660  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3661  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3662  *	represent the list of SSIDs to which the firmware/driver can consider
3663  *	to roam to.
3664  *
3665  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3666  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3667  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3668  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3669  *
3670  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3671  *	value, RSSI threshold above which 5GHz RSSI is favored.
3672  *
3673  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3674  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3675  *
3676  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3677  *	value, factor by which 5GHz RSSI is boosted.
3678  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3679  *
3680  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3681  *	value, factor by which 5GHz RSSI is penalized.
3682  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3683  *
3684  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3685  *	value, maximum boost that can be applied to a 5GHz RSSI.
3686  *
3687  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3688  *	value, boost applied to current BSSID to ensure the currently
3689  *	associated BSSID is favored so as to prevent ping-pong situations.
3690  *
3691  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3692  *	value, RSSI below which "Alert" roam is enabled.
3693  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3694  *	because the RSSI is low, or because many successive beacons have been
3695  *	lost or other bad link conditions.
3696  *
3697  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3698  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3699  *	firmware is hunting for a better BSSID or white listed SSID even though
3700  *	the RSSI of the link is good. The parameters enabling the roaming are
3701  *	configured through the PARAM_A_BAND_XX attrbutes.
3702  *
3703  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3704  *	represents the BSSIDs preferred over others while evaluating them
3705  *	for the roaming.
3706  *
3707  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3708  *	32-bit value. Represents the number of preferred BSSIDs set.
3709  *
3710  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3711  *	address representing the BSSID to be preferred.
3712  *
3713  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3714  *	32-bit value, representing the modifier to be applied to the RSSI of
3715  *	the BSSID for the purpose of comparing it with other roam candidate.
3716  *
3717  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3718  *	represents the BSSIDs to get blacklisted for roaming.
3719  *
3720  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3721  *	32-bit value, represents the number of blacklisted BSSIDs.
3722  *
3723  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3724  *	address representing the Blacklisted BSSID.
3725  *
3726  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3727  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3728  *	select this BSSID in the worst case (when no other BSSIDs are better).
3729  *
3730  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3731  *	set/get/clear the roam control config as
3732  *	defined @enum qca_vendor_attr_roam_control.
3733  *
3734  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3735  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3736  */
3737 enum qca_wlan_vendor_attr_roaming_config_params {
3738 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3739 
3740 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3741 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3742 
3743 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3744 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3745 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3746 
3747 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3748 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3749 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3750 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3751 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3752 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3753 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3754 
3755 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3756 
3757 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3758 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3759 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3760 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3761 
3762 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3763 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3764 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3765 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3766 
3767 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3768 
3769 	/* keep last */
3770 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3771 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3772 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3773 };
3774 
3775 /**
3776  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3777  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3778  *
3779  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3780  *	configure the white list SSIDs. These are configured through
3781  *	the following attributes.
3782  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3783  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3784  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3785  *
3786  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3787  *	configure the Roam params. These parameters are evaluated on the extscan
3788  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3789  *	params.
3790  *
3791  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3792  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3793  *	to enable/disable Lazy roam.
3794  *
3795  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3796  *	preference. Contains the attribute
3797  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3798  *	preference.
3799  *
3800  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3801  *
3802  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3803  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3804  *	set the same.
3805  *
3806  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3807  *	roam control config to the driver with the attribute
3808  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3809  *
3810  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3811  *	roam control config from driver with the attribute
3812  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3813  *	For the get, the attribute for the configuration to be queried shall
3814  *	carry any of its acceptable value to the driver. In return, the driver
3815  *	shall send the configured values within the same attribute to the user
3816  *	space.
3817  *
3818  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3819  *	roam control config in the driver with the attribute
3820  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3821  *	The driver shall continue with its default roaming behavior when data
3822  *	corresponding to an attribute is cleared.
3823  */
3824 enum qca_wlan_vendor_roaming_subcmd {
3825 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3826 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3827 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3828 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3829 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3830 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3831 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3832 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3833 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3834 };
3835 
3836 /**
3837  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3838  *
3839  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3840  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3841  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3842  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3843  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3844  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3845  */
3846 enum qca_wlan_vendor_attr_get_wifi_info {
3847 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3848 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3849 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3850 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3851 
3852 	/* KEEP LAST */
3853 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3854 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3855 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3856 };
3857 
3858 enum qca_wlan_vendor_attr_logger_results {
3859 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3860 
3861 	/*
3862 	 * Unsigned 32-bit value; must match the request Id supplied by
3863 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3864 	 */
3865 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3866 
3867 	/*
3868 	 * Unsigned 32-bit value; used to indicate the size of memory
3869 	 * dump to be allocated.
3870 	 */
3871 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3872 
3873 	/* keep last */
3874 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3875 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3876 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3877 };
3878 
3879 /**
3880  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3881  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3882  */
3883 enum qca_wlan_vendor_channel_prop_flags {
3884 	/* Bits 0, 1, 2, and 3 are reserved */
3885 
3886 	/* Turbo channel */
3887 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3888 	/* CCK channel */
3889 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3890 	/* OFDM channel */
3891 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3892 	/* 2.4 GHz spectrum channel. */
3893 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3894 	/* 5 GHz spectrum channel */
3895 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3896 	/* Only passive scan allowed */
3897 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3898 	/* Dynamic CCK-OFDM channel */
3899 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3900 	/* GFSK channel (FHSS PHY) */
3901 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3902 	/* Radar found on channel */
3903 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3904 	/* 11a static turbo channel only */
3905 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3906 	/* Half rate channel */
3907 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3908 	/* Quarter rate channel */
3909 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3910 	/* HT 20 channel */
3911 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3912 	/* HT 40 with extension channel above */
3913 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3914 	/* HT 40 with extension channel below */
3915 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3916 	/* HT 40 intolerant */
3917 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3918 	/* VHT 20 channel */
3919 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3920 	/* VHT 40 with extension channel above */
3921 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3922 	/* VHT 40 with extension channel below */
3923 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3924 	/* VHT 80 channel */
3925 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3926 	/* HT 40 intolerant mark bit for ACS use */
3927 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3928 	/* Channel temporarily blocked due to noise */
3929 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3930 	/* VHT 160 channel */
3931 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3932 	/* VHT 80+80 channel */
3933 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3934 	/* HE 20 channel */
3935 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3936 	/* HE 40 with extension channel above */
3937 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3938 	/* HE 40 with extension channel below */
3939 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3940 	/* HE 40 intolerant */
3941 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
3942 };
3943 
3944 /**
3945  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3946  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3947  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3948  */
3949 enum qca_wlan_vendor_channel_prop_flags_2 {
3950 	/* HE 40 intolerant mark bit for ACS use */
3951 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3952 	/* HE 80 channel */
3953 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3954 	/* HE 160 channel */
3955 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3956 	/* HE 80+80 channel */
3957 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3958 };
3959 
3960 /**
3961  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3962  * each channel. This is used by
3963  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3964  */
3965 enum qca_wlan_vendor_channel_prop_flags_ext {
3966 	/* Radar found on channel */
3967 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3968 	/* DFS required on channel */
3969 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3970 	/* DFS required on channel for 2nd band of 80+80 */
3971 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3972 	/* If channel has been checked for DFS */
3973 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3974 	/* Excluded in 802.11d */
3975 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3976 	/* Channel Switch Announcement received on this channel */
3977 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3978 	/* Ad-hoc is not allowed */
3979 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3980 	/* Station only channel */
3981 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3982 	/* DFS radar history for slave device (STA mode) */
3983 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
3984 	/* DFS CAC valid for slave device (STA mode) */
3985 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
3986 };
3987 
3988 /**
3989  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
3990  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
3991  * information to start/stop the NUD statistics collection.
3992  */
3993 enum qca_attr_nud_stats_set {
3994 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
3995 
3996 	/*
3997 	 * Flag to start/stop the NUD statistics collection.
3998 	 * Start - If included, Stop - If not included
3999 	 */
4000 	QCA_ATTR_NUD_STATS_SET_START = 1,
4001 	/* IPv4 address of the default gateway (in network byte order) */
4002 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
4003 	/*
4004 	 * Represents the data packet type to be monitored.
4005 	 * Host driver tracks the stats corresponding to each data frame
4006 	 * represented by these flags.
4007 	 * These data packets are represented by
4008 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
4009 	 */
4010 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
4011 	/* keep last */
4012 	QCA_ATTR_NUD_STATS_SET_LAST,
4013 	QCA_ATTR_NUD_STATS_SET_MAX =
4014 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
4015 };
4016 
4017 /**
4018  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
4019  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4020  *	information to start / stop the NUD stats collection.
4021  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
4022  *	Bitmap to Flag to Start / Stop the NUD stats collection
4023  *	Start - If included , Stop - If not included
4024  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
4025  *	IPv4 address of Default Gateway (in network byte order)
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_SRC_PORT: set nud debug stats
4029  *	Flag to Start / Stop the NUD stats collection
4030  *	Start - If included , Stop - If not included
4031  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: 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_DEST_IPV4: 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_IPV6: set gateway ipv4 address
4039  *	IPv4 address of Default Gateway (in network byte order)
4040  */
4041 enum qca_attr_connectivity_check_stats_set {
4042 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
4043 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
4044 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
4045 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
4046 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
4047 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
4048 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
4049 	/* keep last */
4050 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
4051 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
4052 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
4053 };
4054 
4055 /**
4056  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4057  * data types for which the stats have to get collected.
4058  */
4059 enum qca_wlan_vendor_connectivity_check_pkt_flags {
4060 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
4061 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
4062 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
4063 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
4064 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
4065 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4066 	 * to represent the stats of respective data type.
4067 	 */
4068 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
4069 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
4070 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
4071 };
4072 
4073 enum qca_attr_connectivity_check_stats {
4074 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
4075 	/* Data packet type for which the stats are collected.
4076 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4077 	 */
4078 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
4079 	/* ID corresponding to the DNS frame for which the respective DNS stats
4080 	 * are monitored (u32).
4081 	 */
4082 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
4083 	/* source / destination port on which the respective proto stats are
4084 	 * collected (u32).
4085 	 */
4086 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
4087 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
4088 	/* IPv4/IPv6 address for which the destined data packets are
4089 	 * monitored. (in network byte order)
4090 	 */
4091 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
4092 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
4093 	/* Data packet Request count received from netdev */
4094 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4095 	/* Data packet Request count sent to lower MAC from upper MAC */
4096 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4097 	/* Data packet Request count received by lower MAC from upper MAC */
4098 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4099 	/* Data packet Request count successfully transmitted by the device */
4100 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4101 	/* Data packet Response count received by lower MAC */
4102 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4103 	/* Data packet Response count received by upper MAC */
4104 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4105 	/* Data packet Response count delivered to netdev */
4106 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4107 	/* Data Packet Response count that are dropped out of order */
4108 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4109 
4110 	/* keep last */
4111 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
4112 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
4113 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
4114 };
4115 
4116 /**
4117  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4118  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4119  * NUD statistics collected when queried.
4120  */
4121 enum qca_attr_nud_stats_get {
4122 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4123 	/* ARP Request count from netdev */
4124 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4125 	/* ARP Request count sent to lower MAC from upper MAC */
4126 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4127 	/* ARP Request count received by lower MAC from upper MAC */
4128 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4129 	/* ARP Request count successfully transmitted by the device */
4130 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4131 	/* ARP Response count received by lower MAC */
4132 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4133 	/* ARP Response count received by upper MAC */
4134 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4135 	/* ARP Response count delivered to netdev */
4136 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4137 	/* ARP Response count delivered to netdev */
4138 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4139 	/*
4140 	 * Flag indicating if the station's link to the AP is active.
4141 	 * Active Link - If included, Inactive link - If not included
4142 	 */
4143 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4144 	/*
4145 	 * Flag indicating if there is any duplicate address detected (DAD).
4146 	 * Yes - If detected, No - If not detected.
4147 	 */
4148 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4149 	/*
4150 	 * List of Data types for which the stats are requested.
4151 	 * This list does not carry ARP stats as they are done by the
4152 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4153 	 */
4154 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4155 	/* keep last */
4156 	QCA_ATTR_NUD_STATS_GET_LAST,
4157 	QCA_ATTR_NUD_STATS_GET_MAX =
4158 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4159 };
4160 
4161 enum qca_wlan_btm_candidate_status {
4162 	QCA_STATUS_ACCEPT = 0,
4163 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4164 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4165 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4166 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4167 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4168 	QCA_STATUS_REJECT_UNKNOWN = 6,
4169 };
4170 
4171 enum qca_wlan_vendor_attr_btm_candidate_info {
4172 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4173 
4174 	/* 6-byte MAC address representing the BSSID of transition candidate */
4175 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4176 	/*
4177 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4178 	 * returned by the driver. It says whether the BSSID provided in
4179 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4180 	 * the driver, if not it specifies the reason for rejection.
4181 	 * Note that the user-space can overwrite the transition reject reason
4182 	 * codes provided by driver based on more information.
4183 	 */
4184 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4185 
4186 	/* keep last */
4187 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4188 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4189 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4190 };
4191 
4192 enum qca_attr_trace_level {
4193 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4194 	/*
4195 	 * Nested array of the following attributes:
4196 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4197 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4198 	 */
4199 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4200 	/*
4201 	 * Specific QCA host driver module. Please refer to the QCA host
4202 	 * driver implementation to get the specific module ID.
4203 	 */
4204 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4205 	/* Different trace level masks represented in the QCA host driver. */
4206 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4207 
4208 	/* keep last */
4209 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4210 	QCA_ATTR_TRACE_LEVEL_MAX =
4211 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4212 };
4213 
4214 /**
4215  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4216  *                                                 supported features
4217  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4218  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4219  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4220  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4221  *
4222  * enum values are used for NL attributes for data used by
4223  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4224  */
4225 enum qca_wlan_vendor_attr_get_logger_features {
4226 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4227 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4228 
4229 	/* keep last */
4230 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4231 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4232 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4233 };
4234 
4235 /**
4236  * enum qca_wlan_vendor_attr_link_properties - link properties
4237  *
4238  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4239  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4240  *	specify the number of spatial streams negotiated
4241  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4242  *	to specify negotiated rate flags i.e. ht, vht and channel width
4243  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4244  *	specify the operating frequency
4245  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4246  * (STA / AP ) for the connected link.
4247  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4248  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4249  * address of the peer represented by
4250  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4251  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4252  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4253  */
4254 enum qca_wlan_vendor_attr_link_properties {
4255 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4256 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4257 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4258 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4259 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4260 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4261 
4262 	/* KEEP LAST */
4263 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4264 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4265 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4266 };
4267 
4268 /**
4269  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4270  *
4271  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4272  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4273  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4274  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4275  *
4276  * enum values are used for NL attributes for data used by
4277  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4278  */
4279 enum qca_wlan_vendor_attr_nd_offload {
4280 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4281 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4282 
4283 	/* Keep last */
4284 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4285 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4286 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4287 };
4288 
4289 /**
4290  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4291  *
4292  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4293  *	management offload, a mechanism where the station's firmware
4294  *	does the exchange with the AP to establish the temporal keys
4295  *	after roaming, rather than having the user space wpa_supplicant do it.
4296  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4297  *	band selection based on channel selection results.
4298  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4299  *	simultaneous off-channel operations.
4300  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4301  *	Listen offload; a mechanism where the station's firmware takes care of
4302  *	responding to incoming Probe Request frames received from other P2P
4303  *	Devices whilst in Listen state, rather than having the user space
4304  *	wpa_supplicant do it. Information from received P2P requests are
4305  *	forwarded from firmware to host whenever the host processor wakes up.
4306  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4307  *	specific features.
4308  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4309  *	features.
4310  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4311  *	specific features only. If a Device sets this bit but not the
4312  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4313  *	this Device may not support all OCE AP functionalities but can support
4314  *	only OCE STA-CFON functionalities.
4315  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4316  *	managed regulatory.
4317  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4318  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4319  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4320  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4321  *	and applying thermal configuration through
4322  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4323  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4324  *	userspace.
4325  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4326  *	With Adaptive 11r feature, access points advertise the vendor
4327  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4328  *	The Adaptive 11r supported stations are expected to identify
4329  *	such vendor specific IEs and connect to the AP in FT mode though
4330  *	the profile is configured in non-FT mode.
4331  *	The driver-based SME cases also need to have this support for
4332  *	Adaptive 11r to handle the connection and roaming scenarios.
4333  *	This flag indicates the support for the same to the user space.
4334  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4335  *	concurrent network sessions on different Wi-Fi Bands. This feature
4336  *	capability is attributed to the hardware's capability to support
4337  *	the same (e.g., DBS).
4338  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4339  *	responses for the respective TWT operations are asynchronous (separate)
4340  *	event message) from the driver. If not specified, the responses are
4341  *	synchronous (in vendor command reply) to the request. Each TWT
4342  *	operation is specifically mentioned (against its respective)
4343  *	documentation) to support either of these or both modes.
4344  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4345  * 	that the driver requires add/del virtual interface path using the
4346  *	generic nl80211 commands for NDP interface create/delete and to
4347  *	register/unregister the netdev instead of creating/deleting the NDP
4348  *	interface using the vendor commands
4349  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4350  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4351  * 	(5.12 version onward), interface creation/deletion is not allowed using
4352  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4353  * 	during the register/unregister of netdev. Create and delete NDP
4354  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4355  * 	commands respectively if the driver advertises this capability set.
4356  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4357  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4358  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4359  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4360  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4361  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4362  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4363  *	station mode supports secure RTT measurement exchange. If
4364  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4365  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4366  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4367  *	mode supports secure RTT measurement exchange. If
4368  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4369  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4370  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4371  *	the device in station mode supports protection of range negotiation and
4372  *	measurement management frames. If
4373  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4374  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4375  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4376  *	the device in AP mode supports protection of range negotiation and
4377  *	measurement management frames. If
4378  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4379  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4380  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4381  */
4382 enum qca_wlan_vendor_features {
4383 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4384 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4385 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4386 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4387 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4388 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4389 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4390 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4391 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4392 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4393 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4394 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4395 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4396 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4397 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4398 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4399 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4400 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4401 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4402 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4403 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4404 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4405 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4406 };
4407 
4408 /**
4409  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4410  *     conditional channel switch
4411  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4412  *     value
4413  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4414  * frequency list (an array of u32 values in host byte order)
4415  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4416  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4417  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4418  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4419  */
4420 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4421 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4422 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4423 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4424 
4425 	/* Keep Last */
4426 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4427 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4428 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4429 };
4430 
4431 /**
4432  * enum wifi_logger_supported_features - values for supported logger features
4433  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4434  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4435  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4436  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4437  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4438  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4439  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4440  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4441  */
4442 enum wifi_logger_supported_features {
4443 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4444 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4445 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4446 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4447 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4448 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4449 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4450 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4451 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4452 };
4453 
4454 /**
4455  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4456  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4457  *
4458  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4459  * Used with event to notify the primary channel number selected in ACS
4460  * operation.
4461  * Note: If both the driver and user-space application supports the 6 GHz band,
4462  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4463  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4464  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4465  * is still used if either of the driver or user space application doesn't
4466  * support the 6 GHz band.
4467  *
4468  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4469  * Used with event to notify the secondary channel number selected in ACS
4470  * operation.
4471  * Note: If both the driver and user-space application supports the 6 GHz band,
4472  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4473  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4474  * To maintain backward compatibility,
4475  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4476  * the driver or user space application doesn't support 6 GHz band.
4477  *
4478  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4479  * (a) Used with command to configure hw_mode from
4480  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4481  * (b) Also used with event to notify the hw_mode of selected primary channel
4482  * in ACS operation.
4483  *
4484  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4485  * Used with command to configure ACS operation for HT mode.
4486  * Disable (flag attribute not present) - HT disabled and
4487  * Enable (flag attribute present) - HT enabled.
4488  *
4489  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4490  * Used with command to configure ACS operation for HT40 mode.
4491  * Disable (flag attribute not present) - HT40 disabled and
4492  * Enable (flag attribute present) - HT40 enabled.
4493  *
4494  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4495  * Used with command to configure ACS operation for VHT mode.
4496  * Disable (flag attribute not present) - VHT disabled and
4497  * Enable (flag attribute present) - VHT enabled.
4498  *
4499  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4500  * mandatory with event.
4501  * If specified in command path, ACS operation is configured with the given
4502  * channel width (in MHz).
4503  * In event path, specifies the channel width of the primary channel selected.
4504  *
4505  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4506  * Used with command to configure channel list using an array of
4507  * channel numbers (u8).
4508  * Note: If both the driver and user-space application supports the 6 GHz band,
4509  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4510  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4511  *
4512  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4513  * Used with event to notify the VHT segment 0 center channel number selected in
4514  * ACS operation.
4515  * Note: If both the driver and user-space application supports the 6 GHz band,
4516  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4517  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4518  * To maintain backward compatibility,
4519  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4520  * the driver or user space application doesn't support the 6 GHz band.
4521  *
4522  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4523  * Used with event to notify the VHT segment 1 center channel number selected in
4524  * ACS operation.
4525  * Note: If both the driver and user-space application supports the 6 GHz band,
4526  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4527  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4528  * To maintain backward compatibility,
4529  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4530  * the driver or user space application doesn't support the 6 GHz band.
4531  *
4532  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4533  * Used with command to configure the channel list using an array of channel
4534  * center frequencies in MHz (u32).
4535  * Note: If both the driver and user-space application supports the 6 GHz band,
4536  * the driver first parses the frequency list and if it fails to get a frequency
4537  * list, parses the channel list specified using
4538  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4539  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4540  *
4541  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4542  * Used with event to notify the primary channel center frequency (MHz) selected
4543  * in ACS operation.
4544  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4545  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4546  *
4547  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4548  * Used with event to notify the secondary channel center frequency (MHz)
4549  * selected in ACS operation.
4550  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4551  * includes this attribute along with
4552  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4553  *
4554  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4555  * Used with event to notify the VHT segment 0 center channel 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_VHT_SEG0_CENTER_CHANNEL.
4560  *
4561  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4562  * Used with event to notify the VHT segment 1 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_SEG1_CENTER_CHANNEL.
4567  *
4568  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4569  * Used with command to notify the driver of EDMG request for ACS
4570  * operation.
4571  *
4572  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4573  * Used with event to notify the EDMG channel number selected in ACS
4574  * operation.
4575  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4576  *
4577  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4578  * Used with event to notify the puncture pattern selected in ACS operation.
4579  * Encoding for this attribute will follow the convention used in the Disabled
4580  * Subchannel Bitmap field of the EHT Operation IE.
4581  *
4582  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4583  * Used with command to configure ACS operation for EHT mode.
4584  * Disable (flag attribute not present) - EHT disabled and
4585  * Enable (flag attribute present) - EHT enabled.
4586  *
4587  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4588  * Used with command to configure how older scan can be considered for ACS
4589  * scoring. In case scan was performed on partial set of channels configured
4590  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4591  * (in ms), then scan only remaining channels.
4592  */
4593 enum qca_wlan_vendor_attr_acs_offload {
4594 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4595 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4596 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4597 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4598 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4599 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4600 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4601 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4602 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4603 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4604 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4605 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4606 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4607 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4608 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4609 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4610 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4611 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4612 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4613 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4614 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4615 
4616 	/* keep last */
4617 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4618 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4619 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4620 };
4621 
4622 /**
4623  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4624  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4625  *
4626  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4627  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4628  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4629  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4630  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4631  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4632  */
4633 enum qca_wlan_vendor_acs_hw_mode {
4634 	QCA_ACS_MODE_IEEE80211B,
4635 	QCA_ACS_MODE_IEEE80211G,
4636 	QCA_ACS_MODE_IEEE80211A,
4637 	QCA_ACS_MODE_IEEE80211AD,
4638 	QCA_ACS_MODE_IEEE80211ANY,
4639 	QCA_ACS_MODE_IEEE80211AX,
4640 };
4641 
4642 /**
4643  * enum qca_access_policy - access control policy
4644  *
4645  * Access control policy is applied on the configured IE
4646  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4647  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4648  *
4649  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4650  *»       with the specific configuration (IE) set, i.e. allow all the
4651  *»       connections which do not match the configuration.
4652  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4653  *»       with the specific configuration (IE) set, i.e. deny all the
4654  *»       connections which do not match the configuration.
4655  */
4656 enum qca_access_policy {
4657 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4658 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4659 };
4660 
4661 /**
4662  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4663  *
4664  * The valid values for the ignore assoc disallowed
4665  *
4666  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4667  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4668  *
4669  */
4670 enum qca_ignore_assoc_disallowed {
4671 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4672 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4673 };
4674 
4675 /* Attributes for data used by
4676  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4677  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4678  */
4679 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4680 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4681 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4682 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4683 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4684 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4685 enum qca_wlan_vendor_attr_config {
4686 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4687 	/*
4688 	 * Unsigned 32-bit value to set the DTIM period.
4689 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4690 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4691 	 * DTIM beacons.
4692 	 */
4693 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4694 	/*
4695 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4696 	 * used to calculate statistics like average the TSF offset or average
4697 	 * number of frame leaked.
4698 	 * For instance, upon Beacon frame reception:
4699 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4700 	 * For instance, when evaluating leaky APs:
4701 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4702 	 */
4703 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4704 	/*
4705 	 * Unsigned 32-bit value to configure guard time, i.e., when
4706 	 * implementing IEEE power management based on frame control PM bit, how
4707 	 * long the driver waits before shutting down the radio and after
4708 	 * receiving an ACK frame for a Data frame with PM bit set.
4709 	 */
4710 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
4711 	/* Unsigned 32-bit value to change the FTM capability dynamically */
4712 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
4713 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
4714 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
4715 	/*
4716 	 * Unsigned 32-bit value to configure the number of continuous
4717 	 * Beacon Miss which shall be used by the firmware to penalize
4718 	 * the RSSI.
4719 	 */
4720 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
4721 	/*
4722 	 * Unsigned 8-bit value to configure the channel avoidance indication
4723 	 * behavior. Firmware to send only one indication and ignore duplicate
4724 	 * indications when set to avoid multiple Apps wakeups.
4725 	 */
4726 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
4727 	/*
4728 	 * 8-bit unsigned value to configure the maximum TX MPDU for
4729 	 * aggregation.
4730 	 */
4731 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
4732 	/*
4733 	 * 8-bit unsigned value to configure the maximum RX MPDU for
4734 	 * aggregation.
4735 	 */
4736 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
4737 	/*
4738 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
4739 	 * retry threshold (0 disable, 31 max).
4740 	 */
4741 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
4742 	/*
4743 	 * 8-bit unsigned value to configure the aggregrate sw
4744 	 * retry threshold (0 disable, 31 max).
4745 	 */
4746 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
4747 	/*
4748 	 * 8-bit unsigned value to configure the MGMT frame
4749 	 * retry threshold (0 disable, 31 max).
4750 	 */
4751 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
4752 	/*
4753 	 * 8-bit unsigned value to configure the CTRL frame
4754 	 * retry threshold (0 disable, 31 max).
4755 	 */
4756 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
4757 	/*
4758 	 * 8-bit unsigned value to configure the propagation delay for
4759 	 * 2G/5G band (0~63, units in us)
4760 	 */
4761 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
4762 	/*
4763 	 * Unsigned 32-bit value to configure the number of unicast TX fail
4764 	 * packet count. The peer is disconnected once this threshold is
4765 	 * reached.
4766 	 */
4767 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
4768 	/*
4769 	 * Attribute used to set scan default IEs to the driver.
4770 	 *
4771 	 * These IEs can be used by scan operations that will be initiated by
4772 	 * the driver/firmware.
4773 	 *
4774 	 * For further scan requests coming to the driver, these IEs should be
4775 	 * merged with the IEs received along with scan request coming to the
4776 	 * driver. If a particular IE is present in the scan default IEs but not
4777 	 * present in the scan request, then that IE should be added to the IEs
4778 	 * sent in the Probe Request frames for that scan request.
4779 	 */
4780 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
4781 	/* Unsigned 32-bit attribute for generic commands */
4782 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
4783 	/* Unsigned 32-bit value attribute for generic commands */
4784 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
4785 	/* Unsigned 32-bit data attribute for generic command response */
4786 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
4787 	/*
4788 	 * Unsigned 32-bit length attribute for
4789 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4790 	 */
4791 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
4792 	/*
4793 	 * Unsigned 32-bit flags attribute for
4794 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4795 	 */
4796 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
4797 	/*
4798 	 * Unsigned 32-bit, defining the access policy.
4799 	 * See enum qca_access_policy. Used with
4800 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4801 	 */
4802 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
4803 	/*
4804 	 * Sets the list of full set of IEs for which a specific access policy
4805 	 * has to be applied. Used along with
4806 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4807 	 * Zero length payload can be used to clear this access constraint.
4808 	 */
4809 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
4810 	/*
4811 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
4812 	 * corresponding configurations are applied. If the interface index is
4813 	 * not specified, the configurations are attributed to the respective
4814 	 * wiphy.
4815 	 */
4816 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
4817 	/*
4818 	 * 8-bit unsigned value to trigger QPower:
4819 	 * 1-Enable, 0-Disable
4820 	 */
4821 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
4822 	/*
4823 	 * 8-bit unsigned value to configure the driver and below layers to
4824 	 * ignore the assoc disallowed set by APs while connecting
4825 	 * 1-Ignore, 0-Don't ignore
4826 	 */
4827 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
4828 	/*
4829 	 * 32-bit unsigned value to trigger antenna diversity features:
4830 	 * 1-Enable, 0-Disable
4831 	 */
4832 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4833 	/* 32-bit unsigned value to configure specific chain antenna */
4834 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4835 	/*
4836 	 * 32-bit unsigned value to trigger cycle selftest
4837 	 * 1-Enable, 0-Disable
4838 	 */
4839 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4840 	/*
4841 	 * 32-bit unsigned to configure the cycle time of selftest
4842 	 * the unit is micro-second
4843 	 */
4844 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4845 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
4846 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4847 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
4848 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4849 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
4850 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4851 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
4852 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4853 	/* 6-byte MAC address to point out the specific peer */
4854 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4855 	/* 32-bit unsigned value to set window size for specific peer */
4856 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4857 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4858 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4859 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4860 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4861 	/*
4862 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4863 	 * station device while in disconnect state. The attribute use the
4864 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4865 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4866 	 * 10 MHz channel width, the station will not connect to a BSS using 20
4867 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4868 	 * clear this constraint.
4869 	 */
4870 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4871 	/*
4872 	 * 32-bit unsigned value to configure the propagation absolute delay
4873 	 * for 2G/5G band (units in us)
4874 	 */
4875 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
4876 	/* 32-bit unsigned value to set probe period */
4877 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4878 	/* 32-bit unsigned value to set stay period */
4879 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4880 	/* 32-bit unsigned value to set snr diff */
4881 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4882 	/* 32-bit unsigned value to set probe dwell time */
4883 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4884 	/* 32-bit unsigned value to set mgmt snr weight */
4885 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4886 	/* 32-bit unsigned value to set data snr weight */
4887 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4888 	/* 32-bit unsigned value to set ack snr weight */
4889 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4890 	/*
4891 	 * 32-bit unsigned value to configure the listen interval.
4892 	 * This is in units of beacon intervals. This configuration alters
4893 	 * the negotiated listen interval with the AP during the connection.
4894 	 * It is highly recommended to configure a value less than or equal to
4895 	 * the one negotiated during the association. Configuring any greater
4896 	 * value can have adverse effects (frame loss, AP disassociating STA,
4897 	 * etc.).
4898 	 */
4899 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4900 	/*
4901 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4902 	 * disable operations that would cause the AP/GO to leave its operating
4903 	 * channel.
4904 	 *
4905 	 * This will restrict the scans to the AP/GO operating channel and the
4906 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4907 	 * brought up after this setting is enabled, will be restricted to
4908 	 * connecting to devices only on the AP/GO interface's operating channel
4909 	 * or on the other band in DBS case. P2P supported channel list is
4910 	 * modified, to only include AP interface's operating-channel and the
4911 	 * channels of the other band if DBS is supported.
4912 	 *
4913 	 * These restrictions are only applicable as long as the AP/GO interface
4914 	 * is alive. If the AP/GO interface is brought down then this
4915 	 * setting/restriction is forgotten.
4916 	 *
4917 	 * If this variable is set on an AP/GO interface while a multi-channel
4918 	 * concurrent session is active, it has no effect on the operation of
4919 	 * the current interfaces, other than restricting the scan to the AP/GO
4920 	 * operating channel and the other band channels if DBS is supported.
4921 	 * However, if the STA is brought down and restarted then the new STA
4922 	 * connection will either be formed on the AP/GO channel or on the
4923 	 * other band in a DBS case. This is because of the scan being
4924 	 * restricted on these channels as mentioned above.
4925 	 *
4926 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4927 	 */
4928 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4929 
4930 	/*
4931 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4932 	 * on an interface.
4933 	 * 1 - Enable , 0 - Disable.
4934 	 */
4935 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4936 
4937 	/*
4938 	 * 8 bit unsigned value to globally enable/disable scan
4939 	 * 1 - Enable, 0 - Disable.
4940 	 */
4941 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4942 
4943 	/* 8-bit unsigned value to set the total beacon miss count */
4944 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4945 
4946 	/*
4947 	 * Unsigned 32-bit value to configure the number of continuous
4948 	 * Beacon Miss which shall be used by the firmware to penalize
4949 	 * the RSSI for BTC.
4950 	 */
4951 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4952 
4953 	/*
4954 	 * 8-bit unsigned value to configure the driver and below layers to
4955 	 * enable/disable all fils features.
4956 	 * 0-enable, 1-disable
4957 	 */
4958 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4959 
4960 	/* 16-bit unsigned value to configure the level of WLAN latency
4961 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4962 	 */
4963 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4964 
4965 	/*
4966 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4967 	 * the connect interface. Exclusively used for the scenarios where the
4968 	 * device is used as a test bed device with special functionality and
4969 	 * not recommended for production. This helps driver to not validate the
4970 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4971 	 * used for testing purposes.
4972 	 * 1-enable, 0-disable.
4973 	 * Applications set/reset this configuration. If not reset, this
4974 	 * parameter remains in use until the driver is unloaded.
4975 	 */
4976 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4977 
4978 	/*
4979 	 * 8-bit unsigned value to trigger green Tx power saving.
4980 	 * 1-Enable, 0-Disable
4981 	 */
4982 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4983 
4984 	/*
4985 	 * Attribute to configure disconnect IEs to the driver.
4986 	 * This carries an array of unsigned 8-bit characters.
4987 	 *
4988 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
4989 	 * frame.
4990 	 * These IEs are expected to be considered only for the next
4991 	 * immediate disconnection (disassoc/deauth frame) originated by
4992 	 * the DUT, irrespective of the entity (user space/driver/firmware)
4993 	 * triggering the disconnection.
4994 	 * The host drivers are not expected to use the IEs set through
4995 	 * this interface for further disconnections after the first immediate
4996 	 * disconnection initiated post the configuration.
4997 	 * If the IEs are also updated through cfg80211 interface (after the
4998 	 * enhancement to cfg80211_disconnect), host driver is expected to
4999 	 * take the union of IEs from both of these interfaces and send in
5000 	 * further disassoc/deauth frames.
5001 	 */
5002 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
5003 
5004 	/* 8-bit unsigned value for ELNA bypass.
5005 	 * 0 - Disable eLNA bypass.
5006 	 * 1 - Enable eLNA bypass.
5007 	 * 2 - Reset eLNA bypass configuration, the driver should
5008 	 *	revert to the default configuration of eLNA bypass.
5009 	 */
5010 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
5011 
5012 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5013 	 * to send the Beacon Report response with failure reason for the
5014 	 * scenarios where STA cannot honor the Beacon report request from AP.
5015 	 * 1-Enable, 0-Disable.
5016 	 */
5017 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
5018 
5019 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5020 	 * to send roam reason information in the reassociation request to the
5021 	 * AP. 1-Enable, 0-Disable.
5022 	 */
5023 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
5024 
5025 	/* 32-bit unsigned value to configure different PHY modes to the
5026 	 * driver/firmware. The possible values are defined in
5027 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
5028 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
5029 	 * the driver.
5030 	 */
5031 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
5032 
5033 	/* 8-bit unsigned value to configure the maximum supported channel width
5034 	 * for STA mode. If this value is configured when STA is in connected
5035 	 * state, it should not exceed the negotiated channel width. If it is
5036 	 * configured when STA is in disconnected state, the configured value
5037 	 * will take effect for the next immediate connection.
5038 	 * Possible values are:
5039 	 *   NL80211_CHAN_WIDTH_20
5040 	 *   NL80211_CHAN_WIDTH_40
5041 	 *   NL80211_CHAN_WIDTH_80
5042 	 *   NL80211_CHAN_WIDTH_80P80
5043 	 *   NL80211_CHAN_WIDTH_160
5044 	 */
5045 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
5046 
5047 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
5048 	 * This attribute is only applicable for STA mode. When dynamic
5049 	 * bandwidth adjustment is disabled, STA will use static channel width
5050 	 * the value of which is negotiated during connection.
5051 	 * 1-enable (default), 0-disable
5052 	 */
5053 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
5054 
5055 	/* 8-bit unsigned value to configure the maximum number of subframes of
5056 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
5057 	 * it is decided by hardware.
5058 	 */
5059 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
5060 
5061 	/* 8-bit unsigned value to configure the maximum number of subframes of
5062 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
5063 	 * it is decided by hardware.
5064 	 */
5065 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
5066 
5067 	/* 8-bit unsigned value. This attribute is used to dynamically
5068 	 * enable/disable the LDPC capability of the device. When configured in
5069 	 * the disconnected state, the updated configuration will be considered
5070 	 * for the immediately following connection attempt. If this
5071 	 * configuration is modified while the device is in the connected state,
5072 	 * the LDPC TX will be updated with this configuration immediately,
5073 	 * while the LDPC RX configuration update will take place starting from
5074 	 * the subsequent association attempt.
5075 	 * 1-Enable, 0-Disable.
5076 	 */
5077 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
5078 
5079 	/* 8-bit unsigned value. This attribute is used to dynamically
5080 	 * enable/disable the TX STBC capability of the device. When configured
5081 	 * in the disconnected state, the updated configuration will be
5082 	 * considered for the immediately following connection attempt. If the
5083 	 * connection is formed with TX STBC enabled and if this configuration
5084 	 * is disabled during that association, the TX will be impacted
5085 	 * immediately. Further connection attempts will disable TX STBC.
5086 	 * However, enabling the TX STBC for a connected session with disabled
5087 	 * capability is not allowed and will fail.
5088 	 * 1-Enable, 0-Disable.
5089 	 */
5090 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
5091 
5092 	/* 8-bit unsigned value. This attribute is used to dynamically
5093 	 * enable/disable the RX STBC capability of the device. When configured
5094 	 * in the disconnected state, the updated configuration will be
5095 	 * considered for the immediately following connection attempt. If the
5096 	 * configuration is modified in the connected state, there will be no
5097 	 * impact for the current association, but further connection attempts
5098 	 * will use the updated configuration.
5099 	 * 1-Enable, 0-Disable.
5100 	 */
5101 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
5102 
5103 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5104 	 * the number of spatial streams. When configured in the disconnected
5105 	 * state, the updated configuration will be considered for the
5106 	 * immediately following connection attempt. If the NSS is updated after
5107 	 * the connection, the updated NSS value is notified to the peer using
5108 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
5109 	 * frame. The updated NSS value after the connection shall not be
5110 	 * greater than the one negotiated during the connection. Any such
5111 	 * higher value configuration shall be returned with a failure.
5112 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
5113 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
5114 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
5115 	 * configure the asymmetric NSS configuration (such as 1X2).
5116 	 */
5117 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
5118 
5119 	/*
5120 	 * 8-bit unsigned value to trigger Optimized Power Management:
5121 	 * 1-Enable, 0-Disable
5122 	 */
5123 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
5124 
5125 	/* 8-bit unsigned value. This attribute takes the QOS/access category
5126 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5127 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
5128 	 * is invalid for this attribute. This will override the DSCP value
5129 	 * configured in the frame with the intention to only upgrade the QOS.
5130 	 * That said, it is not intended to downgrade the QOS for the frames.
5131 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
5132 	 * to disable.
5133 	 *
5134 	 * If only UDP frames of BE or BK access category needs to be upgraded
5135 	 * without changing the access category of VO or VI UDP frames, refer to
5136 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
5137 	 *
5138 	 * This attribute is not recommended to be used as it blindly forces all
5139 	 * UDP packets to a higher access category which could impact the
5140 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
5141 	 */
5142 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
5143 
5144 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5145 	 * the number of chains to be used for transmitting data. This
5146 	 * configuration is allowed only when in connected state and will be
5147 	 * effective until disconnected. The driver rejects this configuration
5148 	 * if the number of spatial streams being used in the current connection
5149 	 * cannot be supported by this configuration.
5150 	 */
5151 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
5152 
5153 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5154 	 * the number of chains to be used for receiving data. This
5155 	 * configuration is allowed only when in connected state and will be
5156 	 * effective until disconnected. The driver rejects this configuration
5157 	 * if the number of spatial streams being used in the current connection
5158 	 * cannot be supported by this configuration.
5159 	 */
5160 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5161 
5162 	/* 8-bit unsigned value to configure ANI setting type.
5163 	 * See &enum qca_wlan_ani_setting for possible values.
5164 	 */
5165 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5166 	/* 32-bit signed value to configure ANI level. This is used when
5167 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5168 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5169 	 * is invalid, the driver will return a failure.
5170 	 */
5171 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5172 
5173 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5174 	 * the number of spatial streams used for transmitting the data. When
5175 	 * configured in the disconnected state, the configured value will
5176 	 * be considered for the following connection attempt.
5177 	 * If the NSS is updated after the connection, the updated NSS value
5178 	 * is notified to the peer using the Operating Mode Notification/Spatial
5179 	 * Multiplexing Power Save frame.
5180 	 * The TX NSS value configured after the connection shall not be greater
5181 	 * than the value negotiated during the connection. Any such higher
5182 	 * value configuration shall be treated as invalid configuration by
5183 	 * the driver. This attribute shall be configured along with
5184 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5185 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5186 	 * configuration (such as 1X2).
5187 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5188 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5189 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5190 	 */
5191 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5192 
5193 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5194 	 * the number of spatial streams used for receiving the data. When
5195 	 * configured in the disconnected state, the configured value will
5196 	 * be considered for the following connection attempt.
5197 	 * If the NSS is updated after the connection, the updated NSS value
5198 	 * is notified to the peer using the Operating Mode Notification/Spatial
5199 	 * Multiplexing Power Save frame.
5200 	 * The RX NSS value configured after the connection shall not be greater
5201 	 * than the value negotiated during the connection. Any such higher
5202 	 * value configuration shall be treated as invalid configuration by
5203 	 * the driver. This attribute shall be configured along with
5204 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5205 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5206 	 * configuration (such as 1X2).
5207 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5208 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5209 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5210 	 */
5211 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5212 
5213 	/*
5214 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5215 	 * specified interface is the primary STA interface when there are more
5216 	 * than one STA interfaces concurrently active.
5217 	 *
5218 	 * This configuration helps the firmware/hardware to support certain
5219 	 * features (e.g., roaming) on this primary interface, if the same
5220 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5221 	 *
5222 	 * This configuration is only applicable for a single STA interface on
5223 	 * a device and gives the priority for it only over other concurrent STA
5224 	 * interfaces.
5225 	 *
5226 	 * If the device is a multi wiphy/soc, this configuration applies to a
5227 	 * single STA interface across the wiphys.
5228 	 *
5229 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5230 	 */
5231 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5232 
5233 	/*
5234 	 * 8-bit unsigned value. This attribute can be used to configure the
5235 	 * driver to enable/disable FT-over-DS feature. Possible values for
5236 	 * this attribute are 1-Enable and 0-Disable.
5237 	 */
5238 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5239 
5240 	/*
5241 	 * 8-bit unsigned value. This attribute can be used to configure the
5242 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5243 	 * for this attribute are 0-Disable and 1-Enable.
5244 	 *
5245 	 * This attribute is only applicable for STA/P2P-Client interface,
5246 	 * and is optional, default behavior is APR/NS offload Enable.
5247 	 *
5248 	 * This attribute can be set in disconncted and connected state, and
5249 	 * will restore to default behavior if interface is closed.
5250 	 */
5251 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5252 
5253 	/*
5254 	 * 8-bit unsigned value. This attribute can be used to configure the
5255 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5256 	 * for this attribute are defined in the enum qca_dbam_config.
5257 	 */
5258 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5259 
5260 	/* 8-bit unsigned value. This attribute takes the QoS/access category
5261 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5262 	 * to upgrade the UDP frames of BE or BK access category to this access
5263 	 * category. This attribute will not modify UDP frames of VO or VI
5264 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
5265 	 * attribute.
5266 	 *
5267 	 * This will override the DSCP value configured in the frame with the
5268 	 * intention to only upgrade the access category. That said, it is not
5269 	 * intended to downgrade the access category for the frames.
5270 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
5271 	 * disabled, as BK is of the lowest priority and an upgrade to it does
5272 	 * not result in any changes for the frames.
5273 	 *
5274 	 * This attribute behavior is similar to
5275 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
5276 	 * only UDP frames of BE or BK access category are upgraded and not
5277 	 * UDP frames of VI or VO access category.
5278 	 *
5279 	 * This attribute is not recommended to be used as it blindly forces all
5280 	 * UDP packets of BE or BK access category to a higher access category
5281 	 * which could impact the traffic pattern of all apps using UDP and can
5282 	 * cause unknown behavior.
5283 	 */
5284 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
5285 
5286 	/* 8-bit unsigned value to configure the driver to enable/disable the
5287 	 * periodic sounding for Tx beamformer functionality. The default
5288 	 * behavior uses algorithm to do sounding based on packet stats.
5289 	 *
5290 	 * 0 - Default behavior.
5291 	 * 1 - Enable the periodic sounding for Tx beamformer.
5292 	 * This attribute is used for testing purposes.
5293 	 */
5294 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
5295 
5296 	/* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
5297 	 * Userspace sends this information to driver/firmware to configure
5298 	 * wfc state. Driver/Firmware uses this information to
5299 	 * optimize power savings, rate adaption, roaming, etc.
5300 	 *
5301 	 * 1 - wfc is on.
5302 	 * 0 - wfc is off.
5303 	 */
5304 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
5305 
5306 	/* keep last */
5307 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5308 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5309 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5310 };
5311 
5312 /**
5313  * enum qca_dbam_config - Specifies DBAM config mode
5314  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5315  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5316  * internal criteria are met.
5317  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5318  */
5319 enum qca_dbam_config {
5320 	QCA_DBAM_DISABLE = 0,
5321 	QCA_DBAM_ENABLE = 1,
5322 	QCA_DBAM_FORCE_ENABLE = 2,
5323 };
5324 
5325 /**
5326  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5327  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5328  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5329  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5330  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5331  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5332  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5333  */
5334 enum qca_wlan_vendor_attr_wifi_logger_start {
5335 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5336 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5337 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5338 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5339 	/* keep last */
5340 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5341 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5342 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5343 };
5344 
5345 /*
5346  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5347  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5348  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5349  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5350  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5351  */
5352 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5353 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5354 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5355 	/* keep last */
5356 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5357 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5358 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5359 };
5360 
5361 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5362 /**
5363  * enum wlan_offloaded_packets_control - control commands
5364  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5365  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5366  *
5367  */
5368 enum wlan_offloaded_packets_control {
5369 	WLAN_START_OFFLOADED_PACKETS = 1,
5370 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5371 };
5372 
5373 /**
5374  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5375  *
5376  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5377  *      the offloaded data.
5378  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5379  *      data.
5380  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5381  *      indication.
5382  */
5383 enum qca_wlan_vendor_attr_data_offload_ind {
5384 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5385 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5386 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5387 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5388 
5389 	/* keep last */
5390 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5391 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5392 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5393 };
5394 
5395 /**
5396  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5397  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5398  */
5399 enum qca_wlan_vendor_attr_offloaded_packets {
5400 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5401 	/* Takes valid value from the enum
5402 	 * qca_wlan_offloaded_packets_sending_control
5403 	 * Unsigned 32-bit value
5404 	 */
5405 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5406 	/* Unsigned 32-bit value */
5407 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5408 	/* array of u8 len: Max packet size */
5409 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5410 	/* 6-byte MAC address used to represent source MAC address */
5411 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5412 	/* 6-byte MAC address used to represent destination MAC address */
5413 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5414 	/* Unsigned 32-bit value, in milli seconds */
5415 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5416 	/* This optional unsigned 16-bit attribute is used for specifying
5417 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5418 	 */
5419 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5420 
5421 	/* keep last */
5422 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5423 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5424 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5425 };
5426 
5427 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5428 
5429 /**
5430  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5431  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5432  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5433  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5434  */
5435 enum qca_wlan_rssi_monitoring_control {
5436 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5437 	QCA_WLAN_RSSI_MONITORING_START,
5438 	QCA_WLAN_RSSI_MONITORING_STOP,
5439 };
5440 
5441 /**
5442  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5443  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5444  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5445  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5446  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5447  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5448  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5449  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5450  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5451  */
5452 enum qca_wlan_vendor_attr_rssi_monitoring {
5453 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5454 
5455 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5456 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5457 
5458 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5459 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5460 
5461 	/* attributes to be used/received in callback */
5462 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5463 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5464 
5465 	/* keep last */
5466 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5467 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5468 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5469 };
5470 
5471 /**
5472  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5473  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5474  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5475  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
5476  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
5477  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
5478  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
5479  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
5480  * address
5481  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
5482  * created
5483  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
5484  * NCS_SK_TYPE/PMK/SCID instead
5485  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
5486  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
5487  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
5488  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
5489  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
5490  * code: accept/reject
5491  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
5492  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
5493  * driver
5494  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
5495  * driver
5496  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
5497  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
5498  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
5499  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
5500  * PMKID
5501  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
5502  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
5503  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
5504  * update:
5505  *     BIT_0: NSS Update
5506  *     BIT_1: Channel list update
5507  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
5508  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
5509  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
5510  *     0:20 MHz,
5511  *     1:40 MHz,
5512  *     2:80 MHz,
5513  *     3:160 MHz
5514  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
5515  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
5516  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
5517  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
5518  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
5519  * transport port used by NDP.
5520  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
5521  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
5522  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5523  * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
5524  * NDP remote peer supports NAN NDPE. 1:support 0:not support
5525  * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
5526  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
5527  * A lower-case representation of the Service Name shall be used to
5528  * calculate the Service ID.
5529  * Array of u8: length is 6 bytes
5530  * This attribute is used and optional for ndp indication.
5531 */
5532 enum qca_wlan_vendor_attr_ndp_params {
5533 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5534 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
5535 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
5536 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
5537 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
5538 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
5539 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
5540 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
5541 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
5542 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
5543 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
5544 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
5545 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
5546 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
5547 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
5548 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
5549 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
5550 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
5551 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
5552 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
5553 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
5554 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
5555 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
5556 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
5557 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
5558 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
5559 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
5560 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5561 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5562 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5563 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
5564 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
5565 
5566 	/* keep last */
5567 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5568 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5569 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5570 };
5571 
5572 /**
5573  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
5574  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5575  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
5576  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
5577  * data path interface.
5578  * This command was initially designed to both create and start a NAN
5579  * data path interface. However, changes to Linux 5.12 no longer allow
5580  * interface creation via vendor commands. When the driver advertises
5581  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5582  * userspace must explicitly first create the interface using
5583  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
5584  * to start the interface.
5585  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
5586  * data path interface.
5587  * This command was initially designed to both stop and delete a NAN
5588  * data path interface. However, changes to Linux 5.12 no longer allow
5589  * interface deletion via vendor commands. When the driver advertises
5590  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5591  * userspace must explicitly delete the interface using
5592  * NL80211_CMD_DEL_INTERFACE after calling this command.
5593  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
5594  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
5595  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
5596  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
5597  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
5598  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
5599  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
5600  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
5601  * being received
5602  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
5603  * update
5604  */
5605 enum qca_wlan_ndp_sub_cmd {
5606 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5607 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5608 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5609 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5610 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5611 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5612 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5613 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5614 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5615 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5616 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5617 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5618 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5619 };
5620 
5621 /**
5622  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5623  * information. These attributes are sent as part of
5624  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5625  * attributes correspond to a single channel.
5626  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
5627  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5628  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
5629  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5630  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
5631  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
5632  * regulatory transmission power
5633  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
5634  * transmission power
5635  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
5636  * transmission power
5637  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
5638  * class id
5639  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
5640  * antenna gain in dbm
5641  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
5642  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
5643  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
5644  * center frequency in MHz.
5645  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
5646  * segment 0 in center freq in MHz. (this is the legacy alias)
5647  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
5648  * center frequency in MHz.
5649  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
5650  * segment 1 in center freq in MHz. (this is the legacy alias)
5651  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
5652  * flag indicating the AP power modes supported by the channel, as given by
5653  * enum qca_wlan_vendor_external_acs_chan_power_level.
5654  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
5655  * attributes for each power mode. It takes attr as defined in enum
5656  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5657  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
5658  * This indicates the overlapping 320 MHz center frequency in MHz, if the
5659  * given primary channel supports more than one 320 MHz channel bonding.
5660  *
5661  */
5662 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5663 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5664 
5665 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5666 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5667 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5668 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5669 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5670 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5671 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5672 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5673 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5674 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5675 	/*
5676 	 * A bitmask (u32) with flags specified in
5677 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5678 	 */
5679 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5680 
5681 	/*
5682 	 * Segment 0 in MHz (u32).
5683 	 *
5684 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
5685 	 * frequency index for the 20/40/80 MHz operating channel.
5686 	 * For 160 MHz bandwidth, this indicates the channel center
5687 	 * frequency of the primary 80 MHz channel.
5688 	 * For 320 MHz bandwidth, indicates the channel center frequency
5689 	 * of the primary 160 MHz channel.
5690 	 *
5691 	 * To maintain backward compatibility,
5692 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5693 	 * is also maintained.
5694 	 */
5695 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
5696 	/* Legacy alias for the Segment 0 attribute.
5697 	 *
5698 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5699 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5700 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5701 	 * along with
5702 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5703 	 *
5704 	 * If both the driver and user-space application supports the 6 GHz
5705 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5706 	 * is deprecated and
5707 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5708 	 * should be used.
5709 	 *
5710 	 * To maintain backward compatibility,
5711 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5712 	 * is still used if either of the driver or user space application
5713 	 * doesn't support the 6 GHz band.
5714 	 */
5715 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
5716 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
5717 
5718 	/*
5719 	 * Segment 1 in MHz (u32).
5720 	 *
5721 	 * For 20/40/80 MHz bandwidth, this is set to 0.
5722 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
5723 	 * 160 MHz channel.
5724 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
5725 	 * 320 MHz channel.
5726 	 *
5727 	 * To maintain backward compatibility,
5728 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5729 	 * is also maintained.
5730 	 */
5731 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
5732 	/* Legacy alias for the Segment 1 attribute.
5733 	 *
5734 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5735 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5736 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5737 	 * along with
5738 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5739 	 *
5740 	 * If both the driver and user-space application supports the 6 GHz
5741 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5742 	 * is deprecated and
5743 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5744 	 * should be considered.
5745 	 *
5746 	 * To maintain backward compatibility,
5747 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5748 	 * is still used if either of the driver or user space application
5749 	 * doesn't support the 6 GHz band.
5750 	 */
5751 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
5752 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
5753 	/*
5754 	 * 16-bit attribute of bits indicating the AP power modes supported by
5755 	 * the channel (u16).
5756 	 * Note: Currently, only 3 bits are used in the attribute and each bit
5757 	 * corresponds to the power mode mentioned in enum
5758 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
5759 	 * set if the associated mode is supported.
5760 	 */
5761 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
5762 									= 14,
5763 	/* Array of nested attributes for each power mode. It takes attr as
5764 	 * defined in enum
5765 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5766 	 */
5767 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
5768 	/*
5769 	 * This indicates the overlapping 320 MHz center frequency in MHz
5770 	 * (u32), if the given primary channel supports more than one
5771 	 * 320 MHz channel bonding.
5772 	 *
5773 	 * Example:
5774 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
5775 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
5776 	 * possible segment 2 frequencies for this (320 MHz center
5777 	 * frequencies):
5778 	 *
5779 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
5780 	 *    from frequency 5945 MHz - 6265 MHz
5781 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
5782 	 *    from frequency 6105 MHz - 6425 MHz
5783 	 *
5784 	 * In this case,
5785 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
5786 	 * return 6185 MHz.
5787 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
5788 	 * return 6105 MHz.
5789 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
5790 	 * will return 6265 MHz.
5791 	 */
5792 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
5793 									= 16,
5794 
5795 	/* keep last */
5796 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5797 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5798 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5799 };
5800 
5801 /**
5802  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
5803  * values that the vendor external ACS channel power attribute
5804  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
5805  * take.
5806  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
5807  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
5808  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
5809  */
5810 enum qca_wlan_vendor_external_acs_chan_power_level {
5811 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
5812 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
5813 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
5814 };
5815 
5816 /**
5817  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
5818  * attributes for power mode type and power values corresponding to that.
5819  * These attributes are sent as part of
5820  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
5821  */
5822 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
5823 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
5824 	/*
5825 	 * Power mode (u8) takes the values defined in enum
5826 	 * qca_wlan_vendor_external_acs_chan_power_mode
5827 	 */
5828 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
5829 									= 1,
5830 	/*
5831 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
5832 	 * present, it indicates a PSD value.
5833 	 */
5834 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
5835 	/*
5836 	 * Power value (u32) PSD/EIRP as indicated by
5837 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
5838 	 * for power mode corresponding to the
5839 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
5840 	 * Units for PSD - dBm/MHz
5841 	 * Units for EIRP - dBm
5842 	 */
5843 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
5844 									= 3,
5845 	/* keep last */
5846 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
5847 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
5848 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
5849 };
5850 
5851 /**
5852  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
5853  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
5854  * driver.
5855  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
5856  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
5857  * ACS need to be started
5858  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
5859  * driver supports spectral scanning or not
5860  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
5861  * offloaded to firmware.
5862  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
5863  * provides additional channel capability as part of scan operation.
5864  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
5865  * interface status is UP
5866  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
5867  * interface. It takes one of nl80211_iftype values.
5868  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
5869  * of chan width. ACS logic should try to get a channel with specified width
5870  * if not found then look for lower values.
5871  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
5872  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
5873  * a/b/g/n/ac.
5874  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
5875  * among which ACS should choose best frequency.
5876  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
5877  * driver which will have <channel(u8), weight(u8)> format as array of
5878  * nested values.
5879  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
5880  * for each channel. It takes attr as defined in
5881  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
5882  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
5883  * qca_wlan_vendor_attr_external_acs_policy.
5884  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
5885  * Operating Parameter (RROP) availability information (u16). It uses values
5886  * defined in enum qca_wlan_vendor_attr_rropavail_info.
5887  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
5888  * indicate if driver supports 6 GHz AFC trigger for External ACS.
5889  */
5890 enum qca_wlan_vendor_attr_external_acs_event {
5891 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5892 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5893 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5894 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5895 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5896 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5897 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5898 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5899 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5900 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5901 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5902 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5903 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5904 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5905 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5906 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
5907 
5908 	/* keep last */
5909 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5910 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5911 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5912 };
5913 
5914 enum qca_iface_type {
5915 	QCA_IFACE_TYPE_STA,
5916 	QCA_IFACE_TYPE_AP,
5917 	QCA_IFACE_TYPE_P2P_CLIENT,
5918 	QCA_IFACE_TYPE_P2P_GO,
5919 	QCA_IFACE_TYPE_IBSS,
5920 	QCA_IFACE_TYPE_TDLS,
5921 };
5922 
5923 /**
5924  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
5925  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5926  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5927  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
5928  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
5929  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
5930  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
5931  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
5932  */
5933 enum qca_wlan_vendor_attr_pcl_config {
5934 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5935 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5936 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5937 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5938 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5939 };
5940 
5941 enum qca_set_band {
5942 	QCA_SETBAND_AUTO = 0,
5943 	QCA_SETBAND_5G = BIT(0),
5944 	QCA_SETBAND_2G = BIT(1),
5945 	QCA_SETBAND_6G = BIT(2),
5946 };
5947 
5948 /**
5949  * enum set_reset_packet_filter - set packet filter control commands
5950  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
5951  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
5952  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
5953  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
5954  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
5955  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
5956  */
5957 enum set_reset_packet_filter {
5958 	QCA_WLAN_SET_PACKET_FILTER = 1,
5959 	QCA_WLAN_GET_PACKET_FILTER = 2,
5960 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
5961 	QCA_WLAN_READ_PACKET_FILTER = 4,
5962 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
5963 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
5964 };
5965 
5966 /**
5967  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
5968  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
5969  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
5970  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
5971  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
5972  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
5973  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
5974  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
5975  *	section in packet filter buffer
5976  */
5977 enum qca_wlan_vendor_attr_packet_filter {
5978 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
5979 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
5980 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
5981 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
5982 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
5983 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
5984 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
5985 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
5986 
5987 	/* keep last */
5988 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
5989 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
5990 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
5991 };
5992 
5993 /**
5994  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
5995  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
5996  */
5997 enum qca_wlan_vendor_attr_wake_stats {
5998 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
5999 	/* Unsigned 32-bit value indicating the total count of wake event */
6000 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
6001 	/* Array of individual wake count, each index representing wake reason
6002 	 */
6003 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
6004 	/* Unsigned 32-bit value representing wake count array */
6005 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
6006 	/* Unsigned 32-bit total wake count value of driver/fw */
6007 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
6008 	/* Array of wake stats of driver/fw */
6009 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
6010 	/* Unsigned 32-bit total wake count value of driver/fw */
6011 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
6012 	/* Unsigned 32-bit total wake count value of packets received */
6013 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
6014 	/* Unsigned 32-bit wake count value unicast packets received */
6015 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
6016 	/* Unsigned 32-bit wake count value multicast packets received */
6017 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
6018 	/* Unsigned 32-bit wake count value broadcast packets received */
6019 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
6020 	/* Unsigned 32-bit wake count value of ICMP packets */
6021 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
6022 	/* Unsigned 32-bit wake count value of ICMP6 packets */
6023 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
6024 	/* Unsigned 32-bit value ICMP6 router advertisement */
6025 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
6026 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
6027 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
6028 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
6029 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
6030 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
6031 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
6032 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
6033 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
6034 	/* Unsigned 32-bit wake count value of receive side multicast */
6035 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
6036 	/* Unsigned 32-bit wake count value of a given RSSI breach */
6037 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
6038 	/* Unsigned 32-bit wake count value of low RSSI */
6039 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
6040 	/* Unsigned 32-bit value GSCAN count */
6041 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
6042 	/* Unsigned 32-bit value PNO complete count */
6043 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
6044 	/* Unsigned 32-bit value PNO match count */
6045 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
6046 	/* keep last */
6047 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
6048 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
6049 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
6050 };
6051 
6052 /**
6053  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
6054  * configured by userspace to the driver/firmware. The values will be
6055  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
6056  * The driver/firmware takes necessary actions requested by userspace
6057  * such as throttling wifi tx etc. in order to mitigate high temperature.
6058  *
6059  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
6060  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
6061  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
6062  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
6063  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
6064  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
6065  */
6066 enum qca_wlan_vendor_thermal_level {
6067 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
6068 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
6069 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
6070 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
6071 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
6072 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
6073 };
6074 
6075 /**
6076  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
6077  * cmd value. Used for NL attributes for data used by
6078  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6079  */
6080 enum qca_wlan_vendor_attr_thermal_cmd {
6081 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
6082 	/* The value of command, driver will implement different operations
6083 	 * according to this value. It uses values defined in
6084 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
6085 	 * u32 attribute.
6086 	 */
6087 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
6088 	/* Userspace uses this attribute to configure thermal level to the
6089 	 * driver/firmware, or get thermal level from the driver/firmware.
6090 	 * Used in request or response, u32 attribute,
6091 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
6092 	 */
6093 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
6094 	/* Userspace uses this attribute to configure the time in which the
6095 	 * driver/firmware should complete applying settings it received from
6096 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
6097 	 * command type. Used in request, u32 attribute, value is in
6098 	 * milliseconds. A value of zero indicates to apply the settings
6099 	 * immediately. The driver/firmware can delay applying the configured
6100 	 * thermal settings within the time specified in this attribute if
6101 	 * there is any critical ongoing operation.
6102 	 */
6103 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
6104 	/* Nested attribute, driver/firmware uses this attribute to report
6105 	 * thermal stats of different thermal levels to userspace when requested
6106 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
6107 	 * type. This attribute contains nested array of records of thermal
6108 	 * statistics of multiple levels. The attributes used inside this nested
6109 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
6110 	 */
6111 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
6112 
6113 	/* keep last */
6114 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
6115 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
6116 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
6117 };
6118 
6119 /**
6120  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
6121  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
6122  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
6123  * thermal command types sent to driver.
6124  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
6125  * get thermal shutdown configuration parameters for display. Parameters
6126  * responded from driver are defined in
6127  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
6128  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
6129  * get temperature. Host should respond with a temperature data. It is defined
6130  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
6131  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
6132  * suspend action.
6133  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
6134  * resume action.
6135  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
6136  * the driver/firmware.
6137  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
6138  * thermal level from the driver/firmware. The driver should respond with a
6139  * thermal level defined in enum qca_wlan_vendor_thermal_level.
6140  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
6141  * current thermal stats from the driver/firmware. The driver should respond
6142  * with stats of all thermal levels encapsulated in attribute
6143  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
6144  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
6145  * the current thermal stats all thermal levels maintained in the
6146  * driver/firmware and start counting from zero again.
6147  */
6148 enum qca_wlan_vendor_attr_thermal_cmd_type {
6149 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
6150 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
6151 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
6152 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
6153 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
6154 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
6155 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
6156 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
6157 };
6158 
6159 /**
6160  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
6161  * to get chip temperature by user.
6162  * enum values are used for NL attributes for data used by
6163  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
6164  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6165  */
6166 enum qca_wlan_vendor_attr_thermal_get_temperature {
6167 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
6168 	/* Temperature value (degree Celsius) from driver.
6169 	 * u32 attribute.
6170 	 */
6171 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
6172 
6173 	/* keep last */
6174 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
6175 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
6176 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
6177 };
6178 
6179 /**
6180  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
6181  * report thermal events from driver to user space.
6182  * enum values are used for NL attributes for data used by
6183  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
6184  */
6185 enum qca_wlan_vendor_attr_thermal_event {
6186 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
6187 	/* Temperature value (degree Celsius) from driver.
6188 	 * u32 attribute.
6189 	 */
6190 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
6191 	/* Indication of resume completion from power save mode.
6192 	 * NLA_FLAG attribute.
6193 	 */
6194 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
6195 	/* Thermal level from the driver.
6196 	 * u32 attribute. Possible values are defined in
6197 	 * enum qca_wlan_vendor_thermal_level.
6198 	 */
6199 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
6200 
6201 	/* keep last */
6202 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
6203 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
6204 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
6205 };
6206 
6207 /**
6208  * enum qca_vendor_element_id - QCA Vendor Specific element types
6209  *
6210  * These values are used to identify QCA Vendor Specific elements. The
6211  * payload of the element starts with the three octet OUI (OUI_QCA) and
6212  * is followed by a single octet type which is defined by this enum.
6213  *
6214  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
6215  *      This element can be used to specify preference order for supported
6216  *      channels. The channels in this list are in preference order (the first
6217  *      one has the highest preference) and are described as a pair of
6218  *      (global) Operating Class and Channel Number (each one octet) fields.
6219  *
6220  *      This extends the standard P2P functionality by providing option to have
6221  *      more than one preferred operating channel. When this element is present,
6222  *      it replaces the preference indicated in the Operating Channel attribute.
6223  *      For supporting other implementations, the Operating Channel attribute is
6224  *      expected to be used with the highest preference channel. Similarly, all
6225  *      the channels included in this Preferred channel list element are
6226  *      expected to be included in the Channel List attribute.
6227  *
6228  *      This vendor element may be included in GO Negotiation Request, P2P
6229  *      Invitation Request, and Provision Discovery Request frames.
6230  *
6231  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
6232  *      This element can be used for pre-standard publication testing of HE
6233  *      before P802.11ax draft assigns the element ID. The payload of this
6234  *      vendor specific element is defined by the latest P802.11ax draft.
6235  *      Please note that the draft is still work in progress and this element
6236  *      payload is subject to change.
6237  *
6238  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation 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_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
6246  *      element).
6247  *      This element can be used for pre-standard publication testing of HE
6248  *      before P802.11ax draft assigns the element ID extension. The payload of
6249  *      this vendor specific element is defined by the latest P802.11ax draft
6250  *      (not including the Element ID Extension field). Please note that the
6251  *      draft is still work in progress and this element payload is subject to
6252  *      change.
6253  *
6254  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
6255  *      This element can be used for pre-standard publication testing of HE
6256  *      before P802.11ax draft assigns the element ID extension. The payload of
6257  *      this vendor specific element is defined by the latest P802.11ax draft
6258  *      (not including the Element ID Extension field). Please note that the
6259  *      draft is still work in progress and this element payload is subject to
6260  *      change.
6261  *
6262  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
6263  *      This element can be used for pre-standard publication testing of HE
6264  *      before P802.11ax draft assigns the element ID extension. The payload of
6265  *      this vendor specific element is defined by the latest P802.11ax draft
6266  *      (not including the Element ID Extension field). Please note that the
6267  *      draft is still work in progress and this element payload is subject to
6268  *      change.
6269  */
6270 enum qca_vendor_element_id {
6271 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6272 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6273 	QCA_VENDOR_ELEM_HE_OPER = 2,
6274 	QCA_VENDOR_ELEM_RAPS = 3,
6275 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6276 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6277 };
6278 
6279 /**
6280  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6281  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6282  * Specify the TSF command. Possible values are defined in
6283  * &enum qca_tsf_cmd.
6284  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6285  * This attribute contains TSF timer value. This attribute is only available
6286  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6287  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6288  * This attribute contains SOC timer value at TSF capture. This attribute is
6289  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6290  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6291  * This attribute is used to provide TSF sync interval and only applicable when
6292  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6293  * driver will use the default value. Time unit is in milliseconds.
6294  */
6295 enum qca_vendor_attr_tsf_cmd {
6296 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6297 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6298 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6299 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6300 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6301 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6302 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6303 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6304 };
6305 
6306 /**
6307  * enum qca_tsf_cmd: TSF driver commands
6308  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6309  * @QCA_TSF_GET: Get TSF capture value
6310  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6311  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6312  * will automatically send TSF report to the host. To query
6313  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6314  * initiated first.
6315  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6316  * will not automatically send TSF report to the host. If
6317  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6318  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6319  * operation needs to be initiated.
6320  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6321  * fetches TSF and host time mapping from the firmware with interval configured
6322  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6323  * interval value is not provided the driver will use the default value. The
6324  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6325  * command.
6326  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6327  */
6328 enum qca_tsf_cmd {
6329 	QCA_TSF_CAPTURE,
6330 	QCA_TSF_GET,
6331 	QCA_TSF_SYNC_GET,
6332 	QCA_TSF_AUTO_REPORT_ENABLE,
6333 	QCA_TSF_AUTO_REPORT_DISABLE,
6334 	QCA_TSF_SYNC_START,
6335 	QCA_TSF_SYNC_STOP,
6336 };
6337 
6338 /**
6339  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6340  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6341  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6342  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6343  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6344  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6345  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6346  */
6347 enum qca_vendor_attr_get_preferred_freq_list {
6348 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6349 	/* A 32-unsigned value; the interface type/mode for which the preferred
6350 	 * frequency list is requested (see enum qca_iface_type for possible
6351 	 * values); used in both south- and north-bound.
6352 	 */
6353 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6354 	/* An array of 32-unsigned values; values are frequency (MHz); used
6355 	 * in north-bound only.
6356 	 */
6357 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6358 	/* An array of nested values as per enum
6359 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6360 	 *  Each element contains frequency (MHz), weight, and flag
6361 	 *  bit mask indicating how the frequency should be used in P2P
6362 	 *  negotiation.
6363 	 */
6364 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6365 	/* keep last */
6366 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6367 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6368 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6369 };
6370 
6371 /**
6372  * enum qca_vendor_attr_probable_oper_channel - channel hint
6373  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6374  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6375  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6376  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6377  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6378  */
6379 enum qca_vendor_attr_probable_oper_channel {
6380 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6381 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6382 	 * come on this channel (see enum qca_iface_type).
6383 	 */
6384 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6385 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6386 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6387 	/* keep last */
6388 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6389 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6390 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6391 };
6392 
6393 /**
6394  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6395  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6396  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6397  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6398  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6399  */
6400 enum qca_wlan_vendor_attr_gw_param_config {
6401 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6402 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6403 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6404 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6405 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6406 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6407 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6408 };
6409 
6410 /**
6411  * enum drv_dbs_capability - DBS capability
6412  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6413  * @DRV_DBS_CAPABILITY_1X1: 1x1
6414  * @DRV_DBS_CAPABILITY_2X2: 2x2
6415  */
6416 enum drv_dbs_capability {
6417 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6418 	DRV_DBS_CAPABILITY_1X1,
6419 	DRV_DBS_CAPABILITY_2X2,
6420 };
6421 
6422 /**
6423  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6424  *
6425  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6426  */
6427 enum qca_vendor_attr_txpower_decr_db {
6428 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6429 	/*
6430 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6431 	 * a virtual interface.
6432 	 */
6433 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6434 	/* keep last */
6435 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
6436 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
6437 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
6438 };
6439 
6440 /**
6441  * enum qca_vendor_attr_ota_test - Enable OTA test
6442  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
6443  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
6444  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
6445  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
6446  */
6447 enum qca_vendor_attr_ota_test {
6448 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
6449 	/* 8-bit unsigned value to indicate if OTA test is enabled */
6450 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
6451 	/* keep last */
6452 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
6453 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
6454 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
6455 };
6456 
6457 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
6458  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
6459  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
6460  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
6461  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
6462  */
6463 enum qca_vendor_attr_txpower_scale {
6464 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
6465 	/* 8-bit unsigned value to indicate the scaling of tx power */
6466 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
6467 	/* keep last */
6468 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
6469 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
6470 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
6471 };
6472 
6473 /**
6474  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
6475  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
6476  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
6477  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
6478  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
6479  */
6480 enum qca_vendor_attr_txpower_scale_decr_db {
6481 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
6482 	/* 8-bit unsigned value to indicate the scaling of tx power */
6483 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
6484 	/* keep last */
6485 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
6486 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
6487 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
6488 };
6489 
6490 /**
6491  * enum dfs_mode - state of DFS mode
6492  * @DFS_MODE_NONE: DFS mode attribute is none
6493  * @DFS_MODE_ENABLE:  DFS mode is enabled
6494  * @DFS_MODE_DISABLE: DFS mode is disabled
6495  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
6496  */
6497 enum dfs_mode {
6498 	DFS_MODE_NONE,
6499 	DFS_MODE_ENABLE,
6500 	DFS_MODE_DISABLE,
6501 	DFS_MODE_DEPRIORITIZE
6502 };
6503 
6504 /**
6505  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
6506  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
6507  *
6508  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
6509  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
6510  *
6511  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
6512  * channel number hint for ACS operation, if valid channel is specified then
6513  * ACS operation gives priority to this channel.
6514  * Note: If both the driver and user space application supports the 6 GHz band,
6515  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
6516  * should be used.
6517  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
6518  * is still used if either of the driver or user space application doesn't
6519  * support the 6 GHz band.
6520  *
6521  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
6522  * Channel center frequency (MHz) hint for ACS operation, if a valid center
6523  * frequency is specified, ACS operation gives priority to this channel.
6524  */
6525 enum qca_wlan_vendor_attr_acs_config {
6526 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
6527 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
6528 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
6529 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
6530 
6531 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
6532 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
6533 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
6534 };
6535 
6536 /**
6537  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
6538  */
6539 enum qca_wlan_vendor_attr_get_hw_capability {
6540 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
6541 	/*
6542 	 * Antenna isolation
6543 	 * An attribute used in the response.
6544 	 * The content of this attribute is encoded in a byte array. Each byte
6545 	 * value is an antenna isolation value. The array length is the number
6546 	 * of antennas.
6547 	 */
6548 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
6549 	/*
6550 	 * Request HW capability
6551 	 * An attribute used in the request.
6552 	 * The content of this attribute is a u32 array for one or more of
6553 	 * hardware capabilities (attribute IDs) that are being requested. Each
6554 	 * u32 value has a value from this
6555 	 * enum qca_wlan_vendor_attr_get_hw_capability
6556 	 * identifying which capabilities are requested.
6557 	 */
6558 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
6559 
6560 	/* keep last */
6561 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
6562 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
6563 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
6564 };
6565 
6566 /**
6567  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
6568  *                        config params for sta roam policy
6569  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
6570  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
6571  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
6572  * If sta should skip unsafe channels or not in scanning
6573  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
6574  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
6575  */
6576 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
6577 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
6578 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
6579 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
6580 
6581 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
6582 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
6583 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
6584 };
6585 
6586 /* Attributes for FTM commands and events */
6587 
6588 /**
6589  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
6590  *
6591  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
6592  *      enum qca_wlan_vendor_attr_loc_capa_flags.
6593  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
6594  *      of measurement sessions that can run concurrently.
6595  *      Default is one session (no session concurrency).
6596  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
6597  *      peers that are supported in running sessions. For example,
6598  *      if the value is 8 and maximum number of sessions is 2, you can
6599  *      have one session with 8 unique peers, or 2 sessions with 4 unique
6600  *      peers each, and so on.
6601  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
6602  *      of bursts per peer, as an exponent (2^value). Default is 0,
6603  *      meaning no multi-burst support.
6604  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
6605  *      of measurement exchanges allowed in a single burst.
6606  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
6607  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
6608  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
6609  */
6610 enum qca_wlan_vendor_attr_loc_capa {
6611 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
6612 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
6613 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
6614 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
6615 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
6616 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
6617 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
6618 	/* keep last */
6619 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
6620 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
6621 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
6622 };
6623 
6624 /**
6625  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
6626  *
6627  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
6628  *      can be configured as an FTM responder (for example, an AP that
6629  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
6630  *      will be supported if set.
6631  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
6632  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
6633  *      will be supported if set.
6634 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
6635  *      supports immediate (ASAP) response.
6636  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
6637  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
6638  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
6639  *      requesting AOA measurements as part of an FTM session.
6640  */
6641 enum qca_wlan_vendor_attr_loc_capa_flags {
6642 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
6643 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
6644 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
6645 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
6646 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
6647 };
6648 
6649 /**
6650  * enum qca_wlan_ani_setting - ANI setting type
6651  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
6652  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
6653  */
6654 enum qca_wlan_ani_setting {
6655 	QCA_WLAN_ANI_SETTING_AUTO = 0,
6656 	QCA_WLAN_ANI_SETTING_FIXED = 1,
6657 };
6658 
6659 /**
6660  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
6661  *
6662  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
6663  * Channel number on which Access Point should restart.
6664  * Note: If both the driver and user space application supports the 6 GHz band,
6665  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
6666  * should be used.
6667  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
6668  * is still used if either of the driver or user space application doesn't
6669  * support the 6 GHz band.
6670  *
6671  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
6672  * Nested attribute to hold list of center frequencies on which AP is
6673  * expected to operate. This is irrespective of ACS configuration.
6674  * This list is a priority based one and is looked for before the AP is
6675  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
6676  * co-exist in the system.
6677  *
6678  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
6679  * Channel center frequency (MHz) on which the access point should restart.
6680  */
6681 enum qca_wlan_vendor_attr_sap_config {
6682 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
6683 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
6684 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
6685 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
6686 
6687 	/* Keep last */
6688 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
6689 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
6690 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
6691 };
6692 
6693 /**
6694  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
6695  * a single peer in a measurement session.
6696  *
6697  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
6698  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
6699  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
6700  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
6701  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
6702  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
6703  *      list of supported attributes.
6704  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
6705  *      secure measurement.
6706  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
6707  *      measurement every <value> bursts. If 0 or not specified,
6708  *      AOA measurements will be disabled for this peer.
6709  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
6710  *      the measurement frames are exchanged. Optional; if not
6711  *      specified, try to locate the peer in the kernel scan
6712  *      results cache and use frequency from there.
6713  */
6714 enum qca_wlan_vendor_attr_ftm_peer_info {
6715 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
6716 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
6717 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
6718 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
6719 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
6720 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
6721 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
6722 	/* keep last */
6723 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
6724 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
6725 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
6726 };
6727 
6728 /**
6729  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
6730  *      per-peer
6731  *
6732  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
6733  *      immediate (ASAP) response from peer.
6734  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
6735  *      LCI report from peer. The LCI report includes the absolute
6736  *      location of the peer in "official" coordinates (similar to GPS).
6737  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
6738  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
6739  *      Location civic report from peer. The LCR includes the location
6740  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
6741  *      11.24.6.7 for more information.
6742  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
6743  *      request a secure measurement.
6744  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
6745  */
6746 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
6747 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
6748 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
6749 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
6750 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
6751 };
6752 
6753 /**
6754  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
6755  *
6756  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
6757  *      to perform in a single burst.
6758  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
6759  *      perform, specified as an exponent (2^value).
6760  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
6761  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
6762  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
6763  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
6764  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
6765  */
6766 enum qca_wlan_vendor_attr_ftm_meas_param {
6767 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
6768 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
6769 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
6770 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
6771 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
6772 	/* keep last */
6773 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
6774 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
6775 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
6776 };
6777 
6778 /**
6779  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
6780  *
6781  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
6782  *       peer.
6783  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
6784  *      request for this peer.
6785  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
6786  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
6787  *      to measurement results for this peer.
6788  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
6789  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
6790  *      request failed and peer requested not to send an additional request
6791  *      for this number of seconds.
6792  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
6793  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6794  *      9.4.2.22.10.
6795  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
6796  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6797  *      9.4.2.22.13.
6798  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
6799  *      overridden some measurement request parameters. See
6800  *      enum qca_wlan_vendor_attr_ftm_meas_param.
6801  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
6802  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
6803  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
6804  *      results. Each entry is a nested attribute defined
6805  *      by enum qca_wlan_vendor_attr_ftm_meas.
6806  */
6807 enum qca_wlan_vendor_attr_ftm_peer_result {
6808 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
6809 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
6810 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
6811 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
6812 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
6813 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
6814 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
6815 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
6816 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
6817 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
6818 	/* keep last */
6819 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
6820 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
6821 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
6822 };
6823 
6824 /**
6825  * enum qca_wlan_vendor_attr_ftm_peer_result_status
6826  *
6827  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
6828  *      will be provided. Peer may have overridden some measurement parameters,
6829  *      in which case overridden parameters will be report by
6830  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
6831  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
6832  *      of performing the measurement request. No more results will be sent
6833  *      for this peer in this session.
6834  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
6835  *      failed, and requested not to send an additional request for number
6836  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
6837  *      attribute.
6838  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
6839  *      failed. Request was not sent over the air.
6840  */
6841 enum qca_wlan_vendor_attr_ftm_peer_result_status {
6842 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
6843 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
6844 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
6845 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
6846 };
6847 
6848 /**
6849  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
6850  *  for measurement result, per-peer
6851  *
6852  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
6853  *      measurement completed for this peer. No more results will be reported
6854  *      for this peer in this session.
6855  */
6856 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
6857 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
6858 };
6859 
6860 /**
6861  * enum qca_vendor_attr_loc_session_status: Session completion status code
6862  *
6863  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
6864  *      successfully.
6865  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
6866  *      by request.
6867  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
6868  *      was invalid and was not started.
6869  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
6870  *      and did not complete normally (for example out of resources).
6871  */
6872 enum qca_vendor_attr_loc_session_status {
6873 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
6874 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
6875 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
6876 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
6877 };
6878 
6879 /**
6880  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
6881  *
6882  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
6883  *      recorded by responder, in picoseconds.
6884  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6885  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
6886  *      initiator, in picoseconds.
6887  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6888  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
6889  *      initiator, in picoseconds.
6890  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6891  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
6892  *      responder, in picoseconds.
6893  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6894  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
6895  *      during this measurement exchange. Optional and will be provided if
6896  *      the hardware can measure it.
6897  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
6898  *      responder. Not always provided.
6899  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6900  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
6901  *      responder. Not always provided.
6902  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6903  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
6904  *      initiator. Not always provided.
6905  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6906  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
6907  *      initiator. Not always provided.
6908  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6909  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
6910  */
6911 enum qca_wlan_vendor_attr_ftm_meas {
6912 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
6913 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
6914 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
6915 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
6916 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
6917 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
6918 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
6919 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
6920 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
6921 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
6922 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
6923 	/* keep last */
6924 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
6925 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
6926 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
6927 };
6928 
6929 /**
6930  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
6931  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
6932  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
6933  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
6934  *     of the social channels.
6935  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
6936  *     A 32-bit unsigned value; the P2P listen offload period (ms).
6937  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
6938  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
6939  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
6940  *     A 32-bit unsigned value; number of interval times the Firmware needs
6941  *     to run the offloaded P2P listen operation before it stops.
6942  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
6943  *     An array of unsigned 8-bit characters; vendor information elements.
6944  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
6945  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
6946  *     A 32-bit unsigned value; a control flag to indicate whether listen
6947  *     results need to be flushed to wpa_supplicant.
6948  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
6949  *     A 8-bit unsigned value; reason code for P2P listen offload stop
6950  *     event.
6951  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
6952  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
6953  */
6954 enum qca_wlan_vendor_attr_p2p_listen_offload {
6955 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
6956 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
6957 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
6958 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
6959 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
6960 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
6961 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
6962 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
6963 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
6964 	/* keep last */
6965 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
6966 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
6967 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
6968 };
6969 
6970 /**
6971  * enum qca_wlan_vendor_drv_info - WLAN driver info
6972  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
6973  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
6974  * between Firmware & Host.
6975  */
6976 enum qca_wlan_vendor_drv_info {
6977 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
6978 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
6979 
6980 	/* keep last */
6981 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
6982 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
6983 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
6984 };
6985 
6986 /**
6987  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
6988  *
6989  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
6990  *      CIR (channel impulse response) path for each antenna.
6991  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
6992  *      of the strongest CIR path for each antenna.
6993  */
6994 enum qca_wlan_vendor_attr_aoa_type {
6995 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
6996 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
6997 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
6998 };
6999 
7000 /**
7001  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
7002  * validate encryption engine
7003  *
7004  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
7005  *    This will be included if the request is for decryption; if not included,
7006  *    the request is treated as a request for encryption by default.
7007  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
7008  *    indicating the key cipher suite. Takes same values as
7009  *    NL80211_ATTR_KEY_CIPHER.
7010  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
7011  *    Key Id to be used for encryption
7012  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
7013  *    Key (TK) to be used for encryption/decryption
7014  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
7015  *    Packet number to be specified for encryption/decryption
7016  *    6 bytes for TKIP/CCMP/GCMP.
7017  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
7018  *    representing the 802.11 packet (header + payload + FCS) that
7019  *    needs to be encrypted/decrypted.
7020  *    Encrypted/decrypted response from the driver will also be sent
7021  *    to userspace with the same attribute.
7022  */
7023 enum qca_wlan_vendor_attr_encryption_test {
7024 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
7025 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
7026 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
7027 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
7028 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
7029 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
7030 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
7031 
7032 	/* keep last */
7033 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
7034 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
7035 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
7036 };
7037 
7038 /**
7039  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
7040  * sector for DMG RF sector operations.
7041  *
7042  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
7043  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
7044  */
7045 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
7046 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
7047 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
7048 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
7049 };
7050 
7051 /**
7052  * enum qca_wlan_vendor_attr_fw_state - State of firmware
7053  *
7054  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
7055  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
7056  */
7057 enum qca_wlan_vendor_attr_fw_state {
7058 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
7059 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
7060 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
7061 };
7062 
7063 /**
7064  * BRP antenna limit mode
7065  *
7066  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
7067  *      antenna limit, BRP will be performed as usual.
7068  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
7069  *      antennas limit. the hardware may use less antennas than the
7070  *      maximum limit.
7071  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
7072  *      use exactly the specified number of antennas for BRP.
7073  */
7074 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
7075 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
7076 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
7077 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
7078 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
7079 };
7080 
7081 /**
7082  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
7083  * DMG RF sector configuration for a single RF module.
7084  * The values are defined in a compact way which closely matches
7085  * the way it is stored in HW registers.
7086  * The configuration provides values for 32 antennas and 8 distribution
7087  * amplifiers, and together describes the characteristics of the RF
7088  * sector - such as a beam in some direction with some gain.
7089  *
7090  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
7091  *      of RF module for this configuration.
7092  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
7093  *      amplifier gain index. Unsigned 32 bit number containing
7094  *      bits for all 32 antennas.
7095  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
7096  *      amplifier gain index. Unsigned 32 bit number containing
7097  *      bits for all 32 antennas.
7098  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
7099  *      amplifier gain index. Unsigned 32 bit number containing
7100  *      bits for all 32 antennas.
7101  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
7102  *      for first 16 antennas, 2 bits per antenna.
7103  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
7104  *      for last 16 antennas, 2 bits per antenna.
7105  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
7106  *      DTYPE values (3 bits) for each distribution amplifier, followed
7107  *      by X16 switch bits for each distribution amplifier. There are
7108  *      total of 8 distribution amplifiers.
7109  */
7110 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
7111 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
7112 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
7113 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
7114 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
7115 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
7116 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
7117 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
7118 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
7119 
7120 	/* keep last */
7121 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
7122 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
7123 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
7124 };
7125 
7126 /**
7127  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
7128  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
7129  *
7130  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
7131  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
7132  *	represents the different TDLS trigger modes.
7133  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
7134  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
7135  *	of packets shall meet the criteria for implicit TDLS setup.
7136  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
7137  *	packets within a duration.
7138  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
7139  *	a TDLS setup.
7140  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
7141  *	a TDLS Discovery to the Peer.
7142  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
7143  *	discovery attempts to know the TDLS capability of the peer. A peer is
7144  *	marked as TDLS not capable if there is no response for all the attempts.
7145  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
7146  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
7147  *	number of TX / RX frames meet the criteria for TDLS teardown.
7148  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
7149  *	(u32) of Tx/Rx packets within a duration
7150  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
7151  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
7152  *	corresponding to the RSSI of the peer below which a TDLS
7153  *	setup is triggered.
7154  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
7155  *	corresponding to the RSSI of the peer above which
7156  *	a TDLS teardown is triggered.
7157  */
7158 enum qca_wlan_vendor_attr_tdls_configuration {
7159 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
7160 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
7161 
7162 	/* Attributes configuring the TDLS Implicit Trigger */
7163 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
7164 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
7165 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
7166 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
7167 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
7168 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
7169 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
7170 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
7171 
7172 	/* keep last */
7173 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
7174 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
7175 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
7176 };
7177 
7178 /**
7179  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
7180  *	the driver.
7181  *
7182  * The following are the different values for
7183  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
7184  *
7185  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
7186  *	initiate/teardown the TDLS connection to a respective peer comes
7187  *	 from the user space. wpa_supplicant provides the commands
7188  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
7189  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
7190  *	setup/teardown to the eligible peer once the configured criteria
7191  *	(such as TX/RX threshold, RSSI) is met. The attributes
7192  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
7193  *	the different configuration criteria for the TDLS trigger from the
7194  *	host driver.
7195  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
7196  *	the TDLS setup / teardown through the implicit mode, only to the
7197  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
7198  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
7199  *	External mode works on top of the implicit mode, thus the host Driver
7200  *	is expected to be configured in TDLS Implicit mode too to operate in
7201  *	External mode. Configuring External mode alone without Implicit
7202  *	mode is invalid.
7203  *
7204  * All the above implementations work as expected only when the host driver
7205  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
7206  * representing that the TDLS message exchange is not internal to the host
7207  * driver, but depends on wpa_supplicant to do the message exchange.
7208  */
7209 enum qca_wlan_vendor_tdls_trigger_mode {
7210 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
7211 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
7212 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
7213 };
7214 
7215 /**
7216  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
7217  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
7218  *	that is hard-coded in the Board Data File (BDF).
7219  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
7220  *	that is hard-coded in the Board Data File (BDF).
7221  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
7222  *	that is hard-coded in the Board Data File (BDF).
7223  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
7224  *	that is hard-coded in the Board Data File (BDF).
7225  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
7226  *	that is hard-coded in the Board Data File (BDF).
7227  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
7228  *	source of SAR power limits, thereby disabling the SAR power
7229  *	limit feature.
7230  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
7231  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7232  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
7233  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7234  *
7235  * This enumerates the valid set of values that may be supplied for
7236  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
7237  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
7238  * the response to an instance of the
7239  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7240  */
7241 enum qca_vendor_attr_sar_limits_selections {
7242 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
7243 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
7244 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
7245 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
7246 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
7247 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
7248 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7249 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
7250 };
7251 
7252 /**
7253  * enum qca_vendor_attr_sar_limits_spec_modulations -
7254  *	SAR limits specification modulation
7255  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
7256  *	CCK modulation
7257  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
7258  *	OFDM modulation
7259  *
7260  * This enumerates the valid set of values that may be supplied for
7261  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
7262  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
7263  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
7264  * command or in the response to an instance of the
7265  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7266  */
7267 enum qca_vendor_attr_sar_limits_spec_modulations {
7268 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7269 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7270 };
7271 
7272 /**
7273  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7274  *
7275  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7276  *	select which SAR power limit table should be used.  Valid
7277  *	values are enumerated in enum
7278  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7279  *	power limit selection is unchanged if this attribute is not
7280  *	present.
7281  *
7282  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7283  *	which specifies the number of SAR power limit specifications
7284  *	which will follow.
7285  *
7286  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7287  *	limit specifications. The number of specifications is
7288  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7289  *	specification contains a set of
7290  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7291  *	specification is uniquely identified by the attributes
7292  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7293  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7294  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7295  *	contains as a payload the attribute
7296  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7297  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7298  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7299  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7300  *	needed based upon the value of
7301  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7302  *
7303  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7304  *	indicate for which band this specification applies. Valid
7305  *	values are enumerated in enum %nl80211_band (although not all
7306  *	bands may be supported by a given device). If the attribute is
7307  *	not supplied then the specification will be applied to all
7308  *	supported bands.
7309  *
7310  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7311  *	to indicate for which antenna chain this specification
7312  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7313  *	attribute is not supplied then the specification will be
7314  *	applied to all chains.
7315  *
7316  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7317  *	value to indicate for which modulation scheme this
7318  *	specification applies. Valid values are enumerated in enum
7319  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7320  *	is not supplied then the specification will be applied to all
7321  *	modulation schemes.
7322  *
7323  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7324  *	value to specify the actual power limit value in units of 0.5
7325  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7326  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7327  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7328  *
7329  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7330  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7331  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7332  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7333  *
7334  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7335  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7336  */
7337 enum qca_vendor_attr_sar_limits {
7338 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7339 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7340 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7341 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7342 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7343 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7344 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7345 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7346 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7347 
7348 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7349 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7350 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7351 };
7352 
7353 /**
7354  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7355  *    offload which is an extension for LL_STATS.
7356  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7357  *    If MAC counters do not exceed the threshold, FW will report monitored
7358  *    link layer counters periodically as this setting. The first report is
7359  *    always triggered by this timer.
7360  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7361  *    For each MAC layer counter, FW holds two copies. One is the current value.
7362  *    The other is the last report. Once a current counter's increment is larger
7363  *    than the threshold, FW will indicate that counter to host even if the
7364  *    monitoring timer does not expire.
7365  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7366  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7367  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7368  *    failure code.
7369  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7370  *    1: TX packet discarded
7371  *    2: No ACK
7372  *    3: Postpone
7373  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7374  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7375  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7376  *    Threshold for all monitored parameters. If per counter dedicated threshold
7377  *    is not enabled, this threshold will take effect.
7378  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7379  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7380  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7381  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7382  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7383  *    Bit0: TX counter unit in MSDU
7384  *    Bit1: TX counter unit in MPDU
7385  *    Bit2: TX counter unit in PPDU
7386  *    Bit3: TX counter unit in byte
7387  *    Bit4: Dropped MSDUs
7388  *    Bit5: Dropped Bytes
7389  *    Bit6: MPDU retry counter
7390  *    Bit7: MPDU failure counter
7391  *    Bit8: PPDU failure counter
7392  *    Bit9: MPDU aggregation counter
7393  *    Bit10: MCS counter for ACKed MPDUs
7394  *    Bit11: MCS counter for Failed MPDUs
7395  *    Bit12: TX Delay counter
7396  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7397  *    Bit0: MAC RX counter unit in MPDU
7398  *    Bit1: MAC RX counter unit in byte
7399  *    Bit2: PHY RX counter unit in PPDU
7400  *    Bit3: PHY RX counter unit in byte
7401  *    Bit4: Disorder counter
7402  *    Bit5: Retry counter
7403  *    Bit6: Duplication counter
7404  *    Bit7: Discard counter
7405  *    Bit8: MPDU aggregation size counter
7406  *    Bit9: MCS counter
7407  *    Bit10: Peer STA power state change (wake to sleep) counter
7408  *    Bit11: Peer STA power save counter, total time in PS mode
7409  *    Bit12: Probe request counter
7410  *    Bit13: Other management frames counter
7411  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7412  *    Bit0: Idle time
7413  *    Bit1: TX time
7414  *    Bit2: time RX in current bss
7415  *    Bit3: Out of current bss time
7416  *    Bit4: Wireless medium busy time
7417  *    Bit5: RX in bad condition time
7418  *    Bit6: TX in bad condition time
7419  *    Bit7: time wlan card not available
7420  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7421  *    Bit0: Per channel SNR counter
7422  *    Bit1: Per channel noise floor counter
7423  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7424  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7425  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7426  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7427  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7428  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7429  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7430  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7431  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7432  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7433  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7434  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
7435  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
7436  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
7437  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
7438  *    aggregation stats buffer length
7439  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
7440  *    buffer for ACKed MPDUs.
7441  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
7442  *    buffer for failed MPDUs.
7443  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
7444  *    length of delay stats array.
7445  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
7446  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
7447  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
7448  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
7449  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
7450  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
7451  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
7452  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
7453  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
7454  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
7455  *    flagged as retransmissions
7456  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
7457  *    flagged as duplicated
7458  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
7459  *    packets discarded
7460  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
7461  *    stats buffer.
7462  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
7463  *    stats buffer.
7464  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
7465  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
7466  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
7467  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
7468  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
7469  *    requests received
7470  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
7471  *    frames received
7472  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
7473  *    there is no TX, nor RX, nor interference.
7474  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
7475  *    transmitting packets.
7476  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
7477  *    for receiving.
7478  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
7479  *    interference detected.
7480  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
7481  *    receiving packets with errors.
7482  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
7483  *    TX no-ACK.
7484  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
7485  *    the chip is unable to work in normal conditions.
7486  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
7487  *    receiving packets in current BSS.
7488  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
7489  *    receiving packets not in current BSS.
7490  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
7491  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
7492  *    This is a container for per antenna signal stats.
7493  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
7494  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
7495  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
7496  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
7497  */
7498 enum qca_wlan_vendor_attr_ll_stats_ext {
7499 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
7500 
7501 	/* Attributes for configurations */
7502 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
7503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
7504 
7505 	/* Peer STA power state change */
7506 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
7507 
7508 	/* TX failure event */
7509 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
7510 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
7511 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
7512 
7513 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
7514 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
7515 
7516 	/* MAC counters */
7517 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
7518 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
7519 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
7520 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
7521 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
7522 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
7523 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
7524 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
7525 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
7526 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
7527 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
7528 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
7529 
7530 	/* Sub-attributes for PEER_AC_TX */
7531 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
7532 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
7533 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
7534 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
7535 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
7536 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
7537 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
7538 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
7539 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
7540 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
7541 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
7542 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
7543 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
7544 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
7545 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
7546 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
7547 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
7548 
7549 	/* Sub-attributes for PEER_AC_RX */
7550 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
7551 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
7552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
7553 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
7554 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
7555 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
7556 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
7557 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
7558 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
7559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
7560 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
7561 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
7562 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
7563 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
7564 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
7565 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
7566 
7567 	/* Sub-attributes for CCA_BSS */
7568 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
7569 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
7570 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
7571 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
7572 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
7573 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
7574 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
7575 
7576 	/* sub-attribute for BSS_RX_TIME */
7577 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
7578 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
7579 
7580 	/* Sub-attributes for PEER_SIGNAL */
7581 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
7582 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
7583 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
7584 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
7585 
7586 	/* Sub-attributes for IFACE_BSS */
7587 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
7588 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
7589 
7590 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
7591 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
7592 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
7593 };
7594 
7595 /**
7596  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
7597  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7598  * in priority order as decided after ACS operation in userspace.
7599  *
7600  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7601  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7602  *
7603  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7604  * Array of nested values for each channel with following attributes:
7605  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7606  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7607  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7608  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7609  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7610  * Note: If both the driver and user-space application supports the 6 GHz band,
7611  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7612  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7613  * To maintain backward compatibility,
7614  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7615  * is still used if either of the driver or user space application doesn't
7616  * support the 6 GHz band.
7617  *
7618  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7619  * Primary channel number
7620  * Note: If both the driver and user-space application supports the 6 GHz band,
7621  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7622  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7623  * To maintain backward compatibility,
7624  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7625  * is still used if either of the driver or user space application doesn't
7626  * support the 6 GHz band.
7627  *
7628  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7629  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7630  * Note: If both the driver and user-space application supports the 6 GHz band,
7631  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7632  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7633  * To maintain backward compatibility,
7634  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7635  * is still used if either of the driver or user space application
7636  * doesn't support the 6 GHz band.
7637  *
7638  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7639  * VHT seg0 channel number
7640  * Note: If both the driver and user-space application supports the 6 GHz band,
7641  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7642  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7643  * To maintain backward compatibility,
7644  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7645  * is still used if either of the driver or user space application
7646  * doesn't support the 6 GHz band.
7647  *
7648  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7649  * VHT seg1 channel number
7650  * Note: If both the driver and user-space application supports the 6 GHz band,
7651  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7652  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7653  * To maintain backward compatibility,
7654  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7655  * is still used if either of the driver or user space application
7656  * doesn't support the 6 GHz band.
7657  *
7658  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7659  * Takes one of enum nl80211_chan_width values.
7660  *
7661  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7662  * Array of nested values for each channel with following attributes:
7663  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7664  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7665  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7666  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7667  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7668  * Note: If user-space application has no support of the 6 GHz band, this
7669  * attribute is optional.
7670  *
7671  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7672  * Primary channel frequency in MHz
7673  * Note: If user-space application has no support of the 6 GHz band, this
7674  * attribute is optional.
7675  *
7676  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7677  * Secondary channel frequency in MHz used for HT 40 MHz channels.
7678  * Note: If user-space application has no support of the 6 GHz band, this
7679  * attribute is optional.
7680  *
7681  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7682  * VHT seg0 channel frequency in MHz
7683  * Note: If user-space application has no support of the 6GHz band, this
7684  * attribute is optional.
7685  *
7686  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7687  * VHT seg1 channel frequency in MHz
7688  * Note: If user-space application has no support of the 6 GHz band, this
7689  * attribute is optional.
7690  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7691  * Puncture Bitmap for selected primary channel. Optional if no support
7692  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7693  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7694  * element.
7695  */
7696 enum qca_wlan_vendor_attr_external_acs_channels {
7697 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7698 
7699 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7700 	 */
7701 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7702 
7703 	/* Array of nested values for each channel with following attributes:
7704 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7705 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7706 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7707 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7708 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7709 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7710 	 */
7711 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7712 	/* This (u8) will hold values of one of enum nl80211_bands */
7713 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7714 	/* Primary channel (u8) */
7715 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7716 	/* Secondary channel (u8) used for HT 40 MHz channels */
7717 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7718 	/* VHT seg0 channel (u8) */
7719 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7720 	/* VHT seg1 channel (u8) */
7721 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7722 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7723 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7724 
7725 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7726 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7727 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7728 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7729 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
7730 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
7731 
7732 	/* keep last */
7733 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7734 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7735 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7736 };
7737 
7738 /**
7739  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7740  * the ACS has to be triggered. These values are used by
7741  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7742  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7743  */
7744 enum qca_wlan_vendor_acs_select_reason {
7745 	/* Represents the reason that the ACS triggered during the AP start */
7746 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7747 	/* Represents the reason that DFS found with the current channel */
7748 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7749 	/* Represents the reason that LTE co-exist in the current band. */
7750 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
7751 	/* Represents the reason that generic, uncategorized interference has
7752 	 * been found in the current channel.
7753 	 */
7754 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7755 	/* Represents the reason that excessive 802.11 interference has been
7756 	 * found in the current channel.
7757 	 */
7758 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7759 	/* Represents the reason that generic Continuous Wave (CW) interference
7760 	 * has been found in the current channel.
7761 	 */
7762 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7763 	/* Represents the reason that Microwave Oven (MWO) interference has been
7764 	 * found in the current channel.
7765 	 */
7766 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7767 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
7768 	 * (FHSS) interference has been found in the current channel. This may
7769 	 * include 802.11 waveforms.
7770 	 */
7771 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7772 	/* Represents the reason that non-802.11 generic Frequency-Hopping
7773 	 * Spread Spectrum (FHSS) interference has been found in the current
7774 	 * channel.
7775 	 */
7776 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7777 	/* Represents the reason that generic Wideband (WB) interference has
7778 	 * been found in the current channel. This may include 802.11 waveforms.
7779 	 */
7780 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7781 	/* Represents the reason that non-802.11 generic Wideband (WB)
7782 	 * interference has been found in the current channel.
7783 	 */
7784 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7785 	/* Represents the reason that Jammer interference has been found in the
7786 	 * current channel.
7787 	 */
7788 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
7789 	/* Represents the reason that ACS triggered by AFC */
7790 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
7791 };
7792 
7793 /**
7794  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
7795  *
7796  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
7797  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
7798  * to get the available value that this item can use.
7799  *
7800  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
7801  * value to specify the gpio number.
7802  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7803  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
7804  *
7805  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
7806  * value to specify the gpio output level, please refer to enum qca_gpio_value
7807  * to get the available value that this item can use.
7808  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7809  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
7810  *
7811  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
7812  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
7813  * to get the available value that this item can use.
7814  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7815  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7816  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7817  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7818  * attribute is present.
7819  *
7820  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
7821  * value to specify the gpio interrupt mode, please refer to enum
7822  * qca_gpio_interrupt_mode to get the available value that this item can use.
7823  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7824  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7825  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7826  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7827  * attribute is present.
7828  *
7829  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
7830  * value to specify the gpio direction, please refer to enum qca_gpio_direction
7831  * to get the available value that this item can use.
7832  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7833  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7834  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7835  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7836  * attribute is present.
7837  *
7838  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
7839  * Value to specify the mux config. Meaning of a given value is dependent
7840  * on the target chipset and gpio pin. Must be of the range 0-15.
7841  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7842  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
7843  *
7844  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
7845  * Value to specify the drive, Refer to enum qca_gpio_drive.
7846  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7847  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
7848  *
7849  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
7850  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7851  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
7852  * other parameters for the given GPIO will be obtained from internal
7853  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
7854  * specified to indicate the GPIO pin being configured.
7855  */
7856 enum qca_wlan_gpio_attr {
7857 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
7858 	/* Unsigned 32-bit attribute for GPIO command */
7859 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
7860 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
7861 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
7862 	/* Unsigned 32-bit attribute for GPIO value to configure */
7863 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
7864 	/* Unsigned 32-bit attribute for GPIO pull type */
7865 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
7866 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
7867 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
7868 	/* Unsigned 32-bit attribute for GPIO direction to configure */
7869 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
7870 	/* Unsigned 32-bit attribute for GPIO mux config */
7871 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
7872 	/* Unsigned 32-bit attribute for GPIO drive */
7873 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
7874 	/* Flag attribute for using internal gpio configuration */
7875 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
7876 
7877 	/* keep last */
7878 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
7879 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
7880 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
7881 };
7882 
7883 /**
7884  * enum gpio_cmd_type - GPIO configuration command type
7885  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
7886  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
7887  */
7888 enum qca_gpio_cmd_type {
7889 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
7890 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
7891 };
7892 
7893 /**
7894  * enum qca_gpio_pull_type - GPIO pull type
7895  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
7896  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
7897  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
7898  */
7899 enum qca_gpio_pull_type {
7900 	QCA_WLAN_GPIO_PULL_NONE = 0,
7901 	QCA_WLAN_GPIO_PULL_UP = 1,
7902 	QCA_WLAN_GPIO_PULL_DOWN = 2,
7903 	QCA_WLAN_GPIO_PULL_MAX,
7904 };
7905 
7906 /**
7907  * enum qca_gpio_direction - GPIO direction
7908  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
7909  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
7910  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
7911  */
7912 enum qca_gpio_direction {
7913 	QCA_WLAN_GPIO_INPUT = 0,
7914 	QCA_WLAN_GPIO_OUTPUT = 1,
7915 	QCA_WLAN_GPIO_DIR_MAX,
7916 };
7917 
7918 /**
7919  * enum qca_gpio_value - GPIO Value
7920  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
7921  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
7922  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
7923  */
7924 enum qca_gpio_value {
7925 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
7926 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
7927 	QCA_WLAN_GPIO_LEVEL_MAX,
7928 };
7929 
7930 /**
7931  * enum gpio_interrupt_mode - GPIO interrupt mode
7932  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
7933  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
7934  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
7935  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
7936  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
7937  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
7938  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
7939  */
7940 enum qca_gpio_interrupt_mode {
7941 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
7942 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
7943 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
7944 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
7945 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
7946 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
7947 	QCA_WLAN_GPIO_INTMODE_MAX,
7948 };
7949 
7950 /**
7951  * enum gpio_drive - GPIO drive
7952  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
7953  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
7954  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
7955  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
7956  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
7957  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
7958  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
7959  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
7960  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
7961  */
7962 enum qca_gpio_drive {
7963 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
7964 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
7965 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
7966 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
7967 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
7968 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
7969 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
7970 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
7971 	QCA_WLAN_GPIO_DRIVE_MAX,
7972 };
7973 
7974 /**
7975  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
7976  * MSDUQ depth threshold per peer per tid in the target
7977  *
7978  * Associated Vendor Command:
7979  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
7980  */
7981 enum qca_wlan_set_qdepth_thresh_attr {
7982 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
7983 	/* 6-byte MAC address */
7984 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
7985 	/* Unsigned 32-bit attribute for holding the TID */
7986 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
7987 	/* Unsigned 32-bit attribute for holding the update mask
7988 	 * bit 0 - Update high priority msdu qdepth threshold
7989 	 * bit 1 - Update low priority msdu qdepth threshold
7990 	 * bit 2 - Update UDP msdu qdepth threshold
7991 	 * bit 3 - Update Non UDP msdu qdepth threshold
7992 	 * rest of bits are reserved
7993 	 */
7994 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
7995 	/* Unsigned 32-bit attribute for holding the threshold value */
7996 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
7997 
7998 	/* keep last */
7999 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
8000 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
8001 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
8002 };
8003 
8004 /**
8005  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
8006  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
8007  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
8008  * external ACS policies to select the channels w.r.t. the PCL weights.
8009  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
8010  * their PCL weights.)
8011  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
8012  * select a channel with non-zero PCL weight.
8013  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
8014  * channel with non-zero PCL weight.
8015  *
8016  */
8017 enum qca_wlan_vendor_attr_external_acs_policy {
8018 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
8019 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
8020 };
8021 
8022 /**
8023  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
8024  */
8025 enum qca_wlan_vendor_attr_spectral_scan {
8026 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
8027 	/*
8028 	 * Number of times the chip enters spectral scan mode before
8029 	 * deactivating spectral scans. When set to 0, chip will enter spectral
8030 	 * scan mode continuously. u32 attribute.
8031 	 */
8032 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
8033 	/*
8034 	 * Spectral scan period. Period increment resolution is 256*Tclk,
8035 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
8036 	 */
8037 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
8038 	/* Spectral scan priority. u32 attribute. */
8039 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
8040 	/* Number of FFT data points to compute. u32 attribute. */
8041 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
8042 	/*
8043 	 * Enable targeted gain change before starting the spectral scan FFT.
8044 	 * u32 attribute.
8045 	 */
8046 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
8047 	/* Restart a queued spectral scan. u32 attribute. */
8048 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
8049 	/*
8050 	 * Noise floor reference number for the calculation of bin power.
8051 	 * u32 attribute.
8052 	 */
8053 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
8054 	/*
8055 	 * Disallow spectral scan triggers after TX/RX packets by setting
8056 	 * this delay value to roughly SIFS time period or greater.
8057 	 * u32 attribute.
8058 	 */
8059 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
8060 	/*
8061 	 * Number of strong bins (inclusive) per sub-channel, below
8062 	 * which a signal is declared a narrow band tone. u32 attribute.
8063 	 */
8064 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
8065 	/*
8066 	 * Specify the threshold over which a bin is declared strong (for
8067 	 * scan bandwidth analysis). u32 attribute.
8068 	 */
8069 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
8070 	/* Spectral scan report mode. u32 attribute. */
8071 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
8072 	/*
8073 	 * RSSI report mode, if the ADC RSSI is below
8074 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
8075 	 * then FFTs will not trigger, but timestamps and summaries get
8076 	 * reported. u32 attribute.
8077 	 */
8078 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
8079 	/*
8080 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
8081 	 * to ensure spectral scan reporting with normal error code.
8082 	 * u32 attribute.
8083 	 */
8084 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
8085 	/*
8086 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
8087 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
8088 	 * u32 attribute.
8089 	 */
8090 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
8091 	/*
8092 	 * Format of FFT report to software for spectral scan triggered FFTs.
8093 	 * 0: No FFT report (only spectral scan summary report)
8094 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
8095 	 * report
8096 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
8097 	 * bins (in-band) per FFT + spectral scan summary report
8098 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
8099 	 * bins (all) per FFT + spectral scan summary report
8100 	 * u32 attribute.
8101 	 */
8102 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
8103 	/*
8104 	 * Number of LSBs to shift out in order to scale the FFT bins.
8105 	 * u32 attribute.
8106 	 */
8107 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
8108 	/*
8109 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
8110 	 * in dBm power. u32 attribute.
8111 	 */
8112 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
8113 	/*
8114 	 * Per chain enable mask to select input ADC for search FFT.
8115 	 * u32 attribute.
8116 	 */
8117 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
8118 	/*
8119 	 * An unsigned 64-bit integer provided by host driver to identify the
8120 	 * spectral scan request. This attribute is included in the scan
8121 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
8122 	 * and used as an attribute in
8123 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
8124 	 * specific scan to be stopped.
8125 	 */
8126 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
8127 	/* Skip interval for FFT reports. u32 attribute */
8128 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
8129 	/* Set to report only one set of FFT results.
8130 	 * u32 attribute.
8131 	 */
8132 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
8133 	/* Debug level for spectral module in driver.
8134 	 * 0 : Verbosity level 0
8135 	 * 1 : Verbosity level 1
8136 	 * 2 : Verbosity level 2
8137 	 * 3 : Matched filterID display
8138 	 * 4 : One time dump of FFT report
8139 	 * u32 attribute.
8140 	 */
8141 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8142 	/* Type of spectral scan request. u32 attribute.
8143 	 * It uses values defined in enum
8144 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
8145 	 */
8146 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
8147 	/* This specifies the frequency span over which spectral
8148 	 * scan would be carried out. Its value depends on the
8149 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8150 	 * the relation is as follows.
8151 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8152 	 *    Not applicable. Spectral scan would happen in the
8153 	 *    operating span.
8154 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8155 	 *    Center frequency (in MHz) of the span of interest or
8156 	 *    for convenience, center frequency (in MHz) of any channel
8157 	 *    in the span of interest. For 80+80 MHz agile spectral scan
8158 	 *    request it represents center frequency (in MHz) of the primary
8159 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
8160 	 *    channel in the primary 80 MHz span. If agile spectral scan is
8161 	 *    initiated without setting a valid frequency it returns the
8162 	 *    error code
8163 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8164 	 * u32 attribute.
8165 	 */
8166 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8167 	/* Spectral scan mode. u32 attribute.
8168 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8169 	 * If this attribute is not present, it is assumed to be
8170 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8171 	 */
8172 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8173 	/* Spectral scan error code. u32 attribute.
8174 	 * It uses values defined in enum
8175 	 * qca_wlan_vendor_spectral_scan_error_code.
8176 	 * This attribute is included only in failure scenarios.
8177 	 */
8178 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8179 	/* 8-bit unsigned value to enable/disable debug of the
8180 	 * Spectral DMA ring.
8181 	 * 1-enable, 0-disable
8182 	 */
8183 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8184 	/* 8-bit unsigned value to enable/disable debug of the
8185 	 * Spectral DMA buffers.
8186 	 * 1-enable, 0-disable
8187 	 */
8188 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
8189 	/* This specifies the frequency span over which spectral scan would be
8190 	 * carried out. Its value depends on the value of
8191 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8192 	 * follows.
8193 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8194 	 *    Not applicable. Spectral scan would happen in the operating span.
8195 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8196 	 *    This attribute is applicable only for agile spectral scan
8197 	 *    requests in 80+80 MHz mode. It represents center frequency (in
8198 	 *    MHz) of the secondary 80 MHz span or for convenience, center
8199 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
8200 	 * u32 attribute.
8201 	 */
8202 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
8203 	/* This attribute specifies the bandwidth to be used for Spectral scan
8204 	 * operation. This is an u8 attribute and uses the values in enum
8205 	 * nl80211_chan_width.  This is an optional attribute.
8206 	 * If this attribute is not populated, the driver should configure the
8207 	 * Spectral scan bandwidth to the maximum value supported by the target
8208 	 * for the current operating bandwidth.
8209 	 */
8210 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
8211 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
8212 	 * recapture. Recapture can only be enabled for Scan period greater
8213 	 * than 52us.
8214 	 * If this attribute is enabled, re-triggers will be enabled in uCode
8215 	 * when AGC gain changes.
8216 	 */
8217 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
8218 
8219 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8220 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8221 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8222 };
8223 
8224 /**
8225  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8226  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8227  */
8228 enum qca_wlan_vendor_attr_spectral_diag_stats {
8229 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8230 	/* Number of spectral TLV signature mismatches.
8231 	 * u64 attribute.
8232 	 */
8233 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8234 	/* Number of spectral phyerror events with insufficient length when
8235 	 * parsing for secondary 80 search FFT report. u64 attribute.
8236 	 */
8237 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8238 	/* Number of spectral phyerror events without secondary 80
8239 	 * search FFT report. u64 attribute.
8240 	 */
8241 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8242 	/* Number of spectral phyerror events with vht operation segment 1 id
8243 	 * mismatches in search fft report. u64 attribute.
8244 	 */
8245 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8246 	/* Number of spectral phyerror events with vht operation segment 2 id
8247 	 * mismatches in search fft report. u64 attribute.
8248 	 */
8249 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
8250 
8251 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8252 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8253 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8254 };
8255 
8256 /**
8257  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8258  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8259  */
8260 enum qca_wlan_vendor_attr_spectral_cap {
8261 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8262 	/* Flag attribute to indicate phydiag capability */
8263 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8264 	/* Flag attribute to indicate radar detection capability */
8265 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8266 	/* Flag attribute to indicate spectral capability */
8267 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8268 	/* Flag attribute to indicate advanced spectral capability */
8269 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8270 	/* Spectral hardware generation. u32 attribute.
8271 	 * It uses values defined in enum
8272 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8273 	 */
8274 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8275 	/* Spectral bin scaling formula ID. u16 attribute.
8276 	 * It uses values defined in enum
8277 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8278 	 */
8279 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8280 	/* Spectral bin scaling param - low level offset.
8281 	 * s16 attribute.
8282 	 */
8283 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8284 	/* Spectral bin scaling param - high level offset.
8285 	 * s16 attribute.
8286 	 */
8287 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8288 	/* Spectral bin scaling param - RSSI threshold.
8289 	 * s16 attribute.
8290 	 */
8291 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8292 	/* Spectral bin scaling param - default AGC max gain.
8293 	 * u8 attribute.
8294 	 */
8295 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8296 	/* Flag attribute to indicate agile spectral scan capability
8297 	 * for 20/40/80 MHz modes.
8298 	 */
8299 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8300 	/* Flag attribute to indicate agile spectral scan capability
8301 	 * for 160 MHz mode.
8302 	 */
8303 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8304 	/* Flag attribute to indicate agile spectral scan capability
8305 	 * for 80+80 MHz mode.
8306 	 */
8307 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8308 	/* Number of spectral detectors used for scan in 20 MHz.
8309 	 * u32 attribute.
8310 	 */
8311 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8312 	/* Number of spectral detectors used for scan in 40 MHz.
8313 	 * u32 attribute.
8314 	 */
8315 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8316 	/* Number of spectral detectors used for scan in 80 MHz.
8317 	 * u32 attribute.
8318 	 */
8319 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8320 	/* Number of spectral detectors used for scan in 160 MHz.
8321 	 * u32 attribute.
8322 	 */
8323 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8324 	/* Number of spectral detectors used for scan in 80+80 MHz.
8325 	 * u32 attribute.
8326 	 */
8327 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8328 	/* Flag attribute to indicate agile spectral scan capability
8329 	 * for 320 MHz mode.
8330 	 */
8331 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8332 	/* Number of spectral detectors used for scan in 320 MHz.
8333 	 * u32 attribute.
8334 	 */
8335 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8336 
8337 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8338 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8339 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8340 };
8341 
8342 /**
8343  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8344  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8345  */
8346 enum qca_wlan_vendor_attr_spectral_scan_status {
8347 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8348 	/* Flag attribute to indicate whether spectral scan is enabled */
8349 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8350 	/* Flag attribute to indicate whether spectral scan is in progress*/
8351 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8352 	/* Spectral scan mode. u32 attribute.
8353 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8354 	 * If this attribute is not present, normal mode
8355 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8356 	 * requested.
8357 	 */
8358 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8359 
8360 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8361 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8362 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8363 };
8364 
8365 /**
8366  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8367  * wlan latency module.
8368  *
8369  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8370  * power saving which would causing data exchange out of service, this
8371  * would be a big impact on latency. For latency sensitive applications over
8372  * Wi-Fi are intolerant to such operations and thus would configure them
8373  * to meet their respective needs. It is well understood by such applications
8374  * that altering the default behavior would degrade the Wi-Fi functionality
8375  * w.r.t the above pointed WLAN operations.
8376  *
8377  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8378  *      Default WLAN operation level which throughput orientated.
8379  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8380  *      Use XR level to benefit XR (extended reality) application to achieve
8381  *      latency and power by via constraint scan/roaming/adaptive PS.
8382  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8383  *      Use low latency level to benefit application like concurrent
8384  *      downloading or video streaming via constraint scan/adaptive PS.
8385  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8386  *      Use ultra low latency level to benefit for gaming/voice
8387  *      application via constraint scan/roaming/adaptive PS.
8388  */
8389 enum qca_wlan_vendor_attr_config_latency_level {
8390 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8391 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8392 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8393 	/* legacy name */
8394 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8395 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8396 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8397 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8398 
8399 	/* keep last */
8400 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8401 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8402 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8403 };
8404 
8405 /**
8406  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8407  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8408  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8409  * spectral scan request types.
8410  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8411  * set the spectral parameters and start scan.
8412  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8413  * only set the spectral parameters.
8414  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8415  * only start the spectral scan.
8416  */
8417 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8418 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8419 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8420 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8421 };
8422 
8423 /**
8424  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8425  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8426  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8427  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8428  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8429  * spectral scan modes.
8430  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8431  * spectral scan in the current operating span.
8432  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8433  * spectral scan in the configured agile span.
8434  */
8435 enum qca_wlan_vendor_spectral_scan_mode {
8436 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8437 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8438 };
8439 
8440 /**
8441  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8442  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8443  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8444  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8445  * of a parameter is not supported.
8446  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8447  * mode is not supported.
8448  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8449  * has invalid value.
8450  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8451  * is not initialized.
8452  */
8453 enum qca_wlan_vendor_spectral_scan_error_code {
8454 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8455 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8456 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8457 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8458 };
8459 
8460 /**
8461  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8462  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8463  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8464  * spectral hardware generation.
8465  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8466  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8467  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8468  */
8469 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8470 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8471 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8472 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8473 };
8474 
8475 /**
8476  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8477  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8478  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8479  * Spectral bin scaling formula ID.
8480  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8481  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8482  * and RSSI threshold based formula.
8483  */
8484 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8485 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8486 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8487 };
8488 
8489 /**
8490  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8491  * RF Operating Parameter (RROP) information is available, and if so, at which
8492  * point in the application-driver interaction sequence it can be retrieved by
8493  * the application from the driver. This point may vary by architecture and
8494  * other factors. This is a u16 value.
8495  */
8496 enum qca_wlan_vendor_attr_rropavail_info {
8497 	/* RROP information is unavailable. */
8498 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8499 	/* RROP information is available and the application can retrieve the
8500 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8501 	 * event from the driver.
8502 	 */
8503 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8504 	/* RROP information is available only after a vendor specific scan
8505 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8506 	 * successfully completed. The application can retrieve the information
8507 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8508 	 * the driver.
8509 	 */
8510 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8511 };
8512 
8513 /**
8514  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8515  * Representative RF Operating Parameter (RROP) information. It is sent for the
8516  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8517  * intended for use by external Auto Channel Selection applications. It provides
8518  * guidance values for some RF parameters that are used by the system during
8519  * operation. These values could vary by channel, band, radio, and so on.
8520  */
8521 enum qca_wlan_vendor_attr_rrop_info {
8522 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8523 
8524 	/* Representative Tx Power List (RTPL) which has an array of nested
8525 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8526 	 */
8527 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8528 
8529 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8530 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8531 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8532 };
8533 
8534 /**
8535  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8536  * entry instances in the Representative Tx Power List (RTPL). It provides
8537  * simplified power values intended for helping external Auto channel Selection
8538  * applications compare potential Tx power performance between channels, other
8539  * operating conditions remaining identical. These values are not necessarily
8540  * the actual Tx power values that will be used by the system. They are also not
8541  * necessarily the max or average values that will be used. Instead, they are
8542  * relative, summarized keys for algorithmic use computed by the driver or
8543  * underlying firmware considering a number of vendor specific factors.
8544  */
8545 enum qca_wlan_vendor_attr_rtplinst {
8546 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8547 
8548 	/* Primary channel number (u8).
8549 	 * Note: If both the driver and user space application support the
8550 	 * 6 GHz band, this attribute is deprecated and
8551 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8552 	 * maintain backward compatibility,
8553 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8554 	 * driver or user space application or both do not support the 6 GHz
8555 	 * band.
8556 	 */
8557 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8558 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
8559 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8560 	/* Representative Tx power in dBm (s32) with emphasis on range. */
8561 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
8562 	/* Primary channel center frequency (u32) in MHz */
8563 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
8564 
8565 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8566 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8567 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8568 };
8569 
8570 /**
8571  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
8572  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8573  *
8574  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
8575  *  array of nested values as per attributes in
8576  *  enum qca_wlan_vendor_attr_mac_mode_info.
8577  */
8578 enum qca_wlan_vendor_attr_mac {
8579 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8580 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8581 
8582 	/* keep last */
8583 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8584 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8585 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8586 };
8587 
8588 /**
8589  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8590  * WiFi netdev interface on a respective MAC. Used by the attribute
8591  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8592  *
8593  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
8594  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
8595  *  the connected Wi-Fi interface(u32).
8596  */
8597 enum qca_wlan_vendor_attr_mac_iface_info {
8598 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8599 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8600 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8601 
8602 	/* keep last */
8603 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8604 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8605 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8606 };
8607 
8608 /**
8609  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8610  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8611  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8612  *
8613  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
8614  *  MAC (u32)
8615  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
8616  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
8617  *  in enum nl80211_band.
8618  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
8619  * interfaces associated with this MAC. Represented by enum
8620  * qca_wlan_vendor_attr_mac_iface_info.
8621  */
8622 enum qca_wlan_vendor_attr_mac_info {
8623 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8624 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8625 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8626 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8627 
8628 	/* keep last */
8629 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8630 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8631 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8632 
8633 };
8634 
8635 /**
8636  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8637  * to get thermal status from driver/firmware.
8638  * enum values are used for NL attributes encapsulated inside
8639  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8640  *
8641  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8642  * of a thermal level in Celsius. u32 size.
8643  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8644  * of a thermal level in Celsius. u32 size.
8645  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8646  * thermal level in milliseconds. u32 size.
8647  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8648  * of times the temperature crossed into the temperature range defined by the
8649  * thermal level from both higher and lower directions. u32 size.
8650  */
8651 enum qca_wlan_vendor_attr_thermal_stats {
8652 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8653 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8654 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8655 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8656 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8657 
8658 	/* keep last */
8659 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8660 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8661 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8662 };
8663 
8664 /**
8665  * enum he_fragmentation_val - HE fragmentation support values
8666  * Indicates level of dynamic fragmentation that is supported by
8667  * a STA as a recipient.
8668  * HE fragmentation values are defined as per 11ax spec and are used in
8669  * HE capability IE to advertise the support. These values are validated
8670  * in the driver to check the device capability and advertised in the HE
8671  * capability element.
8672  *
8673  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8674  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8675  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8676  *	within an A-MPDU that is not an S-MPDU.
8677  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8678  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8679  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8680  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8681  *	MPDU or S-MPDU.
8682  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8683  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8684  *	fragments for each MSDU and for each A-MSDU if supported by the
8685  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8686  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8687  */
8688 enum he_fragmentation_val {
8689 	HE_FRAG_DISABLE,
8690 	HE_FRAG_LEVEL1,
8691 	HE_FRAG_LEVEL2,
8692 	HE_FRAG_LEVEL3,
8693 };
8694 
8695 /**
8696  * enum he_mcs_config - HE MCS support configuration
8697  *
8698  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8699  * These values are used in driver to configure the HE MCS map to advertise
8700  * Tx/Rx MCS map in HE capability and these values are applied for all the
8701  * streams supported by the device. To configure MCS for different bandwidths,
8702  * vendor command needs to be sent using this attribute with appropriate value.
8703  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8704  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
8705  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
8706  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
8707  *
8708  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
8709  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
8710  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
8711  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
8712  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
8713  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
8714  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
8715  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
8716  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
8717  */
8718 enum he_mcs_config {
8719 	HE_80_MCS0_7 = 0,
8720 	HE_80_MCS0_9 = 1,
8721 	HE_80_MCS0_11 = 2,
8722 	HE_160_MCS0_7 = 4,
8723 	HE_160_MCS0_9 = 5,
8724 	HE_160_MCS0_11 = 6,
8725 	HE_80p80_MCS0_7 = 8,
8726 	HE_80p80_MCS0_9 = 9,
8727 	HE_80p80_MCS0_11 = 10,
8728 };
8729 
8730 /**
8731  * enum qca_wlan_ba_session_config - BA session configuration
8732  *
8733  * Indicates the configuration values for BA session configuration attribute.
8734  *
8735  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8736  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8737  */
8738 enum qca_wlan_ba_session_config {
8739 	QCA_WLAN_ADD_BA = 1,
8740 	QCA_WLAN_DELETE_BA = 2,
8741 };
8742 
8743 /**
8744  * enum qca_wlan_ac_type - access category type
8745  *
8746  * Indicates the access category type value.
8747  *
8748  * @QCA_WLAN_AC_BE: BE access category
8749  * @QCA_WLAN_AC_BK: BK access category
8750  * @QCA_WLAN_AC_VI: VI access category
8751  * @QCA_WLAN_AC_VO: VO access category
8752  * @QCA_WLAN_AC_ALL: All ACs
8753  */
8754 enum qca_wlan_ac_type {
8755 	QCA_WLAN_AC_BE = 0,
8756 	QCA_WLAN_AC_BK = 1,
8757 	QCA_WLAN_AC_VI = 2,
8758 	QCA_WLAN_AC_VO = 3,
8759 	QCA_WLAN_AC_ALL = 4,
8760 };
8761 
8762 /**
8763  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8764  *
8765  * Indicates the HE LTF configuration value.
8766  *
8767  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
8768  * the mandatory HE-LTF based on the GI setting
8769  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8770  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8771  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8772  */
8773 enum qca_wlan_he_ltf_cfg {
8774 	QCA_WLAN_HE_LTF_AUTO = 0,
8775 	QCA_WLAN_HE_LTF_1X = 1,
8776 	QCA_WLAN_HE_LTF_2X = 2,
8777 	QCA_WLAN_HE_LTF_4X = 3,
8778 };
8779 
8780 /**
8781  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8782  *
8783  * Indicates the HE trigger frame MAC padding duration value.
8784  *
8785  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8786  * process the trigger frame.
8787  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8788  * trigger frame.
8789  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8790  * trigger frame.
8791  */
8792 enum qca_wlan_he_mac_padding_dur {
8793 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8794 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8795 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8796 };
8797 
8798 /**
8799  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8800  *
8801  * Indicates the HE Operating mode control channel width setting value.
8802  *
8803  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8804  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8805  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8806  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8807  */
8808 enum qca_wlan_he_om_ctrl_ch_bw {
8809 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8810 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8811 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8812 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8813 };
8814 
8815 /**
8816  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8817  *
8818  * Indicates the frame types to use for keep alive data.
8819  *
8820  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8821  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8822  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8823  */
8824 enum qca_wlan_keep_alive_data_type {
8825 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8826 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8827 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8828 };
8829 
8830 /**
8831  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8832  * HE operating mode control transmit request. These attributes are
8833  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8834  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8835  *
8836  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8837  * indicates the maximum number of spatial streams, NSS, that the STA
8838  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8839  * and is set to NSS - 1.
8840  *
8841  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8842  * indicates the operating channel width supported by the STA for both
8843  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8844  *
8845  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8846  * indicates the all trigger based UL MU operations by the STA.
8847  * 0 - UL MU operations are enabled by the STA.
8848  * 1 - All triggered UL MU transmissions are suspended by the STA.
8849  *
8850  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8851  * indicates the maximum number of space-time streams, NSTS, that
8852  * the STA supports in transmission and is set to NSTS - 1.
8853  *
8854  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8855  * combined with the UL MU Disable subfield and the recipient's setting
8856  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8857  * capabilities to determine which HE TB PPDUs are possible by the
8858  * STA to transmit.
8859  * 0 - UL MU data operations are enabled by the STA.
8860  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8861  * bit is not set, else UL MU Tx is suspended.
8862  *
8863  */
8864 enum qca_wlan_vendor_attr_he_omi_tx {
8865 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8866 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8867 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8868 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8869 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8870 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8871 
8872 	/* keep last */
8873 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8874 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8875 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8876 };
8877 
8878 /**
8879  * enum qca_wlan_vendor_phy_mode - Different PHY modes
8880  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8881  *
8882  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8883  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8884  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8885  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8886  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8887  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8888  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8889  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8890  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8891  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8892  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8893  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8894  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8895  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8896  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8897  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8898  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8899  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8900  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8901  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8902  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8903  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8904  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8905  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8906  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8907  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8908  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8909  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8910  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8911  */
8912 enum qca_wlan_vendor_phy_mode {
8913 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8914 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8915 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8916 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8917 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8918 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8919 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8920 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8921 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8922 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8923 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
8924 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
8925 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
8926 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
8927 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
8928 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
8929 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
8930 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
8931 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
8932 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
8933 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
8934 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
8935 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
8936 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
8937 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
8938 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
8939 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
8940 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
8941 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
8942 };
8943 
8944 /* Attributes for data used by
8945  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
8946  */
8947 enum qca_wlan_vendor_attr_wifi_test_config {
8948 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
8949 	/* 8-bit unsigned value to configure the driver to enable/disable
8950 	 * WMM feature. This attribute is used to configure testbed device.
8951 	 * 1-enable, 0-disable
8952 	 */
8953 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
8954 
8955 	/* 8-bit unsigned value to configure the driver to accept/reject
8956 	 * the addba request from peer. This attribute is used to configure
8957 	 * the testbed device.
8958 	 * 1-accept addba, 0-reject addba
8959 	 */
8960 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
8961 
8962 	/* 8-bit unsigned value to configure the driver to send or not to
8963 	 * send the addba request to peer.
8964 	 * This attribute is used to configure the testbed device.
8965 	 * 1-send addba, 0-do not send addba
8966 	 */
8967 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
8968 
8969 	/* 8-bit unsigned value to indicate the HE fragmentation support.
8970 	 * Uses enum he_fragmentation_val values.
8971 	 * This attribute is used to configure the testbed device to
8972 	 * allow the advertised hardware capabilities to be downgraded
8973 	 * for testing purposes.
8974 	 */
8975 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
8976 
8977 	/* 8-bit unsigned value to indicate the HE MCS support.
8978 	 * Uses enum he_mcs_config values.
8979 	 * This attribute is used to configure the testbed device to
8980 	 * allow the advertised hardware capabilities to be downgraded
8981 	 * for testing purposes.
8982 	 */
8983 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
8984 
8985 	/* 8-bit unsigned value to configure the driver to allow or not to
8986 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
8987 	 * This attribute is used to configure the testbed device.
8988 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
8989 	 */
8990 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
8991 
8992 	/* 8-bit unsigned value to configure the driver to add a
8993 	 * new BA session or delete the existing BA session for
8994 	 * given TID. ADDBA command uses the buffer size and tid
8995 	 * configuration if user specifies the values else default
8996 	 * value for buffer size is used for all tids if the tid
8997 	 * also not specified. For DEL_BA command TID value is
8998 	 * required to process the command.
8999 	 * Uses enum qca_wlan_ba_session_config values.
9000 	 * This attribute is used to configure the testbed device.
9001 	 */
9002 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9003 
9004 	/* 16-bit unsigned value to configure the buffer size in addba
9005 	 * request and response frames.
9006 	 * This attribute is used to configure the testbed device.
9007 	 * The range of the value is 0 to 256.
9008 	 */
9009 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9010 
9011 	/* 8-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 	 */
9015 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9016 
9017 	/* 8-bit unsigned value to configure the no ack policy.
9018 	 * To configure no ack policy, access category value
9019 	 * is required to process the command.
9020 	 * This attribute is used to configure the testbed device.
9021 	 * 1 - enable no ack, 0 - disable no ack
9022 	 */
9023 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9024 
9025 	/* 8-bit unsigned value to configure the AC for no ack policy
9026 	 * This attribute is used to configure the testbed device.
9027 	 * uses the enum qca_wlan_ac_type values
9028 	 */
9029 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9030 
9031 	/* 8-bit unsigned value to configure the HE LTF
9032 	 * This attribute is used to configure the testbed device.
9033 	 * Uses the enum qca_wlan_he_ltf_cfg values.
9034 	 */
9035 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9036 
9037 	/* 8-bit unsigned value to configure the tx beamformee.
9038 	 * This attribute is used to configure the testbed device.
9039 	 * 1 - enable, 0 - disable.
9040 	 */
9041 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9042 
9043 	/* 8-bit unsigned value to configure the tx beamformee number of
9044 	 * space-time streams.
9045 	 * This attribute is used to configure the testbed device.
9046 	 * The range of the value is 0 to 8
9047 	 */
9048 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9049 
9050 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
9051 	 * This attribute is used to configure the testbed device.
9052 	 * Uses the enum qca_wlan_ac_type values.
9053 	 */
9054 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9055 
9056 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9057 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
9058 	 * is required to process the command.
9059 	 * This attribute is used to configure the testbed device.
9060 	 */
9061 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9062 
9063 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
9064 	 * given AC.
9065 	 * To configure MU EDCA ECW min value, MU EDCA access category value
9066 	 * is required to process the command.
9067 	 * This attribute is used to configure the testbed device.
9068 	 */
9069 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9070 
9071 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
9072 	 * given AC.
9073 	 * To configure MU EDCA ECW max value, MU EDCA access category value
9074 	 * is required to process the command.
9075 	 * This attribute is used to configure the testbed device.
9076 	 */
9077 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9078 
9079 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
9080 	 * To configure MU EDCA timer 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_TIMER = 19,
9085 
9086 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
9087 	 * duration.
9088 	 * This attribute is used to configure the testbed device.
9089 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
9090 	 */
9091 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9092 
9093 	/* 8-bit unsigned value to override the MU EDCA params to defaults
9094 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
9095 	 * the default values else use the MU EDCA params from AP beacon.
9096 	 * This attribute is used to configure the testbed device.
9097 	 * 1 - enable override, 0 - disable.
9098 	 */
9099 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9100 
9101 	/* 8-bit unsigned value to configure the support for receiving
9102 	 * an MPDU that contains an operating mode control subfield.
9103 	 * This attribute is used to configure the testbed device.
9104 	 * 1-enable, 0-disable.
9105 	 */
9106 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9107 
9108 	/* Nested attribute values required to setup the TWT session.
9109 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9110 	 * information to set up the session. It contains broadcast flags,
9111 	 * set_up flags, trigger value, flow type, flow ID, wake interval
9112 	 * exponent, protection, target wake time, wake duration, wake interval
9113 	 * mantissa. These nested attributes are used to setup a host triggered
9114 	 * TWT session.
9115 	 */
9116 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9117 
9118 	/* This nested attribute is used to terminate the current TWT session.
9119 	 * It does not currently carry any attributes.
9120 	 */
9121 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9122 
9123 	/* This nested attribute is used to suspend the current TWT session.
9124 	 * It does not currently carry any attributes.
9125 	 */
9126 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9127 
9128 	/* Nested attribute values to indicate the request for resume.
9129 	 * This attribute is used to resume the TWT session.
9130 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9131 	 * parameters required to resume the TWT session.
9132 	 */
9133 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9134 
9135 	/* 8-bit unsigned value to set the HE operating mode control
9136 	 * (OM CTRL) Channel Width subfield.
9137 	 * The Channel Width subfield indicates the operating channel width
9138 	 * supported by the STA for both reception and transmission.
9139 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9140 	 * This setting is cleared with the
9141 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9142 	 * flag attribute to reset defaults.
9143 	 * This attribute is used to configure the testbed device.
9144 	 */
9145 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9146 
9147 	/* 8-bit unsigned value to configure the number of spatial
9148 	 * streams in HE operating mode control field.
9149 	 * This setting is cleared with the
9150 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9151 	 * flag attribute to reset defaults.
9152 	 * This attribute is used to configure the testbed device.
9153 	 */
9154 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9155 
9156 	/* Flag attribute to configure the UL MU disable bit in
9157 	 * HE operating mode control field.
9158 	 * This setting is cleared with the
9159 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9160 	 * flag attribute to reset defaults.
9161 	 * This attribute is used to configure the testbed device.
9162 	 */
9163 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9164 
9165 	/* Flag attribute to clear the previously set HE operating mode
9166 	 * control field configuration.
9167 	 * This attribute is used to configure the testbed device to reset
9168 	 * defaults to clear any previously set HE operating mode control
9169 	 * field configuration.
9170 	 */
9171 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9172 
9173 	/* 8-bit unsigned value to configure HE single user PPDU
9174 	 * transmission. By default this setting is disabled and it
9175 	 * is disabled in the reset defaults of the device configuration.
9176 	 * This attribute is used to configure the testbed device.
9177 	 * 1-enable, 0-disable
9178 	 */
9179 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9180 
9181 	/* 8-bit unsigned value to configure action frame transmission
9182 	 * in HE trigger based PPDU transmission.
9183 	 * By default this setting is disabled and it is disabled in
9184 	 * the reset defaults of the device configuration.
9185 	 * This attribute is used to configure the testbed device.
9186 	 * 1-enable, 0-disable
9187 	 */
9188 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9189 
9190 	/* Nested attribute to indicate HE operating mode control field
9191 	 * transmission. It contains operating mode control field Nss,
9192 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9193 	 * These nested attributes are used to send HE operating mode control
9194 	 * with configured values.
9195 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
9196 	 * This attribute is used to configure the testbed device.
9197 	 */
9198 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
9199 
9200 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
9201 	 * support for the reception of a frame that carries an HE variant
9202 	 * HT Control field.
9203 	 * This attribute is used to configure the testbed device.
9204 	 * 1-enable, 0-disable
9205 	 */
9206 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9207 
9208 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
9209 	 * This attribute is used to configure the testbed device.
9210 	 * 1-enable, 0-disable
9211 	 */
9212 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9213 
9214 	/* 8-bit unsigned value to configure HE testbed defaults.
9215 	 * This attribute is used to configure the testbed device.
9216 	 * 1-set the device HE capabilities to testbed defaults.
9217 	 * 0-reset the device HE capabilities to supported config.
9218 	 */
9219 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9220 
9221 	/* 8-bit unsigned value to configure twt request support.
9222 	 * This attribute is used to configure the testbed device.
9223 	 * 1-enable, 0-disable.
9224 	 */
9225 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9226 
9227 	/* 8-bit unsigned value to configure protection for Management
9228 	 * frames when PMF is enabled for the association.
9229 	 * This attribute is used to configure the testbed device.
9230 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9231 	 */
9232 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9233 
9234 	/* Flag attribute to inject Disassociation frame to the connected AP.
9235 	 * This attribute is used to configure the testbed device.
9236 	 */
9237 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9238 
9239 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9240 	 * subfield in the MIC control field of the FTE in FT Reassociation
9241 	 * Request frame.
9242 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9243 	 * This attribute is used to configure the testbed device.
9244 	 * This attribute can be configured when STA is in disconnected or
9245 	 * associated state and the configuration is valid until the next
9246 	 * disconnection.
9247 	 */
9248 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9249 
9250 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9251 	 * Switch Announcement) when STA is in connected state.
9252 	 * 0 - Default behavior, 1 - Ignore CSA.
9253 	 * This attribute is used to configure the testbed device.
9254 	 * This attribute can be configured when STA is in disconnected or
9255 	 * associated state and the configuration is valid until the next
9256 	 * disconnection.
9257 	 */
9258 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9259 
9260 	/* Nested attribute values required to configure OCI (Operating Channel
9261 	 * Information). Attributes defined in enum
9262 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9263 	 * This attribute is used to configure the testbed device.
9264 	 * This attribute can be configured when STA is in disconnected or
9265 	 * associated state and the configuration is valid until the next
9266 	 * disconnection.
9267 	 */
9268 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9269 
9270 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9271 	 * Query timeout. If this configuration is enabled STA shall not send
9272 	 * Deauthentication frmae when SA Query times out (mainly, after a
9273 	 * channel switch when OCV is enabled).
9274 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9275 	 * This attribute is used to configure the testbed device.
9276 	 * This attribute can be configured only when STA is in associated state
9277 	 * and the configuration is valid until the disconnection.
9278 	 */
9279 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9280 
9281 	/* 8-bit unsigned value to configure the driver/firmware to start or
9282 	 * stop transmitting FILS discovery frames.
9283 	 * 0 - Stop transmitting FILS discovery frames
9284 	 * 1 - Start transmitting FILS discovery frames
9285 	 * This attribute is used to configure the testbed device.
9286 	 * This attribute can be configured only in AP mode and the
9287 	 * configuration is valid until AP restart.
9288 	 */
9289 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9290 
9291 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9292 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9293 	 * information field.
9294 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9295 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9296 	 * This attribute is used to configure the testbed device.
9297 	 */
9298 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9299 
9300 	/* 16-bit unsigned value to configure the driver with a specific BSS
9301 	 * max idle period to advertise in the BSS Max Idle Period element
9302 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9303 	 * This attribute is used to configure the testbed device.
9304 	 */
9305 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9306 
9307 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9308 	 * for data transmission.
9309 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9310 	 * This attribute is used to configure the testbed device.
9311 	 */
9312 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9313 
9314 	/* 8-bit unsigned value to configure the driver to disable data and
9315 	 * management response frame transmission to test the BSS max idle
9316 	 * feature.
9317 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9318 	 * This attribute is used to configure the testbed device.
9319 	 */
9320 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9321 
9322 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9323 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9324 	 * information field.
9325 	 * 0 - Disable Punctured Preamble Rx subfield
9326 	 * 1 - Enable Punctured Preamble Rx subfield
9327 	 * This attribute is used to configure the testbed device.
9328 	 */
9329 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9330 
9331 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9332 	 * requirement mismatch for 6 GHz connection.
9333 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9334 	 * This attribute is used to configure the testbed device.
9335 	 */
9336 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9337 
9338 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9339 	 * connection with all security modes.
9340 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9341 	 * modes.
9342 	 * This attribute is used for testing purposes.
9343 	 */
9344 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9345 
9346 	/* 8-bit unsigned value to configure the driver to transmit data with
9347 	 * ER SU PPDU type.
9348 	 *
9349 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9350 	 * This attribute is used for testing purposes.
9351 	 */
9352 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9353 
9354 	/* 8-bit unsigned value to configure the driver to use Data or
9355 	 * Management frame type for keep alive data.
9356 	 * Uses enum qca_wlan_keep_alive_data_type values.
9357 	 *
9358 	 * This attribute is used for testing purposes.
9359 	 */
9360 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9361 
9362 	/* 8-bit unsigned value to configure the driver to use scan request
9363 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9364 	 * driver saves this configuration and applies this setting to all user
9365 	 * space scan requests until the setting is cleared. If this
9366 	 * configuration is set, the driver uses the BSSID value from the scan
9367 	 * request to set the RA(A1) in the Probe Request frames during the
9368 	 * scan.
9369 	 *
9370 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9371 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9372 	 * This attribute is used for testing purposes.
9373 	 */
9374 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9375 
9376 	/* 8-bit unsigned value to configure the driver to enable/disable the
9377 	 * BSS max idle period support.
9378 	 *
9379 	 * 0 - Disable the BSS max idle support.
9380 	 * 1 - Enable the BSS max idle support.
9381 	 * This attribute is used for testing purposes.
9382 	 */
9383 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9384 
9385 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9386 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9387 	 * capabilities information field.
9388 	 * 0 - Disable Rx control frame to MultiBSS subfield
9389 	 * 1 - Enable Rx control frame to MultiBSS subfield
9390 	 * This attribute is used to configure the testbed device.
9391 	 */
9392 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9393 
9394 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9395 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9396 	 * information field.
9397 	 * 0 - Disable Broadcast TWT support subfield
9398 	 * 1 - Enable Broadcast TWT support subfield
9399 	 * This attribute is used to configure the testbed device.
9400 	 */
9401 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9402 
9403 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9404 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
9405 	 * and if the FW supports this capability too, then the STA host
9406 	 * advertises this capability to AP over assoc request frame. This
9407 	 * attribute will not have any effect on legacy devices with no 802.11be
9408 	 * support.
9409 	 * 0 - Default behavior
9410 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9411 	 * This attribute is used to configure the testbed device.
9412 	 */
9413 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9414 
9415 	/* 8-bit unsigned value to configure the driver to enable/disable the
9416 	 * periodic sounding for Tx beamformer functionality. The default
9417 	 * behavior uses algorithm to do sounding based on packet stats.
9418 	 *
9419 	 * 0 - Default behavior.
9420 	 * 1 - Enable the periodic sounding for Tx beamformer.
9421 	 * This attribute is used for testing purposes.
9422 	 */
9423 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9424 
9425 	/* keep last */
9426 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9427 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9428 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9429 };
9430 
9431 /**
9432  * enum qca_wlan_twt_operation - Operation of the config TWT request
9433  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9434  * The response for the respective operations can be either synchronous or
9435  * asynchronous (wherever specified). If synchronous, the response to this
9436  * operation is obtained in the corresponding vendor command reply to the user
9437  * space. For the asynchronous case the response is obtained as an event with
9438  * the same operation type.
9439  *
9440  * Drivers shall support either of these modes but not both simultaneously.
9441  * This support for asynchronous mode is advertised through the flag
9442  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9443  * the driver shall support synchronous mode.
9444  *
9445  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9446  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9447  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9448  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9449  * synchronous or asynchronous operation.
9450  *
9451  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9452  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9453  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9454  *
9455  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9456  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9457  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9458  * This terminate can either get triggered by the user space or can as well be
9459  * a notification from the firmware if it initiates a terminate.
9460  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9461  * the request from user space can either be a synchronous or asynchronous
9462  * operation.
9463  *
9464  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9465  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9466  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9467  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9468  * this is either a synchronous or asynchronous operation.
9469  *
9470  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9471  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9472  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9473  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9474  * request.
9475  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9476  * capability, this is either a synchronous or asynchronous operation.
9477  *
9478  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9479  * combination of suspend and resume in a single request. Required parameters
9480  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9481  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9482  * setup. 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_GET_STATS: Get the TWT session traffic statistics information.
9486  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9487  * session is setup. It's a synchronous operation.
9488  *
9489  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9490  * Valid only after the TWT session is setup. It's a synchronous operation.
9491  *
9492  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9493  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9494  * operation.
9495  *
9496  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
9497  * ready for a new TWT session setup after it issued a twt teardown.
9498  *
9499  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9500  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9501  * the enum qca_wlan_vendor_attr_twt_set_param.
9502  *
9503  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9504  * related information for example TWT required bit in AP capabilities etc.
9505  * The reason for the notification is sent using
9506  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9507  */
9508 enum qca_wlan_twt_operation {
9509 	QCA_WLAN_TWT_SET = 0,
9510 	QCA_WLAN_TWT_GET = 1,
9511 	QCA_WLAN_TWT_TERMINATE = 2,
9512 	QCA_WLAN_TWT_SUSPEND = 3,
9513 	QCA_WLAN_TWT_RESUME = 4,
9514 	QCA_WLAN_TWT_NUDGE = 5,
9515 	QCA_WLAN_TWT_GET_STATS = 6,
9516 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9517 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9518 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9519 	QCA_WLAN_TWT_SET_PARAM = 10,
9520 	QCA_WLAN_TWT_NOTIFY = 11,
9521 };
9522 
9523 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9524  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
9525  *
9526  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
9527  * u8 attribute. Specify the TWT operation of this request. Possible values
9528  * are defined in enum qca_wlan_twt_operation. The parameters for the
9529  * respective operation is specified through
9530  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9531  *
9532  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9533  * parameters configured for TWT. These parameters are represented by
9534  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9535  * enum qca_wlan_vendor_attr_twt_set_param or
9536  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9537  *
9538  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9539  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9540  * The values used by this attribute are defined in
9541  * enum qca_wlan_vendor_twt_status.
9542  */
9543 enum qca_wlan_vendor_attr_config_twt {
9544 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9545 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9546 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9547 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9548 
9549 	/* keep last */
9550 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9551 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9552 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9553 };
9554 
9555 /**
9556  * qca_wlan_twt_setup_state: Represents the TWT session states.
9557  *
9558  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9559  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9560  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9561  */
9562 enum qca_wlan_twt_setup_state {
9563 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9564 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9565 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9566 };
9567 
9568 /**
9569  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9570  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9571  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9572  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9573  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9574  *
9575  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9576  * Disable (flag attribute not present) - Individual TWT
9577  * Enable (flag attribute present) - Broadcast TWT.
9578  * Individual means the session is between the STA and the AP.
9579  * This session is established using a separate negotiation between
9580  * STA and AP.
9581  * Broadcast means the session is across multiple STAs and an AP. The
9582  * configuration parameters are announced in Beacon frames by the AP.
9583  * This is used in
9584  * 1. TWT SET Request and Response
9585  * 2. TWT GET Response
9586  *
9587  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9588  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9589  * specify the TWT request type. This is used in TWT SET operation.
9590  *
9591  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9592  * Enable (flag attribute present) - TWT with trigger support.
9593  * Disable (flag attribute not present) - TWT without trigger support.
9594  * Trigger means the AP will send the trigger frame to allow STA to send data.
9595  * Without trigger, the STA will wait for the MU EDCA timer before
9596  * transmitting the data.
9597  * This is used in
9598  * 1. TWT SET Request and Response
9599  * 2. TWT GET Response
9600  *
9601  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9602  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9603  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9604  * NULL frame to AP.
9605  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9606  * This is a required parameter for
9607  * 1. TWT SET Request and Response
9608  * 2. TWT GET Response
9609  *
9610  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9611  * Flow ID is the unique identifier for each TWT session.
9612  * If not provided then dialog ID will be set to zero.
9613  * This is an optional parameter for
9614  * 1. TWT SET Request and Response
9615  * 2. TWT GET Request and Response
9616  * 3. TWT TERMINATE Request and Response
9617  * 4. TWT SUSPEND Request and Response
9618  * Flow Id values from 0 to 254 represent a single TWT session
9619  * Flow ID value of 255 represents all twt sessions for the following
9620  * 1. TWT TERMINATE Request and Response
9621  * 2. TWT SUSPEND Request and Response
9622  * 4. TWT CLEAR STATISTICS request
9623  * 5. TWT GET STATISTICS request and response
9624  * If an invalid dialog id is provided, status
9625  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9626  *
9627  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9628  * This attribute (exp) is used along with the mantissa to derive the
9629  * wake interval using the following formula:
9630  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9631  * Wake interval is the interval between 2 successive SP.
9632  * This is a required parameter for
9633  * 1. TWT SET Request and Response
9634  * 2. TWT GET Response
9635  *
9636  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9637  * Enable (flag attribute present) - Protection required.
9638  * Disable (flag attribute not present) - Protection not required.
9639  * If protection is enabled, then the AP will use protection
9640  * mechanism using RTS/CTS to self to reserve the airtime.
9641  * This is used in
9642  * 1. TWT SET Request and Response
9643  * 2. TWT GET Response
9644  *
9645  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9646  * This attribute is used as the SP offset which is the offset from
9647  * TSF after which the wake happens. The units are in microseconds. If
9648  * this attribute is not provided, then the value will be set to zero.
9649  * This is an optional parameter for
9650  * 1. TWT SET Request and Response
9651  * 2. TWT GET Response
9652  *
9653  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9654  * This is the duration of the service period. This is specified as
9655  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9656  * This is a required parameter for
9657  * 1. TWT SET Request and Response
9658  * 2. TWT GET Response
9659  *
9660  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9661  * This attribute is used to configure wake interval mantissa.
9662  * The units are in TU.
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_STATUS: Required (u8)
9668  * This field is applicable for TWT response only.
9669  * This contains status values in enum qca_wlan_vendor_twt_status
9670  * and is passed to the userspace. This is used in TWT SET operation.
9671  * This is a required parameter for
9672  * 1. TWT SET Response
9673  * 2. TWT TERMINATE Response
9674  * 3. TWT SUSPEND Response
9675  * 4. TWT RESUME Response
9676  * 5. TWT NUDGE Response
9677  *
9678  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9679  * This field is applicable for TWT response only.
9680  * This field contains response type from the TWT responder and is
9681  * passed to the userspace. The values for this field are defined in
9682  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9683  * response.
9684  *
9685  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
9686  * In TWT setup command this field contains absolute TSF that will
9687  * be used by TWT requester during setup.
9688  * In TWT response this field contains absolute TSF value of the
9689  * wake time received from the TWT responder and is passed to
9690  * the userspace.
9691  * This is an optional parameter for
9692  * 1. TWT SET Request
9693  * This is a required parameter for
9694  * 1. TWT SET Response
9695  * 2. TWT GET Response
9696  *
9697  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9698  * Enable (flag attribute present) - Indicates that the TWT responder
9699  * supports reception of TWT information frame from the TWT requestor.
9700  * Disable (flag attribute not present) - Indicates that the responder
9701  * doesn't support reception of TWT information frame from requestor.
9702  * This is used in
9703  * 1. TWT SET Response
9704  * 2. TWT GET Response
9705  *
9706  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9707  * Represents the MAC address of the peer for which the TWT session
9708  * is being configured. This is used in AP mode to represent the respective
9709  * client
9710  * In AP mode, this is a required parameter in response for
9711  * 1. TWT SET
9712  * 2. TWT GET
9713  * 3. TWT TERMINATE
9714  * 4. TWT SUSPEND
9715  * In STA mode, this is an optional parameter in request and response for
9716  * the above four TWT operations.
9717  * In AP mode, this is a required parameter in request for
9718  * 1. TWT GET
9719  * 2. TWT TERMINATE
9720  *
9721  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9722  * Minimum tolerance limit of wake interval parameter in microseconds.
9723  *
9724  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9725  * Maximum tolerance limit of wake interval parameter in microseconds.
9726  *
9727  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9728  * Minimum tolerance limit of wake duration parameter in microseconds.
9729  *
9730  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9731  * Maximum tolerance limit of wake duration parameter in microseconds.
9732  *
9733  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9734  * TWT state for the given dialog id. The values for this are represented
9735  * by enum qca_wlan_twt_setup_state.
9736  * This is obtained through TWT GET operation.
9737  *
9738  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9739  * This attribute is used to configure wake interval mantissa.
9740  * The unit is microseconds. This attribute, when specified, takes
9741  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9742  * This parameter is used for
9743  * 1. TWT SET Request and Response
9744  * 2. TWT GET Response
9745  *
9746  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9747  * This attribute is used to configure Broadcast TWT ID.
9748  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9749  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9750  * This parameter is used for
9751  * 1. TWT SET Request
9752  * 2. TWT TERMINATE Request
9753  *
9754  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9755  * This attribute is used to configure Broadcast TWT recommendation.
9756  * The Broadcast TWT Recommendation subfield contains a value that indicates
9757  * recommendations on the types of frames that are transmitted by TWT
9758  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9759  * The allowed values are 0 - 3.
9760  * This parameter is used for
9761  * 1. TWT SET Request
9762  *
9763  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9764  * This attribute is used to configure Broadcast TWT Persistence.
9765  * The Broadcast TWT Persistence subfield indicates the number of
9766  * TBTTs during which the Broadcast TWT SPs corresponding to this
9767  * broadcast TWT Parameter set are present. The number of beacon intervals
9768  * during which the Broadcast TWT SPs are present is equal to the value in the
9769  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9770  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9771  * This parameter is used for
9772  * 1. TWT SET Request
9773  *
9774  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9775  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9776  * from TWT response frame.
9777  * This parameter is used for
9778  * 1. TWT SET Response
9779  * 2. TWT GET Response
9780  *
9781  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9782  * This attribute is used to configure the announce timeout value (in us) in
9783  * firmware. This timeout value is only applicable for announced TWT. If
9784  * timeout value is non-zero then firmware waits upto timeout value to use
9785  * data frame as announcement frame. If timeout value is 0 then firmware sends
9786  * explicit QoS NULL frame as announcement frame on SP start. Default value in
9787  * firmware is 0.
9788  * This parameter is used for
9789  * 1. TWT SET Request
9790  */
9791 enum qca_wlan_vendor_attr_twt_setup {
9792 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9793 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9794 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9795 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9796 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9797 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9798 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9799 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9800 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9801 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9802 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9803 
9804 	/* TWT Response only attributes */
9805 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9806 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9807 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9808 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9809 
9810 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9811 
9812 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9813 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9814 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9815 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9816 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9817 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9818 
9819 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9820 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9821 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9822 
9823 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9824 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9825 
9826 	/* keep last */
9827 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9828 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9829 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9830 };
9831 
9832 /**
9833  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9834  * TWT operation
9835  *
9836  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9837  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9838  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9839  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9840  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9841  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9842  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9843  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9844  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9845  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9846  * request/response frame
9847  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9848  * frame
9849  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9850  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9851  * unknown reason
9852  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9853  * suspend state
9854  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9855  * invalid IE in the received TWT frame
9856  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9857  * the responder are not in the specified range
9858  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9859  * session due to request from the responder. Used on the TWT_TERMINATE
9860  * notification from the firmware.
9861  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9862  * session due to roaming. Used on the TWT_TERMINATE notification from the
9863  * firmware.
9864  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9865  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
9866  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
9867  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
9868  * request due to roaming in progress.
9869  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
9870  * setup request due to channel switch in progress.
9871  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
9872  * request due to scan in progress.
9873  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
9874  * terminate an existing TWT session on power save exit request from userspace.
9875  * Used on the TWT_TERMINATE notification from the driver/firmware.
9876  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
9877  * required bit in its capabilities.
9878  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
9879  * the TWT required bit(1->0) in its capabilities.
9880  */
9881 enum qca_wlan_vendor_twt_status {
9882 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
9883 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
9884 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
9885 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
9886 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
9887 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
9888 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
9889 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
9890 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
9891 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
9892 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
9893 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
9894 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
9895 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
9896 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
9897 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
9898 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
9899 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
9900 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
9901 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
9902 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
9903 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
9904 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
9905 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
9906 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
9907 };
9908 
9909 /**
9910  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
9911  * TWT (Target Wake Time) resume request. These attributes are sent as part of
9912  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
9913  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9914  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9915  *
9916  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
9917  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
9918  * These attributes are used as the SP offset which is the offset from TSF after
9919  * which the wake happens. The units are in microseconds. Please note that
9920  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
9921  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
9922  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
9923  * will be set to zero.
9924  *
9925  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
9926  * This attribute represents the next TWT subfield size.
9927  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9928  * and 4 for 64 bits.
9929  *
9930  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
9931  * Flow ID is the unique identifier for each TWT session. This attribute
9932  * represents the respective TWT session to resume.
9933  * Flow Id values from 0 to 254 represent a single TWT session
9934  * Flow ID value of 255 represents all TWT sessions.
9935  * If an invalid dialog id is provided, status
9936  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9937  *
9938  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
9939  * Represents the MAC address of the peer to which TWT Resume is
9940  * being sent. This is used in AP mode to represent the respective
9941  * client and is a required parameter. In STA mode, this is an optional
9942  * parameter
9943  *
9944  */
9945 enum qca_wlan_vendor_attr_twt_resume {
9946 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
9947 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
9948 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
9949 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
9950 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
9951 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
9952 
9953 	/* keep last */
9954 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
9955 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
9956 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
9957 };
9958 
9959 /**
9960  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
9961  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
9962  * and resume in a single request. These attributes are sent as part of
9963  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9964  *
9965  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9966  * Flow ID is the unique identifier for each TWT session. This attribute
9967  * represents the respective TWT session to suspend and resume.
9968  *
9969  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
9970  * Flow ID is the unique identifier for each TWT session. This attribute
9971  * represents the respective TWT session to suspend and resume.
9972  * Flow Id values from 0 to 254 represent a single TWT session
9973  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
9974  * and response.
9975  * If an invalid dialog id is provided, status
9976  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9977  *
9978  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
9979  * This attribute is used as the SP offset which is the offset from
9980  * TSF after which the wake happens. The units are in microseconds.
9981  *
9982  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
9983  * This attribute represents the next TWT subfield size.
9984  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
9985  * and 4 for 64 bits.
9986  *
9987  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
9988  * Represents the MAC address of the peer to which TWT Suspend and Resume is
9989  * being sent. This is used in AP mode to represent the respective
9990  * client and is a required parameter. In STA mode, this is an optional
9991  * parameter.
9992  *
9993  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
9994  * This field contains absolute TSF value of the time at which twt
9995  * sesion will be resumed.
9996  *
9997  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
9998  * This field will be used when device supports Flexible TWT.
9999  * This field contains an offset value by which to shift the starting time
10000  * of the next service period. The value of offset can be negative or positive.
10001  * If provided, this attribute will override
10002  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10003  */
10004 enum qca_wlan_vendor_attr_twt_nudge {
10005 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10006 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10007 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10008 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10009 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10010 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
10011 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
10012 
10013 	/* keep last */
10014 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10015 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10016 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10017 };
10018 
10019 /**
10020  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10021  * TWT (Target Wake Time) get statistics and clear statistics request.
10022  * These attributes are sent as part of
10023  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10024  *
10025  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10026  * Flow ID is the unique identifier for each TWT session. This attribute
10027  * represents the respective TWT session for get and clear TWT statistics.
10028  * Flow Id values from 0 to 254 represent a single TWT session
10029  * Flow ID value of 255 represents all TWT sessions in
10030  * 1) TWT GET STATISTICS request and response
10031  * 2) TWT CLEAR STATISTICS request
10032  *
10033  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10034  * Represents the MAC address of the peer for which TWT Statistics
10035  * is required.
10036  * In AP mode this is used to represent the respective
10037  * client and is a required parameter for
10038  * 1) TWT GET STATISTICS request and response
10039  * 2) TWT CLEAR STATISTICS request and response
10040  * In STA mode, this is an optional parameter.
10041  *
10042  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10043  * This is the duration of the service period in microseconds.
10044  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10045  *
10046  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10047  * Average of actual wake duration observed so far. Unit is microseconds.
10048  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10049  *
10050  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10051  * Number of TWT service period elapsed so far.
10052  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10053  *
10054  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10055  * This is the minimum value of wake duration observed across
10056  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10057  * microseconds.
10058  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10059  *
10060  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10061  * This is the maximum value of wake duration observed across
10062  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10063  * microseconds.
10064  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10065  *
10066  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10067  * Average number of MPDU's transmitted successfully across
10068  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10069  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10070  *
10071  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10072  * Average number of MPDU's received successfully across
10073  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10074  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10075  *
10076  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10077  * Average number of bytes transmitted successfully across
10078  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10079  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10080  *
10081  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
10082  * Average number of bytes received successfully across
10083  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10084  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10085  *
10086  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10087  * Status of the TWT GET STATISTICS request.
10088  * This contains status values in enum qca_wlan_vendor_twt_status
10089  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10090  */
10091 enum qca_wlan_vendor_attr_twt_stats {
10092 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10093 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10094 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10095 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10096 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10097 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10098 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10099 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10100 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10101 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10102 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10103 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10104 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10105 
10106 	/* keep last */
10107 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10108 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10109 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10110 };
10111 
10112 /**
10113  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
10114  * supported by the device and peer.
10115  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10116  *
10117  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10118  * TWT non-scheduling STA. This capability is advertised in the HE
10119  * capability/Extended capabilities information element in the
10120  * Association request frame by the device.
10121  *
10122  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
10123  * by the TWT scheduling AP. This capability is advertised in the extended
10124  * capabilities/HE capabilities information element.
10125  *
10126  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
10127  * for the broadcast TWT functionality. On responder side, this	indicates
10128  * support for the role of broadcast TWT scheduling functionality. This
10129  * capability is advertised in the HE capabilities information element.
10130  *
10131  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
10132  * This capability is advertised in the HE capabilities information element.
10133  *
10134  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10135  * that it mandates the associated HE STAs to support TWT. This capability is
10136  * advertised by AP in the HE Operation Parameters field of the HE operation
10137  * information element.
10138  */
10139 enum qca_wlan_twt_capa {
10140 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10141 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10142 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10143 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
10144 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
10145 
10146 };
10147 
10148 /**
10149  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
10150  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10151  * operation.
10152  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10153  * Represents the MAC address of the peer for which the TWT capabilities
10154  * are being queried. This is used in AP mode to represent the respective
10155  * client. In STA mode, this is an optional parameter.
10156  *
10157  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10158  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10159  * enum qca_wlan_twt_capa.
10160  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10161  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10162  * enum qca_wlan_twt_capa.
10163  */
10164 enum qca_wlan_vendor_attr_twt_capability {
10165 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10166 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10167 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10168 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10169 
10170 	/* keep last */
10171 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10172 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10173 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10174 };
10175 
10176 /**
10177  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10178  * TWT (Target Wake Time) related parameters. It is used when
10179  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10180  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10181  *
10182  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10183  * This attribute configures AC parameters to be used for all TWT
10184  * sessions in AP mode.
10185  * Uses the enum qca_wlan_ac_type values.
10186  */
10187 enum qca_wlan_vendor_attr_twt_set_param {
10188 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10189 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10190 
10191 	/* keep last */
10192 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10193 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10194 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10195 };
10196 
10197 /**
10198  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10199  * the TWT responder
10200  *
10201  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10202  * parameters that are different from TWT requesting STA suggested
10203  * or demanded TWT parameters
10204  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10205  * parameters that are different from TWT requesting STA TWT suggested
10206  * or demanded parameters
10207  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10208  * setup
10209  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10210  * setup.
10211  */
10212 enum qca_wlan_vendor_twt_setup_resp_type {
10213 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10214 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10215 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10216 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10217 };
10218 
10219 /**
10220  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10221  * Represents the setup type being requested for TWT.
10222  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10223  * parameters but relying on AP to fill the parameters during the negotiation.
10224  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10225  * values which the AP may accept or AP may provide alternative parameters
10226  * which the STA may accept.
10227  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10228  * alternate parameters than the requested ones.
10229  */
10230 enum qca_wlan_vendor_twt_setup_req_type {
10231 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10232 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10233 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10234 };
10235 
10236 /**
10237  * enum qca_wlan_throughput_level - Current throughput level
10238  *
10239  * Indicates the current level of throughput calculated by driver. The driver
10240  * may choose different thresholds to decide whether the throughput level is
10241  * low or medium or high based on variety of parameters like physical link
10242  * capacity of current connection, number of pakcets being dispatched per
10243  * second etc. The throughput level events might not be consistent with the
10244  * actual current throughput value being observed.
10245  *
10246  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10247  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10248  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10249  */
10250 enum qca_wlan_throughput_level {
10251 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10252 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10253 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10254 };
10255 
10256 /**
10257  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10258  * report throughput changes from driver to user space. enum values are used
10259  * for NL attributes sent with
10260  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10261  */
10262 enum qca_wlan_vendor_attr_throughput_change {
10263 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10264 	/*
10265 	 * Indicates the direction of throughput in which the change is being
10266 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10267 	 */
10268 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10269 
10270 	/*
10271 	 * Indicates the newly observed throughput level.
10272 	 * qca_wlan_throughput_level describes the possible range of values.
10273 	 * u8 attribute.
10274 	 */
10275 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10276 
10277 	/*
10278 	 * Indicates the driver's guidance on the new value to be set to
10279 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
10280 	 * may optionally include this attribute.
10281 	 */
10282 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10283 
10284 	/*
10285 	 * Indicates the driver's guidance on the new value to be set to
10286 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
10287 	 * values are from -31 to 31. Driver may optionally include this
10288 	 * attribute.
10289 	 */
10290 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10291 
10292 	/*
10293 	 * Indicates the driver's guidance on the new value to be set to
10294 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
10295 	 * optionally include this attribute.
10296 	 */
10297 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10298 
10299 	/* keep last */
10300 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10301 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10302 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10303 };
10304 
10305 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10306  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10307  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10308  */
10309 enum qca_wlan_nan_ext_subcmd_type {
10310 	/* Subcmd of type NAN Enable Request */
10311 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10312 	/* Subcmd of type NAN Disable Request */
10313 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10314 };
10315 
10316 /**
10317  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10318  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10319  */
10320 enum qca_wlan_vendor_attr_nan_params {
10321 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10322 	/* Carries NAN command for firmware component. Every vendor command
10323 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10324 	 * payload containing the NAN command. NLA_BINARY attribute.
10325 	 */
10326 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10327 	/* Indicates the type of NAN command sent with
10328 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10329 	 * describes the possible range of values. This attribute is mandatory
10330 	 * if the command being issued is either
10331 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10332 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10333 	 */
10334 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10335 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10336 	 * band. This attribute is mandatory when command type is
10337 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10338 	 */
10339 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10340 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10341 	 * band. This attribute is optional and should be included when command
10342 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10343 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10344 	 */
10345 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10346 
10347 	/* keep last */
10348 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10349 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10350 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10351 };
10352 
10353 /**
10354  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10355  * transport modes and is used by attribute
10356  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
10357  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10358  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
10359  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10360  * data. The data shall be encapsulated within
10361  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
10362  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10363  */
10364 enum qca_wlan_vendor_cfr_data_transport_modes {
10365 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10366 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10367 };
10368 
10369 /**
10370  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10371  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10372  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10373  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
10374  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
10375  * with phase
10376  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
10377  */
10378 enum qca_wlan_vendor_cfr_method {
10379 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10380 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10381 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10382 };
10383 
10384 /**
10385  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10386  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10387  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10388  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10389  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10390  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10391  * is provided by one or more of below attributes:
10392  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10393  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10394  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10395  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10396  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10397  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10398  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10399  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10400  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10401  */
10402 enum qca_wlan_vendor_cfr_capture_type {
10403 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10404 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10405 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10406 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10407 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10408 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10409 };
10410 
10411 /**
10412  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10413  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10414  * Channel Frequency Response capture parameters and enable periodic CFR
10415  * capture.
10416  *
10417  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10418  * MAC address of peer. This is for CFR version 1 only.
10419  *
10420  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10421  * Enable peer CFR Capture. This attribute is mandatory to
10422  * enable peer CFR capture. If this attribute is not present,
10423  * peer CFR capture is disabled.
10424  *
10425  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10426  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10427  * Supported values: 20, 40, 80, 80+80, 160.
10428  * Note that all targets may not support all bandwidths.
10429  * This attribute is mandatory for version 1 if attribute
10430  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10431  *
10432  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10433  * Periodicity of CFR measurement in msec.
10434  * Periodicity should be a multiple of Base timer.
10435  * Current Base timer value supported is 10 msecs (default).
10436  * 0 for one shot capture.
10437  * This attribute is mandatory for version 1 if attribute
10438  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10439  *
10440  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10441  * Method used to capture Channel Frequency Response.
10442  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10443  * This attribute is mandatory for version 1 if attribute
10444  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10445  *
10446  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10447  * Enable periodic CFR capture.
10448  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10449  * If this attribute is not present, periodic CFR capture is disabled.
10450  *
10451  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
10452  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10453  * can't be enabled at same time. This attribute is mandatory if target
10454  * support both versions and use one of them.
10455  *
10456  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10457  * This attribute is mandatory for version 2 if
10458  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10459  * Bits 15:0 Bit fields indicating which group to be enabled.
10460  * Bits 31:16 Reserved for future use.
10461  *
10462  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10463  * CFR capture duration in microsecond. This attribute is mandatory for
10464  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10465  *
10466  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10467  * CFR capture interval in microsecond. This attribute is mandatory for
10468  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10469  *
10470  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10471  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10472  * This attribute is mandatory for version 2.
10473  *
10474  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10475  * Bit fields indicating which user in the current UL MU
10476  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
10477  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
10478  * then the CFR capture will happen for user index 0 in the current
10479  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
10480  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
10481  * This is for CFR version 2 only.
10482  *
10483  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10484  * Indicates the number of consecutive Rx packets to be skipped
10485  * before CFR capture is enabled again.
10486  * This is for CFR version 2 only.
10487  *
10488  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10489  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10490  *
10491  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10492  * the following GROUP attributes:
10493  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10494  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10495  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10496  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10497  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10498  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10499  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10500  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10501  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10502  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10503  *
10504  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10505  * Target support multiple groups for some configurations. Group number could be
10506  * any value between 0 and 15. This is for CFR version 2 only.
10507  *
10508  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10509  * Transmitter address which is used to filter packets, this MAC address takes
10510  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
10511  * This is for CFR version 2 only.
10512  *
10513  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10514  * Receiver address which is used to filter packets, this MAC address takes
10515  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
10516  * This is for CFR version 2 only.
10517  *
10518  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10519  * Mask of transmitter address which is used to filter packets.
10520  * This is for CFR version 2 only.
10521  *
10522  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10523  * Mask of receiver address which is used to filter packets.
10524  * This is for CFR version 2 only.
10525  *
10526  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10527  * Indicates packets with a specific NSS will be filtered for CFR capture.
10528  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
10529  * be done for packets matching the NSS specified within this bitmask.
10530  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
10531  *     bit 0 : NSS 1
10532  *     bit 1 : NSS 2
10533  *     ...
10534  *     bit 7 : NSS 8
10535  *
10536  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10537  * Indicates packets with a specific BW will be filtered for CFR capture.
10538  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
10539  * will be done for packets matching the bandwidths specified within this
10540  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
10541  * numerated in enum nl80211_band (although not all bands may be supported
10542  * by a given device).
10543  *
10544  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10545  * Management packets matching the subtype filter categories will be
10546  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10547  * represents the corresponding mgmt subtype value as per
10548  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10549  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
10550  * This is for CFR version 2 only
10551  *
10552  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10553  * Control packets matching the subtype filter categories will be
10554  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10555  * represents the corresponding control subtype value as per
10556  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10557  * This is for CFR version 2 only.
10558  *
10559  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10560  * Data 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 data 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_DATA_TRANSPORT_MODE: Optional (u8)
10567  * Userspace can use this attribute to specify the driver about which transport
10568  * mode shall be used by the driver to send CFR data to userspace. Uses values
10569  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10570  * not present, driver shall choose the default transport mechanism which is
10571  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10572  *
10573  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10574  * Userspace can use this attribute to specify the nl port id of the application
10575  * which receives the CFR data and processes it further so that the drivers can
10576  * unicast the NL events to a specific application. Optionally included when
10577  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10578  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10579  * shall multicast the netlink events when this attribute is not included.
10580  *
10581  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10582  * This attribute will be used by the driver to encapsulate and send CFR data
10583  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10584  * asynchronous event when the driver is configured to send CFR data using NL
10585  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
10586  *
10587  */
10588 enum qca_wlan_vendor_peer_cfr_capture_attr {
10589 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10590 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10591 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10592 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10593 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10594 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10595 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10596 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10597 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10598 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10599 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10600 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10601 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10602 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10603 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10604 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10605 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10606 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10607 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10608 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10609 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10610 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10611 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10612 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10613 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10614 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10615 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10616 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10617 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10618 
10619 	/* Keep last */
10620 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10621 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10622 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10623 };
10624 
10625 /**
10626  * enum qca_coex_config_profiles - This enum defines different types of
10627  * traffic streams that can be prioritized one over the other during coex
10628  * scenarios.
10629  * The types defined in this enum are categorized in the below manner.
10630  * 0 - 31 values corresponds to WLAN
10631  * 32 - 63 values corresponds to BT
10632  * 64 - 95 values corresponds to Zigbee
10633  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10634  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10635  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10636  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10637  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10638  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10639  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10640  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10641  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10642  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10643  * @QCA_BT_A2DP: Prioritize BT A2DP
10644  * @QCA_BT_BLE: Prioritize BT BLE
10645  * @QCA_BT_SCO: Prioritize BT SCO
10646  * @QCA_ZB_LOW: Prioritize Zigbee Low
10647  * @QCA_ZB_HIGH: Prioritize Zigbee High
10648  */
10649 enum qca_coex_config_profiles {
10650 	/* 0 - 31 corresponds to WLAN */
10651 	QCA_WIFI_STA_DISCOVERY = 0,
10652 	QCA_WIFI_STA_CONNECTION = 1,
10653 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10654 	QCA_WIFI_STA_DATA = 3,
10655 	QCA_WIFI_STA_ALL = 4,
10656 	QCA_WIFI_SAP_DISCOVERY = 5,
10657 	QCA_WIFI_SAP_CONNECTION = 6,
10658 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10659 	QCA_WIFI_SAP_DATA = 8,
10660 	QCA_WIFI_SAP_ALL = 9,
10661 	QCA_WIFI_CASE_MAX = 31,
10662 	/* 32 - 63 corresponds to BT */
10663 	QCA_BT_A2DP = 32,
10664 	QCA_BT_BLE = 33,
10665 	QCA_BT_SCO = 34,
10666 	QCA_BT_CASE_MAX = 63,
10667 	/* 64 - 95 corresponds to Zigbee */
10668 	QCA_ZB_LOW = 64,
10669 	QCA_ZB_HIGH = 65,
10670 	QCA_ZB_CASE_MAX = 95,
10671 	/* 0xff is default value if the u8 profile value is not set. */
10672 	QCA_PROFILE_DEFAULT_VALUE = 255
10673 };
10674 
10675 /**
10676  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10677  * This enum defines the valid set of values of coex configuration types. These
10678  * values may used by attribute
10679  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10680  *
10681  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10682  *	weights to default values.
10683  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10684  *	weights with configurability value.
10685  */
10686 enum qca_vendor_attr_coex_config_types {
10687 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10688 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10689 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
10690 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
10691 };
10692 
10693 /**
10694  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10695  * attributes
10696  * Attributes for data used by
10697  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10698  *
10699  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10700  * Indicate config type.
10701  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
10702  *
10703  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10704  *	Indicate the Priority 1 profiles.
10705  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10706  *	In same priority level, maximum to 4 profiles can be set here.
10707  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10708  *	Indicate the Priority 2 profiles.
10709  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10710  *	In same priority level, maximum to 4 profiles can be set here.
10711  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10712  *	Indicate the Priority 3 profiles.
10713  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10714  *	In same priority level, maximum to 4 profiles can be set here.
10715  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10716  *	Indicate the Priority 4 profiles.
10717  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10718  *	In same priority level, maximum to 4 profiles can be set here.
10719  * NOTE:
10720  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10721  * arrangement:
10722  *	1: In the same u32 attribute(priority x), the profiles enum values own
10723  *	same priority level.
10724  *	2: 0xff is default value if the u8 profile value is not set.
10725  *	3: max to 4 rules/profiles in same priority level.
10726  *	4: max to 4 priority level (priority 1 - priority 4)
10727  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
10728  *	hybrid rules not support.
10729  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10730  *	remain blank to reset all parameters.
10731  * For example:
10732  *
10733  *	If the attributes as follow:
10734  *	priority 1:
10735  *	------------------------------------
10736  *	|  0xff  |    0   |   1   |    2   |
10737  *	------------------------------------
10738  *	priority 2:
10739  *	-------------------------------------
10740  *	|  0xff  |  0xff  |  0xff  |   32   |
10741  *	-------------------------------------
10742  *	priority 3:
10743  *	-------------------------------------
10744  *	|  0xff  |  0xff  |  0xff  |   65   |
10745  *	-------------------------------------
10746  *	then it means:
10747  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10748  *		owns same priority level.
10749  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10750  *		has priority over BT_A2DP and ZB_HIGH.
10751  *	3: BT_A2DP has priority over ZB_HIGH.
10752  */
10753 
10754 enum qca_vendor_attr_coex_config_three_way {
10755 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10756 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10757 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10758 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10759 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10760 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10761 
10762 	/* Keep last */
10763 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10764 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10765 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10766 };
10767 
10768 /**
10769  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10770  * This enum defines the valid set of values of peer stats cache types. These
10771  * values are used by attribute
10772  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
10773  *
10774  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
10775  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
10776  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
10777  * statistics
10778  */
10779 enum qca_vendor_attr_peer_stats_cache_type {
10780 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10781 
10782 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10783 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10784 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10785 };
10786 
10787 /**
10788  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10789  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10790  * Attributes are required to flush peer rate statistics from driver to
10791  * user application.
10792  *
10793  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10794  * Indicate peer stats cache type.
10795  * The statistics types are 32-bit values from
10796  * qca_vendor_attr_peer_stats_cache_type
10797  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10798  * of size 6, representing peer mac address.
10799  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10800  * containing buffer of statistics to send event to application layer entity.
10801  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10802  * representing cookie for peer unique session.
10803  */
10804 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10805 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10806 
10807 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10808 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10809 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10810 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10811 
10812 	/* Keep last */
10813 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10814 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10815 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10816 };
10817 
10818 /**
10819  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
10820  * this enum defines all the possible state of zigbee, which can be
10821  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
10822  *
10823  * @ZIGBEE_IDLE: zigbee in idle state
10824  * @ZIGBEE_FORM_NETWORK: zibee forming network
10825  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
10826  * @ZIGBEE_JOIN: zigbee joining network
10827  * @ZIGBEE_NETWORK_UP: zigbee network is up
10828  * @ZIGBEE_HMI: zigbee in HMI mode
10829  */
10830 enum qca_mpta_helper_attr_zigbee_state {
10831 	ZIGBEE_IDLE = 0,
10832 	ZIGBEE_FORM_NETWORK = 1,
10833 	ZIGBEE_WAIT_JOIN = 2,
10834 	ZIGBEE_JOIN = 3,
10835 	ZIGBEE_NETWORK_UP = 4,
10836 	ZIGBEE_HMI = 5,
10837 };
10838 
10839 /**
10840  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
10841  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10842  */
10843 enum qca_mpta_helper_vendor_attr {
10844 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10845 	/* Optional attribute used to update zigbee state.
10846 	 * enum qca_mpta_helper_attr_zigbee_state.
10847 	 * NLA_U32 attribute.
10848 	 */
10849 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10850 	/* Optional attribute used to configure wlan duration for Shape-OCS
10851 	 * during interrupt.
10852 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10853 	 * Value range 0 ~ 300 (ms).
10854 	 * NLA_U32 attribute.
10855 	 */
10856 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10857 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10858 	 * during interrupt.
10859 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10860 	 * Value range 0 ~ 300 (ms).
10861 	 * NLA_U32 attribute.
10862 	 */
10863 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10864 	/* Optional attribute used to configure wlan duration for Shape-OCS
10865 	 * monitor period.
10866 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
10867 	 * Value range 0 ~ 300 (ms)
10868 	 * NLA_U32 attribute
10869 	 */
10870 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
10871 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10872 	 * monitor period.
10873 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
10874 	 * Value range 0 ~ 300 (ms)
10875 	 * NLA_U32 attribute
10876 	 */
10877 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
10878 	/* Optional attribute used to configure ocs interrupt duration.
10879 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
10880 	 * Value range 1000 ~ 20000 (ms)
10881 	 * NLA_U32 attribute
10882 	 */
10883 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
10884 	/* Optional attribute used to configure ocs monitor duration.
10885 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
10886 	 * Value range 1000 ~ 20000 (ms)
10887 	 * NLA_U32 attribute
10888 	 */
10889 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
10890 	/* Optional attribute used to notify wlan FW current zigbee channel.
10891 	 * Value range 11 ~ 26
10892 	 * NLA_U32 attribute
10893 	 */
10894 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
10895 	/* Optional attribute used to configure wlan mute duration.
10896 	 * Value range 0 ~ 400 (ms)
10897 	 * NLA_U32 attribute
10898 	 */
10899 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
10900 
10901 	/* keep last */
10902 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
10903 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
10904 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
10905 };
10906 
10907 /**
10908  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
10909  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
10910  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
10911  *
10912  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
10913  * to request the driver to start reporting Beacon frames.
10914  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
10915  * to request the driver to stop reporting Beacon frames.
10916  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
10917  * userspace to report received Beacon frames.
10918  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
10919  * to indicate that the driver is going to pause reporting Beacon frames.
10920  */
10921 enum qca_wlan_vendor_beacon_reporting_op_types {
10922 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
10923 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
10924 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
10925 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
10926 };
10927 
10928 /**
10929  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
10930  * types of reasons for which the driver is pausing reporting Beacon frames.
10931  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
10932  *
10933  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
10934  * reasons.
10935  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
10936  * driver/firmware is starting a scan.
10937  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
10938  * driver/firmware disconnects from the ESS and indicates the disconnection to
10939  * userspace (non-seamless roaming case). This reason code will be used by the
10940  * driver/firmware to indicate stopping of beacon report events. Userspace
10941  * will need to start beacon reporting again (if desired) by sending vendor
10942  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
10943  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
10944  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
10945  * completed.
10946  */
10947 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
10948 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
10949 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
10950 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
10951 };
10952 
10953 /*
10954  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
10955  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
10956  */
10957 enum qca_wlan_vendor_attr_beacon_reporting_params {
10958 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
10959 	/* Specifies the type of operation that the vendor command/event is
10960 	 * intended for. Possible values for this attribute are defined in
10961 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
10962 	 */
10963 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
10964 	/* Optionally set by userspace to request the driver to report Beacon
10965 	 * frames using asynchronous vendor events when the
10966 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10967 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
10968 	 * If this flag is not set, the driver will only update Beacon frames
10969 	 * in cfg80211 scan cache but not send any vendor events.
10970 	 */
10971 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
10972 	/* Optionally used by userspace to request the driver/firmware to
10973 	 * report Beacon frames periodically when the
10974 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10975 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
10976 	 * u32 attribute, indicates the period of Beacon frames to be reported
10977 	 * and in the units of beacon interval.
10978 	 * If this attribute is missing in the command, then the default value
10979 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
10980 	 * Zero is an invalid value.
10981 	 * If a valid value is received for this attribute, the driver will
10982 	 * update the cfg80211 scan cache periodically as per the value
10983 	 * received in this attribute in addition to updating the cfg80211 scan
10984 	 * cache when there is significant change in Beacon frame IEs.
10985 	 */
10986 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
10987 	/* Used by the driver to encapsulate the SSID when the
10988 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
10989 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
10990 	 * u8 array with a maximum size of 32.
10991 	 *
10992 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
10993 	 * will be taken from the SSID element of the received Beacon frame.
10994 	 *
10995 	 * When generating beacon report from Multiple BSSID Beacon frame and
10996 	 * if the BSSID of the current connected BSS matches the BSSID of the
10997 	 * transmitting BSS, the SSID will be taken from the SSID element of
10998 	 * the received Beacon frame.
10999 	 *
11000 	 * When generating beacon report from Multiple BSSID Beacon frame and
11001 	 * if the BSSID of the current connected BSS matches the BSSID of one
11002 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
11003 	 * field included in the nontransmitted BSS profile whose derived BSSI
11004 	 * is same as the BSSID of the current connected BSS. When there is no
11005 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11006 	 * of current connected* BSS, this attribute will not be present.
11007 	 */
11008 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11009 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
11010 	 * is currently connected to when the
11011 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11012 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11013 	 * fixed size of 6 bytes.
11014 	 *
11015 	 * When generating beacon report from a Multiple BSSID beacon and the
11016 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
11017 	 * a Multiple BSSID set, this BSSID will be that particular
11018 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
11019 	 * transmitting address of the Beacon frame).
11020 	 */
11021 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11022 	/* Used by the driver to encapsulate the frequency in MHz on which
11023 	 * the Beacon frame was received when the
11024 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11025 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11026 	 * u32 attribute.
11027 	 */
11028 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11029 	/* Used by the driver to encapsulate the Beacon interval
11030 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11031 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11032 	 * u16 attribute. The value will be copied from the Beacon frame and
11033 	 * the units are TUs.
11034 	 */
11035 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11036 	/* Used by the driver to encapsulate the Timestamp field from the
11037 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
11038 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11039 	 * u64 attribute.
11040 	 */
11041 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11042 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11043 	 * Beacon frame is received in the driver when the
11044 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11045 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11046 	 * the units of nanoseconds. This value is expected to have accuracy of
11047 	 * about 10 ms.
11048 	 */
11049 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11050 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
11051 	 * which this event is generated when the
11052 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11053 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11054 	 */
11055 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11056 	/* Used by the driver to specify the reason for the driver/firmware to
11057 	 * pause sending beacons to userspace when the
11058 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11059 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11060 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11061 	 * attribute.
11062 	 */
11063 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11064 	/* Used by the driver to specify whether the driver will automatically
11065 	 * resume reporting beacon events to userspace later (for example after
11066 	 * the ongoing off-channel activity is completed etc.) when the
11067 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11068 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11069 	 */
11070 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11071 	/* Optionally set by userspace to request the driver not to resume
11072 	 * beacon reporting after a pause is completed, when the
11073 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11074 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11075 	 * If this flag is set, the driver will not resume beacon reporting
11076 	 * after any pause in beacon reporting is completed. Userspace has to
11077 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11078 	 * to initiate beacon reporting again. If this flag is set in the recent
11079 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11080 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11081 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11082 	 * set by the driver. Setting this flag until and unless there is a
11083 	 * specific need is not recommended as there is a chance of some beacons
11084 	 * received after pause command and next start command being not
11085 	 * reported.
11086 	 */
11087 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
11088 
11089 	/* Keep last */
11090 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11091 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11092 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11093 };
11094 
11095 /**
11096  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11097  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11098  *
11099  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11100  * a virtual device.
11101  *
11102  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11103  * a physical device.
11104  */
11105 enum qca_vendor_oem_device_type {
11106 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11107 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11108 };
11109 
11110 /*
11111  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
11112  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11113  *
11114  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11115  * used to set/query the data to/from the firmware. On query, the same
11116  * attribute is used to carry the respective data in the reply sent by the
11117  * driver to userspace. The request to set/query the data and the format of the
11118  * respective data from the firmware are embedded in the attribute. The
11119  * maximum size of the attribute payload is 1024 bytes.
11120  *
11121  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11122  * based on this field. This optional attribute is included to specify whether
11123  * the device type is a virtual device or a physical device for the command.
11124  * This attribute can be omitted for a virtual device (default) command.
11125  * This u8 attribute is used to carry information for the device type using
11126  * values defined by enum qca_vendor_oem_device_type.
11127  *
11128  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11129  * attribute when the data is queried from the firmware.
11130  *
11131  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11132  * is set when the userspace queries data from the firmware. This attribute
11133  * should not be set when userspace sets the OEM data to the firmware.
11134  */
11135 enum qca_wlan_vendor_attr_oem_data_params {
11136 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11137 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11138 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
11139 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
11140 
11141 	/* keep last */
11142 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11143 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11144 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11145 };
11146 
11147 /**
11148  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11149  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11150  *
11151  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11152  * Nested attribute containing multiple ranges with following attributes:
11153  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11154  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11155  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
11156  *
11157  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11158  * Starting center frequency in MHz.
11159  *
11160  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11161  * Ending center frequency in MHz.
11162  *
11163  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11164  * s32 attribute, optional. It is a per frequency range attribute.
11165  * The maximum TX power limit from user space is to be applied on an
11166  * unrestricted interface for corresponding frequency range. It is also
11167  * possible that the actual TX power may be even lower than this cap due to
11168  * other considerations such as regulatory compliance, SAR, etc. In absence of
11169  * this attribute the driver shall follow current behavior which means
11170  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11171  * power derived by the driver based on regulatory/SAR during interface up.
11172  *
11173  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11174  * u32 attribute, optional. Indicates all the interface types which are
11175  * restricted for all frequency ranges provided in
11176  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11177  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11178  * This attribute encapsulates bitmasks of interface types defined in
11179  * enum nl80211_iftype. If an interface is marked as restricted the driver must
11180  * move to a safe channel and if no safe channel is available the driver shall
11181  * terminate that interface functionality. In absence of this attribute,
11182  * interface (SAP/P2P) can still continue operating on an unsafe channel with
11183  * TX power limit derived from either
11184  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11185  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11186  * is not provided.
11187  */
11188 enum qca_wlan_vendor_attr_avoid_frequency_ext {
11189 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11190 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11191 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11192 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
11193 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11194 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
11195 
11196 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11197 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11198 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11199 };
11200 
11201 /*
11202  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11203  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11204  */
11205 enum qca_wlan_vendor_attr_add_sta_node_params {
11206 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11207 	/* 6 byte MAC address of STA */
11208 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11209 	/* Authentication algorithm used by the station of size u16;
11210 	 * defined in enum nl80211_auth_type.
11211 	 */
11212 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11213 
11214 	/* keep last */
11215 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11216 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11217 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11218 };
11219 
11220 /**
11221  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11222  * This enum defines the valid set of values of BT coex chain mode.
11223  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11224  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11225  *
11226  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11227  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11228  * separated, hybrid mode.
11229  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11230  * separated, fixed FDD mode.
11231  */
11232 enum qca_btc_chain_mode {
11233 	QCA_BTC_CHAIN_SHARED = 0,
11234 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11235 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
11236 };
11237 
11238 /* deprecated legacy name */
11239 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11240 
11241 /**
11242  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11243  * chain mode.
11244  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11245  *
11246  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11247  * Indicates the BT coex chain mode, are 32-bit values from
11248  * enum qca_btc_chain_mode. This attribute is mandatory.
11249  *
11250  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11251  * If set, vdev should be restarted when BT coex chain mode is updated.
11252  * This attribute is optional.
11253  */
11254 enum qca_vendor_attr_btc_chain_mode {
11255 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11256 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11257 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11258 
11259 	/* Keep last */
11260 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11261 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11262 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11263 };
11264 
11265 /**
11266  * enum qca_vendor_wlan_sta_flags - Station feature flags
11267  * Bits will be set to 1 if the corresponding features are enabled.
11268  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11269  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11270     for the station
11271  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11272     for the station
11273  */
11274 enum qca_vendor_wlan_sta_flags {
11275 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11276 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11277 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11278 };
11279 
11280 /**
11281  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11282  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11283  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11284  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11285  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11286  */
11287 enum qca_vendor_wlan_sta_guard_interval {
11288 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11289 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11290 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11291 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11292 };
11293 
11294 /**
11295  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11296  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11297  *
11298  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11299  * Required attribute in request for AP mode only, 6-byte MAC address,
11300  * corresponding to the station's MAC address for which information is
11301  * requested. For STA mode this is not required as the info always correspond
11302  * to the self STA and the current/last association.
11303  *
11304  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11305  * Optionally used in response, u32 attribute, contains a bitmap of different
11306  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11307  *
11308  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11309  * Optionally used in response, u32 attribute, possible values are defined in
11310  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11311  * Guard interval used by the station.
11312  *
11313  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11314  * Optionally used in response, u32 attribute, used in AP mode only.
11315  * Value indicates the number of data frames received from station with retry
11316  * bit set to 1 in FC.
11317  *
11318  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11319  * Optionally used in response, u32 attribute, used in AP mode only.
11320  * Counter for number of data frames with broadcast or multicast address in
11321  * the destination address received from the station.
11322  *
11323  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11324  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11325  * Value indicates the number of data frames successfully transmitted only
11326  * after retrying the packets and for which the TX status has been updated
11327  * back to host from target.
11328  *
11329  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11330  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11331  * Value indicates the number of data frames not transmitted successfully even
11332  * after retrying the packets for the number of times equal to the total number
11333  * of retries allowed for that packet and for which the TX status has been
11334  * updated back to host from target.
11335  *
11336  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11337  * Optionally used in response, u32 attribute, used in AP mode only.
11338  * Counter in the target for the number of data frames successfully transmitted
11339  * to the station.
11340  *
11341  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11342  * Optionally used in response, u32 attribute, used in AP mode only.
11343  * Value indicates the number of data frames successfully transmitted only
11344  * after retrying the packets.
11345  *
11346  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11347  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11348  * Value indicates the number of data frames not transmitted successfully even
11349  * after retrying the packets for the number of times equal to the total number
11350  * of retries allowed for that packet.
11351  *
11352  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11353  * the STA mode only. Represent the number of probe requests sent by the STA
11354  * while attempting to roam on missing certain number of beacons from the
11355  * connected AP. If queried in the disconnected state, this represents the
11356  * count for the last connected state.
11357  *
11358  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11359  * the STA mode. Represent the number of probe responses received by the station
11360  * while attempting to roam on missing certain number of beacons from the
11361  * connected AP. When queried in the disconnected state, this represents the
11362  * count when in last connected state.
11363  *
11364  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11365  * STA mode only. Represents the total number of frames sent out by STA
11366  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11367  * only for the connect session. Represents the count of last connected session,
11368  * when queried in the disconnected state.
11369  *
11370  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11371  * Total number of RTS sent out by the STA. This data is maintained per connect
11372  * session. Represents the count of last connected session, when queried in the
11373  * disconnected state.
11374  *
11375  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11376  * STA mode.Represent the number of RTS transmission failure that reach retry
11377  * limit. This data is maintained per connect session. Represents the count of
11378  * last connected session, when queried in the disconnected state.
11379  *
11380  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11381  * the STA mode. Represent the total number of non aggregated frames transmitted
11382  * by the STA. This data is maintained per connect session. Represents the count
11383  * of last connected session, when queried in the disconnected state.
11384  *
11385  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11386  * STA mode. Represent the total number of aggregated frames transmitted by the
11387  * STA. This data is maintained per connect session. Represents the count of
11388  * last connected session, when queried in the disconnected state.
11389  *
11390  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11391  * the STA mode. Represents the number of received frames with a good PLCP. This
11392  * data is maintained per connect session. Represents the count of last
11393  * connected session, when queried in the disconnected state.
11394  *
11395  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11396  * used in the STA mode. Represents the number of occasions that no valid
11397  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11398  * session. Represents the count of last connected session, when queried in the
11399  * disconnected state.
11400  *
11401  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11402  * STA mode. Represents the number of frames for which CRC check failed in the
11403  * MAC. This data is maintained per connect session. Represents the count of
11404  * last connected session, when queried in the disconnected state.
11405  *
11406  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11407  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11408  * data is maintained per connect session. Represents the count of last
11409  * connected session, when queried in the disconnected state.
11410  *
11411  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11412  * mode. Represents the number of received Block Acks. This data is maintained
11413  * per connect session. Represents the count of last connected session, when
11414  * queried in the disconnected state.
11415  *
11416  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11417  * mode. Represents the number of beacons received from the connected BSS. This
11418  * data is maintained per connect session. Represents the count of last
11419  * connected session, when queried in the disconnected state.
11420  *
11421  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11422  * STA mode. Represents the number of beacons received by the other BSS when in
11423  * connected state (through the probes done by the STA). This data is maintained
11424  * per connect session. Represents the count of last connected session, when
11425  * queried in the disconnected state.
11426  *
11427  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11428  * the STA mode. Represents the number of received DATA frames with good FCS and
11429  * matching Receiver Address when in connected state. This data is maintained
11430  * per connect session. Represents the count of last connected session, when
11431  * queried in the disconnected state.
11432  *
11433  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11434  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11435  * when in the connected state. This data is maintained per connect session.
11436  * Represents the count of last connected session, when queried in the
11437  * disconnected state.
11438  *
11439  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11440  * STA mode. This represents the target power in dBm for the transmissions done
11441  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11442  * connect session. Represents the count of last connected session, when
11443  * queried in the disconnected state.
11444  *
11445  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11446  * STA mode. This represents the Target power in dBm for transmissions done to
11447  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11448  * session. Represents the count of last connected session, when queried in the
11449  * disconnected state.
11450  *
11451  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11452  * STA mode. This represents the Target power in dBm for transmissions done to
11453  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11454  * Represents the count of last connected session, when queried in the
11455  * disconnected state.
11456  *
11457  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11458  * STA mode. This represents the Target power in dBm for transmissions done to
11459  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11460  * session. Represents the count of last connected session, when queried in
11461  * the disconnected state.
11462  *
11463  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11464  * STA mode. This represents the Target power in dBm for for transmissions done
11465  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11466  * Represents the count of last connected session, when queried in the
11467  * disconnected state.
11468  *
11469  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11470  * in the STA mode. This represents the Nested attribute representing the
11471  * overflow counts of each receive buffer allocated to the hardware during the
11472  * STA's connection. The number of hw buffers might vary for each WLAN
11473  * solution and hence this attribute represents the nested array of all such
11474  * HW buffer count. This data is maintained per connect session. Represents
11475  * the count of last connected session, when queried in the disconnected state.
11476  *
11477  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11478  * allowed as per the regulatory requirements for the current or last connected
11479  * session. Used in the STA mode.
11480  *
11481  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11482  * (dBm) used by the station in its latest unicast frame while communicating
11483  * to the AP in the connected state. When queried in the disconnected state,
11484  * this represents the TX power used by the STA with last AP communication
11485  * when in connected state.
11486  *
11487  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11488  * level used to adjust the RX sensitivity. Represents the current ANI level
11489  * when queried in the connected state. When queried in the disconnected
11490  * state, this corresponds to the latest ANI level at the instance of
11491  * disconnection.
11492  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11493  * only. This represents the number of group addressed robust management frames
11494  * received from this station with an invalid MIC or a missing MME when PMF is
11495  * enabled.
11496  *
11497  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11498  * only. This represents the number of group addressed robust management frames
11499  * received from this station with the packet number less than or equal to the
11500  * last received packet number when PMF is enabled.
11501  *
11502  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11503  * mode only. This represents the number of Beacon frames received from this
11504  * station with an invalid MIC or a missing MME when beacon protection is
11505  * enabled.
11506  *
11507  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11508  * only. This represents number of Beacon frames received from this station with
11509  * the packet number less than or equal to the last received packet number when
11510  * beacon protection is enabled.
11511  *
11512  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11513  * STA mode only. Driver uses this attribute to populate the connection failure
11514  * reason codes and the values are defined in
11515  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11516  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11517  * connection failure from driver. The driver shall not include this attribute
11518  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
11519  * connection failure observed in the last attempted connection.
11520  *
11521  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11522  * used by the station in its last TX frame while communicating to the AP in the
11523  * connected state. When queried in the disconnected state, this represents the
11524  * rate used by the STA in the last TX frame to the AP when it was connected.
11525  * This attribute is used for STA mode only.
11526  *
11527  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11528  * This represents the rate index used by the STA for the last TX frame to the
11529  * AP. When queried in the disconnected state, this gives the last RIX used by
11530  * the STA in the last TX frame to the AP when it was connected.
11531  *
11532  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11533  * mode only. This represents the number of times the STA TSF goes out of sync
11534  * from the AP after the connection. If queried in the disconnected state, this
11535  * gives the count of TSF out of sync for the last connection.
11536  *
11537  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11538  * mode only. This represents the roam trigger reason for the last roaming
11539  * attempted by the firmware. This can be queried either in connected state or
11540  * disconnected state. Each bit of this attribute represents the different
11541  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11542  *
11543  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11544  * only. This represents the roam fail reason for the last failed roaming
11545  * attempt by the firmware. Different roam failure reason codes are specified
11546  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11547  * connected state or disconnected state.
11548  *
11549  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11550  * STA mode only. This represents the roam invoke fail reason for the last
11551  * failed roam invoke. Different roam invoke failure reason codes
11552  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11553  * queried either in connected state or disconnected state.
11554  *
11555  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11556  * This represents the average congestion duration of uplink frames in MAC
11557  * queue in unit of ms. This can be queried either in connected state or
11558  * disconnected state.
11559  *
11560  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
11561  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11562  * rate value of TX packets. Every index of this nested attribute corresponds
11563  * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
11564  * queried in connected state.
11565  *
11566  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
11567  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11568  * rate value of RX packets. Every index of this nested attribute corresponds
11569  * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
11570  * queried in connected state.
11571  */
11572 enum qca_wlan_vendor_attr_get_sta_info {
11573 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11574 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11575 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11576 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11577 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11578 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11579 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11580 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11581 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11582 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11583 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
11584 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11585 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11586 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11587 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11588 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11589 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11590 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11591 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11592 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11593 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11594 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11595 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11596 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11597 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11598 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11599 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11600 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11601 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11602 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11603 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11604 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11605 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11606 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11607 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11608 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11609 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11610 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11611 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11612 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11613 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
11614 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11615 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11616 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11617 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11618 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11619 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
11620 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
11621 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11622 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
11623 
11624 	/* keep last */
11625 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11626 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11627 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11628 };
11629 
11630 /**
11631  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11632  * Used when the driver triggers the STA to disconnect from the AP.
11633  *
11634  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11635  * disconnection with the AP due to unspecified reasons.
11636  *
11637  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11638  * disconnection with the AP due to a roaming failure. This roaming is triggered
11639  * internally (host driver/firmware).
11640  *
11641  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11642  * the AP when the user/external triggered roaming fails.
11643  *
11644  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11645  * by the host driver whenever gateway reachability failure is detected and the
11646  * driver disconnects with AP.
11647  *
11648  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11649  * the AP on a channel switch announcement from it with an unsupported channel.
11650  *
11651  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11652  * with indoor channels disabled and if the STA is connected on one of these
11653  * disabled channels, the host driver disconnected the STA with this reason
11654  * code.
11655  *
11656  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11657  * explicit request from the user to disable the current operating channel.
11658  *
11659  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11660  * the internal host driver/firmware recovery.
11661  *
11662  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11663  * a timeout for the key installations from the user space.
11664  *
11665  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11666  * STA on a band change request from the user space to a different band from the
11667  * current operation channel/band.
11668  *
11669  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11670  * interface down trigger from the user space.
11671  *
11672  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11673  * STA on getting continuous transmission failures for multiple Data frames.
11674  *
11675  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11676  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11677  * represents inactivity from AP on such transmissions.
11678 
11679  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11680  * disconnection when SA Query times out (AP does not respond to SA Query).
11681  *
11682  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11683  * STA on missing the beacons continuously from the AP.
11684  *
11685  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11686  * able to move to the channel mentioned by the AP in CSA.
11687  *
11688  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11689  */
11690 enum qca_disconnect_reason_codes {
11691 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11692 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11693 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11694 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11695 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11696 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11697 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11698 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11699 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11700 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11701 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11702 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11703 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11704 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11705 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11706 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11707 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11708 };
11709 
11710 /**
11711  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11712  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11713  *
11714  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11715  * This attribute represents the driver specific reason codes (local
11716  * driver/firmware initiated reasons for disconnection) defined
11717  * in enum qca_disconnect_reason_codes.
11718  */
11719 enum qca_wlan_vendor_attr_driver_disconnect_reason {
11720 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11721 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11722 
11723 	/* keep last */
11724 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11725 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11726 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11727 };
11728 
11729 /**
11730  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11731  *
11732  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11733  */
11734 enum qca_wlan_tspec_operation {
11735 	QCA_WLAN_TSPEC_ADD = 0,
11736 	QCA_WLAN_TSPEC_DEL = 1,
11737 	QCA_WLAN_TSPEC_GET = 2,
11738 };
11739 
11740 /**
11741  * enum qca_wlan_tspec_direction - Direction in TSPEC
11742  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11743  *
11744  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11745  */
11746 enum qca_wlan_tspec_direction {
11747 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11748 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11749 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11750 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11751 };
11752 
11753 /**
11754  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
11755  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11756  *
11757  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11758  */
11759 enum qca_wlan_tspec_ack_policy {
11760 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11761 	QCA_WLAN_TSPEC_NO_ACK = 1,
11762 	/* Reserved */
11763 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11764 };
11765 
11766 /**
11767  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11768  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11769  *
11770  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11771  * u8 attribute. Specify the TSPEC operation of this request. Possible values
11772  * are defined in enum qca_wlan_tspec_operation.
11773  * Mandatory attribute for all kinds of config TSPEC requests.
11774  *
11775  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11776  * u8 attribute. TS ID. Possible values are 0-7.
11777  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11778  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11779  *
11780  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11781  * u8 attribute. Direction of data carried by the TS. Possible values are
11782  * defined in enum qca_wlan_tspec_direction.
11783  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11784  *
11785  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11786  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11787  * with the TS. set - enabled, not set - disabled.
11788  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11789  *
11790  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11791  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
11792  * belonging to this TS. Possible values are 0-7.
11793  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11794  *
11795  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11796  * u8 attribute. Indicate whether MAC acknowledgements are required for
11797  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11798  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11799  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11800  *
11801  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11802  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11803  * belonging to this TS.
11804  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11805  *
11806  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11807  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11808  * belonging to this TS.
11809  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11810  *
11811  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11812  * u32 attribute. Specify the minimum interval in microseconds between the
11813  * start of two successive SPs.
11814  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11815  *
11816  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11817  * u32 attribute. Specify the maximum interval in microseconds between the
11818  * start of two successive SPs.
11819  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11820  *
11821  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11822  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11823  * without arrival or transfer of an MPDU belonging to the TS before this TS
11824  * is deleted by the MAC entity at the HC.
11825  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11826  *
11827  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11828  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11829  * without arrival or transfer of an MSDU belonging to the TS before the
11830  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11831  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11832  * interval is always less than or equal to the inactivity interval.
11833  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11834  *
11835  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11836  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11837  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11838  * bounds of this TSPEC.
11839  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11840  *
11841  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11842  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11843  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11844  * bounds of this TSPEC.
11845  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11846  *
11847  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11848  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11849  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11850  * the bounds of this TSPEC.
11851  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11852  *
11853  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11854  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11855  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11856  * value of 0 indicates that there are no bursts.
11857  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11858  *
11859  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11860  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11861  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11862  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11863  *
11864  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11865  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
11866  * and above the stated application rates required to transport an MSDU/A-MSDU
11867  * belonging to the TS in this TSPEC.
11868  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11869  */
11870 enum qca_wlan_vendor_attr_config_tspec {
11871 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
11872 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
11873 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
11874 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
11875 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
11876 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
11877 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
11878 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
11879 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
11880 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
11881 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
11882 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
11883 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
11884 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
11885 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
11886 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
11887 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
11888 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
11889 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
11890 
11891 	/* keep last */
11892 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
11893 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
11894 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
11895 };
11896 
11897 /**
11898  * enum qca_wlan_medium_assess_type - Type of medium assess request
11899  *
11900  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
11901  */
11902 enum qca_wlan_medium_assess_type {
11903 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
11904 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
11905 };
11906 
11907 /**
11908  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
11909  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
11910  *
11911  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
11912  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
11913  * Specify the type of medium assess request and indicate its type in response.
11914  * Possible values are defined in enum qca_wlan_medium_assess_type.
11915  *
11916  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
11917  * u32 attribute. Mandatory in CCA request.
11918  * Specify the assessment period in terms of seconds. Assessment result will be
11919  * sent as the response to the CCA request after the assessment period.
11920  *
11921  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
11922  * u32 attribute. Mandatory in response to CCA request.
11923  * Total timer tick count of the assessment cycle.
11924  *
11925  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
11926  * u32 attribute. Mandatory in response to CCA request.
11927  * Timer tick count of idle time in the assessment cycle.
11928  *
11929  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
11930  * u32 attribute. Mandatory in response to CCA request.
11931  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
11932  *
11933  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
11934  * u32 attribute. Mandatory in response to CCA request.
11935  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
11936  *
11937  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
11938  * s32 attribute. Mandatory in response to CCA request.
11939  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
11940  *
11941  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
11942  * s32 attribute. Mandatory in response to CCA request.
11943  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
11944  *
11945  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
11946  * u8 attribute. Mandatory in congestion report request.
11947  * 1-enable 0-disable.
11948  *
11949  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
11950  * u8 attribute. Mandatory in congestion report enable request and will be
11951  * ignored if present in congestion report disable request. Possible values are
11952  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
11953  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
11954  * congestion percentage reaches the configured threshold.
11955  *
11956  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
11957  * u8 attribute. Optional in congestion report enable request and will be
11958  * ignored if present in congestion report disable request.
11959  * Specify the interval of congestion report event in terms of seconds. Possible
11960  * values are 1-255. Default value 1 will be used if this attribute is omitted
11961  * or using invalid values.
11962  *
11963  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
11964  * u8 attribute. Mandatory in congestion report event.
11965  * Indicate the actual congestion percentage. Possible values are 0-100.
11966  */
11967 enum qca_wlan_vendor_attr_medium_assess {
11968 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
11969 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
11970 
11971 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
11972 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
11973 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
11974 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
11975 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
11976 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
11977 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
11978 
11979 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
11980 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
11981 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
11982 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
11983 
11984 	/* keep last */
11985 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
11986 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
11987 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
11988 };
11989 
11990 /**
11991  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
11992  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
11993  *
11994  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
11995  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
11996  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
11997  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
11998  *
11999  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12000  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
12001  *
12002  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12003  * u8 attribute, required. indicates group id of Tx VDEV
12004  *
12005  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12006  * Nested attribute. This attribute shall be used by the driver to send
12007  * group information. The attributes defined in enum
12008  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12009  * are nested in this attribute.
12010  */
12011 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12012 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12013 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
12014 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12015 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12016 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
12017 
12018 	/* keep last */
12019 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12020 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12021 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12022 };
12023 
12024 /**
12025  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12026  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12027  *
12028  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12029  * u32 attribute, required. contains interface index.
12030  *
12031  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12032  * u8 attribute, required. 0 - means vdev is in down state.
12033  * 1- means vdev is in up state.
12034  */
12035 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12036 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12037 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12038 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12039 
12040 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12041 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12042 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12043 };
12044 
12045 /**
12046  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12047  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12048  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12049  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12050  * frame
12051  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12052  * Request frame.
12053  */
12054 enum qca_wlan_vendor_oci_override_frame_type {
12055 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12056 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12057 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12058 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12059 };
12060 
12061 /**
12062  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12063  *
12064  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12065  * STA interface has to be given while selecting the connection policies
12066  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12067  * An interface is set as primary through the attribute
12068  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12069  * applicable if the primary interface has not been set earlier.
12070  *
12071  * The intention is not to downgrade the primary STA performance, such as:
12072  * - Do not reduce the number of TX/RX chains of primary connection.
12073  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12074  *   chains.
12075  * - If using MCC, should set the MCC duty cycle of the primary connection to
12076  *   be higher than the secondary connection.
12077  *
12078  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12079  * subsequent STA connection shall be chosen to balance with the existing
12080  * concurrent STA's performance.
12081  * Such as
12082  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12083  *   capability.
12084  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12085  *   to the secondary.
12086  * - Prefer BSSID candidates which will help provide the best "overall"
12087  *   performance for all the STA connections.
12088  */
12089 enum qca_wlan_concurrent_sta_policy_config {
12090 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12091 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12092 };
12093 
12094 /**
12095  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
12096  *
12097  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12098  * interface.
12099  *
12100  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12101  * to meet gaming audio latency requirements.
12102  *
12103  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12104  * concurrencies to meet lossless audio streaming requirements.
12105  */
12106 enum qca_wlan_concurrent_ap_policy_config {
12107 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12108 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12109 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
12110 };
12111 
12112 /**
12113  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12114  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12115  *
12116  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
12117  * u8 attribute. Configures the concurrent STA policy configuration.
12118  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
12119 
12120  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12121  * u8 attribute. Configures the concurrent AP policy configuration.
12122  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
12123  */
12124 enum qca_wlan_vendor_attr_concurrent_policy {
12125 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12126 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12127 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
12128 
12129 	/* keep last */
12130 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12131 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12132 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
12133 
12134 };
12135 
12136 /* Compatibility defines for previously used enum
12137  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12138  * in any new implementation.
12139  */
12140 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12141 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12142 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12143 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12144 #define qca_wlan_vendor_attr_concurrent_sta_policy \
12145 	qca_wlan_vendor_attr_concurrent_policy
12146 
12147 /**
12148  * enum qca_sta_connect_fail_reason_codes - Defines values carried
12149  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12150  * attribute.
12151  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
12152  * for unicast probe request.
12153  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12154  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12155  * ath request.
12156  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12157  * received from AP.
12158  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
12159  * request.
12160  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12161  * assoc request.
12162  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
12163  * received from AP.
12164  */
12165 enum qca_sta_connect_fail_reason_codes {
12166 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12167 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12168 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12169 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12170 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12171 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12172 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12173 };
12174 
12175 /**
12176  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12177  * OCI override request. These attributes are used inside nested attribute
12178  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12179  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12180  *
12181  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12182  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12183  * attribute to specify the frame type in which the OCI is to be overridden.
12184  *
12185  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12186  * OCI frequency (in MHz) to override in the specified frame type.
12187  */
12188 enum qca_wlan_vendor_attr_oci_override {
12189 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12190 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12191 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12192 
12193 	/* keep last */
12194 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12195 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12196 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12197 };
12198 
12199 /**
12200  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12201  * filters defined in this enum are used in attribute
12202  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12203  *
12204  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12205  * shall filter the channels which are not usable because of coexistence with
12206  * cellular radio.
12207  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12208  * shall filter the channels which are not usable because of existing active
12209  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12210  *
12211  */
12212 enum qca_wlan_vendor_usable_channels_filter {
12213 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12214 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12215 };
12216 
12217 /**
12218  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12219  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12220  *
12221  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12222  * u32 attribute, required. Indicates the center frequency of the primary
12223  * channel in MHz.
12224  *
12225  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12226  * u32 attribute. Indicates the center frequency of the primary segment of the
12227  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12228  * 160 MHz, and 320 MHz channels.
12229  *
12230  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12231  * u32 attribute. Indicates the center frequency of the secondary segment of
12232  * 80+80 channel in MHz. This attribute is required only when
12233  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12234  *
12235  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12236  * u32 attribute, required. Indicates the bandwidth of the channel, possible
12237  * values are defined in enum nl80211_chan_width.
12238  *
12239  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12240  * u32 attribute, required. Indicates all the interface types for which this
12241  * channel is usable. This attribute encapsulates bitmasks of interface types
12242  * defined in enum nl80211_iftype.
12243  *
12244  */
12245 enum qca_wlan_vendor_attr_chan_info {
12246 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12247 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12248 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12249 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12250 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12251 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12252 
12253 	/* keep last */
12254 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12255 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12256 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12257 };
12258 
12259 /**
12260  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12261  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12262  *
12263  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12264  * u32 attribute. Indicates the bands from which the channels should be reported
12265  * in response. This attribute encapsulates bit masks of bands defined in enum
12266  * nl80211_band. Optional attribute, if not present in the request the driver
12267  * shall return channels from all supported bands.
12268  *
12269  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12270  * u32 attribute. Indicates all the interface types for which the usable
12271  * channels information is requested. This attribute encapsulates bitmasks of
12272  * interface types defined in enum nl80211_iftype. Optional attribute, if not
12273  * present in the request the driver shall send information of all supported
12274  * interface modes.
12275  *
12276  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12277  * u32 attribute. This attribute carries information of all filters that shall
12278  * be applied while populating usable channels information by the driver. This
12279  * attribute carries bit masks of different filters defined in enum
12280  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12281  * in the request the driver shall send information of channels without applying
12282  * any of the filters that can be configured through this attribute.
12283  *
12284  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12285  * Nested attribute. This attribute shall be used by the driver to send
12286  * usability information of each channel. The attributes defined in enum
12287  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12288  */
12289 enum qca_wlan_vendor_attr_usable_channels {
12290 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12291 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12292 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12293 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12294 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12295 
12296 	/* keep last */
12297 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12298 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12299 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12300 };
12301 
12302 /**
12303  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12304  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12305  *
12306  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12307  *	the list of radar history entries.
12308  *	Each entry contains freq, timestamp, and radar signal detect flag.
12309  *	The driver shall add an entry when CAC has finished, or radar signal
12310  *	has been detected post AP beaconing. The driver shall maintain at least
12311  *	8 entries in order to save CAC result for a 160 MHz channel.
12312  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12313  *	Channel frequency in MHz.
12314  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12315  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12316  *	or radar detection.
12317  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12318  *	This flag indicates radar signal has been detected.
12319  */
12320 enum qca_wlan_vendor_attr_radar_history {
12321 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12322 
12323 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12324 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12325 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12326 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12327 
12328 	/* keep last */
12329 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12330 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12331 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12332 };
12333 
12334 /**
12335  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12336  *
12337  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12338  *	target exited MCC state and cleared the quota information. In the
12339  *	command it clears MCC quota setting and restores adaptive scheduling.
12340  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12341  *      will not be changed.
12342  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12343  *      and the target may change the quota based on the data activity.
12344  */
12345 enum qca_wlan_vendor_mcc_quota_type {
12346 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12347 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12348 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12349 };
12350 
12351 /**
12352  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12353  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12354  * quota information or as a command to set the required MCC quota for an
12355  * interface.
12356  *
12357  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12358  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12359  * In a command this specifies the MCC quota type to be set for the interface.
12360  * In an event this provides the current quota type in force.
12361  * This is required in a command and an event.
12362  *
12363  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12364  * the list of channel quota entries.
12365  * In an event each entry contains the frequency and respective time quota for
12366  * all the MCC interfaces.
12367  * In a command it specifies the interface index and respective time quota.
12368  * In a command only one entry (ifindex, quota pair) may be specified.
12369  *
12370  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12371  * Channel frequency in MHz. This is present only in an event.
12372  *
12373  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12374  * Channel time quota expressed as percentage.
12375  * This is present in an event and a command.
12376  * In an command, the user shall specify the quota to be allocated for the
12377  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12378  * In an event this provides the existing quota for the channel.
12379  *
12380  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12381  * Specifies the interface index (netdev) for which the corresponding
12382  * configurations are applied. This is required in a command only. Only one
12383  * interface index may be specified. If not specified, the configuration is
12384  * rejected.
12385  */
12386 enum qca_wlan_vendor_attr_mcc_quota {
12387 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12388 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12389 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12390 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12391 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12392 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12393 
12394 	/* keep last */
12395 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12396 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12397 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12398 };
12399 
12400 /**
12401  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12402  * radio configurations present in each radio combination.
12403  *
12404  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12405  * the band info in the radio configuration. Uses the enum qca_set_band values.
12406  *
12407  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12408  * the number of antennas info in the radio configuration.
12409  */
12410 enum qca_wlan_vendor_attr_supported_radio_cfg {
12411 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12412 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12413 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12414 
12415 	/* keep last */
12416 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12417 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12418 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12419 };
12420 
12421 /**
12422  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
12423  * radio combinations supported by the device.
12424  *
12425  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
12426  * provides the radio configurations present in the radio combination.
12427  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
12428  * This attribute provides the values for radio combination matrix.
12429  * For standalone config, the number of config values is one and the config
12430  * carries the band and antenna information for standalone configuration. For
12431  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
12432  * configuration the number of config values is two and the config carries the
12433  * band and antenna information for each simultaneous radio.
12434  */
12435 enum qca_wlan_vendor_attr_radio_combination {
12436 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
12437 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
12438 
12439 	/* keep last */
12440 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
12441 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
12442 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
12443 };
12444 
12445 /**
12446  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
12447  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
12448  *
12449  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
12450  * provides the radio combinations supported by the device.
12451  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
12452  * For example, in the radio combination matrix for a device which has two
12453  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
12454  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
12455  * combinations is 5 and the radio combinations are
12456  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
12457  * {{5 GHz 2X2}}, //Standalone 5 GHz
12458  * {{6 GHz 2X2}}, //Standalone 6 GHz
12459  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
12460  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
12461  * The band and antenna info together as nested data provides one radio config.
12462  * Standalone configuration has one config with band and antenna nested data.
12463  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
12464  * have two nested band and antenna info data.
12465  */
12466 enum qca_wlan_vendor_attr_radio_combination_matrix {
12467 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
12468 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
12469 
12470 	/* keep last */
12471 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
12472 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
12473 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
12474 };
12475 
12476 /**
12477  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
12478  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
12479  *
12480  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
12481  * Enable mDNS offload. This attribute is mandatory to enable
12482  * mDNS offload feature. If this attribute is not present, mDNS offload
12483  * is disabled.
12484  *
12485  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
12486  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
12487  * attribute is mandatory when enabling the feature, and not required when
12488  * disabling the feature.
12489  *
12490  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
12491  * the following attributes:
12492  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
12493  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
12494  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
12495  *
12496  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
12497  * It consists of a hostname and ".local" as the domain name. The character
12498  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
12499  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
12500  * supported per vdev.
12501  * For example: myphone.local
12502  *
12503  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
12504  * u16 attribute. It specifies the total number of resource records present
12505  * in the answer section of the answer payload. This attribute is needed by the
12506  * firmware to populate the mDNS response frame for mNDS queries without having
12507  * to parse the answer payload.
12508  *
12509  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
12510  * attribute sent by the mdnsResponder from userspace. It contains resource
12511  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
12512  * payload is passed down to firmware and is transmitted in response to
12513  * mDNS queries.
12514  * The maximum size of the answer payload supported is 512 bytes.
12515  */
12516 enum qca_wlan_vendor_attr_mdns_offload {
12517 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
12518 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
12519 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
12520 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
12521 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
12522 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
12523 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
12524 
12525 	/* keep last */
12526 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
12527 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
12528 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
12529 };
12530 
12531 /**
12532  * enum qca_vendor_attr_diag_event_type  - Attributes used by
12533  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
12534  *
12535  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
12536  * driver/firmware during Connection request from Userspace. Uses the
12537  * following attributes of enum qca_wlan_vendor_attr_diag:
12538  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12539  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
12540  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12541  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
12542  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12543  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
12544  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
12545  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
12546  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
12547  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12548  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
12549  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
12550  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12551  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12552  *
12553  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
12554  * driver/firmware when a connection is failed. Uses the
12555  * following attributes of enum qca_wlan_vendor_attr_diag:
12556  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12557  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12558  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12559  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12560  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12561  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12562  *
12563  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
12564  * driver/firmware during Authentication request from a device. Uses the
12565  * following attributes of enum qca_wlan_vendor_attr_diag:
12566  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12567  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12568  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12569  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12570  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12571  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12572  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12573  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12574  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12575  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12576  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12577  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12578  *
12579  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
12580  * driver/firmware when device receives an authentication response. Uses the
12581  * following attributes of enum qca_wlan_vendor_attr_diag:
12582  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12583  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12584  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
12585  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
12586  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12587  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12588  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12589  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12590  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12591  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12592  *
12593  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
12594  * driver/firmware when device sends an association request. Uses the
12595  * following attributes of enum qca_wlan_vendor_attr_diag:
12596  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12597  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12598  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12599  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12600  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12601  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12602  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12603  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12604  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12605  *
12606  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
12607  * driver/firmware when device receives an association response. Uses the
12608  * following attributes of enum qca_wlan_vendor_attr_diag:
12609  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12610  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12611  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12612  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12613  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12614  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12615  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12616  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12617  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
12618  *
12619  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
12620  * driver/userspace when device receives a deauthentication response. Uses the
12621  * following attributes of enum qca_wlan_vendor_attr_diag:
12622  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12623  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12624  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12625  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12626  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12627  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12628  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12629  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12630  *
12631  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
12632  * driver/userspace when device sends a deauthentication request. Uses the
12633  * following attributes of enum qca_wlan_vendor_attr_diag:
12634  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12635  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12636  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12637  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12638  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12639  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12640  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12641  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12642  *
12643  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
12644  * driver/firmware when device receives a disassociation response. Uses the
12645  * following attributes of enum qca_wlan_vendor_attr_diag:
12646  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12647  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12648  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12649  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12650  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12651  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12652  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12653  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12654  *
12655  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
12656  * driver/firmware when device sends a disassociation request. Uses the
12657  * following attributes of enum qca_wlan_vendor_attr_diag:
12658  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12659  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12660  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12661  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12662  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12663  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12664  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12665  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12666  *
12667  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
12668  * driver/firmware when device did not receive beacon packets during connection.
12669  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
12670  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12671  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12672  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12673  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12674  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12675  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12676  *
12677  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
12678  * driver/firmware when Roaming scan is triggered. Uses the following
12679  * attributes of enum qca_wlan_vendor_attr_diag:
12680  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12681  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
12682  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
12683  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12684  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12685  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
12686  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
12687  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12688  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12689  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12690  *
12691  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
12692  * driver/firmware Roam scanning is processed. Uses the following
12693  * attributes of enum qca_wlan_vendor_attr_diag:
12694  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12695  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12696  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
12697  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
12698  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12699  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12700  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12701  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12702  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
12703  *
12704  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
12705  * driver/firmware to provide Roam information of the current AP. Uses the
12706  * following attributes of enum qca_wlan_vendor_attr_diag:
12707  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12708  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12709  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12710  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12711  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12712  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12713  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12714  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12715  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12716  *
12717  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
12718  * driver/firmware to provide Roam information of the candid AP. Uses the
12719  * following attributes of enum qca_wlan_vendor_attr_diag:
12720  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12721  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12722  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12723  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
12724  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
12725  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
12726  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
12727  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12728  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12729  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12730  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12731  *
12732  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
12733  * driver/firmware to provide Roam result after selecting a candidate. Uses the
12734  * following attributes of enum qca_wlan_vendor_attr_diag:
12735  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12736  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
12737  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12738  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12739  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12740  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12741  *
12742  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
12743  * driver/firmware to indicate Roam Cancellation due to higher priority events.
12744  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12745  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12746  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12747  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12748  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12749  *
12750  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
12751  * /firmware when STA sends a BTM request frame. Uses the following attributes
12752  * of enum qca_wlan_vendor_attr_diag:
12753  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12754  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12755  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
12756  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
12757  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
12758  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
12759  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12760  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12761  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12762  *
12763  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
12764  * driver/firmware when STA queries about BTM transition. Uses the following
12765  * attributes of enum qca_wlan_vendor_attr_diag:
12766  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12767  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12768  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
12769  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12770  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12771  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12772  *
12773  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
12774  * /firmware when STA receives BTM response frame. Uses the following
12775  * attributes of enum qca_wlan_vendor_attr_diag:
12776  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12777  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
12778  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
12779  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
12780  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
12781  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12782  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12783  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12784  *
12785  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
12786  * driver/firmware to provide BTM request candidate information. Uses the
12787  * following attributes of enum qca_wlan_vendor_attr_diag:
12788  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12789  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12790  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
12791  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
12792  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12793  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12794  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12795  *
12796  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
12797  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
12798  * enum qca_wlan_vendor_attr_diag:
12799  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12800  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
12801  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
12802  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
12803  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12804  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12805  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12806  *
12807  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
12808  * driver/firmware to indicate DHCP discovery to AP. Uses the following
12809  * attributes of enum qca_wlan_vendor_attr_diag:
12810  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12811  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12812  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12813  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12814  *
12815  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
12816  * driver/firmware to indicate DHCP offering to AP. Uses the following
12817  * attributes of enum qca_wlan_vendor_attr_diag:
12818  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12819  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12820  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12821  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12822  *
12823  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
12824  * driver/firmware to indicate driver sent DHCP packets. Uses the following
12825  * attributes of enum qca_wlan_vendor_attr_diag:
12826  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12827  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12828  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12829  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12830  *
12831  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
12832  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
12833  * attributes of enum qca_wlan_vendor_attr_diag:
12834  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12835  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12836  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12837  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12838  *
12839  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
12840  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
12841  * following attributes of enum qca_wlan_vendor_attr_diag:
12842  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12843  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12844  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12845  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12846  *
12847  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
12848  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
12849  * enum qca_wlan_vendor_attr_diag:
12850  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12851  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12852  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12853  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12854  *
12855  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
12856  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
12857  * enum qca_wlan_vendor_attr_diag:
12858  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12859  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12860  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12861  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12862  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12863  *
12864  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
12865  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
12866  * enum qca_wlan_vendor_attr_diag:
12867  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12868  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12869  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12870  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12871  *
12872  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
12873  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
12874  * enum qca_wlan_vendor_attr_diag:
12875  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12876  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12877  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12878  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12879  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12880  *
12881  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
12882  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
12883  * enum qca_wlan_vendor_attr_diag:
12884  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12885  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12886  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12887  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12888  *
12889  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
12890  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
12891  * enum qca_wlan_vendor_attr_diag:
12892  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12893  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12894  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12895  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
12896  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12897  *
12898  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
12899  * /firmware to indicate device sent EAP request. Uses the following attributes
12900  * of enum qca_wlan_vendor_attr_diag:
12901  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12902  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12903  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12904  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12905  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12906  *
12907  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
12908  * /firmware to indicate device received EAP response. Uses the following
12909  * attributes of enum qca_wlan_vendor_attr_diag:
12910  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12911  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
12912  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
12913  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12914  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12915  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12916  *
12917  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
12918  * /firmware to indicate EAP frame transmission is success. Uses the following
12919  * attributes of enum qca_wlan_vendor_attr_diag:
12920  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12921  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12922  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12923  *
12924  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
12925  * /firmware to indicate EAP frame transmission is failed. Uses the following
12926  * attributes of enum qca_wlan_vendor_attr_diag:
12927  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
12928  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12929  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
12930  *
12931  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
12932  * /firmware to indicate Reassocation request. Uses the following attributes
12933  * of enum qca_wlan_vendor_attr_diag:
12934  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12935  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12936  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
12937  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12938  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
12939  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12940  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12941  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12942  *
12943  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
12944  * /firmware to indicate Reassocation response. Uses the following attributes
12945  * of enum qca_wlan_vendor_attr_diag:
12946  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
12947  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
12948  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
12949  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
12950  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
12951  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
12952  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
12953  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
12954  */
12955 enum qca_vendor_attr_diag_event_type {
12956 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
12957 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
12958 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
12959 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
12960 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
12961 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
12962 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
12963 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
12964 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
12965 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
12966 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
12967 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
12968 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
12969 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
12970 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
12971 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
12972 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
12973 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
12974 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
12975 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
12976 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
12977 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
12978 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
12979 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
12980 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
12981 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
12982 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
12983 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
12984 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
12985 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
12986 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
12987 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
12988 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
12989 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
12990 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
12991 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
12992 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
12993 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
12994 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
12995 
12996 	/* keep last */
12997 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
12998 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
12999 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
13000 };
13001 
13002 /**
13003  * enum qca_wlan_vendor_tx_status - Used by attribute
13004  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
13005  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
13006  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
13007  * is not received.
13008  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
13009  * acknowledged.
13010  */
13011 enum qca_wlan_vendor_tx_status {
13012 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
13013 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
13014 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
13015 };
13016 
13017 /**
13018  * enum qca_roam_sub_reason - Used by attribute
13019  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
13020  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
13021  * timer expiry
13022  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
13023  * to no candidate found during LOW RSSI trigger.
13024  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
13025  * Imminent timeout
13026  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
13027  * failure
13028  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
13029  * emergency like deauth/disassoc.
13030  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
13031  * BSS transition management request.
13032  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
13033  * Roam scan triggered due to Low RSSI periodic timer
13034  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
13035  * Roam trigger due to periodic timer after no candidate found during CU
13036  * inactivity timer scan.
13037  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
13038  * found in high CU roam trigger.
13039  */
13040 enum qca_roam_sub_reason {
13041 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
13042 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
13043 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
13044 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
13045 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
13046 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
13047 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
13048 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
13049 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
13050 };
13051 
13052 /*
13053  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
13054  * to send diag data to the userspace. The attributes defined in this enum are
13055  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
13056  *
13057  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
13058  * by driver/firmware to send diag data. Each instance of this nested attribute
13059  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
13060  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
13061  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
13062  * nested attribute can be sent with one vendor command
13063  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
13064  *
13065  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
13066  * attribute indicates the type of the diag event from driver/firmware. Uses
13067  * values from enum qca_vendor_attr_diag_event_type.
13068  *
13069  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
13070  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
13071  * API to send time of the day in microseconds to userspace.
13072  *
13073  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
13074  * This attribute indicates firmware timestamp in microseconds.
13075  *
13076  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
13077  * indicates wlan interface index.
13078  *
13079  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
13080  * indicates 6-byte MAC address representing the BSSID of the AP.
13081  *
13082  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
13083  * indicates the 6-byte MAC address representing the BSSID hint sent in
13084  * the connect request.
13085  *
13086  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
13087  * indicates the SSID in u8 array with a maximum length of 32.
13088  *
13089  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
13090  * indicates the frequency of AP in MHz.
13091  *
13092  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
13093  * indicates frequency hint given in the connect request in MHz.
13094  *
13095  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
13096  * This attribute indicates RSSI of the 802.11 frame in dBm.
13097  *
13098  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
13099  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
13100  * Table 12-10—Integrity and key wrap algorithms.
13101  *
13102  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
13103  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
13104  * Table 12-10—Integrity and key wrap algorithms.
13105  *
13106  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
13107  * attribute indicates Group management cipher suite defined in IEEE Std
13108  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
13109  *
13110  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
13111  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
13112  * Table 9-151—AKM suite selectors.
13113  *
13114  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
13115  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
13116  * Section 9.4.1.1 Authentication Algorithm Number field.
13117  *
13118  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
13119  * indicates bluetooth COEX is active or not.
13120  *
13121  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
13122  * attribute indicates SAE authentication frame type. The possible values are
13123  * 1 - SAE commit frame
13124  * 2 - SAE confirm frame
13125  *
13126  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
13127  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
13128  * Table 9-49—Reason codes.
13129  *
13130  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
13131  * attribute indicates sequence number of the frame defined in IEEE Std
13132  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
13133  * field.
13134  *
13135  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
13136  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
13137  * 9-50—Status codes.
13138  *
13139  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
13140  * Uses enum qca_wlan_vendor_tx_status.
13141  *
13142  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
13143  * indicates if frame transmission is retried.
13144  *
13145  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
13146  * Uses enum qca_roam_reason.
13147  *
13148  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
13149  * Uses enum qca_roam_sub_reason.
13150  *
13151  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
13152  * indicates channel utilization in percentage.
13153  *
13154  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
13155  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
13156  *
13157  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
13158  * This attribute indicates current RSSI threshold in dBm.
13159  *
13160  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
13161  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
13162  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
13163  *
13164  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
13165  * This attribute indicates number of scanned candidate APs.
13166  *
13167  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
13168  * attribute indicates roam AP rank computed based on connection preference.
13169  *
13170  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
13171  * This attribute indicates expected throughput in kbps.
13172  *
13173  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
13174  * This attribute indicates the preference value of candidate AP / connected AP
13175  * calculated in the firmware.
13176  *
13177  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
13178  * indicates connection/roaming is successful or not.
13179  *
13180  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
13181  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
13182  * IE present in the BTM frame.
13183  *
13184  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
13185  * This attribute indicates BTM WTC duration in milliseconds.
13186  *
13187  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
13188  * indicates dialog token value of BTM query/request/response frames.
13189  *
13190  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
13191  * attribute indicates the Transition Reason field indicates the reason why
13192  * a transition attempt occurred and contains one of the values defined in IEEE
13193  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
13194  *
13195  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
13196  * indicates BTM mode defined in IEEE Std 802.11‐2020
13197  * Figure 9-924—Request Mode field format.
13198  *
13199  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
13200  * This attribute indicates the Disassociation Timer field which is the number
13201  * of beacon transmission times (TBTTs) until the serving AP will send a
13202  * Disassociation frame to this STA.
13203  *
13204  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
13205  * This attribute indicates BTM validity interval field in TBTTs defined in
13206  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
13207  * Action field format.
13208  *
13209  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
13210  * This attribute indicates BTM candidate list entries.
13211  *
13212  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
13213  * This attribute indicates network preference for BTM transition defined in
13214  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
13215  *
13216  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
13217  * This attribute indicates BTM transition status code defined in IEEE Std
13218  * 802.11‐2020 Table 9-428—BTM status code definitions.
13219  *
13220  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
13221  * This attribute indicates BSS termination delay defined in IEEE Std
13222  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
13223  *
13224  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
13225  * This attribute indicates 6-byte MAC address representing the BSSID of the
13226  * BSS that the non-AP STA transitions to.
13227  *
13228  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
13229  * indicates EAP frame type. The methods are enumerated by IANA at
13230  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
13231  *
13232  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
13233  * indicates EAP frame length.
13234  *
13235  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
13236  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
13237  * (Time from boot but not the time spent in suspend) to send in microseconds
13238  * to userspace.
13239  *
13240  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
13241  * indicates the association id received in the (re)association response frame
13242  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
13243  */
13244 enum qca_wlan_vendor_attr_diag {
13245 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
13246 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
13247 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
13248 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
13249 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
13250 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
13251 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
13252 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
13253 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
13254 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
13255 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
13256 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
13257 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
13258 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
13259 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
13260 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
13261 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
13262 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
13263 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
13264 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
13265 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
13266 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
13267 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
13268 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
13269 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
13270 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
13271 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
13272 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
13273 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
13274 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
13275 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
13276 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
13277 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
13278 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
13279 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
13280 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
13281 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
13282 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
13283 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
13284 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
13285 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
13286 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
13287 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
13288 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
13289 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
13290 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
13291 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
13292 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
13293 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
13294 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
13295 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
13296 
13297 	/* keep last */
13298 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
13299 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
13300 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
13301 };
13302 
13303 /**
13304  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13305  * data types to be sent over the monitor interface.
13306  */
13307 enum qca_wlan_vendor_monitor_data_frame_type {
13308 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13309 
13310 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
13311 	not set */
13312 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13313 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13314 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13315 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13316 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13317 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13318 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13319 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13320 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13321 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13322 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13323 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13324 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13325 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13326 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13327 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13328 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13329 };
13330 
13331 /**
13332  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13333  * mgmt types to be sent over the monitor interface.
13334  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
13335  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
13336  * except the Beacons. Valid only in the Connect state.
13337  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13338  * BSSID Beacons. Valid only in the Connect state.
13339  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
13340  * the Beacons obtained during the scan (off channel and connected channel)
13341  * when in connected state.
13342  */
13343 
13344 enum qca_wlan_vendor_monitor_mgmt_frame_type {
13345 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13346 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
13347 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
13348 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13349 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13350 };
13351 
13352 /**
13353  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13354  * ctrl types to be sent over the monitor interface.
13355  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
13356  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
13357  */
13358 enum qca_wlan_vendor_monitor_ctrl_frame_type {
13359 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13360 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
13361 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13362 };
13363 
13364 /**
13365  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13366  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13367  * monitor mode.
13368  *
13369  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
13370  * Represents the tx data packet type to be monitored (u32). These data packets
13371  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13372  *
13373  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
13374  * Represents the tx data packet type to be monitored (u32). These data packets
13375  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13376  *
13377  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
13378  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13379  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13380  *
13381  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
13382  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13383  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13384  *
13385  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
13386  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13387  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13388  *
13389  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
13390  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13391  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13392  *
13393  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
13394  * u32 attribute, An interval only for the connected beacon interval, which
13395  * expects that the connected BSSID's beacons shall be sent on the monitor
13396  * interface only on this specific interval.
13397  */
13398 enum qca_wlan_vendor_attr_set_monitor_mode {
13399 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13400 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13401 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13402 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13403 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13404 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13405 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13406 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13407 
13408 	/* keep last */
13409 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13410 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13411 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13412 
13413 };
13414 
13415 /**
13416  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13417  * Bits will be set to 1 if the corresponding state is enabled.
13418  *
13419  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
13420  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
13421  */
13422 enum qca_wlan_vendor_roam_scan_state {
13423 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
13424 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
13425 };
13426 
13427 /**
13428  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
13429  * Bits will be set to 1 if the corresponding event is notified.
13430  *
13431  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
13432  * carries the trigger reason. When set, it is expected that the roam event
13433  * carries the respective reason via the attribute
13434  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
13435  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
13436  *
13437  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
13438  * carries the roam fail reason. When set, it is expected that the roam event
13439  * carries the respective reason via the attribute
13440  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
13441  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
13442  *
13443  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
13444  * event carries the roam invoke fail reason. When set, it is expected that
13445  * the roam event carries the respective reason via the attribute
13446  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
13447  *
13448  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
13449  * carries the roam scan state. When set, it is expected that the roam event
13450  * carries the respective scan state via the attribute
13451  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
13452  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
13453  */
13454 enum qca_wlan_vendor_roam_event_type {
13455 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
13456 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
13457 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
13458 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
13459 };
13460 
13461 /**
13462  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
13463  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
13464  *
13465  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
13466  * representing the BSSID of the AP to which the Roam is attempted.
13467  *
13468  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
13469  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
13470  * attempted.
13471  *
13472  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
13473  * on which the roam is attempted.
13474  *
13475  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
13476  * STA mode only. This represents the roam fail reason for the last failed
13477  * roaming attempt by the firmware for the specific BSSID. Different roam
13478  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
13479  */
13480 enum qca_wlan_vendor_attr_roam_events_candidate_info {
13481 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
13482 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
13483 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
13484 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
13485 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
13486 
13487 	/* keep last */
13488 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
13489 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
13490 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
13491 };
13492 
13493 /**
13494  * enum qca_wlan_vendor_attr_roam_events - Used by the
13495  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
13496  * roam events to the driver or notify these events from the driver.
13497  *
13498  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
13499  * driver/firmware to enable/disable the notification of roam events. It's a
13500  * mandatory attribute and used only in the request from the userspace to the
13501  * host driver. 1-Enable, 0-Disable.
13502  * If the roaming is totally offloaded to the firmware, this request when
13503  * enabled shall mandate the firmware to notify all the relevant roam events
13504  * represented by the below attributes. If the host is in the suspend mode,
13505  * the behavior of the firmware to notify these events is guided by
13506  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
13507  * these events in the suspend state, the firmware is expected to wake up the
13508  * host before the respective events are notified. Please note that such a
13509  * request to get the events in the suspend state will have a definite power
13510  * implication.
13511  *
13512  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
13513  * that the roam events need to be notified in the suspend state too. By
13514  * default, these roam events are notified in the resume state. With this flag,
13515  * the roam events are notified in both resume and suspend states.
13516  * This attribute is used in the request from the userspace to the host driver.
13517  *
13518  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
13519  * Represents the different roam event types, signified by the enum
13520  * qca_wlan_vendor_roam_event_type.
13521  * Each bit of this attribute represents the different roam even types reported
13522  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13523  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13524  *
13525  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
13526  * mode only. This represents the roam trigger reason for the last roaming
13527  * attempted by the firmware. Each bit of this attribute represents the
13528  * different roam trigger reason code which are defined in enum
13529  * qca_vendor_roam_triggers.
13530  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13531  *
13532  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
13533  * STA mode only. This represents the roam invoke fail reason for the last
13534  * failed roam invoke. Different roam invoke failure reason codes
13535  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
13536  *
13537  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
13538  * for which the roam is attempted. Each entry is a nested attribute defined
13539  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
13540  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13541  *
13542  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
13543  * the scan state on which the roam events need to be notified. The values for
13544  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
13545  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13546  *
13547  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
13548  * u32 values. List of frequencies in MHz considered for a roam scan.
13549  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
13550  */
13551 
13552 enum qca_wlan_vendor_attr_roam_events {
13553 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
13554 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
13555 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
13556 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
13557 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
13558 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
13559 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
13560 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
13561 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
13562 
13563 	/* keep last */
13564 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
13565 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
13566 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
13567 };
13568 
13569 /*
13570  * enum qca_wlan_ratemask_params_type - Rate mask config type.
13571  *
13572  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
13573  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
13574  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
13575  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
13576  */
13577 enum qca_wlan_ratemask_params_type {
13578 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
13579 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
13580 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
13581 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
13582 };
13583 
13584 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
13585  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
13586  * This is used to set the rate mask value to be used in rate selection.
13587  *
13588  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
13589  * Array of nested containing attributes
13590  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
13591  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
13592  *
13593  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
13594  * the different phy types to which the rate mask config is to be applied.
13595  * The values for this attribute are referred from enum
13596  * qca_wlan_vendor_ratemask_params_type.
13597  *
13598  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
13599  * A bit value of 1 represents rate is enabled and a value of 0
13600  * represents rate is disabled.
13601  * For HE targets, 12 bits correpond to one NSS setting.
13602  * b0-13  => NSS1, MCS 0-13
13603  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
13604  * For VHT targets, 10 bits correspond to one NSS setting.
13605  * b0-9   => NSS1, MCS 0-9
13606  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
13607  * For HT targets, 8 bits correspond to one NSS setting.
13608  * b0-7  => NSS1, MCS 0-7
13609  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
13610  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
13611  */
13612 
13613 enum qca_wlan_vendor_attr_ratemask_params {
13614 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
13615 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
13616 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
13617 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
13618 
13619 	/* keep last */
13620 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
13621 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
13622 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
13623 };
13624 
13625 /**
13626  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
13627  * the policy to flush pending frames, configured via
13628  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
13629  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
13630  *
13631  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
13632  * the flush policy configured before. This command basically disables the
13633  * flush config set by the user.
13634  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
13635  * the flush policy to be immediate. All pending packets for the peer/TID are
13636  * flushed when this command/policy is received.
13637  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
13638  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
13639  * are flushed when the end of TWT SP is reached.
13640  */
13641 enum qca_wlan_vendor_flush_pending_policy  {
13642 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
13643 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
13644 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
13645 };
13646 
13647 /**
13648  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
13649  * flushing pending traffic in firmware.
13650  *
13651  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
13652  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
13653  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
13654  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
13655  * flush packets with access category. This is optional. See below.
13656  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
13657  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
13658  * bit to 1 to act upon the TID. This is optional. Either this attribute or
13659  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
13660  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
13661  * it is an error.
13662  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
13663  * packets corresponding to the peer/TID provided. It is a u32 value,
13664  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
13665  * value is honored only when TID mask is provided. This is not honored when AC
13666  * mask is provided.
13667  */
13668 enum qca_wlan_vendor_attr_flush_pending {
13669 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
13670 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
13671 	QCA_WLAN_VENDOR_ATTR_AC = 2,
13672 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
13673 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
13674 	/* keep last */
13675 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
13676 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
13677 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
13678 };
13679 
13680 /**
13681  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
13682  *	for) or drop existing PASN security association for the listed the
13683  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
13684  *	to userspace.
13685  *
13686  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
13687  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
13688  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
13689  *	the driver to userspace to inform that the existing PASN keys of the
13690  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
13691  *	not valid anymore.
13692  */
13693 enum qca_wlan_vendor_pasn_action {
13694 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
13695 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
13696 };
13697 
13698 /**
13699  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
13700  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
13701  *
13702  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
13703  *	event from the driver to userspace and represents the local MAC address
13704  *	to be used for PASN handshake. When this attribute is present, userspace
13705  *	shall use the source address specified in this attribute by the driver
13706  *	for PASN handshake with peer device.
13707  *	This attribute is required in a command response from userspace to the
13708  *	driver and represents the MAC address that was used in PASN handshake
13709  *	with the peer device.
13710  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
13711  *	peer device to which PASN handshake is requested in an event from the
13712  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13713  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
13714  *	Indicates the MAC address of the peer device for which the keys are to
13715  *	be invalidated in an event from the driver to userspace when
13716  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
13717  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
13718  *	Indicates the MAC address of the peer device for which the status is
13719  *	being sent in a status report from userspace to the driver.
13720  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
13721  *	in the event from the driver to userspace. When set, userspace is
13722  *	required to derive LTF key seed from KDK and set it to the driver.
13723  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
13724  *	attribute is used in the command response from userspace to the driver.
13725  *	If present, it indicates the successful PASN handshake with the peer. If
13726  *	this flag is not present, it indicates that the PASN handshake with the
13727  *	peer device failed.
13728  */
13729 enum qca_wlan_vendor_attr_pasn_peer {
13730 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
13731 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
13732 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
13733 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
13734 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
13735 
13736 	/* keep last */
13737 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
13738 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
13739 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
13740 };
13741 
13742 /**
13743  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
13744  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
13745  *
13746  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
13747  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
13748  *	from the driver to userspace.
13749  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
13750  *	details for each peer and used in both an event and a command response.
13751  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
13752  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
13753  */
13754 enum qca_wlan_vendor_attr_pasn {
13755 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
13756 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
13757 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
13758 
13759 	/* keep last */
13760 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
13761 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
13762 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
13763 };
13764 
13765 /**
13766  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
13767  *	the ranging security context derived from PASN for each peer. Used in
13768  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
13769  *
13770  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
13771  *	context for the peer.
13772  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
13773  *	context for the peer.
13774  */
13775 enum qca_wlan_vendor_secure_ranging_ctx_action {
13776 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
13777 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
13778 };
13779 
13780 /**
13781  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
13782  *	used for deriving PASN keys to the driver. Used in
13783  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
13784  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
13785  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
13786  */
13787 enum qca_wlan_vendor_sha_type {
13788 	QCA_WLAN_VENDOR_SHA_256,
13789 	QCA_WLAN_VENDOR_SHA_384,
13790 };
13791 
13792 /**
13793  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
13794  *	to set security context for the PASN peer from userspace to the driver.
13795  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
13796  *
13797  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
13798  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
13799  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
13800  *	was used during the PASN handshake.
13801  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
13802  *	the peer device for which secure ranging context is being configured.
13803  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
13804  *	hash algorithm to be used, possible values are defined in enum
13805  *	qca_wlan_vendor_sha_type.
13806  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
13807  *	the temporal key generated from the PASN handshake. The length of this
13808  *	attribute is dependent on the value of
13809  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
13810  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
13811  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
13812  *	(e.g., 0x000FAC04).
13813  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
13814  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
13815  *	The length of this attribute is dependent on the value of
13816  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
13817  *
13818  */
13819 enum qca_wlan_vendor_attr_secure_ranging_ctx {
13820 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
13821 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
13822 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
13823 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
13824 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
13825 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
13826 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
13827 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
13828 
13829 	/* keep last */
13830 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
13831 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
13832 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
13833 };
13834 
13835 /**
13836  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
13837  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
13838  * nested attribute. The packets that match a filter will be replied with
13839  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
13840  *
13841  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
13842  * u32 attribute. Destination IPv4 address in network byte order, the
13843  * IPv4 packets with different address will be filtered out.
13844  * This attribute is optional.
13845  *
13846  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
13847  * Flag attribute. If it's present, indicates that
13848  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
13849  * address; while if not, indicates that the address is a unicast/multicast
13850  * address.
13851  * This attribute is optional.
13852  *
13853  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
13854  * NLA_BINARY attribute, length is 16 bytes.
13855  * Destination IPv6 address in network byte order, the IPv6 packets
13856  * with different destination address will be filtered out.
13857  * This attribute is optional.
13858  *
13859  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
13860  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
13861  * Packets on both IPv4 and IPv6 will be processed if both are configured.
13862  *
13863  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
13864  * u16 attribute. Destination UDP port, the packets with different destination
13865  * UDP port will be filtered out.
13866  * This attribute is mandatory.
13867  *
13868  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
13869  * u32 attribute. Represents the offset (in UDP payload) of the data
13870  * to be matched.
13871  * This attribute is mandatory.
13872  *
13873  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
13874  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
13875  * Binary data that is compared bit-by-bit against the data (specified
13876  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
13877  * payload, the packets don't match will be filtered out.
13878  * This attribute is mandatory.
13879  */
13880 enum qca_wlan_vendor_attr_coap_offload_filter {
13881 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
13882 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
13883 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
13884 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
13885 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
13886 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
13887 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
13888 
13889 	/* keep last */
13890 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
13891 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
13892 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
13893 };
13894 
13895 /**
13896  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
13897  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
13898  *
13899  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
13900  * u32 attribute. Source address (in network byte order) for replying
13901  * the matching broadcast/multicast IPv4 packets.
13902  * This attribute is optional.
13903  *
13904  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
13905  * NLA_BINARY attribute, length is 16 bytes.
13906  * Source address (in network byte order) for replying the matching
13907  * multicast IPv6 packets.
13908  * This attribute is optional.
13909  *
13910  * For broadcast/multicast offload reply, one of
13911  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
13912  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
13913  * configured according to version of the IP address(es) configured in
13914  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
13915  * while for unicast case, firmware will take the destination IP address
13916  * in the received matching packet as the source address for replying.
13917  *
13918  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
13919  * Nested attribute. Filter for the received UDP packets, only the matching
13920  * packets will be replied and cached.
13921  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
13922  * attributes.
13923  * This attribute is mandatory.
13924  *
13925  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
13926  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
13927  * CoAP message (UDP payload) to be sent upon receiving matching packets.
13928  * Firmware is responsible for adding any necessary protocol headers.
13929  * This attribute is mandatory.
13930  *
13931  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
13932  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
13933  * A cached message will be dropped by firmware if it's expired.
13934  * This attribute is optional. A default value of 40000 will be used in the
13935  * absence of it.
13936  */
13937 enum qca_wlan_vendor_attr_coap_offload_reply {
13938 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
13939 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
13940 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
13941 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
13942 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
13943 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
13944 
13945 	/* keep last */
13946 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
13947 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
13948 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
13949 };
13950 
13951 /**
13952  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
13953  * CoAP message (UDP) transmitting on IPv4.
13954  *
13955  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
13956  * u32 attribute. Source address (in network byte order) for transmitting
13957  * packets on IPv4.
13958  * This attribute is mandatory.
13959  *
13960  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
13961  * u16 attribute. Source UDP port.
13962  * This attribute is optional, a random port is taken if it's not present.
13963  *
13964  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
13965  * u32 attribute. Destination IPv4 address (in network byte order).
13966  * This attribute is mandatory.
13967  *
13968  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
13969  * Flag attribute. If it's present, indicates that
13970  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
13971  * address; while if not, indicates that the address is unicast/multicast
13972  * address.
13973  * This attribute is optional.
13974  *
13975  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
13976  * u16 attribute. Destination UDP port.
13977  * This attribute is mandatory.
13978  */
13979 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
13980 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
13981 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
13982 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
13983 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
13984 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
13985 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
13986 
13987 	/* keep last */
13988 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
13989 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
13990 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
13991 };
13992 
13993 /**
13994  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
13995  * CoAP message (UDP) transmitting on IPv6.
13996  *
13997  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
13998  * NLA_BINARY attribute, length is 16 bytes.
13999  * Source address (in network byte order) for transmitting packets on IPv6.
14000  * This attribute is mandatory.
14001  *
14002  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
14003  * u16 attribute. Source UDP port.
14004  * This attribute is optional, a random port is taken if it's not present.
14005  *
14006  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
14007  * NLA_BINARY attribute, length is 16 bytes.
14008  * Destination IPv6 address (in network byte order).
14009  * This attribute is mandatory.
14010  *
14011  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
14012  * u16 attribute. Destination UDP port.
14013  * This attribute is mandatory.
14014  */
14015 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
14016 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
14017 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
14018 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
14019 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
14020 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
14021 
14022 	/* keep last */
14023 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
14024 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
14025 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
14026 };
14027 
14028 /**
14029  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
14030  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
14031  *
14032  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
14033  * Nested attribute. The IPv4 source/destination address/port for offload
14034  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
14035  * of supported attributes.
14036  * This attribute is optional.
14037  *
14038  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
14039  * Nested attribute. The IPv6 source/destination address/port for offload
14040  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
14041  * of supported attributes.
14042  * This attribute is optional.
14043  *
14044  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
14045  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
14046  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
14047  * configured.
14048  *
14049  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
14050  * u32 attribute. Period in milliseconds for the periodic transmitting.
14051  * This attribute is mandatory.
14052  *
14053  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
14054  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14055  * CoAP message (UDP payload) to be periodically transmitted. Firmware
14056  * is responsible for adding any necessary protocol headers.
14057  * This attribute is mandatory.
14058  */
14059 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
14060 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
14061 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
14062 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
14063 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
14064 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
14065 
14066 	/* keep last */
14067 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
14068 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
14069 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
14070 };
14071 
14072 /**
14073  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
14074  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
14075  *
14076  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
14077  * u64 attribute. Received time (since system booted in microseconds) of
14078  * the cached CoAP message.
14079  * This attribute is mandatory.
14080  *
14081  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
14082  * u32 attribute. Source IPv4 address (in network byte order) of the cached
14083  * CoAP message.
14084  * This attribute is optional.
14085  *
14086  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
14087  * NLA_BINARY attribute, length is 16 bytes.
14088  * Source IPv6 address (in network byte order) of the cached CoAP message.
14089  * This attribute is optional.
14090  *
14091  * At most and at least one of
14092  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
14093  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
14094  * an entry.
14095  *
14096  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
14097  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14098  * The cached CoAP message (UDP payload). If the actual message size is
14099  * greater than the maximum size, it will be truncated and leaving only
14100  * the first 1152 bytes.
14101  * This attribute is mandatory.
14102  */
14103 enum qca_wlan_vendor_attr_coap_offload_cache_info {
14104 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
14105 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
14106 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
14107 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
14108 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
14109 
14110 	/* keep last */
14111 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
14112 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
14113 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
14114 };
14115 
14116 /**
14117  * enum qca_wlan_vendor_coap_offload_action - Actions for
14118  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14119  *
14120  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
14121  * Enable CoAP offload reply.
14122  * If it's enabled, firmware will start offload processing on each suspend
14123  * and stop on each resume.
14124  *
14125  * Offload reply on match works as follows:
14126  * Reply the packets that match the filter with the given CoAP
14127  * message (with necessary protocol headers), increase the CoAP message
14128  * ID in the given CoAP message by one for the next use after each successful
14129  * transmission, and try to store the information of the received packet,
14130  * including the received time, source IP address, and CoAP message (UDP
14131  * payload).
14132  *
14133  * Firmware has a limit to the maximum stored entries, it takes the source IP
14134  * address as the key of an entry, and keeps at most one entry for each key.
14135  * A packet won't be stored if no entry for the same key is present and the
14136  * total number of the existing unexpired entries reaches the maximum value.
14137  *
14138  * If any configured item is changed, user space should disable offload reply
14139  * first and then issue a new enable request.
14140  *
14141  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
14142  * Disable CoAP offload reply and return information of any cached CoAP
14143  * messages.
14144  *
14145  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
14146  * Enable CoAP offload periodic transmitting.
14147  * If it's enabled, firmware will start offload periodic transmitting on
14148  * each suspend and stop on each resume.
14149  *
14150  * Offload periodic transmitting works as follows:
14151  * Send the given CoAP message (with necessary protocol headers) with the given
14152  * source/destination IP address/UDP port periodically based on the given
14153  * period and increase the CoAP message ID in the given CoAP message by one
14154  * for the next use after each successful transmission.
14155  *
14156  * If any configured item is changed, user space should disable offload
14157  * periodic transmitting first and then issue a new enable request.
14158  *
14159  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
14160  * Disable CoAP offload periodic transmitting.
14161  *
14162  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
14163  * Get information of the CoAP messages cached during offload reply
14164  * processing. The cache is cleared after retrieval.
14165  */
14166 enum qca_wlan_vendor_coap_offload_action {
14167 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
14168 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
14169 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
14170 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
14171 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
14172 };
14173 
14174 /**
14175  * enum qca_wlan_vendor_attr_coap_offload - Used by the
14176  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14177  * This is used to set parameters for CoAP offload processing, or get
14178  * cached CoAP messages from firmware.
14179  *
14180  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
14181  * u32 attribute. Action to take in this vendor command.
14182  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
14183  * This attribute is mandatory.
14184  *
14185  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
14186  * u32 attribute. Represents the Request ID for the CoAP offload
14187  * configuration, which can help to identify the user entity starting
14188  * the CoAP offload processing and accordingly stop the respective
14189  * ones/get the cached CoAP messages with the matching ID.
14190  * This attribute is mandatory.
14191  *
14192  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
14193  * Nested attribute. Parameters for offload reply.
14194  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
14195  * supported attributes.
14196  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14197  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
14198  * otherwise.
14199  *
14200  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
14201  * Nested attribute. Parameters for offload periodic transmitting.
14202  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
14203  * supported attributes.
14204  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
14205  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
14206  * otherwise.
14207  *
14208  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
14209  * Array of nested attributes. Information of the cached CoAP messages,
14210  * where each entry is taken from
14211  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
14212  * This attribute is used for reporting the cached CoAP messages
14213  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14214  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
14215  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
14216  * cached item if this attribute is not present.
14217  */
14218 enum qca_wlan_vendor_attr_coap_offload {
14219 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
14220 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
14221 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
14222 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
14223 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
14224 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
14225 
14226 	/* keep last */
14227 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
14228 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
14229 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
14230 };
14231 
14232 /**
14233  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
14234  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
14235  * Service (SCS) rule.
14236  *
14237  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
14238  * Represents the unique id of SCS rule to be configured.
14239 
14240  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
14241  * Represents the request type: add, remove, or change.
14242  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
14243  * Type definitions).
14244  *
14245  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
14246  * in case of add/change request type.
14247  * Represents the output traffic identifier (TID) to be assigned to the flow
14248  * matching the rule.
14249  *
14250  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
14251  * attribute in case of add/change request type.
14252  * Represents type of classifier parameters present in SCS rule.
14253  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
14254  * Only classifier types 4 and 10 are supported for SCS.
14255  *
14256  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
14257  * in case of add/change request type when classifier type is TCLAS4.
14258  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
14259  *
14260  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
14261  * attribute in case of add/change request type when classifier type is TCLAS4
14262  * and version attribute is IPv4.
14263  * Represents the source IPv4 address in the rule which is to be compared
14264  * against the source IP address in the IPv4 header.
14265  *
14266  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
14267  * attribute in case of add/change request type when classifier type is TCLAS4
14268  * and version attribute is IPv4.
14269  * Represents the destination IPv4 address in the rule which is to be compared
14270  * against the destination IP address in the IPv4 header.
14271  *
14272  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
14273  * attribute in case of add/change request type when classifier type is TCLAS4
14274  * and version attribute is IPv6.
14275  * Represents the source IPv6 address in the rule which is to be compared
14276  * against the source IP address in the IPv6 header.
14277  *
14278  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14279  * attribute in case of add/change request type when classifier type is TCLAS4
14280  * and version attribute is IPv6.
14281  * Represents the destination IPv6 address in the rule which is to be compared
14282  * against the destination IP address in the IPv6 header.
14283  *
14284  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14285  * in case of add/change request type when classifier type is TCLAS4.
14286  * Represents the source port number in the rule which is to be compared against
14287  * the source port number in the protocol header.
14288  *
14289  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14290  * in case of add/change request type when classifier type is TCLAS4.
14291  * Represents the destination port number in the rule which is to be compared
14292  * against the destination port number in the protocol header.
14293  *
14294  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14295  * in case of add/change request type when classifier type is TCLAS4.
14296  * Represents the DSCP value in the rule which is to be compared against the
14297  * DSCP field present in the IP header.
14298  *
14299  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14300  * attribute in case of add/change request type when classifier type is TCLAS4.
14301  * Represents the protocol/next header in the rule which is to be compared
14302  * against the protocol/next header field present in the IPv4/IPv6 header.
14303  *
14304  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14305  * attribute of size 3 bytes present in case of add/change request type
14306  * when classifier type is TCLAS4 and version is IPv6.
14307  * Represents the flow label value in the rule which is to be compared against
14308  * the flow label field present in the IPv6 header.
14309  *
14310  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14311  * attribute in case of add/change request type when classifier type is TCLAS10.
14312  * Represents the protocol instance number in the rule.
14313  *
14314  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14315  * attribute in case of add/change request type when classifier type is TCLAS10.
14316  * Represents the protocol/next header in the rule which is to be compared
14317  * against the protocol/next header field present in the IPv4/IPv6 header.
14318  *
14319  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14320  * attribute of variable length present when request type is add/change and
14321  * classifier type is TCLAS10.
14322  * Represents the mask to be used for masking the header contents of the header
14323  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14324  * attribute.
14325  *
14326  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14327  * attribute of variable length present when request type is add/change and
14328  * classifier type is TCLAS10.
14329  * Represents the value to be compared against after masking the header contents
14330  * of the header specified by the
14331  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14332  * filter mask specified by the
14333  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
14334  *
14335  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
14336  * attribute.
14337  * Represents the service class id of the configured SCS rule.
14338  *
14339  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
14340  * MAC address.
14341  * Represents the destination MAC address in the rule.
14342  *
14343  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
14344  * Represents the netdevice interface index in the rule.
14345  */
14346 enum qca_wlan_vendor_attr_scs_rule_config {
14347 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14348 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14349 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14350 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14351 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14352 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14353 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14354 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14355 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14356 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14357 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14358 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14359 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14360 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14361 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14362 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14363 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14364 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14365 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
14366 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
14367 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
14368 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
14369 
14370 	/* Keep last */
14371 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14372 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14373 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14374 };
14375 
14376 /**
14377  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
14378  * used in the firmware.
14379  *
14380  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
14381  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
14382  *
14383  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14384  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14385  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14386  * groups.
14387  *
14388  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14389  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14390  * CTL group but user can choose up to 3 SAR set index only, as the top half
14391  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14392  * the SAR index (3 to 5) is used for DBS mode.
14393  */
14394 enum qca_wlan_vendor_sar_version {
14395 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14396 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14397 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14398 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14399 };
14400 
14401 /**
14402  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14403  * CTL grouping is enabled or disabled in the firmware.
14404  *
14405  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14406  * is enabled in firmware.
14407  *
14408  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14409  * is disabled in firmware.
14410  *
14411  */
14412 enum qca_wlan_vendor_sar_ctl_group_state {
14413 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14414 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14415 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14416 };
14417 
14418 /**
14419  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
14420  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
14421  * supported by the firmware.
14422 
14423  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
14424  * u32 attribute. This field describes current SAR version supported by the
14425  * firmware.
14426  * See enum qca_wlan_vendor_sar_version for more information.
14427  * This attribute is mandatory.
14428 
14429  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
14430  * u32 attribute. This field describes whether CTL groups are enabled
14431  * or disabled in the firmware.
14432  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
14433  * This attribute is optional.
14434  */
14435 
14436 enum qca_wlan_vendor_attr_sar_capability {
14437 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
14438 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
14439 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
14440 
14441 	/* Keep last */
14442 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
14443 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
14444 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
14445 };
14446 
14447 /**
14448  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
14449  * These statistics are sent from the driver in a response when userspace
14450  * queries to get the statistics using the operation
14451  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
14452  * by the driver when the SR feature is enabled, when the driver receives
14453  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
14454  *
14455  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14456  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14457  * This represents the number of non-SRG TX opportunities.
14458  *
14459  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14460  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14461  * This represents the number of non-SRG PPDUs tried to transmit.
14462  *
14463  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14464  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
14465  * This represents the number of non-SRG PPDUs successfully transmitted.
14466  *
14467  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
14468  * Mandatory only when SRG is supported by the AP and optional otherwise.
14469  * This represents the number of SRG TX opportunities.
14470  *
14471  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
14472  * Mandatory only when SRG is supported by the AP and optional otherwise.
14473  * This represents the number of SRG PPDUs tried to transmit.
14474  *
14475  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
14476  * Mandatory only when SRG is supported by the AP and optional otherwise.
14477  * This represents the number of SRG PPDUs successfully transmitted.
14478  */
14479 enum qca_wlan_vendor_attr_sr_stats {
14480 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
14481 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
14482 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
14483 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
14484 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
14485 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
14486 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
14487 
14488 	/* Keep last */
14489 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
14490 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
14491 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
14492 };
14493 
14494 /**
14495  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
14496  * Spatial Reuse feature.
14497  *
14498  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
14499  * roaming to an AP that doesn't support/supports SR feature, respectively.
14500  *
14501  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
14502  * to change in concurrent interfaces that are supported by the driver.
14503  */
14504 enum qca_wlan_sr_reason_code {
14505 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
14506 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
14507 };
14508 
14509 /**
14510  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
14511  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
14512  *
14513  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
14514  * driver to enable the Spatial Reuse feature. Attributes
14515  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14516  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
14517  * operation.
14518  *
14519  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
14520  * driver to disable the Spatial Reuse feature.
14521  *
14522  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
14523  * asynchronous event sent to userspace when the SR feature is disabled.
14524  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
14525  * and sent along with the asynchronous event.
14526  *
14527  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
14528  * asynchronous event when the SR feature is enabled again after the SR feature
14529  * was suspended by the driver earlier. The enable reason is
14530  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
14531  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
14532  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
14533  *
14534  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
14535  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14536  * reuse transmissions. Userspace sends this operation to the driver.
14537  * The driver/firmware upon receiving this operation shall prohibit PSR-based
14538  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14539  *
14540  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
14541  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
14542  * reuse transmissions. Userspace sends this operation to the driver.
14543  * The driver/firmware upon receiving this operation shall allow PSR-based
14544  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
14545  *
14546  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
14547  * driver to get the SR statistics and the driver sends a synchronous response
14548  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
14549  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
14550  *
14551  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
14552  * driver to clear the SR statistics and upon receiving this operation
14553  * the driver/firmware shall clear the SR statistics.
14554  *
14555  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
14556  * driver to get the SR parameters and the driver sends the synchronous response
14557  * with the following required attributes:
14558  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14559  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14560  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14561  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14562  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14563  *
14564  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
14565  * asynchronous event to userspace to update any changes in SR parameters.
14566  * The following attributes are used with this operation:
14567  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
14568  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
14569  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
14570  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
14571  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
14572  */
14573 enum qca_wlan_sr_operation {
14574 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
14575 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
14576 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
14577 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
14578 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
14579 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
14580 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
14581 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
14582 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
14583 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
14584 };
14585 
14586 /**
14587  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
14588  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
14589  *
14590  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
14591  * This attribute is optionally set in response to
14592  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
14593  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
14594  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
14595  * about HESIGA_Spatial_reuse_value15_allowed.
14596  *
14597  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
14598  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
14599  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
14600  * allowed or not at non-AP STAs that are associated with the AP. If present
14601  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
14602  *
14603  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
14604  * attribute. This attribute is used in response to
14605  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14606  * Min Offset field which contains an unsigned integer that is added to -82 dBm
14607  * to generate the value of the SRG OBSS PD Min parameter.
14608  *
14609  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14610  * attribute. This attribute is used in response to
14611  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
14612  * Max Offset field which contains an unsigned integer that is added to -82 dBm
14613  * to generate the value of the SRG OBSS PD Max parameter.
14614  *
14615  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
14616  * attribute. This attribute is used in response to
14617  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
14618  * PD Max Offset field which contains an unsigned integer that is added to -82
14619  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
14620  *
14621  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14622  * Userspace optionally sends this attribute with
14623  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14624  * preferred SRG PD threshold. The driver shall send this attribute to
14625  * userspace in SR resume event to indicate the PD threshold being used for SR.
14626  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
14627  * the driver shall indicate the userspace the newly configured SRG PD threshold
14628  * using an asynchronous event.
14629  *
14630  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
14631  * Userspace optionally sends this attribute with
14632  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
14633  * preferred non-SRG PD threshold. The driver shall send this attribute to
14634  * userspace in SR resume event to indicate the PD threshold being used for SR.
14635  * When there is change in non-SRG PD threshold (for example, due to roaming,
14636  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
14637  * threshold using an asynchronous event.
14638  *
14639  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
14640  * values are defined in enum qca_wlan_sr_reason_code. This
14641  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
14642  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
14643  */
14644 enum qca_wlan_vendor_attr_sr_params {
14645 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
14646 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
14647 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
14648 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
14649 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
14650 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
14651 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
14652 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
14653 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
14654 
14655 	/* keep last */
14656 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
14657 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
14658 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
14659 };
14660 
14661 /**
14662  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
14663  * command QCA_NL80211_VENDOR_SUBCMD_SR.
14664  *
14665  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
14666  * from userspace to the driver. Possible values are defined in enum
14667  * qca_wlan_sr_operation.
14668  *
14669  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
14670  * configuration parameters. The possible attributes inside this attribute are
14671  * defined in enum qca_wlan_vendor_attr_sr_params.
14672  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14673  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
14674  * also in response from the driver to userspace when the response is sent for
14675  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
14676  * The driver uses this attribute in asynchronous events in which the operation
14677  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
14678  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
14679  *
14680  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
14681  * statistics. These attributes used inside this are defined in enum
14682  * qca_wlan_vendor_attr_sr_stats.
14683  * This attribute is used in response from the driver to a command in which
14684  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
14685  * %QCA_WLAN_SR_OPERATION_GET_STATS.
14686  */
14687 enum qca_wlan_vendor_attr_sr {
14688 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
14689 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
14690 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
14691 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
14692 
14693 	/* Keep last */
14694 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
14695 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
14696 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
14697 };
14698 
14699 /**
14700  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
14701  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
14702  *
14703  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
14704  * used by the peer on the link that corresponds to the link used for sending
14705  * the event notification.
14706  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
14707  * MLD MAC address of the peer.
14708  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
14709  * used to pass ifindex of the primary netdev.
14710  */
14711 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
14712 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
14713 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
14714 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
14715 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
14716 
14717 	/* keep last */
14718 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
14719 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
14720 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
14721 };
14722 
14723 /**
14724  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
14725  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
14726  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
14727  * and PSD information.
14728  *
14729  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
14730  * u32. This attribute is used to indicate the start of the queried frequency
14731  * range in MHz.
14732  *
14733  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
14734  * This attribute is used to indicate the end of the queried frequency range
14735  * in MHz.
14736  *
14737  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
14738  * This attribute will contain the PSD information for a single range as
14739  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
14740  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
14741  *
14742  * The PSD power info (dBm/MHz) from user space should be multiplied
14743  * by a factor of 100 when sending to the driver to preserve granularity
14744  * up to 2 decimal places.
14745  * Example:
14746  *     PSD power value: 10.21 dBm/MHz
14747  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
14748  *
14749  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
14750  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
14751  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
14752  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14753  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14754  *
14755  * The following set of attributes will be used to exchange frequency and
14756  * corresponding PSD information for AFC between the user space and the driver.
14757  */
14758 enum qca_wlan_vendor_attr_afc_freq_psd_info {
14759 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
14760 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
14761 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
14762 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
14763 
14764 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
14765 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
14766 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
14767 };
14768 
14769 /**
14770  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
14771  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
14772  * channel list and corresponding EIRP information.
14773  *
14774  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
14775  * This attribute is used to indicate queried channel from
14776  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
14777  *
14778  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
14779  * This attribute is used to configure the EIRP power info corresponding
14780  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
14781  * The EIRP power info(dBm) from user space should be multiplied
14782  * by a factor of 100 when sending to Driver to preserve granularity up to
14783  * 2 decimal places.
14784  * Example:
14785  *     EIRP power value: 34.23 dBm
14786  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
14787  *
14788  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
14789  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14790  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
14791  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14792  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
14793  *
14794  * The following set of attributes will be used to exchange Channel and
14795  * corresponding EIRP information for AFC between the user space and Driver.
14796  */
14797 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
14798 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
14799 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
14800 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
14801 
14802 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
14803 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
14804 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
14805 };
14806 
14807 /**
14808  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
14809  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14810  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
14811  * channel, and EIRP related information.
14812  *
14813  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
14814  * This attribute is used to indicate the operating class, as listed under
14815  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
14816  *
14817  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
14818  * for updating the channel number and EIRP power information.
14819  * It uses the attributes defined in
14820  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
14821  *
14822  * Operating class information packing format for
14823  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14824  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14825  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
14826  *
14827  * m - Total number of operating classes.
14828  * n, j - Number of queried channels for the corresponding operating class.
14829  *
14830  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14831  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14832  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14833  *      .....
14834  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14835  *  ....
14836  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14837  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14838  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14839  *      ....
14840  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14841  *
14842  * Operating class information packing format for
14843  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
14844  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
14845  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14846  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
14847  *
14848  * m - Total number of operating classes.
14849  * n, j - Number of channels for the corresponding operating class.
14850  *
14851  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
14852  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
14853  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14854  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14855  *      .....
14856  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
14857  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
14858  *  ....
14859  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
14860  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
14861  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
14862  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
14863  *      ....
14864  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
14865  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
14866  *
14867  * The following set of attributes will be used to exchange operating class
14868  * information for AFC between the user space and the driver.
14869  */
14870 enum qca_wlan_vendor_attr_afc_opclass_info {
14871 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
14872 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
14873 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
14874 
14875 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
14876 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
14877 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
14878 };
14879 
14880 /**
14881  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
14882  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
14883  *
14884  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
14885  * driver to userspace in order to query the new AFC power values.
14886  *
14887  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
14888  * complete event will be sent from the driver to userspace to indicate
14889  * processing of the AFC response.
14890  *
14891  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
14892  * will be sent from the driver to userspace to indicate last received
14893  * AFC response data has been cleared on the AP due to invalid data
14894  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
14895  *
14896  * The following enum defines the different event types that will be
14897  * used by the driver to help trigger corresponding AFC functionality in user
14898  * space.
14899  */
14900 enum qca_wlan_vendor_afc_event_type {
14901 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
14902 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
14903 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
14904 };
14905 
14906 /**
14907  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
14908  * deployment type.
14909  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
14910  *
14911  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
14912  *
14913  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
14914  *
14915  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
14916  *
14917  * The following enum defines different deployment modes that the AP might
14918  * come up in. This information will be essential to retrieve deployment-type
14919  * specific SP power values for AFC operation.
14920  */
14921 enum qca_wlan_vendor_afc_ap_deployment_type {
14922 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
14923 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
14924 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
14925 };
14926 
14927 /**
14928  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
14929  * indicate AFC response status.
14930  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
14931  *
14932  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
14933  *
14934  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
14935  * command was not received within the expected time of the AFC expiry event
14936  * being triggered.
14937  *
14938  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
14939  * parsing error by the driver.
14940  *
14941  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
14942  * error.
14943  *
14944  * The following enum defines the status codes that the driver will use to
14945  * indicate whether the AFC data is valid or not.
14946  */
14947 enum qca_wlan_vendor_afc_evt_status_code {
14948 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
14949 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
14950 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
14951 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
14952 };
14953 
14954 /**
14955  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
14956  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
14957  * support sending only a single request to the user space at a time.
14958  *
14959  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
14960  * Used with event to notify the type of AFC event received.
14961  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
14962  *
14963  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
14964  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14965  * otherwise unused.
14966  *
14967  * This attribute is used to indicate the AP deployment type in the AFC request.
14968  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
14969  *
14970  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
14971  * Unique request identifier generated by the AFC client for every
14972  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
14973  * The user space application is responsible for ensuring no duplicate values
14974  * are in-flight with the server, e.g., by delaying a request, should the same
14975  * value be received from different radios in parallel.
14976  *
14977  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
14978  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14979  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
14980  *
14981  * This attribute indicates the AFC spec version information. This will
14982  * indicate the AFC version AFC client must use to query the AFC data.
14983  * Bits 15:0  - Minor version
14984  * Bits 31:16 - Major version
14985  *
14986  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
14987  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
14988  * otherwise unused.
14989  * This attribute indicates the minimum desired power (in dBm) for
14990  * the queried spectrum.
14991  *
14992  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
14993  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
14994  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
14995  *
14996  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
14997  * This attribute is used to indicate if there were any errors parsing the
14998  * AFC response.
14999  *
15000  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
15001  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15002  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15003  *
15004  * This attribute indicates the AFC response code. The AFC response codes are
15005  * in the following categories:
15006  * -1: General Failure.
15007  * 0: Success.
15008  * 100 - 199: General errors related to protocol.
15009  * 300 - 399: Error events specific to message exchange
15010  *            for the Available Spectrum Inquiry.
15011  *
15012  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
15013  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15014  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15015  *
15016  * This attribute indicates the date until which the current response is
15017  * valid for in UTC format.
15018  * Date format: bits 7:0   - DD (Day 1-31)
15019  *              bits 15:8  - MM (Month 1-12)
15020  *              bits 31:16 - YYYY (Year)
15021  *
15022  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
15023  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15024  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15025  *
15026  * This attribute indicates the time until which the current response is
15027  * valid for in UTC format.
15028  * Time format: bits 7:0   - SS (Seconds 0-59)
15029  *              bits 15:8  - MM (Minutes 0-59)
15030  *              bits 23:16 - HH (Hours 0-23)
15031  *              bits 31:24 - Reserved
15032  *
15033  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
15034  * for updating the list of frequency ranges to be queried.
15035  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15036  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15037  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15038  * It uses the attributes defined in
15039  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
15040  *
15041  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
15042  * for updating the list of operating classes and corresponding channels to be
15043  * queried.
15044  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15045  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15046  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15047  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
15048  */
15049 enum qca_wlan_vendor_attr_afc_event {
15050 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
15051 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
15052 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
15053 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
15054 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
15055 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
15056 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
15057 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
15058 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
15059 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
15060 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
15061 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
15062 
15063 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
15064 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
15065 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
15066 };
15067 
15068 /**
15069  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
15070  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
15071  * will support sending only a single AFC response to the driver at a time.
15072  *
15073  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
15074  * This attribute will be used to send a single Spectrum Inquiry response object
15075  * from the 'availableSpectrumInquiryResponses' array object from the response
15076  * JSON.
15077  *
15078  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
15079  *
15080  * This attribute indicates the period (in seconds) for which the response
15081  * data received is valid for.
15082  *
15083  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
15084  *
15085  * This attribute indicates the request ID for which the corresponding
15086  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
15087  *
15088  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
15089  *
15090  * This attribute indicates the date until which the current response is
15091  * valid for in UTC format.
15092  * Date format: bits 7:0   - DD (Day 1-31)
15093  *              bits 15:8  - MM (Month 1-12)
15094  *              bits 31:16 - YYYY (Year)
15095  *
15096  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
15097  *
15098  * This attribute indicates the time until which the current response is
15099  * valid for in UTC format.
15100  * Time format: bits 7:0   - SS (Seconds 0-59)
15101  *              bits 15:8  - MM (Minutes 0-59)
15102  *              bits 23:16 - HH (Hours 0-23)
15103  *              bits 31:24 - Reserved
15104  *
15105  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
15106  *
15107  * This attribute indicates the AFC response code. The AFC response codes are
15108  * in the following categories:
15109  * -1: General Failure.
15110  * 0: Success.
15111  * 100 - 199: General errors related to protocol.
15112  * 300 - 399: Error events specific to message exchange
15113  *            for the Available Spectrum Inquiry.
15114  *
15115  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
15116  * for PSD info of all the queried frequency ranges. It uses the attributes
15117  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
15118  *
15119  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
15120  * attributes for EIRP info of all queried operating class/channels. It uses
15121  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
15122  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
15123  *
15124  */
15125 enum qca_wlan_vendor_attr_afc_response {
15126 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
15127 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
15128 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
15129 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
15130 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
15131 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
15132 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
15133 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
15134 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
15135 
15136 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
15137 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
15138 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
15139 };
15140 
15141 /**
15142  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
15143  *
15144  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
15145  *
15146  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
15147  * beaconing at higher beacon interval with Rx disabled.
15148  */
15149 enum qca_wlan_dozed_ap_state {
15150 	QCA_WLAN_DOZED_AP_DISABLE = 0,
15151 	QCA_WLAN_DOZED_AP_ENABLE = 1,
15152 };
15153 
15154 /**
15155  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
15156  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
15157  * configuration.
15158  *
15159  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
15160  * Configures the doze state for an AP interface. Possible values are defined
15161  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
15162  * gets triggered asynchronously to provide updated AP interface configuration.
15163  *
15164  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
15165  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
15166  * command, which is used later to maintain synchronization between commands
15167  * and asynchronous events.
15168  *
15169  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
15170  * Used in event to indicate the next TBTT TSF timer value after applying the
15171  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
15172  * the first beacon after entering or exiting dozed mode.
15173  *
15174  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
15175  * Used with event to inform the periodicity of beacon transmission that would
15176  * be skipped at all TBTTs in between.
15177  */
15178 enum qca_wlan_vendor_attr_dozed_ap {
15179 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
15180 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
15181 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
15182 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
15183 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
15184 
15185 	/* Keep last */
15186 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
15187 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
15188 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
15189 };
15190 
15191 #endif
15192