xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/qca_vendor.h (revision 839714c413056bc9b82af766295b4ffabe28bbbf)
1 /*
2  * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: declares vendor commands interfacing with linux kernel
22  */
23 
24 
25 #ifndef _WLAN_QCA_VENDOR_H_
26 #define _WLAN_QCA_VENDOR_H_
27 
28 /* Vendor id to be used in vendor specific command and events
29  * to user space.
30  * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
31  * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
32  * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
33  * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
34  */
35 
36 #define QCA_NL80211_VENDOR_ID           0x001374
37 
38 #ifndef BIT
39 #define BIT(x) (1U << (x))
40 #endif
41 
42 /**
43  * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
44  *
45  * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
46  * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
47  *	Sub commands 2 to 8 are not used
48  * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
49  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
50  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
51  * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
52  *	NAN Request/Response and NAN Indication messages. These messages are
53  *	interpreted between the framework and the firmware component. While
54  *	sending the command from userspace to the driver, payload is not
55  *	encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
56  *	is used when receiving vendor events in userspace from the driver.
57  * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
58  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
59  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
60  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
61  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
62  *	results
63  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
64  *	results
65  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
66  *	results
67  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
68  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
69  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
70  *	channels
71  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
72  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
73  *	results
74  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
75  *	available. Used when report_threshold is reached in scan cache.
76  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
77  *	result. Used to report scan results when each probe rsp. is received,
78  *	if report_events enabled in wifi_scan_cmd_params.
79  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
80  *	Indicates progress of scanning state-machine.
81  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
82  *	ap found
83  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
84  *	bssid
85  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
86  *	hotlist bssid
87  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
88  *	change
89  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
90  *	significant change
91  *	ap found
92  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
93  *	significant change
94  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
95  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
96  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
97  * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
98  * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
99  * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
100  * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
101  * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
102  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
103  * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
104  * roaming and auth information.
105  * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
106  *
107  * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
108  *	invoke the ACS function in device and pass selected channels to
109  *	hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
110  *
111  * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
112  * driver.
113  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
114  *	started CAC on DFS channel
115  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
116  * 	completed the CAC check on DFS channel
117  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
118  * 	check was aborted by the driver
119  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
120  * 	driver completed NOP
121  * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
122  * 	driver detected radar signal on the current operating channel
123  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
124  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
125  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
126  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
127  * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
128  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
129  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
130  *	extscan reset ssid hotlist
131  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
132  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
133  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
134  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
135  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
136  *	reset passpoint list
137  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
138  * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
139  *	passpoint network found
140  * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
141  * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
142  * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
143  * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
144  * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
145  * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
146 	list
147  * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
148  * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
149  *	to the host driver. This command sets the band through either
150  *	the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
151  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
152  *	refers enum qca_set_band as unsigned integer values and
153  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
154  *	values. Also, the acceptable values for
155  *	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
156  *	values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
157  *	attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
158  *	recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
159  *	implementations configure using both the attributes, the configurations
160  *	through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
161  *	precedence.
162  * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
163  * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
164  * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
165  * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
166  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
167  * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
168  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
169  * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
170  * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
171  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
172  *	start the P2P Listen Offload function in device and pass the listen
173  *	channel, period, interval, count, number of device types, device
174  *	types and vendor information elements to device driver and firmware.
175  * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
176  *	indicate stop request/response of the P2P Listen Offload function in
177  *	device. As an event, it indicates either the feature stopped after it
178  *	was already running or feature has actually failed to start.
179  * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
180  * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
181  *     beaconing, this sub command provides the driver, the frequencies on the
182  *     5 GHz to check for any radar activity. Driver selects one channel from
183  *     this priority list provided through
184  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
185  *     to check for radar activity on it. If no radar activity is detected
186  *     during the channel availability check period, driver internally switches
187  *     to the selected frequency of operation. If the frequency is zero, driver
188  *     internally selects a channel. The status of this conditional switch is
189  *     indicated through an event using the same sub command through
190  *     @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
191  *     listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
192  * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
193  *      indication period and threshold for MAC layer counters.
194  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
195  *	in the host driver. The different TDLS configurations are defined
196  *	by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
197  * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
198  * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
199  *	(SAR) power limits. A critical regulation for FCC compliance, OEMs
200  *	require methods to set SAR limits on TX power of WLAN/WWAN.
201  *	enum qca_vendor_attr_sar_limits attributes are used with this command.
202  * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
203  *      configuration of vendor ACS.
204  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
205  *      requisite information leading to a power save failure. The information
206  *      carried as part of this event is represented by the
207  *      enum qca_attr_chip_power_save_failure attributes.
208  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
209  *      collection. Uses attributes defined in enum qca_attr_nud_stats_set.
210  * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
211  *      statistics are represented by the enum qca_attr_nud_stats_get
212  *      attributes.
213  * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
214  *      the BSS transition status, whether accept or reject, for a list of
215  *      candidate BSSIDs provided by the userspace. This uses the vendor
216  *      attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
217  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
218  *      the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
219  *      array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
220  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
221  *      the driver shall specify array of
222  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
223  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
224  *      QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
225  * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
226  *      specific QCA module. The trace levels are represented by
227  *      enum qca_attr_trace_level attributes.
228  * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
229  *      Protocol antenna limit in different modes. See enum
230  *      qca_wlan_vendor_attr_brp_ant_limit_mode.
231  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
232  *      parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
233  *      This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
234  *      identifying the operation in success case. In failure cases an
235  *      error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
236  *      describing the reason for the failure is returned.
237  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
238  *      a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
239  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
240  *      be stopped.
241  * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
242  *     specific interface. This can be used to modify some of the low level
243  *     scan parameters (off channel dwell time, home channel time) in the
244  *     driver/firmware. These parameters are maintained within the host
245  *     driver.
246  *     This command is valid only when the interface is in the connected
247  *     state.
248  *     These scan parameters shall be reset by the driver/firmware once
249  *     disconnected. The attributes used with this command are defined in
250  *     enum qca_wlan_vendor_attr_active_tos.
251  * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
252  *      driver has detected an internal failure. This event carries the
253  *      information indicating the reason that triggered this detection. The
254  *      attributes for this command are defined in
255  *      enum qca_wlan_vendor_attr_hang.
256  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
257  *     of spectral parameters used. The spectral scan parameters are specified
258  *     by enum qca_wlan_vendor_attr_spectral_scan.
259  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
260  *     for spectral scan functionality. The debug stats are specified by
261  *     enum qca_wlan_vendor_attr_spectral_diag_stats.
262  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
263  *     scan system capabilities. The capabilities are specified
264  *     by enum qca_wlan_vendor_attr_spectral_cap.
265  * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
266  *     status of spectral scan. The status values are specified
267  *     by enum qca_wlan_vendor_attr_spectral_scan_status.
268  * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
269  *     peer pending packets. Specify the peer MAC address in
270  *     QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
271  *     in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
272  *     in enum qca_wlan_vendor_attr_flush_pending.
273  * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
274  *     RF Operating Parameter (RROP) information. The attributes for this
275  *     information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
276  *     intended for use by external Auto Channel Selection applications.
277  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
278  *	(SAR) power limits. This is a companion to the command
279  *	@QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
280  *	settings currently in use. The attributes returned by this command are
281  *	defined by enum qca_vendor_attr_sar_limits.
282  * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
283  *      the WLAN hardware MAC's associated with each WLAN netdev interface.
284  *      This works both as a query (user space asks the current mode) or event
285  *      interface (driver advertizing the current mode to the user space).
286  *      Driver does not trigger this event for temporary hardware mode changes.
287  *      Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
288  *      channel change etc ) are updated with this event. Attributes for this
289  *      interface are defined in enum qca_wlan_vendor_attr_mac.
290  * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
291  *	per peer per TID. Attributes for this command are define in
292  *	enum qca_wlan_set_qdepth_thresh_attr
293  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
294  *	guide for WLAN driver. Request to suspend of driver and FW if the
295  *	temperature is higher than the suspend threshold; resume action is
296  *	requested to driver if the temperature is lower than the resume
297  *	threshold. In user poll mode, request temperature data by user. For test
298  *	purpose, getting thermal shutdown configuration parameters is needed.
299  *	Attributes for this interface are defined in
300  *	enum qca_wlan_vendor_attr_thermal_cmd.
301  * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
302  *	driver. Thermal temperature and indication of resume completion are
303  *	reported as thermal events. The attributes for this command are defined
304  *	in enum qca_wlan_vendor_attr_thermal_event.
305  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
306  *	test configuration. Attributes for this command are defined in
307  *	enum qca_wlan_vendor_attr_wifi_test_config.
308  * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
309  *	command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
310  *	carried a payload which was a binary blob of data. The command was not
311  *	extendable to send more information. The newer version carries the
312  *	legacy blob encapsulated within an attribute and can be extended with
313  *	additional vendor attributes that can enhance the NAN command
314  *	interface.
315  * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
316  *	configure parameters per peer to capture Channel Frequency Response
317  *	(CFR) and enable Periodic CFR capture. The attributes for this command
318  *	are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
319  *	can also be used to send CFR data from the driver to userspace when
320  *	netlink events are used to send CFR data.
321  * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
322  *	The returned firmware state is specified in the attribute
323  *	QCA_WLAN_VENDOR_ATTR_FW_STATE.
324  * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
325  *	is used by host driver to flush per-peer cached statistics to user space
326  *	application. This interface is used as an event from host driver to
327  *	user space application. Attributes for this event are specified in
328  *	enum qca_wlan_vendor_attr_peer_stats_cache_params.
329  *	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
330  *	sent as event from host driver.
331  * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
332  *	improve the success rate of Zigbee joining network.
333  *	Due to PTA master limitation, zigbee joining network success rate is
334  *	low while wlan is working. Wlan host driver need to configure some
335  *	parameters including Zigbee state and specific WLAN periods to enhance
336  *	PTA master. All this parameters are delivered by the NetLink attributes
337  *	defined in "enum qca_mpta_helper_vendor_attr".
338  * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
339  *	implement Beacon frame reporting feature.
340  *
341  *	Userspace can request the driver/firmware to periodically report
342  *	received Beacon frames whose BSSID is same as the current connected
343  *	BSS's MAC address.
344  *
345  *	In case the STA seamlessly (without sending disconnect indication to
346  *	userspace) roams to a different BSS, Beacon frame reporting will be
347  *	automatically enabled for the Beacon frames whose BSSID is same as the
348  *	MAC address of the new BSS. Beacon reporting will be stopped when the
349  *	STA is disconnected (when the disconnect indication is sent to
350  *	userspace) and need to be explicitly enabled by userspace for next
351  *	connection.
352  *
353  *	When a Beacon frame matching configured conditions is received, and if
354  *	userspace has requested to send asynchronous beacon reports, the
355  *	driver/firmware will encapsulate the details of the Beacon frame in an
356  *	event and send it to userspace along with updating the BSS information
357  *	in cfg80211 scan cache, otherwise driver will only update the cfg80211
358  *	scan cache with the information from the received Beacon frame but
359  *	will not send any active report to userspace.
360  *
361  *	The userspace can request the driver/firmware to stop reporting Beacon
362  *	frames. If the driver/firmware is not able to receive Beacon frames
363  *	due to other Wi-Fi operations such as off-channel activities, etc.,
364  *	the driver/firmware will send a pause event to userspace and stop
365  *	reporting Beacon frames. Whether the beacon reporting will be
366  *	automatically resumed or not by the driver/firmware later will be
367  *	reported to userspace using the
368  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
369  *	reporting shall be resumed for all the cases except either when
370  *	userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
371  *	in the command which triggered the current beacon reporting or during
372  *	any disconnection case as indicated by setting
373  *	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
374  *	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
375  *	driver.
376  *
377  *	After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
378  *	by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
379  *	flag not set, the next first
380  *	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
381  *	shall be considered as un-pause event.
382  *
383  *	All the attributes used with this command are defined in
384  *	enum qca_wlan_vendor_attr_beacon_reporting_params.
385  * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
386  *	interop issues with the DUT. This sub command is used to transfer the
387  *	ap info between driver and user space. This works both as a command
388  *	or event. As a command, it configs the stored list of aps from user
389  *	space to firmware; as an event, it indicates the ap info detected by
390  *	firmware to user space for persistent storage. The attributes defined
391  *	in enum qca_vendor_attr_interop_issues_ap are used to deliver the
392  *	parameters.
393  * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
394  *	binary blobs from application/service to firmware. The attributes
395  *	defined in enum qca_wlan_vendor_attr_oem_data_params are used to
396  *	deliver the parameters.
397  * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
398  *	to send/receive avoid frequency data using
399  *	enum qca_wlan_vendor_attr_avoid_frequency_ext.
400  *	This new command is alternative to existing command
401  *	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
402  *	is using stream of bytes instead of structured data using vendor
403  *	attributes. User space sends unsafe frequency ranges to the driver using
404  *	a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
405  *	reception of this command, the driver shall check if an interface is
406  *	operating on an unsafe frequency and the driver shall try to move to a
407  *	safe channel when needed. If the driver is not able to find a safe
408  *	channel the interface can keep operating on an unsafe channel with the
409  *	TX power limit derived based on internal configurations	like
410  *	regulatory/SAR rules.
411  *
412  * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
413  *	add the STA node details in driver/firmware. Attributes for this event
414  *	are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
415  * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
416  *	coex chain mode from application/service.
417  *	The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
418  *	to deliver the parameters.
419  * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
420  *	get information of a station from driver to userspace. This command can
421  *	be used in both STA and AP modes. For STA mode, it provides information
422  *	of the current association when in connected state or the last
423  *	association when in disconnected state. For AP mode, only information
424  *	of the currently connected stations is available. This command uses
425  *	attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
426  * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
427  *	Host drivers can request the user space entity to set the SAR power
428  *	limits with this event. Accordingly, the user space entity is expected
429  *	to set the SAR power limits. Host drivers can retry this event to the
430  *	user space for the SAR power limits configuration from user space. If
431  *	the driver does not get the SAR power limits from user space for all
432  *	the retried attempts, it can configure a default SAR power limit.
433  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
434  *	is used to update the information about the station from the driver to
435  *	userspace. Uses attributes from enum
436  *	qca_wlan_vendor_attr_update_sta_info.
437  *
438  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
439  *	The host driver initiates the disconnection for scenarios such as beacon
440  *	miss, NUD failure, peer kick out, etc. The disconnection indication
441  *	through cfg80211_disconnected() expects the reason codes from enum
442  *	ieee80211_reasoncode which does not signify these various reasons why
443  *	the driver has triggered the disconnection. This event will be used to
444  *	send the driver specific reason codes by the host driver to userspace.
445  *	Host drivers should trigger this event and pass the respective reason
446  *	code immediately prior to triggering cfg80211_disconnected(). The
447  *	attributes used with this event are defined in enum
448  *	qca_wlan_vendor_attr_driver_disconnect_reason.
449  *
450  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
451  *	add/delete TSPEC for each AC. One command is for one specific AC only.
452  *	This command can only be used in STA mode and the STA must be
453  *	associated with an AP when the command is issued. Uses attributes
454  *	defined in enum qca_wlan_vendor_attr_config_tspec.
455  *
456  * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
457  *	Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
458  *
459  * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
460  *	the host driver. The band configurations obtained are referred through
461  *	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
462  *
463  * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
464  *	assessment.
465  *	Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
466  *
467  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
468  *	used to update SSID information in hostapd when it is updated in the
469  *	driver. Uses the attribute NL80211_ATTR_SSID.
470  *
471  * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
472  *	the driver to send opaque data from the firmware to userspace. The
473  *	driver sends an event to userspace whenever such data is received from
474  *	the firmware.
475  *
476  *	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
477  *	send this opaque data for this event.
478  *
479  *	The format of the opaque data is specific to the particular firmware
480  *	version and there is no guarantee of the format remaining same.
481  *
482  * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
483  *	The host driver selects Tx VDEV, and notifies user. The attributes
484  *	used with this event are defined in enum
485  *	qca_wlan_vendor_attr_mbssid_tx_vdev_status.
486  *	This event contains Tx VDEV group information contains other VDEVs
487  *	interface index and status information.
488  *
489  * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
490  *	configure the concurrent session policies when multiple interfaces
491  *	are (getting) active. The attributes used by this command are defined
492  *	in enum qca_wlan_vendor_attr_concurrent_policy.
493  *
494  * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
495  *	to query usable channels for different interface types such as STA,
496  *	AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
497  *	channels in the response based on country code, different static
498  *	configurations, concurrency combinations, etc. The attributes used
499  *	with this command are defined in
500  *	enum qca_wlan_vendor_attr_usable_channels.
501  *
502  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
503  *	to get DFS radar history from the driver to userspace. The driver
504  *	returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
505  *	array of nested entries.
506  * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
507  *	enable/disable mDNS offload to the firmware. The attributes used with
508  *	this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
509  *
510  * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
511  *	important debug events that are required for various issues. The
512  *	attributes used with this command are defined in
513  *	enum qca_wlan_vendor_attr_diag.
514  *	This command is defined for temporary usage until this interface is
515  *	moved to the existing diag infra with cnss diag events. This command
516  *	will be deprecated soon and it is not recommended to do any further
517  *	enhancements to this command.
518  *
519  * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
520  *     to set packet monitor mode that aims to send the specified set of TX and
521  *     RX frames on the current client interface to an active monitor interface.
522  *     If this Monitor mode is set, the driver will send the configured frames,
523  *     from the interface on which the command is issued, to an active monitor
524  *     interface. The attributes used with this command are defined in
525  *     enum qca_wlan_vendor_attr_set_monitor_mode.
526  *
527  *     Though the monitor mode is configured for the respective data/mgmt/ctrl
528  *     frames, it is up to the respective WLAN driver/firmware/hardware designs
529  *     to consider the possibility of sending these frames over the monitor
530  *     interface. For example, the control frames are handled with in the
531  *     hardware and thus passing such frames over the monitor interface is left
532  *     to the respective designs.
533  *
534  *     Also, this monitor mode is governed to behave accordingly in
535  *     suspend/resume states. If the firmware handles any of such frames
536  *     in suspend state without waking up the host and if the monitor mode
537  *     is configured to notify all such frames, then the firmware is expected
538  *     to resume the host and forward the respective frames to the monitor
539  *     interface. Please note that such a request to get the frames over the
540  *     monitor interface will have a definite power implications.
541  *
542  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
543  *     as a request to set the driver/firmware with the parameters to trigger
544  *     the roaming events, and also used by the driver/firmware to pass on the
545  *     various roam events to userspace.
546  *     Applicable only for the STA mode. The attributes used with this command
547  *     are defined in enum qca_wlan_vendor_attr_roam_events.
548  *
549  * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
550  *     rate mask config for a list of phy types. Userspace shall provide
551  *     an array of the vendor attributes defined in
552  *     enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
553  *
554  * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
555  *	when two interfaces are active on the same band, using two different
556  *	home channels, and only supported by a single radio. In this scenario
557  *	the device must split the use of the radio between the two interfaces.
558  *	The percentage of time allocated to a given interface is the quota.
559  *	Depending on the configuration, the quota can either be fixed or
560  *	dynamic.
561  *
562  *	When used as an event, the device will report the quota type, and for
563  *	all interfaces operating in MCC it will report the current quota.
564  *	When used as a command, the device can be configured for a specific
565  *	quota type, and in the case of a fixed quota, the quota to apply to one
566  *	of the interfaces.
567  *
568  *	Applications can use the event to do TX bitrate control based on the
569  *	information, and can use the command to explicitly set the quota to
570  *	enhance performance in specific scenarios.
571  *
572  *	The attributes used with this command are defined in
573  *	enum qca_wlan_vendor_attr_mcc_quota.
574  *
575  * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
576  *	user space that the driver is ready for operations again after
577  *	recovering from internal failures. This occurs following a failure
578  *	that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
579  *
580  * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
581  *	get the WLAN radio combinations matrix supported by the device which
582  *	provides the device simultaneous radio configurations such as
583  *	standalone, dual band simultaneous, and single band simultaneous.
584  *
585  *	The attributes used with this command are defined in
586  *	enum qca_wlan_vendor_attr_radio_combination_matrix.
587  *
588  * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
589  *	security negotiation and key generation to user space.
590  *
591  *	When used as an event, the driver requests userspace to trigger the PASN
592  *	authentication or dropping of a PTKSA for the indicated peer devices.
593  *	When used as a command response, userspace indicates a consolidated
594  *	status report for all the peers that were requested for.
595  *
596  *	The attributes used with this command are defined in
597  *	enum qca_wlan_vendor_attr_pasn.
598  *
599  * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
600  *	secure ranging context such as TK and LTF keyseed for each peer
601  *	requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
602  *
603  *	The attributes used with this command are defined in
604  *	enum qca_wlan_vendor_attr_secure_ranging_ctx.
605  *
606  * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
607  *	enable/disable offload processing in firmware during system/runtime
608  *	suspend for CoAP messages (see RFC7252: The Constrained Application
609  *	Protocol) and fetch information of the CoAP messages cached during
610  *	offload processing.
611  *
612  *	The attributes used with this command are defined in
613  *	enum qca_wlan_vendor_attr_coap_offload.
614  *
615  * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
616  *	(add, remove, or change) a Stream Classification Service (SCS) rule.
617  *
618  *	The attributes used with this event are defined in
619  *	enum qca_wlan_vendor_attr_scs_rule_config.
620  *
621  * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
622  *	supported by the WLAN firmware.
623  *
624  *	The attributes used with this command are defined in
625  *	enum qca_wlan_vendor_attr_sar_capability.
626  *
627  * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
628  *	(SR) feature. This command is used by userspace to configure SR
629  *	parameters to the driver and to get the SR related parameters and
630  *	statistics with synchronous responses from the driver.
631  *	The driver also uses this command to send asynchronous events to
632  *	userspace to indicate suspend/resume of SR feature and changes
633  *	in SR parameters.
634  *
635  *	The attributes used with this command are defined in
636  *	enum qca_wlan_vendor_attr_sr.
637  *
638  * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
639  *	notify application layer about the primary netdev of an MLO connection.
640  *	In some implementations, MLO has multiple netdevs out of which one
641  *	netdev is designated as primary to provide a unified interface to the
642  *	bridge. In those implementations this event is sent on every MLO peer
643  *	connection.
644  *
645  *	The attributes used with this event are defined in
646  *	enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
647  *
648  * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
649  *	driver to notify different AFC events to userspace. The attributes used
650  *	with this command are defined in enum qca_wlan_vendor_attr_afc_event.
651  *
652  * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
653  *	userspace to deliver AFC response data to driver. The attributes used
654  *	with this command are defined in enum qca_wlan_vendor_attr_afc_response.
655  *
656  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
657  *	operate in doze mode.
658  *
659  *	Userspace uses this command to configure the AP interface to enter or
660  *	exit from doze mode. The driver sends this event after it enters or
661  *	exits the doze mode with the updated AP doze mode settings.
662  *
663  *	The attributes used with this subcommand are defined in
664  *	enum qca_wlan_vendor_attr_dozed_ap.
665  *
666  * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
667  *	get roam information from the driver to user space. It provides the
668  *	latest several instances of roam information cached in the driver.
669  *	The command is only used for STA mode. The attributes used with this
670  *	command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
671  */
672 
673 enum qca_nl80211_vendor_subcmds {
674 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
675 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
676 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
677 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
678 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
679 	QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
680 	QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
681 
682 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
683 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
684 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
685 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
686 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
687 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
688 
689 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
690 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
691 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
692 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
693 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
694 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
695 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
696 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
697 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
698 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
699 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
700 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
701 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
702 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
703 
704 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
705 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
706 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
707 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
708 
709 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
710 
711 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
712 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
713 
714 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
715 
716 	/* Get Concurrency Matrix */
717 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
718 
719 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
720 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
721 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
722 
723 	/* Deprecated */
724 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
725 
726 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
727 
728 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
729 
730 	/* Off loaded DFS events */
731 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
732 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
733 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
734 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
735 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
736 
737 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
738 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
739 	QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
740 	QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
741 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
742 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
743 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
744 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
745 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
746 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
747 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
748 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
749 	QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
750 
751 	/* Wi-Fi Configuration subcommands */
752 	QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
753 	QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
754 	QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
755 	QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
756 
757 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
758 	QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
759 	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
760 	QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
761 
762 	/* NS Offload enable/disable cmd */
763 	QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
764 
765 	QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
766 	QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
767 
768 	QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
769 
770 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
771 	/* OCB commands */
772 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
773 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
774 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
775 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
776 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
777 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
778 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
779 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
780 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
781 
782 	/* subcommand to get link properties */
783 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
784 	/* LFR Subnet Detection */
785 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
786 
787 	/* DBS subcommands */
788 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
789 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
790 
791 	/* Vendor setband command */
792 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
793 
794 	/* Vendor scan commands */
795 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
796 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
797 
798 	/* OTA test subcommand */
799 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
800 	/* Tx power scaling subcommands */
801 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
802 	/* Tx power scaling in db subcommands */
803 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
804 	QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
805 	QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
806 	QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG  = 118,
807 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
808 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
809 	QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
810 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
811 	QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
812 	QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
813 	QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
814 
815 	QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
816 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
817 	/* FTM/indoor location subcommands */
818 	QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
819 	QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
820 	QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
821 	QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
822 	QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
823 	QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
824 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
825 	QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
826 	QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
827 
828 	/* Encrypt/Decrypt command */
829 	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
830 
831 	QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
832 	/* DMG low level RF sector operations */
833 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
834 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
835 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
836 	QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
837 
838 	/* Configure the TDLS mode from user space */
839 	QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
840 
841 	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
842 
843 	/* Vendor abort scan command */
844 	QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
845 
846 	/* Set Specific Absorption Rate(SAR) Power Limits */
847 	QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
848 
849 	/* External Auto channel configuration setting */
850 	QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
851 
852 	QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
853 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
854 	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
855 	QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
856 
857 	/* Set the trace level for QDF */
858 	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
859 
860 	QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
861 
862 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
863 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
864 	QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
865 	QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
866 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
867 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
868 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
869 	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
870 	QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
871 	QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
872 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
873 	QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
874 	QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
875 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
876 	QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
877 	/* Wi-Fi test configuration subcommand */
878 	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
879 	QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
880 	QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
881 	QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
882 	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
883 	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
884 	QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
885 	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
886 	QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
887 	QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
888 	QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
889 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
890 	QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
891 	QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
892 	QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
893 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
894 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
895 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
896 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
897 	QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
898 	QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
899 	QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
900 	QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
901 	QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
902 	QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
903 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
904 	QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
905 	QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
906 	QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
907 	QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
908 	QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
909 	QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
910 	QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
911 	QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
912 	/* 206..212 - reserved for QCA */
913 	QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
914 	QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
915 	QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
916 	QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
917 	QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
918 	QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
919 	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
920 	QCA_NL80211_VENDOR_SUBCMD_SR = 220,
921 	QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
922 	QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
923 	QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
924 	QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
925 	QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
926 };
927 
928 enum qca_wlan_vendor_tos {
929 	QCA_WLAN_VENDOR_TOS_BK = 0,
930 	QCA_WLAN_VENDOR_TOS_BE = 1,
931 	QCA_WLAN_VENDOR_TOS_VI = 2,
932 	QCA_WLAN_VENDOR_TOS_VO = 3,
933 };
934 
935 /**
936  * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
937  * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
938  */
939 enum qca_wlan_vendor_attr_active_tos {
940 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
941 	/* Type Of Service - Represented by qca_wlan_vendor_tos */
942 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
943 	/* Flag attribute representing the start (attribute included) or stop
944 	 * (attribute not included) of the respective TOS.
945 	 */
946 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
947 	QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
948 };
949 
950 enum qca_wlan_vendor_hang_reason {
951 	/* Unspecified reason */
952 	QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
953 	/* No Map for the MAC entry for the received frame */
954 	QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
955 	/* peer deletion timeout happened */
956 	QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
957 	/* peer unmap timeout */
958 	QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
959 	/* Scan request timed out */
960 	QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
961 	/* Consecutive Scan attempt failures */
962 	QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
963 	/* Unable to get the message buffer */
964 	QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
965 	/* Current command processing is timedout */
966 	QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
967 	/* Timeout for an ACK from FW for suspend request */
968 	QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
969 	/* Timeout for an ACK from FW for resume request */
970 	QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
971 	/* Transmission timeout for consecutive data frames */
972 	QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
973 	/* Timeout for the TX completion status of data frame */
974 	QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
975 	/* DXE failure for tx/Rx, DXE resource unavailability */
976 	QCA_WLAN_HANG_DXE_FAILURE = 12,
977 	/* WMI pending commands exceed the maximum count */
978 	QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
979 	/* Timeout for peer STA connection accept command's response from the
980 	 * FW in AP mode. This command is triggered when a STA (peer) connects
981 	 * to AP (DUT).
982 	 */
983 	QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
984 	/* Timeout for the AP connection accept command's response from the FW
985 	 * in STA mode. This command is triggered when the STA (DUT) connects
986 	 * to an AP (peer).
987 	 */
988 	QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
989 	/* Timeout waiting for the response to the MAC HW mode change command
990 	 * sent to FW as a part of MAC mode switch among DBS (Dual Band
991 	 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
992 	 * Channel Concurrency) mode.
993 	 */
994 	QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
995 	/* Timeout waiting for the response from FW to configure the MAC HW's
996 	 * mode. This operation is to configure the single/two MACs in either
997 	 * SCC/MCC/DBS mode.
998 	 */
999 	QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
1000 	/* Timeout waiting for response of VDEV start command from the FW */
1001 	QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
1002 	/* Timeout waiting for response of VDEV restart command from the FW */
1003 	QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
1004 	/* Timeout waiting for response of VDEV stop command from the FW */
1005 	QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
1006 	/* Timeout waiting for response of VDEV delete command from the FW */
1007 	QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
1008 	/* Timeout waiting for response of peer all delete request command to
1009 	 * the FW on a specific VDEV.
1010 	 */
1011 	QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
1012 	/* WMI sequence mismatch between WMI command and Tx completion */
1013 	QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
1014 	/* Write to Device HAL register failed */
1015 	QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
1016 	/* No credit left to send the wow_wakeup_from_sleep to firmware */
1017 	QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
1018 	/* Bus failure */
1019 	QCA_WLAN_HANG_BUS_FAILURE = 26,
1020 	/* tasklet/credit latency found */
1021 	QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
1022 	/* MSDU buffers received in REO error ring, exceeding certain
1023 	 * threshold
1024 	 */
1025 	QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
1026 	/* Vdev SM is out of sync and connect req received
1027 	 * when already connected
1028 	 */
1029 	QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
1030 	/* Stats request timeout */
1031 	QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
1032 	/* Leak in TX descriptor for a packet */
1033 	QCA_WLAN_HANG_TX_DESC_LEAK = 31,
1034 	/* Scheduler watchdog timeout */
1035 	QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
1036 	/* Failed to send self peer deletion cmd to firmware */
1037 	QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
1038 	/* Received del self sta without del bss */
1039 	QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
1040 	/* Recovery needed when sending flush completion to userspace */
1041 	QCA_WLAN_HANG_FLUSH_LOGS = 35,
1042 	/* Host wakeup because of page fault */
1043 	QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
1044 };
1045 
1046 /**
1047  * enum qca_wlan_vendor_attr_hang - Used by the vendor command
1048  * QCA_NL80211_VENDOR_SUBCMD_HANG.
1049  */
1050 enum qca_wlan_vendor_attr_hang {
1051 	QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
1052 	/*
1053 	 * Reason for the Hang - Represented by enum
1054 	 * qca_wlan_vendor_hang_reason.
1055 	 */
1056 	QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
1057 	/* The binary blob data associated with the hang reason specified by
1058 	 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
1059 	 * contain the required dump to analyze the reason for the hang.
1060 	 * NLA_BINARY attribute, the max size is 1024 bytes.
1061 	 */
1062 	QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
1063 	QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
1064 	QCA_WLAN_VENDOR_ATTR_HANG_MAX =
1065 		QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
1066 };
1067 
1068 /**
1069  * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
1070  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
1071  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
1072  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
1073     level needs to be updated.
1074  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
1075  * to be set.
1076  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
1077  * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
1078  */
1079 enum qca_vendor_attr_set_trace_level {
1080 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
1081 	/*
1082 	* Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
1083 	* attributes.
1084 	*/
1085 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
1086 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
1087 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
1088 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
1089 	QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
1090 		QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
1091 };
1092 
1093 /**
1094  * enum qca_wlan_vendor_attr_get_station - Sub commands used by
1095  * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
1096  * station information. The information obtained through these
1097  * commands signify the current info in connected state and
1098  * latest cached information during the connected state , if queried
1099  * when in disconnected state.
1100  *
1101  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
1102  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
1103  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
1104  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
1105  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
1106  */
1107 enum qca_wlan_vendor_attr_get_station {
1108 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
1109 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
1110 	QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
1111 	QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
1112 
1113 	/* keep last */
1114 	QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
1115 	QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
1116 		QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
1117 };
1118 
1119 /**
1120  * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
1121  * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
1122  *
1123  * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
1124  * Used in STA mode. This attribute represents the list of channel center
1125  * frequencies in MHz (u32) the station has learnt during the last connection
1126  * or roaming attempt. This information shall not signify the channels for
1127  * an explicit scan request from the user space. Host drivers can update this
1128  * information to the user space in both connected and disconnected state.
1129  * In the disconnected state this information shall signify the channels
1130  * scanned in the last connection/roam attempt that lead to the disconnection.
1131  */
1132 enum qca_wlan_vendor_attr_update_sta_info {
1133 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
1134 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
1135 
1136 	/* keep last */
1137 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
1138 	QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
1139 		QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
1140 };
1141 
1142 /**
1143  * enum qca_wlan_802_11_mode - dot11 mode
1144  * @QCA_WLAN_802_11_MODE_11B: mode B
1145  * @QCA_WLAN_802_11_MODE_11G: mode G
1146  * @QCA_WLAN_802_11_MODE_11N: mode N
1147  * @QCA_WLAN_802_11_MODE_11A: mode A
1148  * @QCA_WLAN_802_11_MODE_11AC: mode AC
1149  * @QCA_WLAN_802_11_MODE_11AX: mode AX
1150  * @QCA_WLAN_802_11_MODE_11BE: mode BE
1151  * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
1152  */
1153 enum qca_wlan_802_11_mode {
1154 	QCA_WLAN_802_11_MODE_11B,
1155 	QCA_WLAN_802_11_MODE_11G,
1156 	QCA_WLAN_802_11_MODE_11N,
1157 	QCA_WLAN_802_11_MODE_11A,
1158 	QCA_WLAN_802_11_MODE_11AC,
1159 	QCA_WLAN_802_11_MODE_11AX,
1160 	QCA_WLAN_802_11_MODE_11BE,
1161 	QCA_WLAN_802_11_MODE_INVALID,
1162 };
1163 
1164 /**
1165  * enum qca_wlan_auth_type - Authentication key management type
1166  * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
1167  * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
1168  * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
1169  * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
1170  * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
1171  * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
1172  * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
1173  * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
1174  * @QCA_WLAN_AUTH_TYPE_FT: ft key
1175  * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
1176  * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
1177  * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
1178  * @QCA_WLAN_AUTH_TYPE_WAI: wai key
1179  * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
1180  * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
1181  * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
1182  * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
1183  * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
1184  * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
1185  * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
1186  * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
1187  * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
1188  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
1189  * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
1190  * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
1191  * @QCA_WLAN_AUTH_TYPE_OWE: owe key
1192  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
1193  * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
1194  */
1195 enum qca_wlan_auth_type {
1196 	QCA_WLAN_AUTH_TYPE_INVALID,
1197 	QCA_WLAN_AUTH_TYPE_OPEN,
1198 	QCA_WLAN_AUTH_TYPE_SHARED,
1199 	QCA_WLAN_AUTH_TYPE_WPA,
1200 	QCA_WLAN_AUTH_TYPE_WPA_PSK,
1201 	QCA_WLAN_AUTH_TYPE_WPA_NONE,
1202 	QCA_WLAN_AUTH_TYPE_RSN,
1203 	QCA_WLAN_AUTH_TYPE_RSN_PSK,
1204 	QCA_WLAN_AUTH_TYPE_FT,
1205 	QCA_WLAN_AUTH_TYPE_FT_PSK,
1206 	QCA_WLAN_AUTH_TYPE_SHA256,
1207 	QCA_WLAN_AUTH_TYPE_SHA256_PSK,
1208 	QCA_WLAN_AUTH_TYPE_WAI,
1209 	QCA_WLAN_AUTH_TYPE_WAI_PSK,
1210 	QCA_WLAN_AUTH_TYPE_CCKM_WPA,
1211 	QCA_WLAN_AUTH_TYPE_CCKM_RSN,
1212 	QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
1213 	QCA_WLAN_AUTH_TYPE_FT_SAE,
1214 	QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
1215 	QCA_WLAN_AUTH_TYPE_SAE,
1216 	QCA_WLAN_AUTH_TYPE_FILS_SHA256,
1217 	QCA_WLAN_AUTH_TYPE_FILS_SHA384,
1218 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
1219 	QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
1220 	QCA_WLAN_AUTH_TYPE_DPP_RSN,
1221 	QCA_WLAN_AUTH_TYPE_OWE,
1222 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
1223 	QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
1224 };
1225 
1226 /**
1227  * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
1228  * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
1229  *
1230  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
1231  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
1232  *  Get the standard NL attributes Nested with this attribute.
1233  *  Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
1234  *  NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
1235  *  NL80211_ATTR_STA_INFO
1236  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
1237  *  Get the standard NL attributes Nested with this attribute.
1238  *  Ex : Query HT/VHT Capability advertized by the AP.
1239  *  NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
1240  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
1241  *  Number of successful Roam attempts before a
1242  *  disconnect, Unsigned 32 bit value
1243  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
1244  *  Authentication Key Management Type used for the connected session.
1245  *  Signified by enum qca_wlan_auth_type
1246  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
1247  *  connected Session, signified by enum qca_wlan_802_11_mode
1248  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
1249  *  HS20 Indication Element
1250  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
1251  *  Status Code Corresponding to the Association Failure.
1252  *  Unsigned 32 bit value.
1253  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
1254  *  Max phy rate of remote station
1255  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
1256  *  TX packets to remote station
1257  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
1258  *  TX bytes to remote station
1259  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
1260  *  RX packets from remote station
1261  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
1262  *  RX bytes from remote station
1263  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
1264  *  Last TX rate with remote station
1265  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
1266  *  Last RX rate with remote station
1267  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
1268  *  Remote station enable/disable WMM
1269  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
1270  *  Remote station connection mode
1271  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
1272  *  Remote station AMPDU enable/disable
1273  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
1274  *  Remote station TX Space-time block coding enable/disable
1275  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
1276  *  Remote station RX Space-time block coding enable/disable
1277  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
1278  *  Remote station channel width
1279  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
1280  *  Remote station short GI enable/disable
1281  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
1282  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
1283  *  containing the raw information elements from Beacon frames. Represents
1284  *  the Beacon frames of the current BSS in the connected state. When queried
1285  *  in the disconnected state, these IEs correspond to the last connected BSSID.
1286  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
1287  *  disconnect reason for the last disconnection if the disconnection is
1288  *  triggered from the host driver. The values are referred from
1289  *  enum qca_disconnect_reason_codes. If the disconnect is from
1290  *  peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
1291  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
1292  *  Applicable in AP mode only. It contains the raw information elements
1293  *  from assoc request frame of the given peer station. User queries with the
1294  *  mac address of peer station when it disconnects. Host driver sends
1295  *  assoc request frame of the given station. Host driver doesn't provide
1296  *  the IEs when the peer station is still in connected state.
1297  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
1298  * sending HE operation info.
1299  * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
1300  *
1301  */
1302 enum qca_wlan_vendor_attr_get_station_info {
1303 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
1304 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
1305 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
1306 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
1307 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
1308 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
1309 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
1310 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
1311 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
1312 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
1313 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
1314 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
1315 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
1316 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
1317 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
1318 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
1319 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
1320 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
1321 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
1322 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
1323 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
1324 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
1325 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
1326 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
1327 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
1328 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
1329 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
1330 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
1331 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
1332 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
1333 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
1334 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
1335 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
1336 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
1337 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
1338 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
1339 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
1340 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
1341 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
1342 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
1343 
1344 	/* keep last */
1345 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
1346 	QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
1347 		QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
1348 };
1349 
1350 /**
1351  * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
1352  *
1353  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
1354  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
1355  *	value
1356  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
1357  *	keep as unsigned for now
1358  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
1359  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
1360  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
1361  *	in KBPS
1362  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
1363  * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
1364  */
1365 enum qca_wlan_vendor_attr_tdls_enable {
1366 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
1367 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
1368 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
1369 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
1370 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
1371 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
1372 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
1373 	QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
1374 		QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
1375 };
1376 
1377 /**
1378  * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
1379  *
1380  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
1381  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
1382  *	8-bit value
1383  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
1384  * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
1385  */
1386 enum qca_wlan_vendor_attr_tdls_disable {
1387 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
1388 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
1389 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
1390 	QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
1391 		QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
1392 };
1393 
1394 /**
1395  * qca_chip_power_save_failure_reason: Power save failure reason
1396  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
1397  * due to protocol/module.
1398  * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
1399  * due to hardware
1400  */
1401 enum qca_chip_power_save_failure_reason {
1402 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
1403 	QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
1404 };
1405 
1406 /**
1407  * qca_attr_chip_power_save_failure: attributes to vendor subcmd
1408  * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
1409  * information leading to the power save failure.
1410  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
1411  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
1412  * represented by enum qca_chip_power_save_failure_reason
1413  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
1414  * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
1415  */
1416 enum qca_attr_chip_power_save_failure {
1417 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
1418 
1419 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
1420 
1421 	/* keep last */
1422 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
1423 	QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
1424 		QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
1425 };
1426 
1427 
1428 /**
1429  * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
1430  *
1431  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
1432  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
1433  *	8-bit value
1434  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
1435  *	unsigned 32-bit value
1436  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
1437  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
1438  *	unsigned 32-bit value
1439  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
1440  *	class, unsigned 32-bit value
1441  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
1442  * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
1443  */
1444 enum qca_wlan_vendor_attr_tdls_get_status {
1445 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
1446 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
1447 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
1448 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
1449 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
1450 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
1451 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
1452 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
1453 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
1454 };
1455 
1456 /**
1457  * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
1458  *
1459  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
1460  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
1461  *	8-bit value
1462  * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
1463  *	unsigned 32-bit value
1464  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
1465  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
1466  *	unsigned 32-bit value
1467  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
1468  *	operating class, unsigned 32-bit value
1469  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
1470  * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
1471  */
1472 enum qca_wlan_vendor_attr_tdls_state {
1473 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
1474 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
1475 	QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
1476 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
1477 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
1478 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
1479 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
1480 	QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
1481 		QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
1482 };
1483 
1484 /* enum's to provide TDLS capabilities */
1485 enum qca_wlan_vendor_attr_get_tdls_capabilities {
1486 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
1487 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
1488 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
1489 
1490 	/* keep last */
1491 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
1492 	QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
1493 		QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
1494 };
1495 
1496 /* Compatibility defines for previously used subcmd names.
1497  * These values should not be used in any new implementation.
1498  */
1499 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
1500 	QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
1501 
1502 enum qca_wlan_vendor_attr {
1503 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
1504 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
1505 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
1506 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
1507 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
1508 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1509 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
1510 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
1511 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
1512 	/*
1513 	 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
1514 	 * by enum qca_roaming_policy.
1515 	 */
1516 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
1517 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
1518 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
1519 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
1520 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
1521 	/*
1522 	 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
1523 	 * Unsigned 32-bit value.
1524 	 */
1525 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
1526 	/* Unsigned 32-bit value */
1527 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
1528 	/* Unsigned 32-bit value */
1529 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
1530 	/* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
1531 	 * value for this attribute are only till QCA_SETBAND_2G. This attribute
1532 	 * is deprecated. Recommendation is to use
1533 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
1534 	 * using both the attributes, the ones configured through
1535 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
1536 	 */
1537 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
1538 	/* Dummy (NOP) attribute for 64 bit padding */
1539 	QCA_WLAN_VENDOR_ATTR_PAD = 13,
1540 	/*
1541 	 * Unique FTM session cookie (Unsigned 64 bit). Specified in
1542 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
1543 	 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
1544 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
1545 	 */
1546 	QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
1547 	/*
1548 	 * Indoor location capabilities, returned by
1549 	 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
1550 	 * see enum qca_wlan_vendor_attr_loc_capa.
1551 	 */
1552 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
1553 	/*
1554 	 * Array of nested attributes containing information about each peer
1555 	 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
1556 	 * for supported attributes for each peer.
1557 	 */
1558 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
1559 	/*
1560 	 * Array of nested attributes containing measurement results for
1561 	 * one or more peers, reported by the
1562 	 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
1563 	 * See enum qca_wlan_vendor_attr_peer_result for list of supported
1564 	 * attributes.
1565 	 */
1566 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
1567 	/* Flag attribute for enabling or disabling responder functionality. */
1568 	QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
1569 	/*
1570 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1571 	 * command to specify the LCI report that will be sent by
1572 	 * the responder during a measurement exchange. The format is
1573 	 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
1574 	 */
1575 	QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
1576 	/*
1577 	 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
1578 	 * command to specify the location civic report that will
1579 	 * be sent by the responder during a measurement exchange.
1580 	 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
1581 	 */
1582 	QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
1583 	/*
1584 	 * Session/measurement completion status code,
1585 	 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
1586 	 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
1587 	 * see enum qca_vendor_attr_loc_session_status.
1588 	 */
1589 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
1590 	/*
1591 	 * Initial dialog token used by responder (0 if not specified),
1592 	 * unsigned 8 bit value.
1593 	 */
1594 	QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
1595 	/*
1596 	 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
1597 	 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
1598 	 * AOA measurements are needed as part of an FTM session.
1599 	 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
1600 	 * enum qca_wlan_vendor_attr_aoa_type.
1601 	 */
1602 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
1603 	/*
1604 	 * A bit mask (unsigned 32 bit value) of antenna arrays used
1605 	 * by indoor location measurements. Refers to the antenna
1606 	 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
1607 	 */
1608 	QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
1609 	/*
1610 	 * AOA measurement data. Its contents depends on the AOA measurement
1611 	 * type and antenna array mask:
1612 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
1613 	 * phase of the strongest CIR path for each antenna in the measured
1614 	 * array(s).
1615 	 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
1616 	 * values, phase and amplitude of the strongest CIR path for each
1617 	 * antenna in the measured array(s).
1618 	 */
1619 	QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
1620 	/*
1621 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1622 	 * to specify the chain number (unsigned 32 bit value) to inquire
1623 	 * the corresponding antenna RSSI value */
1624 	QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
1625 	/*
1626 	 *  Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1627 	 * to report the specific antenna RSSI value (unsigned 32 bit value) */
1628 	QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
1629 	/* Frequency in MHz, various uses. Unsigned 32 bit value */
1630 	QCA_WLAN_VENDOR_ATTR_FREQ = 28,
1631 	/*
1632 	 *  TSF timer value, unsigned 64 bit value.
1633 	 * May be returned by various commands.
1634 	 */
1635 	QCA_WLAN_VENDOR_ATTR_TSF = 29,
1636 	/*
1637 	 * DMG RF sector index, unsigned 16 bit number. Valid values are
1638 	 * 0..127 for sector indices or 65535 as special value used to
1639 	 * unlock sector selection in
1640 	 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
1641 	 */
1642 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
1643 	/*
1644 	 * DMG RF sector type, unsigned 8 bit value. One of the values
1645 	 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
1646 	 */
1647 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
1648 	/*
1649 	 * Bitmask of DMG RF modules for which information is requested. Each
1650 	 * bit corresponds to an RF module with the same index as the bit
1651 	 * number. Unsigned 32 bit number but only low 8 bits can be set since
1652 	 * all DMG chips currently have up to 8 RF modules.
1653 	 */
1654 	QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
1655 	/*
1656 	 * Array of nested attributes where each entry is DMG RF sector
1657 	 * configuration for a single RF module.
1658 	 * Attributes for each entry are taken from enum
1659 	 * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
1660 	 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
1661 	 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
1662 	 */
1663 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
1664 	/*
1665 	 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
1666 	 * to report frame aggregation statistics to userspace.
1667 	 */
1668 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
1669 	QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
1670 	/*
1671 	 * Unsigned 8-bit value representing MBO transition reason code as
1672 	 * provided by the AP used by subcommand
1673 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
1674 	 * specified by the userspace in the request to the driver.
1675 	 */
1676 	QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
1677 	/*
1678 	 * Array of nested attributes, BSSID and status code, used by subcommand
1679 	 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
1680 	 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
1681 	 * The userspace space specifies the list/array of candidate BSSIDs in
1682 	 * the order of preference in the request. The driver specifies the
1683 	 * status code, for each BSSID in the list, in the response. The
1684 	 * acceptable candidates are listed in the order preferred by the
1685 	 * driver.
1686 	 */
1687 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
1688 	/*
1689 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1690 	 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
1691 	 */
1692 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
1693 	/*
1694 	 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
1695 	 * to define the number of antennas to use for BRP.
1696 	 * different purpose in each ANT_LIMIT_MODE:
1697 	 * DISABLE - ignored
1698 	 * EFFECTIVE - upper limit to number of antennas to be used
1699 	 * FORCE - exact number of antennas to be used
1700 	 * unsigned 8 bit value
1701 	 */
1702 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
1703 	/*
1704 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1705 	 * to report the corresponding antenna index to the chain RSSI value
1706 	 */
1707 	QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
1708 	/*
1709 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
1710 	 * to report the specific antenna EVM value (unsigned 32 bit value).
1711 	 * With a determinate group of antennas, the driver specifies the
1712 	 * EVM value for each antenna ID, and application extract them
1713 	 * in user space.
1714 	 */
1715 	QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
1716 	/*
1717 	 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
1718 	 * wlan firmware current state. FW state is an unsigned 8 bit value,
1719 	 * one of the values in enum qca_wlan_vendor_attr_fw_state.
1720 	 */
1721 	QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
1722 
1723 	/* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
1724 	 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
1725 	 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
1726 	 * This attribute shall consider the bitmask combinations to define
1727 	 * the respective Band combinations and always takes precedence over
1728 	 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
1729 	 */
1730 	QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
1731 
1732 	/* keep last */
1733 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
1734 	QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
1735 };
1736 
1737 enum qca_wlan_vendor_attr_extscan_config_params {
1738 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
1739 
1740 	/* Unsigned 32-bit value */
1741 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
1742 
1743 	/*
1744 	 * Attributes for data used by
1745 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
1746 	 */
1747 
1748 	/* Unsigned 32-bit value */
1749 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
1750 	= 2,
1751 	/* Unsigned 32-bit value */
1752 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
1753 	= 3,
1754 
1755 	/*
1756 	 * Attributes for input params used by
1757 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
1758 	 */
1759 
1760 	/* Unsigned 32-bit value; channel frequency */
1761 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
1762 	/* Unsigned 32-bit value; dwell time in ms. */
1763 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
1764 	/* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
1765 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
1766 	/* Unsigned 8-bit value; channel class */
1767 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
1768 
1769 	/* Unsigned 8-bit value; bucket index, 0 based */
1770 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
1771 	/* Unsigned 8-bit value; band. */
1772 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
1773 	/* Unsigned 32-bit value; desired period, in ms. */
1774 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
1775 	/* Unsigned 8-bit value; report events semantics. */
1776 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
1777 	/*
1778 	 * Unsigned 32-bit value. Followed by a nested array of
1779 	 * EXTSCAN_CHANNEL_SPEC_* attributes.
1780 	 */
1781 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
1782 
1783 	/*
1784 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
1785 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1786 	 */
1787 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
1788 
1789 	/* Unsigned 32-bit value; base timer period in ms. */
1790 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
1791 	/*
1792 	 * Unsigned 32-bit value; number of APs to store in each scan in the
1793 	 * BSSID/RSSI history buffer (keep the highest RSSI APs).
1794 	 */
1795 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
1796 	/*
1797 	 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
1798 	 * up AP.
1799 	 */
1800 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
1801 	= 16,
1802 
1803 	/*
1804 	 * Unsigned 8-bit value; number of scan bucket specs; followed by a
1805 	 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
1806 	 * of the array is determined by NUM_BUCKETS.
1807 	 */
1808 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
1809 
1810 	/*
1811 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
1812 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
1813 	 */
1814 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
1815 
1816 	/* Unsigned 8-bit value */
1817 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
1818 	= 19,
1819 	/* Unsigned 32-bit value; maximum number of results to be returned. */
1820 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
1821 	= 20,
1822 
1823 	/* An array of 6 x unsigned 8-bit value */
1824 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
1825 	/* Signed 32-bit value */
1826 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
1827 	/* Signed 32-bit value */
1828 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
1829 	/* Unsigned 32-bit value */
1830 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
1831 
1832 	/*
1833 	 * Number of hotlist APs as unsigned 32-bit value, followed by a nested
1834 	 * array of AP_THRESHOLD_PARAM attributes and values. The size of the
1835 	 * array is determined by NUM_AP.
1836 	 */
1837 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
1838 
1839 	/*
1840 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
1841 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
1842 	 */
1843 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
1844 
1845 	/* Unsigned 32-bit value; number of samples for averaging RSSI. */
1846 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
1847 	= 27,
1848 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1849 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
1850 	= 28,
1851 	/* Unsigned 32-bit value; number of APs breaching threshold. */
1852 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
1853 	/*
1854 	 * Unsigned 32-bit value; number of APs. Followed by an array of
1855 	 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
1856 	 */
1857 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
1858 	/* Unsigned 32-bit value; number of samples to confirm AP loss. */
1859 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
1860 	= 31,
1861 	/*
1862 	 * Unsigned 32-bit value. If max_period is non zero or different than
1863 	 * period, then this bucket is an exponential backoff bucket.
1864 	 */
1865 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
1866 	/* Unsigned 32-bit value. */
1867 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
1868 	/*
1869 	 * Unsigned 32-bit value. For exponential back off bucket, number of
1870 	 * scans to perform for a given period.
1871 	 */
1872 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
1873 	/*
1874 	 * Unsigned 8-bit value; in number of scans, wake up AP after these
1875 	 * many scans.
1876 	 */
1877 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
1878 	= 35,
1879 
1880 	/*
1881 	 * Attributes for data used by
1882 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
1883 	 */
1884 
1885 	/* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
1886 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
1887 	= 36,
1888 	/*
1889 	 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
1890 	 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
1891 	 * size of the array is determined by NUM_SSID.
1892 	 */
1893 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
1894 	/*
1895 	 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
1896 	 * attributes.
1897 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
1898 	 */
1899 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
1900 
1901 	/* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
1902 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
1903 	/* Unsigned 8-bit value */
1904 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
1905 	/* Signed 32-bit value */
1906 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
1907 	/* Signed 32-bit value */
1908 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
1909 	/* Unsigned 32-bit value; a bitmask with additional extscan config flag.
1910 	 */
1911 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
1912 
1913 	/* keep last */
1914 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
1915 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
1916 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
1917 };
1918 
1919 enum qca_wlan_vendor_attr_extscan_results {
1920 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
1921 
1922 	/*
1923 	 * Unsigned 32-bit value; must match the request Id supplied by
1924 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
1925 	 */
1926 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
1927 
1928 	/*
1929 	 * Unsigned 32-bit value; used to indicate the status response from
1930 	 * firmware/driver for the vendor sub-command.
1931 	 */
1932 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
1933 
1934 	/*
1935 	 * EXTSCAN Valid Channels attributes */
1936 	/* Unsigned 32bit value; followed by a nested array of CHANNELS. */
1937 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
1938 	/*
1939 	 * An array of NUM_CHANNELS x unsigned 32-bit value integers
1940 	 * representing channel numbers.
1941 	 */
1942 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
1943 
1944 	/* EXTSCAN Capabilities attributes */
1945 
1946 	/* Unsigned 32-bit value */
1947 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
1948 	/* Unsigned 32-bit value */
1949 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
1950 	/* Unsigned 32-bit value */
1951 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
1952 	= 7,
1953 	/* Unsigned 32-bit value */
1954 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
1955 	= 8,
1956 	/* Signed 32-bit value */
1957 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
1958 	= 9,
1959 	/* Unsigned 32-bit value */
1960 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
1961 	/* Unsigned 32-bit value */
1962 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
1963 	= 11,
1964 	/* Unsigned 32-bit value */
1965 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
1966 	= 12,
1967 
1968 	/*
1969 	 * EXTSCAN Attributes used with
1970 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
1971 	 */
1972 
1973 	/* Unsigned 32-bit value */
1974 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
1975 
1976 	/*
1977 	 * EXTSCAN attributes used with
1978 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
1979 	 */
1980 
1981 	/*
1982 	 * An array of NUM_RESULTS_AVAILABLE x
1983 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
1984 	 */
1985 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
1986 
1987 	/* Unsigned 64-bit value; age of sample at the time of retrieval */
1988 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
1989 	/* 33 x unsigned 8-bit value; NULL terminated SSID */
1990 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
1991 	/* An array of 6 x unsigned 8-bit value */
1992 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
1993 	/* Unsigned 32-bit value; channel frequency in MHz */
1994 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
1995 	/* Signed 32-bit value */
1996 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
1997 	/* Unsigned 32-bit value */
1998 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
1999 	/* Unsigned 32-bit value */
2000 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
2001 	/* Unsigned 16-bit value */
2002 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
2003 	/* Unsigned 16-bit value */
2004 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
2005 	/* Unsigned 32-bit value; size of the IE DATA blob */
2006 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
2007 	/*
2008 	 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
2009 	 * information elements found in the beacon; this data should be a
2010 	 * packed list of wifi_information_element objects, one after the
2011 	 * other.
2012 	 */
2013 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
2014 
2015 	/*
2016 	 * Unsigned 8-bit value; set by driver to indicate more scan results are
2017 	 * available.
2018 	 */
2019 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
2020 
2021 	/*
2022 	 * EXTSCAN attributes for
2023 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
2024 	 */
2025 	/* Unsigned 8-bit value */
2026 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
2027 	/* Unsigned 32-bit value */
2028 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
2029 
2030 	/*
2031 	 * EXTSCAN attributes for
2032 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
2033 	 */
2034 	/*
2035 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2036 	 * to indicate number of results.
2037 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2038 	 * list of results.
2039 	 */
2040 
2041 	/*
2042 	 * EXTSCAN attributes for
2043 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
2044 	 */
2045 	/* An array of 6 x unsigned 8-bit value */
2046 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
2047 	/* Unsigned 32-bit value */
2048 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
2049 	= 30,
2050 	/* Unsigned 32-bit value. */
2051 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
2052 	= 31,
2053 	/*
2054 	 * A nested array of signed 32-bit RSSI values. Size of the array is
2055 	 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
2056 	 */
2057 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
2058 	= 32,
2059 
2060 	/*
2061 	 * EXTSCAN attributes used with
2062 	 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
2063 	 */
2064 	/*
2065 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2066 	 * to indicate number of extscan cached results returned.
2067 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
2068 	 *  the list of extscan cached results.
2069 	 */
2070 
2071 	/*
2072 	 * An array of NUM_RESULTS_AVAILABLE x
2073 	 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
2074 	 */
2075 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
2076 	/* Unsigned 32-bit value; a unique identifier for the scan unit. */
2077 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
2078 	/*
2079 	 * Unsigned 32-bit value; a bitmask w/additional information about scan.
2080 	 */
2081 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
2082 	/*
2083 	 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
2084 	 * to indicate number of wifi scan results/bssids retrieved by the scan.
2085 	 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
2086 	 * list of wifi scan results returned for each cached result block.
2087 	 */
2088 
2089 	/*
2090 	 * EXTSCAN attributes for
2091 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
2092 	 */
2093 	/*
2094 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
2095 	 * number of results.
2096 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2097 	 * list of wifi scan results returned for each
2098 	 * wifi_passpoint_match_result block.
2099 	 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
2100 	 */
2101 
2102 	/*
2103 	 * EXTSCAN attributes for
2104 	 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
2105 	 */
2106 	/* Unsigned 32-bit value */
2107 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
2108 	= 36,
2109 	/*
2110 	 * A nested array of
2111 	 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
2112 	 * attributes. Array size =
2113 	 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
2114 	 */
2115 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
2116 
2117 	/* Unsigned 32-bit value; network block id for the matched network */
2118 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
2119 	/*
2120 	 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
2121 	 * list of wifi scan results returned for each
2122 	 * wifi_passpoint_match_result block.
2123 	 */
2124 	/* Unsigned 32-bit value */
2125 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
2126 	/*
2127 	 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
2128 	 * ANQP data in the information_element format.
2129 	 */
2130 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
2131 
2132 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2133 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
2134 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2135 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
2136 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2137 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
2138 	= 43,
2139 	/* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
2140 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
2141 	= 44,
2142 
2143 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
2144 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
2145 
2146 	/* keep last */
2147 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
2148 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
2149 	QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
2150 };
2151 
2152 /**
2153  * enum qca_vendor_interop_issues_ap_type - interop issues type
2154  * This enum defines the valid set of values of interop issues type. These
2155  * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
2156  *
2157  * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
2158  * when the STA's Qpower feature is enabled.
2159  */
2160 enum qca_vendor_interop_issues_ap_type {
2161 	QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
2162 	QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
2163 };
2164 
2165 /**
2166  * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
2167  * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
2168  *
2169  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
2170  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
2171  * 32-bit unsigned value, The type defined in enum
2172  * qca_vendor_interop_issues_ap_type are used.
2173  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
2174  * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
2175  * it is present and mandatory for the command but is not used for
2176  * the event since only a single BSSID is reported in an event.
2177  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
2178  * 6-byte MAC address. It is used within the nested
2179  * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
2180  * and without such encapsulation in the event case.
2181  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
2182  * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
2183  */
2184 enum qca_vendor_attr_interop_issues_ap {
2185 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
2186 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
2187 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
2188 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
2189 	/* keep last */
2190 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
2191 	QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
2192 		QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
2193 };
2194 
2195 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
2196 
2197 /**
2198  * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
2199  *
2200  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
2201  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
2202  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
2203  *	Aggressive stats gathering
2204  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
2205  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
2206  */
2207 enum qca_wlan_vendor_attr_ll_stats_set {
2208 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
2209 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
2210 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
2211 	/* keep last */
2212 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
2213 	QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
2214 		QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
2215 };
2216 
2217 /**
2218  * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
2219  *
2220  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
2221  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
2222  *	provided by the caller issuing the GET stats command. When reporting
2223  *	the stats results, the driver uses the same value to indicate which
2224  *	GET request the results correspond to.
2225  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
2226  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2227  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2228  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
2229  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
2230  */
2231 enum qca_wlan_vendor_attr_ll_stats_get {
2232 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
2233 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
2234 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
2235 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
2236 	QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
2237 		QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
2238 };
2239 
2240 /**
2241  * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
2242  *
2243  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
2244  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
2245  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
2246  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
2247  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
2248  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
2249  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
2250  */
2251 enum qca_wlan_vendor_attr_ll_stats_clr {
2252 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
2253 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
2254 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
2255 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
2256 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
2257 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
2258 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
2259 		QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
2260 };
2261 
2262 /**
2263  * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
2264  *
2265  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
2266  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
2267  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
2268  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
2269  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
2270  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
2271  */
2272 enum qca_wlan_vendor_attr_ll_stats_results_type {
2273 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
2274 
2275 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
2276 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
2277 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
2278 
2279 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
2280 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
2281 		QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
2282 };
2283 
2284 enum qca_wlan_vendor_attr_ll_stats_results {
2285 	QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
2286 	/* Unsigned 32bit value. Used by the driver; must match the request id
2287 	 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
2288 	 */
2289 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
2290 
2291 	/* Unsigned 32 bit value */
2292 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
2293 	/* Unsigned 32 bit value */
2294 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
2295 	/* Unsigned 32 bit value */
2296 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
2297 	/* Unsigned 32 bit value */
2298 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
2299 	/* Signed 32 bit value */
2300 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
2301 	/* Signed 32 bit value */
2302 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
2303 	/* Signed 32 bit value */
2304 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
2305 
2306 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
2307 	 * nested within the interface stats.
2308 	 */
2309 
2310 	/* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
2311 	 * Type = enum wifi_interface_mode.
2312 	 */
2313 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
2314 	/* Interface MAC address. An array of 6 Unsigned int8 */
2315 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
2316 	/* Type = enum wifi_connection_state, e.g., DISCONNECTED,
2317 	 * AUTHENTICATING, etc. valid for STA, CLI only.
2318 	 */
2319 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
2320 	/* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
2321 	 */
2322 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
2323 	/* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
2324 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
2325 	/* NULL terminated SSID. An array of 33 Unsigned 8bit values */
2326 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
2327 	/* BSSID. An array of 6 unsigned 8 bit values */
2328 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
2329 	/* Country string advertised by AP. An array of 3 unsigned 8 bit
2330 	 * values.
2331 	 */
2332 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
2333 	/* Country string for this association. An array of 3 unsigned 8 bit
2334 	 * values.
2335 	 */
2336 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
2337 
2338 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
2339 	 * be nested within the interface stats.
2340 	 */
2341 
2342 	/* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
2343 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
2344 	/* Unsigned int 32 value corresponding to respective AC */
2345 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
2346 	/* Unsigned int 32 value corresponding to respective AC */
2347 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
2348 	/* Unsigned int 32 value corresponding to respective AC */
2349 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
2350 	/* Unsigned int 32 value corresponding to respective AC */
2351 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
2352 	/* Unsigned int 32 value corresponding to respective AC */
2353 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
2354 	/* Unsigned int 32 value corresponding to respective AC */
2355 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
2356 	/* Unsigned int 32 value corresponding to respective AC */
2357 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
2358 	/* Unsigned int 32 value corresponding to respective AC */
2359 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
2360 	/* Unsigned int 32 value corresponding to respective AC  */
2361 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
2362 	/* Unsigned int 32 values corresponding to respective AC */
2363 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
2364 	/* Unsigned int 32 values corresponding to respective AC */
2365 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
2366 	/* Unsigned int 32 values corresponding to respective AC */
2367 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
2368 	/* Unsigned int 32 values corresponding to respective AC */
2369 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
2370 	/* Unsigned int 32 values corresponding to respective AC */
2371 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
2372 	/* Unsigned 32 bit value. Number of peers */
2373 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
2374 
2375 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
2376 	 * nested within the interface stats.
2377 	 */
2378 
2379 	/* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
2380 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
2381 	/* MAC addr corresponding to respective peer. An array of 6 unsigned
2382 	 * 8 bit values.
2383 	 */
2384 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
2385 	/* Unsigned int 32 bit value representing capabilities corresponding
2386 	 * to respective peer.
2387 	 */
2388 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
2389 	/* Unsigned 32 bit value. Number of rates */
2390 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
2391 
2392 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2393 	 * are nested within the rate stat.
2394 	 */
2395 
2396 	/* Wi-Fi Rate - separate attributes defined for individual fields */
2397 
2398 	/* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
2399 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
2400 	/* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
2401 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
2402 	/* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
2403 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
2404 	/* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
2405 	 * in the units of 0.5 Mbps HT/VHT it would be MCS index
2406 	 */
2407 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
2408 
2409 	/* Unsigned 32 bit value. Bit rate in units of 100 kbps */
2410 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
2411 
2412 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
2413 	 * nested within the peer info stats.
2414 	 */
2415 
2416 	/* Unsigned int 32 bit value. Number of successfully transmitted data
2417 	 * packets, i.e., with ACK received corresponding to the respective
2418 	 * rate.
2419 	 */
2420 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
2421 	/* Unsigned int 32 bit value. Number of received data packets
2422 	 * corresponding to the respective rate.
2423 	 */
2424 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
2425 	/* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
2426 	 * received corresponding to the respective rate.
2427 	 */
2428 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
2429 	/* Unsigned int 32 bit value. Total number of data packet retries for
2430 	 * the respective rate.
2431 	 */
2432 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
2433 	/* Unsigned int 32 bit value. Total number of short data packet retries
2434 	 * for the respective rate.
2435 	 */
2436 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
2437 	/* Unsigned int 32 bit value. Total number of long data packet retries
2438 	 * for the respective rate.
2439 	 */
2440 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
2441 
2442 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
2443 	/* Unsigned 32 bit value. Total number of msecs the radio is awake
2444 	 * accruing over time.
2445 	 */
2446 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
2447 	/* Unsigned 32 bit value. Total number of msecs the radio is
2448 	 * transmitting accruing over time.
2449 	 */
2450 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
2451 	/* Unsigned 32 bit value. Total number of msecs the radio is in active
2452 	 * receive accruing over time.
2453 	 */
2454 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
2455 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2456 	 * to all scan accruing over time.
2457 	 */
2458 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
2459 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2460 	 * to NAN accruing over time.
2461 	 */
2462 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
2463 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2464 	 * to GSCAN accruing over time.
2465 	 */
2466 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
2467 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2468 	 * to roam scan accruing over time.
2469 	 */
2470 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
2471 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2472 	 * to PNO scan accruing over time.
2473 	 */
2474 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
2475 	/* Unsigned 32 bit value. Total number of msecs the radio is awake due
2476 	 * to Hotspot 2.0 scans and GAS exchange accruing over time.
2477 	 */
2478 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
2479 	/* Unsigned 32 bit value. Number of channels. */
2480 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
2481 
2482 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
2483 	 * be nested within the channel stats.
2484 	 */
2485 
2486 	/* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
2487 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
2488 	/* Unsigned 32 bit value. Primary 20 MHz channel. */
2489 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
2490 	/* Unsigned 32 bit value. Center frequency (MHz) first segment. */
2491 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
2492 	/* Unsigned 32 bit value. Center frequency (MHz) second segment. */
2493 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
2494 
2495 	/* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
2496 	 * nested within the radio stats.
2497 	 */
2498 
2499 	/* Unsigned int 32 bit value representing total number of msecs the
2500 	 * radio is awake on that channel accruing over time, corresponding to
2501 	 * the respective channel.
2502 	 */
2503 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
2504 	/* Unsigned int 32 bit value representing total number of msecs the CCA
2505 	 * register is busy accruing over time corresponding to the respective
2506 	 * channel.
2507 	 */
2508 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
2509 
2510 	QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
2511 
2512 	/* Signifies the nested list of channel attributes
2513 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
2514 	 */
2515 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
2516 
2517 	/* Signifies the nested list of peer info attributes
2518 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
2519 	 */
2520 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
2521 
2522 	/* Signifies the nested list of rate info attributes
2523 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
2524 	 */
2525 	QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
2526 
2527 	/* Signifies the nested list of wmm info attributes
2528 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
2529 	 */
2530 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
2531 
2532 	/* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
2533 	 * that more stats, e.g., peers or radio, are to follow in the next
2534 	 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
2535 	 * Otherwise, it is set to 0.
2536 	 */
2537 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
2538 
2539 	/* Unsigned 64 bit value */
2540 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
2541 
2542 	/* Unsigned 32 bit value */
2543 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
2544 
2545 	/* Unsigned 32 bit value */
2546 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
2547 
2548 	/* Unsigned 32 bit value */
2549 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
2550 
2551 	/* Unsigned 32 bit value */
2552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
2553 
2554 	/* Unsigned 32 bit value */
2555 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
2556 
2557 	/* Number of msecs the radio spent in transmitting for each power level
2558 	 */
2559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
2560 
2561 	/* Unsigned 32 bit value */
2562 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
2563 	/* Unsigned 32 bit value */
2564 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
2565 	/* Unsigned 32 bit value */
2566 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
2567 	/* Unsigned 32 bit value */
2568 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
2569 
2570 	/* Unsigned int 32 value.
2571 	 * Pending MSDUs corresponding to respective AC.
2572 	 */
2573 	QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
2574 
2575 	/* u32 value representing total time in milliseconds for which the radio
2576 	 * is transmitting on this channel. This attribute will be nested
2577 	 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2578 	 */
2579 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
2580 	/* u32 value representing total time in milliseconds for which the radio
2581 	 * is receiving all 802.11 frames intended for this device on this
2582 	 * channel. This attribute will be nested within
2583 	 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
2584 	 */
2585 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
2586 	/* u8 value representing the channel load percentage. Possible values
2587 	 * are 0-100.
2588 	 */
2589 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
2590 	/* u8 value representing the time slicing duty cycle percentage.
2591 	 * Possible values are 0-100.
2592 	 */
2593 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
2594 	/* Unsigned 32 bit value. The number of Beacon frames which are received
2595 	 * from the associated AP and indicate buffered unicast frame(s) for us
2596 	 * in the TIM element.
2597 	 */
2598 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
2599 	/* Unsigned 32 bit value. The total number of Beacon frames received
2600 	 * from the associated AP that have wrongly indicated buffered unicast
2601 	 * traffic in the TIM element for us.
2602 	 * Below scenarios will be considered as wrong TIM element beacon:
2603 	 * 1) The related TIM element is set in the beacon for STA but STA
2604 	 *    doesn’t receive any unicast data after this beacon.
2605 	 * 2) The related TIM element is still set in the beacon for STA
2606 	 *    after STA has indicated power save exit by QoS Null Data frame.
2607 	 */
2608 	QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
2609 
2610 	/* Signed 32 bit value. It represents the noise floor calibration value.
2611 	 * Possible values are -120~-50 dBm.
2612 	 */
2613 	QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
2614 
2615 	/* keep last */
2616 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
2617 	QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
2618 	QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
2619 };
2620 
2621 enum qca_wlan_vendor_attr_ll_stats_type {
2622 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
2623 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
2624 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
2625 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
2626 
2627 	/* keep last */
2628 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
2629 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
2630 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
2631 };
2632 
2633 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
2634 
2635 /**
2636  * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
2637  *
2638  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
2639  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
2640  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
2641  * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
2642  */
2643 enum qca_wlan_vendor_attr_get_supported_features {
2644 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
2645 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
2646 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
2647 	QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
2648 		QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
2649 };
2650 
2651 /**
2652  * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
2653  *
2654  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
2655  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
2656  *	value
2657  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
2658  * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
2659  */
2660 enum qca_wlan_vendor_attr_set_scanning_mac_oui {
2661 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
2662 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
2663 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
2664 	QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
2665 		QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
2666 };
2667 
2668 /**
2669  * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
2670  * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
2671  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
2672  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
2673  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
2674  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
2675  * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
2676  */
2677 enum qca_wlan_vendor_scan_priority {
2678 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
2679 	QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
2680 	QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
2681 	QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
2682 	QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
2683 };
2684 
2685 /**
2686  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
2687  *
2688  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
2689  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
2690  *	with frequencies to be scanned (in MHz)
2691  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
2692  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
2693  *	rates to be included
2694  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
2695  *	at non CCK rate in 2GHz band
2696  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
2697  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
2698  *	driver for the specific scan request
2699  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
2700  *	request decoded as in enum scan_status
2701  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
2702  *	scan flag is set
2703  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
2704  *	randomisation
2705  * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
2706  *	specific BSSID to scan for.
2707  * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
2708  *	microseconds. This is a common value which applies across all
2709  *	frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
2710  * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
2711  *      other scan requests. It is a u32 attribute and takes values from enum
2712  *      qca_wlan_vendor_scan_priority. This is an optional attribute.
2713  *      If this attribute is not configured, the driver shall use
2714  *      QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
2715  */
2716 enum qca_wlan_vendor_attr_scan {
2717 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
2718 	QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
2719 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
2720 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
2721 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
2722 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
2723 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
2724 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
2725 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
2726 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
2727 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
2728 	QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
2729 	QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
2730 	QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
2731 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
2732 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
2733 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
2734 };
2735 
2736 /**
2737  * enum scan_status - Specifies the valid values the vendor scan attribute
2738  *	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
2739  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
2740  *	new scan results
2741  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
2742  */
2743 enum scan_status {
2744 	VENDOR_SCAN_STATUS_NEW_RESULTS,
2745 	VENDOR_SCAN_STATUS_ABORTED,
2746 	VENDOR_SCAN_STATUS_MAX,
2747 };
2748 
2749 /**
2750  * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
2751  *
2752  * NL attributes for data used by
2753  * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
2754  *
2755  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
2756  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
2757  *	Unsigned 32-bit value
2758  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
2759  *	Unsigned 32-bit value
2760  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
2761  *	array of SET_SIZE x Unsigned 32bit values representing concurrency
2762  *	combinations
2763  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
2764  * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
2765  */
2766 enum qca_wlan_vendor_attr_get_concurrency_matrix {
2767 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
2768 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
2769 									= 1,
2770 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
2771 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
2772 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
2773 	QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
2774 		QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
2775 };
2776 
2777 /**
2778  * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
2779  *
2780  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
2781  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
2782  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
2783  * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
2784  */
2785 enum qca_wlan_vendor_attr_set_no_dfs_flag {
2786 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
2787 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
2788 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
2789 	QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
2790 		QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
2791 };
2792 
2793 /**
2794  * enum qca_vendor_attr_wisa_cmd
2795  * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
2796  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
2797  * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
2798  * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
2799  * WISA setup vendor commands
2800  */
2801 enum qca_vendor_attr_wisa_cmd {
2802 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
2803 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
2804 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
2805 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
2806 		QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
2807 };
2808 
2809 enum qca_roaming_policy {
2810 	QCA_ROAMING_NOT_ALLOWED,
2811 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
2812 };
2813 
2814 /**
2815  * enum qca_roam_reason - Represents the reason codes for roaming. Used by
2816  * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
2817  *
2818  * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
2819  * reasons.
2820  *
2821  * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
2822  * the configured threshold.
2823  *
2824  * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
2825  * beacon misses from the then connected AP.
2826  *
2827  * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
2828  * by the connected AP.
2829  *
2830  * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
2831  * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
2832  * not poor.
2833  *
2834  * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
2835  * or environment being very noisy / congested.
2836  *
2837  * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
2838  * from the user (user space).
2839  *
2840  * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
2841  * connected AP.
2842  *
2843  * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
2844  * breaching out the configured threshold.
2845  *
2846  * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
2847  * transition request.
2848  *
2849  * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
2850  * there is no data activity with the AP and the current rssi falls below a
2851  * certain threshold.
2852  *
2853  * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
2854  * deauthentication or disassociation frames received from the connected AP.
2855  *
2856  * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
2857  * scan that happens when there is no candidate AP found during the poor
2858  * RSSI scan trigger.
2859  *
2860  * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
2861  * results obtained from an external scan (not aimed at roaming).
2862  *
2863  * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
2864  * connection is established when the station is connected in 2.4 Ghz band.
2865  *
2866  * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
2867  * failures to the connected AP.
2868  */
2869 enum qca_roam_reason {
2870 	QCA_ROAM_REASON_UNKNOWN,
2871 	QCA_ROAM_REASON_PER,
2872 	QCA_ROAM_REASON_BEACON_MISS,
2873 	QCA_ROAM_REASON_POOR_RSSI,
2874 	QCA_ROAM_REASON_BETTER_RSSI,
2875 	QCA_ROAM_REASON_CONGESTION,
2876 	QCA_ROAM_REASON_USER_TRIGGER,
2877 	QCA_ROAM_REASON_BTM,
2878 	QCA_ROAM_REASON_BSS_LOAD,
2879 	QCA_ROAM_REASON_WTC,
2880 	QCA_ROAM_REASON_IDLE,
2881 	QCA_ROAM_REASON_DISCONNECTION,
2882 	QCA_ROAM_REASON_PERIODIC_TIMER,
2883 	QCA_ROAM_REASON_BACKGROUND_SCAN,
2884 	QCA_ROAM_REASON_BT_ACTIVITY,
2885 	QCA_ROAM_REASON_STA_KICKOUT,
2886 };
2887 
2888 /**
2889  * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
2890  *
2891  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
2892  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
2893  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
2894  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
2895  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
2896  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
2897  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
2898  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
2899  * Indicates the status of re-association requested by user space for
2900  * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
2901  * Type u16.
2902  * Represents the status code from AP. Use
2903  * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
2904  * real status code for failures.
2905  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
2906  * This attribute indicates that the old association was maintained when
2907  * a re-association is requested by user space and that re-association
2908  * attempt fails (i.e., cannot connect to the requested BSS, but can
2909  * remain associated with the BSS with which the association was in
2910  * place when being requested to roam). Used along with
2911  * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
2912  * re-association status. Type flag.
2913  * This attribute is applicable only for re-association failure cases.
2914  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
2915  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
2916  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
2917  * seq number
2918  * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
2919  * representing the reasons for the roaming. Defined by enum
2920  * qca_roam_reason.
2921  */
2922 enum qca_wlan_vendor_attr_roam_auth {
2923 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
2924 	/* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
2925 	 * of the roamed AP for MLO roaming.
2926 	 */
2927 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
2928 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
2929 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
2930 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
2931 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
2932 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
2933 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
2934 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
2935 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
2936 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
2937 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
2938 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
2939 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
2940 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
2941 	/* A nested attribute containing per-link information of all the links
2942 	 * of MLO connection done while roaming. The attributes used inside this
2943 	 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
2944 	 */
2945 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
2946 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
2947 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
2948 		QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
2949 };
2950 
2951 /**
2952  * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
2953  * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
2954  *
2955  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
2956  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
2957  * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
2958  */
2959 enum qca_wlan_vendor_attr_mlo_links {
2960 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
2961 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
2962 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
2963 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
2964 
2965 	/* Keep last */
2966 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
2967 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
2968 	QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
2969 };
2970 
2971 /**
2972  * enum qca_wlan_vendor_attr_wifi_config - wifi config
2973  *
2974  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
2975  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
2976  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
2977  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
2978  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
2979  * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
2980  */
2981 enum qca_wlan_vendor_attr_wifi_config {
2982 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
2983 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
2984 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
2985 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
2986 
2987 	/* keep last */
2988 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
2989 	QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
2990 		QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
2991 };
2992 
2993 /**
2994  * enum qca_wlan_epno_type - the type of request to the EPNO command
2995  * @QCA_WLAN_EPNO: epno type request
2996  * @QCA_WLAN_PNO: pno type request
2997  */
2998 enum qca_wlan_epno_type {
2999 	QCA_WLAN_EPNO,
3000 	QCA_WLAN_PNO
3001 };
3002 
3003 /**
3004  * enum qca_wlan_vendor_attr_pno_config_params - pno config params
3005  *
3006  * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
3007  *
3008  *	NL attributes for data used by
3009  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
3010  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
3011  *	Unsigned 32-bit value; pno passpoint number of networks
3012  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
3013  *	Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
3014  *	attributes. Array size =
3015  *	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
3016  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
3017  *	Unsigned 32-bit value; network id
3018  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
3019  *	An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
3020  *	realm, 0 if unspecified.
3021  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
3022  *	An array of 16 x Unsigned 32-bit value; roaming consortium ids
3023  *	to match, 0 if unspecified.
3024  * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
3025  *	An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
3026  *	unspecified.
3027  *
3028  *	NL attributes for data used by
3029  *	QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
3030  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
3031  *	Unsigned 32-bit value; set pno number of networks
3032  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
3033  *	Array of nested
3034  *	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
3035  *	attributes. Array size =
3036  *		QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
3037  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
3038  *	An array of 33 x Unsigned 8-bit value; NULL terminated SSID
3039  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
3040  *	Signed 8-bit value; threshold for considering this SSID as found,
3041  *	required granularity for this threshold is 4dBm to 8dBm
3042  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
3043  *	Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
3044  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
3045  *	Unsigned 8-bit value; auth bit field for matching WPA IE
3046  * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
3047  *	Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
3048  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
3049  *	Nested attribute to send the channel list
3050  *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
3051  *	Unsigned 32-bit value; indicates the Interval between PNO scan
3052  *	cycles in msec
3053  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
3054  *	Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
3055  *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
3056  *	Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
3057  *	This attribute is obsolete now.
3058  *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
3059  *	Signed 32-bit value; the maximum score that a network
3060  *	can have before bonuses
3061  *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
3062  *	Signed 32-bit value; only report when there is a network's
3063  *	score this much higher han the current connection
3064  *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
3065  *	Signed 32-bit value; score bonus for all networks with
3066  *	the same network flag
3067  *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
3068  *	Signed 32-bit value; score bonus for networks that are not open
3069  *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
3070  *	Signed 32-bit value; 5GHz RSSI score bonus applied to all
3071  *	5GHz networks
3072  *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
3073  *	Unsigned 32-bit value, representing the PNO Request ID
3074  * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
3075  * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
3076  */
3077 enum qca_wlan_vendor_attr_pno_config_params {
3078 	QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
3079 
3080 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
3081 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
3082 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
3083 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
3084 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
3085 	QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
3086 
3087 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
3088 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
3089 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
3090 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
3091 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
3092 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
3093 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
3094 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
3095 	QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
3096 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
3097 	QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
3098 	QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
3099 	QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
3100 	QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
3101 	QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
3102 	QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
3103 
3104 	QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
3105 	/* keep last */
3106 	QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
3107 	QCA_WLAN_VENDOR_ATTR_PNO_MAX =
3108 		QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
3109 };
3110 
3111 /**
3112  * enum qca_scan_freq_list_type: Frequency list types
3113  *
3114  * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
3115  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3116  *	a preferred frequency list for roaming.
3117  *
3118  * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
3119  *	specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
3120  *	a specific frequency list for roaming.
3121  */
3122 enum qca_scan_freq_list_type {
3123 	QCA_PREFERRED_SCAN_FREQ_LIST = 1,
3124 	QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
3125 };
3126 
3127 /**
3128  * enum qca_roam_scan_scheme: scan scheme
3129  *
3130  * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
3131  *	Indicates the driver to not scan on a Roam Trigger scenario, but
3132  *	Disconnect.e.g., On a BTM request from the AP driver/firmware shall
3133  *	disconnect from the current connected AP by notifying a failure
3134  *	code in the BTM response.
3135  *
3136  * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
3137  *	trigger partial frequency scans. These frequencies are the ones learnt
3138  *	or maintained by the driver based on the probability of finding the
3139  *	BSSID's in the ESS for which the roaming is triggered.
3140  *
3141  * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
3142  *	trigger the scan on all the valid frequencies to find the better
3143  *	candidates to roam.
3144  */
3145 enum qca_roam_scan_scheme {
3146 	QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
3147 	QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
3148 	QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
3149 };
3150 
3151 /**
3152  * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
3153  *
3154  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
3155  *	List of frequencies in MHz to be considered for a roam scan.
3156  *
3157  * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
3158  *	Type of frequency list scheme being configured/gotten as defined by the
3159  *	enum qca_scan_freq_list_type.
3160  */
3161 enum qca_vendor_attr_scan_freq_list_scheme {
3162 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
3163 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
3164 
3165 	/* keep last */
3166 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
3167 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
3168 	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
3169 };
3170 
3171 /*
3172  * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
3173  *
3174  * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
3175  *	a bad packet error rates (PER).
3176  * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
3177  *	based on beacon misses from the connected AP.
3178  * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
3179  *	due to poor RSSI of the connected AP.
3180  * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
3181  *	upon finding a BSSID with a better RSSI than the connected BSSID.
3182  *	Here the RSSI of the current BSSID need not be poor.
3183  * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
3184  *	by triggering a periodic scan to find a better AP to roam.
3185  * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
3186  *	when the connected channel environment is too noisy/congested.
3187  * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
3188  *	when BTM Request frame is received from the connected AP.
3189  * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
3190  *	when the channel utilization is goes above the configured threshold.
3191  * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
3192  *	based on the request from the user (space).
3193  * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
3194  *	device receives Deauthentication/Disassociation frame from connected
3195  *	AP.
3196  * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
3197  *	DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
3198  *	is determined to be a poor one.
3199  * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
3200  *	based on continuous TX Data Frame failures to the connected AP.
3201  * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
3202  *	based on the scan results obtained from an external scan (not
3203  *	triggered to aim roaming)
3204  *
3205  * Set the corresponding roam trigger reason bit to consider it for roam
3206  * trigger.
3207  * Userspace can set multiple bits and send to the driver. The driver shall
3208  * consider all of them to trigger/initiate a roam scan.
3209  */
3210 enum qca_vendor_roam_triggers {
3211 	QCA_ROAM_TRIGGER_REASON_PER		= 1 << 0,
3212 	QCA_ROAM_TRIGGER_REASON_BEACON_MISS	= 1 << 1,
3213 	QCA_ROAM_TRIGGER_REASON_POOR_RSSI	= 1 << 2,
3214 	QCA_ROAM_TRIGGER_REASON_BETTER_RSSI	= 1 << 3,
3215 	QCA_ROAM_TRIGGER_REASON_PERIODIC	= 1 << 4,
3216 	QCA_ROAM_TRIGGER_REASON_DENSE		= 1 << 5,
3217 	QCA_ROAM_TRIGGER_REASON_BTM		= 1 << 6,
3218 	QCA_ROAM_TRIGGER_REASON_BSS_LOAD	= 1 << 7,
3219 	QCA_ROAM_TRIGGER_REASON_USER_TRIGGER	= 1 << 8,
3220 	QCA_ROAM_TRIGGER_REASON_DEAUTH          = 1 << 9,
3221 	QCA_ROAM_TRIGGER_REASON_IDLE		= 1 << 10,
3222 	QCA_ROAM_TRIGGER_REASON_TX_FAILURES	= 1 << 11,
3223 	QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN	= 1 << 12,
3224 };
3225 
3226 /*
3227  * enum qca_vendor_roam_fail_reasons: Defines the various roam
3228  * fail reasons. This enum value is used in
3229  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
3230  *
3231  * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
3232  * able to trigger the scan.
3233  * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
3234  * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
3235  * scan.
3236  * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
3237  * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
3238  * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
3239  * status code.
3240  * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
3241  * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
3242  * frame.
3243  * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
3244  * with error status code.
3245  * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
3246  * received.
3247  * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
3248  * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
3249  * frame.
3250  * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
3251  * internally before transmission.
3252  * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
3253  * Request frame.
3254  * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
3255  * dropped internally.
3256  * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
3257  * times out.
3258  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
3259  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
3260  * internally.
3261  * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
3262  * M2 frame.
3263  * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
3264  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
3265  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
3266  * internally.
3267  * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
3268  * frame.
3269  * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
3270  * started for final beacon miss case.
3271  * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
3272  * received from the AP during roaming handoff.
3273  * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
3274  * or host is suspended and gives the indication of the last roamed AP only
3275  * when the Apps is resumed. If the Apps is resumed while the roaming is in
3276  * progress, this ongoing roaming is aborted and the last roamed AP is
3277  * indicated to host.
3278  * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
3279  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
3280  * out.
3281  * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
3282  */
3283 enum qca_vendor_roam_fail_reasons {
3284 	QCA_ROAM_FAIL_REASON_NONE = 0,
3285 	QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
3286 	QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
3287 	QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
3288 	QCA_ROAM_FAIL_REASON_HOST = 4,
3289 	QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
3290 	QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
3291 	QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
3292 	QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
3293 	QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
3294 	QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
3295 	QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
3296 	QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
3297 	QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
3298 	QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
3299 	QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
3300 	QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
3301 	QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
3302 	QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
3303 	QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
3304 	QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
3305 	QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
3306 	QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
3307 	QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
3308 	QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
3309 	QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
3310 	QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
3311 	QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
3312 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
3313 	QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
3314 };
3315 
3316 /*
3317  * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
3318  * invoke fail reasons. This enum value is used in
3319  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
3320  *
3321  * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
3322  * in roam invoke command.
3323  * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
3324  * enabled.
3325  * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
3326  * length is invalid.
3327  * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
3328  * in progress.
3329  * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
3330  * of the AP in the roam invoke command to firmware. This reason is sent by the
3331  * firmware when the given AP is configured to be ignored or SSID/security
3332  * does not match.
3333  * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
3334  * firmware internal reasons.
3335  * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
3336  * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
3337  * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
3338  * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
3339  * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
3340  * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
3341  */
3342 enum qca_vendor_roam_invoke_fail_reasons {
3343 	QCA_ROAM_INVOKE_STATUS_NONE = 0,
3344 	QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
3345 	QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
3346 	QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
3347 	QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
3348 	QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
3349 	QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
3350 	QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
3351 	QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
3352 	QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
3353 	QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
3354 	QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
3355 	QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
3356 
3357 };
3358 
3359 /**
3360  * enum qca_vendor_attr_roam_candidate_selection_criteria:
3361  *
3362  * Each attribute carries a weightage in percentage (%).
3363  *
3364  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
3365  *	Represents the weightage to be given for the RSSI selection
3366  *	criteria among other parameters.
3367  *
3368  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
3369  *	Represents the weightage to be given for the rate selection
3370  *	criteria among other parameters.
3371  *
3372  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
3373  *	Represents the weightage to be given for the band width selection
3374  *	criteria among other parameters.
3375  *
3376  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
3377  *	Represents the weightage to be given for the band selection
3378  *	criteria among other parameters.
3379  *
3380  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
3381  *	Represents the weightage to be given for the NSS selection
3382  *	criteria among other parameters.
3383  *
3384  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
3385  *	Represents the weightage to be given for the channel congestion
3386  *	selection criteria among other parameters.
3387  *
3388  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
3389  *	Represents the weightage to be given for the beamforming selection
3390  *	criteria among other parameters.
3391  *
3392  * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
3393  *	Represents the weightage to be given for the OCE selection
3394  *	criteria among other parameters.
3395  */
3396 enum qca_vendor_attr_roam_candidate_selection_criteria {
3397 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
3398 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
3399 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
3400 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
3401 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
3402 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
3403 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
3404 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
3405 
3406 	/* keep last */
3407 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
3408 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
3409 	QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
3410 };
3411 
3412 /**
3413  * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
3414  *	The following attributes are used to set/get/clear the respective
3415  *	configurations to/from the driver.
3416  *	For the get, the attribute for the configuration to be queried shall
3417  *	carry any of its acceptable values to the driver. In return, the driver
3418  *	shall send the configured values within the same attribute to the user
3419  *	space.
3420  *
3421  * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
3422  *	Signifies to enable/disable roam control in driver.
3423  *	1-enable, 0-disable
3424  *	Enable: Mandates the driver to do the further roams using the
3425  *	configuration parameters set through
3426  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
3427  *	Disable: Disables the driver/firmware roaming triggered through
3428  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
3429  *	expected to continue with the default configurations.
3430  *
3431  * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
3432  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
3433  *	Roam control status is obtained through this attribute.
3434  *
3435  * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
3436  *	complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
3437  *	is to be cleared in the driver.
3438  *	This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
3439  *	and shall be ignored if used with other sub commands.
3440  *	If this attribute is specified along with subcmd
3441  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
3442  *	all other attributes, if there are any.
3443  *	If this attribute is not specified when the subcmd
3444  *	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
3445  *	clear the data corresponding to the attributes specified.
3446  *
3447  * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
3448  *	list of frequencies and its type, represented by
3449  *	enum qca_vendor_attr_scan_freq_list_scheme.
3450  *	Frequency list and its type are mandatory for this attribute to set
3451  *	the frequencies.
3452  *	Frequency type is mandatory for this attribute to get the frequencies
3453  *	and the frequency list is obtained through
3454  *	QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
3455  *	Frequency list type is mandatory for this attribute to clear the
3456  *	frequencies.
3457  *
3458  * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
3459  *	Carries the value of scan period in seconds to set.
3460  *	The value of scan period is obtained with the same attribute for get.
3461  *	Clears the scan period in the driver when specified with clear command.
3462  *	Scan period is the idle time in seconds between each subsequent
3463  *	channel scans.
3464  *
3465  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
3466  *	Carries the value of full scan period in seconds to set.
3467  *	The value of full scan period is obtained with the same attribute for
3468  *	get.
3469  *	Clears the full scan period in the driver when specified with clear
3470  *	command. Full scan period is the idle period in seconds between two
3471  *	successive full channel roam scans.
3472  *
3473  * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
3474  *	Carries a bitmap of the roam triggers specified in
3475  *	enum qca_vendor_roam_triggers.
3476  *	The driver shall enable roaming by enabling corresponding roam triggers
3477  *	based on the trigger bits sent with this attribute.
3478  *	If this attribute is not configured, the driver shall proceed with
3479  *	default behavior.
3480  *	The bitmap configured is obtained with the same attribute for get.
3481  *	Clears the bitmap configured in driver when specified with clear
3482  *	command.
3483  *
3484  * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
3485  *	weightage in percentage (%) to be given for each selection criteria.
3486  *	Different roam candidate selection criteria are represented by
3487  *	enum qca_vendor_attr_roam_candidate_selection_criteria.
3488  *	The driver shall select the roam candidate based on corresponding
3489  *	candidate selection scores sent.
3490  *
3491  *	An empty nested attribute is used to indicate that no specific
3492  *	preference score/criteria is configured (i.e., to disable this mechanism
3493  *	in the set case and to show that the mechanism is disabled in the get
3494  *	case).
3495  *
3496  *	Userspace can send multiple attributes out of this enum to the driver.
3497  *	Since this attribute represents the weight/percentage of preference for
3498  *	the respective selection criteria, it is preferred to configure 100%
3499  *	total weightage. The value in each attribute or cumulative weight of the
3500  *	values in all the nested attributes should not exceed 100%. The driver
3501  *	shall reject such configuration.
3502  *
3503  *	If the weights configured through this attribute are less than 100%,
3504  *	the driver shall honor the weights (x%) passed for the corresponding
3505  *	selection criteria and choose/distribute rest of the weight (100-x)%
3506  *	for the other selection criteria, based on its internal logic.
3507  *
3508  *	The selection criteria configured is obtained with the same
3509  *	attribute for get.
3510  *
3511  *	Clears the selection criteria configured in the driver when specified
3512  *	with clear command.
3513  *
3514  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
3515  *	Represents value of scan frequency scheme from
3516  *      enum qca_roam_scan_scheme.
3517  *
3518  * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3519  *	signifying the RSSI threshold of the current connected AP, indicating
3520  *	the driver to trigger roam only when the current connected AP's RSSI
3521  *	is lesser than this threshold.
3522  *
3523  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
3524  *	signifying the RSSI threshold of the candidate AP, indicating
3525  *	the driver to trigger roam only to the candidate AP with RSSI
3526  *	better than this threshold. If RSSI thresholds for candidate APs found
3527  *	in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
3528  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
3529  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
3530  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
3531  *	will take precedence over the value configured using
3532  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
3533  *
3534  * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
3535  *	user triggered reason code to be sent to the AP in response to AP's
3536  *	request to trigger the roam if the roaming cannot be triggered.
3537  *	Applies to all the scenarios of AP assisted roaming (e.g., BTM).
3538  *
3539  * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
3540  *	Carries a bitmap of the roam triggers specified in
3541  *	enum qca_vendor_roam_triggers.
3542  *	Represents the roam triggers for which the specific scan scheme from
3543  *	enum qca_roam_scan_scheme has to be applied.
3544  *	It's an optional attribute. If this attribute is not configured, but
3545  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
3546  *	specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
3547  *	all the roams.
3548  *	If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
3549  *	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
3550  *	driver shall proceed with the default behavior.
3551  *
3552  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
3553  *	in dBm, signifying the RSSI threshold of the candidate AP found in
3554  *	2.4GHz band. The driver/firmware shall trigger roaming to the candidate
3555  *	AP found in 2.4GHz 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_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
3561  *	dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
3562  *	band. The driver/firmware shall trigger roaming to the candidate AP
3563  *	found in 5GHz band only if it's RSSI value is better than this
3564  *	threshold. Optional attribute. If this attribute is not included, then
3565  *	threshold value specified by the
3566  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3567  *
3568  * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
3569  *	dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
3570  *	band. The driver/firmware shall trigger roaming to the candidate AP
3571  *	found in 6GHz band only if it's RSSI value is better than this
3572  *	threshold. Optional attribute. If this attribute is not included, then
3573  *	threshold value specified by the
3574  *	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
3575  *
3576  * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
3577  *	Carries bitmask value of bits from &enum qca_set_band and represents
3578  *	all the bands in which roaming is allowed. The configuration is valid
3579  *	until next disconnection. If this attribute is not present, the
3580  *	existing configuration shall be used. By default, roaming is allowed
3581  *	on all bands supported by local device. When the value is set to
3582  *	%QCA_SETBAND_AUTO, all supported bands shall be enabled.
3583  *
3584  * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
3585  *	Optional parameter. RX link speed threshold to disable roaming.
3586  *	If the current RX link speed is above the threshold, roaming is not
3587  *	needed. If this attribute is not configured, or if it is set to 0, the
3588  *	driver will not consider the RX link speed in the roaming decision.
3589  *
3590  * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
3591  *	Optional parameter. This configuration delays hand-off (in msec) by the
3592  *	specified duration to receive pending rx frames from current BSS.
3593  *
3594  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
3595  *	value.
3596  *	During the roam scan, if there are no desired APs found in the partial
3597  *	frequency list, an immediate full scan on all the supported frequencies
3598  *	is initiated as a fallback. This flag controls the frequency list
3599  *	creation for the full scan on the following lines.
3600  *	1 - Full scan to exclude the frequencies that were already scanned by
3601  *	    the previous partial scan.
3602  *	0 - Full scan to include all the supported frequencies irrespective of
3603  *	    the ones part of the earlier partial scan.
3604  *	If this flag is not specified, a full scan shall include all the
3605  *	supported frequencies irrespective of the ones part of an earlier
3606  *	partial scan.
3607  *
3608  * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
3609  *	value.
3610  *	During the roam scan, if there are no desired APs found in the partial
3611  *	frequency list, an immediate full scan on all the supported frequencies
3612  *	is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
3613  *	frequencies, including all PSC frequencies by default. This attribute
3614  *	controls the inclusion of the 6 GHz PSC frequencies for the full scan
3615  *	as following.
3616  *	1 - Full scan to include the supported 6 GHz PSC frequencies only on the
3617  *	    prior discovery of any 6 GHz frequency support in the environment.
3618  *	    This discovery can happen through a prior RNR, 11k neighbor
3619  *	    request, 11v BTM request, host scan, etc.
3620  *	0 - Default behavior. Full scan to include all the supported 6 GHz
3621  *	    PSC frequencies regardless of whether 6 GHz BSSs have been
3622  *	    discovered.
3623  *	The default behavior if this flag is not specified is to include all
3624  *	the supported 6 GHz PSC frequencies in the roam full scan.
3625  */
3626 enum qca_vendor_attr_roam_control {
3627 	QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
3628 	QCA_ATTR_ROAM_CONTROL_STATUS = 2,
3629 	QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
3630 	QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
3631 	QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
3632 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
3633 	QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
3634 	QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
3635 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
3636 	QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
3637 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
3638 	QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
3639 	QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
3640 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
3641 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
3642 	QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
3643 	QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
3644 	QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
3645 	QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
3646 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
3647 	QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
3648 
3649 	/* keep last */
3650 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
3651 	QCA_ATTR_ROAM_CONTROL_MAX =
3652 	QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
3653 };
3654 
3655 /**
3656  * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
3657  * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
3658  *
3659  * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
3660  *	Represents the different roam sub commands referred by
3661  *	enum qca_wlan_vendor_roaming_subcmd.
3662  *
3663  * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
3664  *	Represents the Request ID for the specific set of commands.
3665  *	This also helps to map specific set of commands to the respective
3666  *	ID / client. e.g., helps to identify the user entity configuring the
3667  *	Blacklist BSSID and accordingly clear the respective ones with the
3668  *	matching ID.
3669  *
3670  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
3671  *	32-bit value.Represents the number of whitelist SSIDs configured.
3672  *
3673  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
3674  *	to carry the list of Whitelist SSIDs.
3675  *
3676  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
3677  *	0..32 octets). Represents the white list SSID. Whitelist SSIDs
3678  *	represent the list of SSIDs to which the firmware/driver can consider
3679  *	to roam to.
3680  *
3681  * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
3682  * comparing with a 2.4GHz BSSID. They are not applied when comparing two
3683  * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
3684  * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
3685  *
3686  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
3687  *	value, RSSI threshold above which 5GHz RSSI is favored.
3688  *
3689  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
3690  *	value, RSSI threshold below which 5GHz RSSI is penalized.
3691  *
3692  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
3693  *	value, factor by which 5GHz RSSI is boosted.
3694  *	boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
3695  *
3696  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
3697  *	value, factor by which 5GHz RSSI is penalized.
3698  *	penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
3699  *
3700  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
3701  *	value, maximum boost that can be applied to a 5GHz RSSI.
3702  *
3703  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
3704  *	value, boost applied to current BSSID to ensure the currently
3705  *	associated BSSID is favored so as to prevent ping-pong situations.
3706  *
3707  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
3708  *	value, RSSI below which "Alert" roam is enabled.
3709  *	"Alert" mode roaming - firmware is "urgently" hunting for another BSSID
3710  *	because the RSSI is low, or because many successive beacons have been
3711  *	lost or other bad link conditions.
3712  *
3713  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
3714  *	value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
3715  *	firmware is hunting for a better BSSID or white listed SSID even though
3716  *	the RSSI of the link is good. The parameters enabling the roaming are
3717  *	configured through the PARAM_A_BAND_XX attrbutes.
3718  *
3719  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
3720  *	represents the BSSIDs preferred over others while evaluating them
3721  *	for the roaming.
3722  *
3723  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
3724  *	32-bit value. Represents the number of preferred BSSIDs set.
3725  *
3726  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
3727  *	address representing the BSSID to be preferred.
3728  *
3729  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
3730  *	32-bit value, representing the modifier to be applied to the RSSI of
3731  *	the BSSID for the purpose of comparing it with other roam candidate.
3732  *
3733  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
3734  *	represents the BSSIDs to get blacklisted for roaming.
3735  *
3736  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
3737  *	32-bit value, represents the number of blacklisted BSSIDs.
3738  *
3739  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
3740  *	address representing the Blacklisted BSSID.
3741  *
3742  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
3743  *	indicates this BSSID blacklist as a hint to the driver. The driver can
3744  *	select this BSSID in the worst case (when no other BSSIDs are better).
3745  *
3746  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
3747  *	set/get/clear the roam control config as
3748  *	defined @enum qca_vendor_attr_roam_control.
3749  *
3750  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
3751  * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
3752  */
3753 enum qca_wlan_vendor_attr_roaming_config_params {
3754 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
3755 
3756 	QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
3757 	QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
3758 
3759 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
3760 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
3761 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
3762 
3763 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
3764 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
3765 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
3766 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
3767 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
3768 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
3769 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
3770 
3771 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
3772 
3773 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
3774 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
3775 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
3776 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
3777 
3778 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
3779 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
3780 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
3781 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
3782 
3783 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
3784 
3785 	/* keep last */
3786 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
3787 	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
3788 		QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
3789 };
3790 
3791 /**
3792  * enum qca_wlan_vendor_roaming_subcmd: Referred by
3793  * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
3794  *
3795  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
3796  *	configure the white list SSIDs. These are configured through
3797  *	the following attributes.
3798  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
3799  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
3800  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
3801  *
3802  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
3803  *	configure the Roam params. These parameters are evaluated on the extscan
3804  *	results. Refers the attributes PARAM_A_BAND_XX above to configure the
3805  *	params.
3806  *
3807  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
3808  *	the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
3809  *	to enable/disable Lazy roam.
3810  *
3811  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
3812  *	preference. Contains the attribute
3813  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
3814  *	preference.
3815  *
3816  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
3817  *
3818  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
3819  *	BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
3820  *	set the same.
3821  *
3822  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
3823  *	roam control config to the driver with the attribute
3824  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3825  *
3826  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
3827  *	roam control config from driver with the attribute
3828  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3829  *	For the get, the attribute for the configuration to be queried shall
3830  *	carry any of its acceptable value to the driver. In return, the driver
3831  *	shall send the configured values within the same attribute to the user
3832  *	space.
3833  *
3834  * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
3835  *	roam control config in the driver with the attribute
3836  *	QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
3837  *	The driver shall continue with its default roaming behavior when data
3838  *	corresponding to an attribute is cleared.
3839  */
3840 enum qca_wlan_vendor_roaming_subcmd {
3841 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
3842 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
3843 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
3844 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
3845 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
3846 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
3847 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
3848 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
3849 	QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
3850 };
3851 
3852 /**
3853  * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
3854  *
3855  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
3856  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
3857  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
3858  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
3859  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
3860  * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
3861  */
3862 enum qca_wlan_vendor_attr_get_wifi_info {
3863 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
3864 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION     = 1,
3865 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION   = 2,
3866 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX        = 3,
3867 
3868 	/* KEEP LAST */
3869 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
3870 	QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX  =
3871 		QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
3872 };
3873 
3874 enum qca_wlan_vendor_attr_logger_results {
3875 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
3876 
3877 	/*
3878 	 * Unsigned 32-bit value; must match the request Id supplied by
3879 	 * Wi-Fi HAL in the corresponding subcmd NL msg.
3880 	 */
3881 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
3882 
3883 	/*
3884 	 * Unsigned 32-bit value; used to indicate the size of memory
3885 	 * dump to be allocated.
3886 	 */
3887 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
3888 
3889 	/* keep last */
3890 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
3891 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
3892 	QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
3893 };
3894 
3895 /**
3896  * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
3897  * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
3898  */
3899 enum qca_wlan_vendor_channel_prop_flags {
3900 	/* Bits 0, 1, 2, and 3 are reserved */
3901 
3902 	/* Turbo channel */
3903 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO         = 1 << 4,
3904 	/* CCK channel */
3905 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK           = 1 << 5,
3906 	/* OFDM channel */
3907 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM          = 1 << 6,
3908 	/* 2.4 GHz spectrum channel. */
3909 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ          = 1 << 7,
3910 	/* 5 GHz spectrum channel */
3911 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ          = 1 << 8,
3912 	/* Only passive scan allowed */
3913 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE       = 1 << 9,
3914 	/* Dynamic CCK-OFDM channel */
3915 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN           = 1 << 10,
3916 	/* GFSK channel (FHSS PHY) */
3917 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK          = 1 << 11,
3918 	/* Radar found on channel */
3919 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR         = 1 << 12,
3920 	/* 11a static turbo channel only */
3921 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO        = 1 << 13,
3922 	/* Half rate channel */
3923 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF          = 1 << 14,
3924 	/* Quarter rate channel */
3925 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER       = 1 << 15,
3926 	/* HT 20 channel */
3927 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20          = 1 << 16,
3928 	/* HT 40 with extension channel above */
3929 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS      = 1 << 17,
3930 	/* HT 40 with extension channel below */
3931 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS     = 1 << 18,
3932 	/* HT 40 intolerant */
3933 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL     = 1 << 19,
3934 	/* VHT 20 channel */
3935 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20         = 1 << 20,
3936 	/* VHT 40 with extension channel above */
3937 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS     = 1 << 21,
3938 	/* VHT 40 with extension channel below */
3939 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS    = 1 << 22,
3940 	/* VHT 80 channel */
3941 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80         = 1 << 23,
3942 	/* HT 40 intolerant mark bit for ACS use */
3943 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
3944 	/* Channel temporarily blocked due to noise */
3945 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED       = 1 << 25,
3946 	/* VHT 160 channel */
3947 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160        = 1 << 26,
3948 	/* VHT 80+80 channel */
3949 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80      = 1 << 27,
3950 	/* HE 20 channel */
3951 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20          = 1 << 28,
3952 	/* HE 40 with extension channel above */
3953 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS      = 1 << 29,
3954 	/* HE 40 with extension channel below */
3955 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS     = 1 << 30,
3956 	/* HE 40 intolerant */
3957 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL     = 1U << 31,
3958 };
3959 
3960 /**
3961  * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
3962  * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
3963  * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
3964  */
3965 enum qca_wlan_vendor_channel_prop_flags_2 {
3966 	/* HE 40 intolerant mark bit for ACS use */
3967 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
3968 	/* HE 80 channel */
3969 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80          = 1 << 1,
3970 	/* HE 160 channel */
3971 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160         = 1 << 2,
3972 	/* HE 80+80 channel */
3973 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80       = 1 << 3,
3974 };
3975 
3976 /**
3977  * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
3978  * each channel. This is used by
3979  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
3980  */
3981 enum qca_wlan_vendor_channel_prop_flags_ext {
3982 	/* Radar found on channel */
3983 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND     = 1 << 0,
3984 	/* DFS required on channel */
3985 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS             = 1 << 1,
3986 	/* DFS required on channel for 2nd band of 80+80 */
3987 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2      = 1 << 2,
3988 	/* If channel has been checked for DFS */
3989 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR       = 1 << 3,
3990 	/* Excluded in 802.11d */
3991 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED    = 1 << 4,
3992 	/* Channel Switch Announcement received on this channel */
3993 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED    = 1 << 5,
3994 	/* Ad-hoc is not allowed */
3995 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC  = 1 << 6,
3996 	/* Station only channel */
3997 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
3998 	/* DFS radar history for slave device (STA mode) */
3999 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR   = 1 << 8,
4000 	/* DFS CAC valid for slave device (STA mode) */
4001 	QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID       = 1 << 9,
4002 };
4003 
4004 /**
4005  * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
4006  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
4007  * information to start/stop the NUD statistics collection.
4008  */
4009 enum qca_attr_nud_stats_set {
4010 	QCA_ATTR_NUD_STATS_SET_INVALID = 0,
4011 
4012 	/*
4013 	 * Flag to start/stop the NUD statistics collection.
4014 	 * Start - If included, Stop - If not included
4015 	 */
4016 	QCA_ATTR_NUD_STATS_SET_START = 1,
4017 	/* IPv4 address of the default gateway (in network byte order) */
4018 	QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
4019 	/*
4020 	 * Represents the data packet type to be monitored.
4021 	 * Host driver tracks the stats corresponding to each data frame
4022 	 * represented by these flags.
4023 	 * These data packets are represented by
4024 	 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
4025 	 */
4026 	QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
4027 	/* keep last */
4028 	QCA_ATTR_NUD_STATS_SET_LAST,
4029 	QCA_ATTR_NUD_STATS_SET_MAX =
4030 		QCA_ATTR_NUD_STATS_SET_LAST - 1,
4031 };
4032 
4033 /**
4034  * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
4035  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4036  *	information to start / stop the NUD stats collection.
4037  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
4038  *	Bitmap to Flag to Start / Stop the NUD stats collection
4039  *	Start - If included , Stop - If not included
4040  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
4041  *	IPv4 address of Default Gateway (in network byte order)
4042  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4043  *	information to start / stop the NUD stats collection.
4044  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
4045  *	Flag to Start / Stop the NUD stats collection
4046  *	Start - If included , Stop - If not included
4047  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
4048  *	IPv4 address of Default Gateway (in network byte order)
4049  *	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
4050  *	information to start / stop the NUD stats collection.
4051  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
4052  *	Flag to Start / Stop the NUD stats collection
4053  *	Start - If included , Stop - If not included
4054  * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
4055  *	IPv4 address of Default Gateway (in network byte order)
4056  */
4057 enum qca_attr_connectivity_check_stats_set {
4058 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
4059 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
4060 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
4061 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
4062 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
4063 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
4064 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
4065 	/* keep last */
4066 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
4067 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
4068 		QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
4069 };
4070 
4071 /**
4072  * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
4073  * data types for which the stats have to get collected.
4074  */
4075 enum qca_wlan_vendor_connectivity_check_pkt_flags {
4076 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
4077 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
4078 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
4079 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
4080 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
4081 	/* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
4082 	 * to represent the stats of respective data type.
4083 	 */
4084 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
4085 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
4086 	QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
4087 };
4088 
4089 enum qca_attr_connectivity_check_stats {
4090 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
4091 	/* Data packet type for which the stats are collected.
4092 	 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
4093 	 */
4094 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
4095 	/* ID corresponding to the DNS frame for which the respective DNS stats
4096 	 * are monitored (u32).
4097 	 */
4098 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
4099 	/* source / destination port on which the respective proto stats are
4100 	 * collected (u32).
4101 	 */
4102 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
4103 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
4104 	/* IPv4/IPv6 address for which the destined data packets are
4105 	 * monitored. (in network byte order)
4106 	 */
4107 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
4108 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
4109 	/* Data packet Request count received from netdev */
4110 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
4111 	/* Data packet Request count sent to lower MAC from upper MAC */
4112 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
4113 	/* Data packet Request count received by lower MAC from upper MAC */
4114 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
4115 	/* Data packet Request count successfully transmitted by the device */
4116 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
4117 	/* Data packet Response count received by lower MAC */
4118 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
4119 	/* Data packet Response count received by upper MAC */
4120 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
4121 	/* Data packet Response count delivered to netdev */
4122 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
4123 	/* Data Packet Response count that are dropped out of order */
4124 	QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
4125 
4126 	/* keep last */
4127 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
4128 	QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
4129 		QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
4130 };
4131 
4132 /**
4133  * qca_attr_nud_stats_get: Attributes to vendor subcmd
4134  * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
4135  * NUD statistics collected when queried.
4136  */
4137 enum qca_attr_nud_stats_get {
4138 	QCA_ATTR_NUD_STATS_GET_INVALID = 0,
4139 	/* ARP Request count from netdev */
4140 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
4141 	/* ARP Request count sent to lower MAC from upper MAC */
4142 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
4143 	/* ARP Request count received by lower MAC from upper MAC */
4144 	QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
4145 	/* ARP Request count successfully transmitted by the device */
4146 	QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
4147 	/* ARP Response count received by lower MAC */
4148 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
4149 	/* ARP Response count received by upper MAC */
4150 	QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
4151 	/* ARP Response count delivered to netdev */
4152 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
4153 	/* ARP Response count delivered to netdev */
4154 	QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
4155 	/*
4156 	 * Flag indicating if the station's link to the AP is active.
4157 	 * Active Link - If included, Inactive link - If not included
4158 	 */
4159 	QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
4160 	/*
4161 	 * Flag indicating if there is any duplicate address detected (DAD).
4162 	 * Yes - If detected, No - If not detected.
4163 	 */
4164 	QCA_ATTR_NUD_STATS_IS_DAD = 10,
4165 	/*
4166 	 * List of Data types for which the stats are requested.
4167 	 * This list does not carry ARP stats as they are done by the
4168 	 * above attributes. Represented by enum qca_attr_nud_data_stats.
4169 	 */
4170 	QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
4171 	/* keep last */
4172 	QCA_ATTR_NUD_STATS_GET_LAST,
4173 	QCA_ATTR_NUD_STATS_GET_MAX =
4174 		QCA_ATTR_NUD_STATS_GET_LAST - 1,
4175 };
4176 
4177 enum qca_wlan_btm_candidate_status {
4178 	QCA_STATUS_ACCEPT = 0,
4179 	QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
4180 	QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
4181 	QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
4182 	QCA_STATUS_REJECT_LOW_RSSI = 4,
4183 	QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
4184 	QCA_STATUS_REJECT_UNKNOWN = 6,
4185 };
4186 
4187 enum qca_wlan_vendor_attr_btm_candidate_info {
4188 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
4189 
4190 	/* 6-byte MAC address representing the BSSID of transition candidate */
4191 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
4192 	/*
4193 	 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
4194 	 * returned by the driver. It says whether the BSSID provided in
4195 	 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
4196 	 * the driver, if not it specifies the reason for rejection.
4197 	 * Note that the user-space can overwrite the transition reject reason
4198 	 * codes provided by driver based on more information.
4199 	 */
4200 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
4201 
4202 	/* keep last */
4203 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
4204 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
4205 	QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
4206 };
4207 
4208 enum qca_attr_trace_level {
4209 	QCA_ATTR_TRACE_LEVEL_INVALID = 0,
4210 	/*
4211 	 * Nested array of the following attributes:
4212 	 * QCA_ATTR_TRACE_LEVEL_MODULE,
4213 	 * QCA_ATTR_TRACE_LEVEL_MASK.
4214 	 */
4215 	QCA_ATTR_TRACE_LEVEL_PARAM = 1,
4216 	/*
4217 	 * Specific QCA host driver module. Please refer to the QCA host
4218 	 * driver implementation to get the specific module ID.
4219 	 */
4220 	QCA_ATTR_TRACE_LEVEL_MODULE = 2,
4221 	/* Different trace level masks represented in the QCA host driver. */
4222 	QCA_ATTR_TRACE_LEVEL_MASK = 3,
4223 
4224 	/* keep last */
4225 	QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
4226 	QCA_ATTR_TRACE_LEVEL_MAX =
4227 		QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
4228 };
4229 
4230 /**
4231  * enum qca_wlan_vendor_attr_get_logger_features - value for logger
4232  *                                                 supported features
4233  * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
4234  * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
4235  * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
4236  * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
4237  *
4238  * enum values are used for NL attributes for data used by
4239  * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
4240  */
4241 enum qca_wlan_vendor_attr_get_logger_features {
4242 	QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
4243 	QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
4244 
4245 	/* keep last */
4246 	QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
4247 	QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
4248 		QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
4249 };
4250 
4251 /**
4252  * enum qca_wlan_vendor_attr_link_properties - link properties
4253  *
4254  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
4255  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
4256  *	specify the number of spatial streams negotiated
4257  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
4258  *	to specify negotiated rate flags i.e. ht, vht and channel width
4259  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
4260  *	specify the operating frequency
4261  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
4262  * (STA / AP ) for the connected link.
4263  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
4264  * &struct nl80211_sta_flag_update for the respective connected link. MAC
4265  * address of the peer represented by
4266  * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
4267  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
4268  * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
4269  */
4270 enum qca_wlan_vendor_attr_link_properties {
4271 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
4272 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
4273 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
4274 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
4275 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR  = 4,
4276 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS  = 5,
4277 
4278 	/* KEEP LAST */
4279 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
4280 	QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
4281 		QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
4282 };
4283 
4284 /**
4285  * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
4286  *
4287  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
4288  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
4289  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
4290  * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
4291  *
4292  * enum values are used for NL attributes for data used by
4293  * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
4294  */
4295 enum qca_wlan_vendor_attr_nd_offload {
4296 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
4297 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
4298 
4299 	/* Keep last */
4300 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
4301 	QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
4302 		QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
4303 };
4304 
4305 /**
4306  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
4307  *
4308  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
4309  *	management offload, a mechanism where the station's firmware
4310  *	does the exchange with the AP to establish the temporal keys
4311  *	after roaming, rather than having the user space wpa_supplicant do it.
4312  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
4313  *	band selection based on channel selection results.
4314  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
4315  *	simultaneous off-channel operations.
4316  * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
4317  *	Listen offload; a mechanism where the station's firmware takes care of
4318  *	responding to incoming Probe Request frames received from other P2P
4319  *	Devices whilst in Listen state, rather than having the user space
4320  *	wpa_supplicant do it. Information from received P2P requests are
4321  *	forwarded from firmware to host whenever the host processor wakes up.
4322  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
4323  *	specific features.
4324  * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
4325  *	features.
4326  * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
4327  *	specific features only. If a Device sets this bit but not the
4328  *	%QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
4329  *	this Device may not support all OCE AP functionalities but can support
4330  *	only OCE STA-CFON functionalities.
4331  * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
4332  *	managed regulatory.
4333  * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
4334  * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
4335  * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
4336  * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
4337  *	and applying thermal configuration through
4338  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
4339  *	%QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
4340  *	userspace.
4341  * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
4342  *	With Adaptive 11r feature, access points advertise the vendor
4343  *	specific IEs and MDE but do not include FT AKM in the RSNE.
4344  *	The Adaptive 11r supported stations are expected to identify
4345  *	such vendor specific IEs and connect to the AP in FT mode though
4346  *	the profile is configured in non-FT mode.
4347  *	The driver-based SME cases also need to have this support for
4348  *	Adaptive 11r to handle the connection and roaming scenarios.
4349  *	This flag indicates the support for the same to the user space.
4350  * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
4351  *	concurrent network sessions on different Wi-Fi Bands. This feature
4352  *	capability is attributed to the hardware's capability to support
4353  *	the same (e.g., DBS).
4354  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
4355  *	responses for the respective TWT operations are asynchronous (separate)
4356  *	event message) from the driver. If not specified, the responses are
4357  *	synchronous (in vendor command reply) to the request. Each TWT
4358  *	operation is specifically mentioned (against its respective)
4359  *	documentation) to support either of these or both modes.
4360  * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
4361  * 	that the driver requires add/del virtual interface path using the
4362  *	generic nl80211 commands for NDP interface create/delete and to
4363  *	register/unregister the netdev instead of creating/deleting the NDP
4364  *	interface using the vendor commands
4365  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
4366  *	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
4367  * 	(5.12 version onward), interface creation/deletion is not allowed using
4368  * 	vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
4369  * 	during the register/unregister of netdev. Create and delete NDP
4370  * 	interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
4371  * 	commands respectively if the driver advertises this capability set.
4372  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
4373  *	station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
4374  *	set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
4375  * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
4376  *	mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
4377  *	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
4378  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
4379  *	station mode supports secure RTT measurement exchange. If
4380  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4381  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
4382  * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
4383  *	mode supports secure RTT measurement exchange. If
4384  *	NL80211_EXT_FEATURE_SECURE_RTT is set,
4385  *	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
4386  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
4387  *	the device in station mode supports protection of range negotiation and
4388  *	measurement management frames. If
4389  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4390  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
4391  * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
4392  *	the device in AP mode supports protection of range negotiation and
4393  *	measurement management frames. If
4394  *	NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
4395  *	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
4396  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
4397  */
4398 enum qca_wlan_vendor_features {
4399 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
4400 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
4401 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
4402 	QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
4403 	QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
4404 	QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
4405 	QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
4406 	QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
4407 	QCA_WLAN_VENDOR_FEATURE_TWT = 8,
4408 	QCA_WLAN_VENDOR_FEATURE_11AX = 9,
4409 	QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
4410 	QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
4411 	QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
4412 	QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
4413 	QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
4414 	QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
4415 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA		= 16,
4416 	QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP		= 17,
4417 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA		= 18,
4418 	QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP		= 19,
4419 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
4420 	QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
4421 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
4422 };
4423 
4424 /**
4425  * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
4426  *     conditional channel switch
4427  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
4428  *     value
4429  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
4430  * frequency list (an array of u32 values in host byte order)
4431  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
4432  *     conditional switch (u32)- 0: Success, Non-zero: Failure
4433  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
4434  * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
4435  */
4436 enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
4437 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
4438 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
4439 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
4440 
4441 	/* Keep Last */
4442 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
4443 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
4444 	QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
4445 };
4446 
4447 /**
4448  * enum wifi_logger_supported_features - values for supported logger features
4449  * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
4450  * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
4451  * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
4452  * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
4453  * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
4454  * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
4455  * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
4456  * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
4457  */
4458 enum wifi_logger_supported_features {
4459 	WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
4460 	WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
4461 	WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
4462 	WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
4463 	WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
4464 	WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
4465 	WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
4466 	WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
4467 	WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
4468 };
4469 
4470 /**
4471  * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
4472  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4473  *
4474  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
4475  * Used with event to notify the primary channel number selected in ACS
4476  * operation.
4477  * Note: If both the driver and user-space application supports the 6 GHz band,
4478  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
4479  * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
4480  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4481  * is still used if either of the driver or user space application doesn't
4482  * support the 6 GHz band.
4483  *
4484  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
4485  * Used with event to notify the secondary channel number selected in ACS
4486  * operation.
4487  * Note: If both the driver and user-space application supports the 6 GHz band,
4488  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
4489  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
4490  * To maintain backward compatibility,
4491  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
4492  * the driver or user space application doesn't support 6 GHz band.
4493  *
4494  * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
4495  * (a) Used with command to configure hw_mode from
4496  * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
4497  * (b) Also used with event to notify the hw_mode of selected primary channel
4498  * in ACS operation.
4499  *
4500  * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
4501  * Used with command to configure ACS operation for HT mode.
4502  * Disable (flag attribute not present) - HT disabled and
4503  * Enable (flag attribute present) - HT enabled.
4504  *
4505  * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
4506  * Used with command to configure ACS operation for HT40 mode.
4507  * Disable (flag attribute not present) - HT40 disabled and
4508  * Enable (flag attribute present) - HT40 enabled.
4509  *
4510  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
4511  * Used with command to configure ACS operation for VHT mode.
4512  * Disable (flag attribute not present) - VHT disabled and
4513  * Enable (flag attribute present) - VHT enabled.
4514  *
4515  * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
4516  * mandatory with event.
4517  * If specified in command path, ACS operation is configured with the given
4518  * channel width (in MHz).
4519  * In event path, specifies the channel width of the primary channel selected.
4520  *
4521  * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
4522  * Used with command to configure channel list using an array of
4523  * channel numbers (u8).
4524  * Note: If both the driver and user-space application supports the 6 GHz band,
4525  * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
4526  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
4527  *
4528  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
4529  * Used with event to notify the VHT segment 0 center channel number selected in
4530  * ACS operation.
4531  * Note: If both the driver and user-space application supports the 6 GHz band,
4532  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
4533  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
4534  * To maintain backward compatibility,
4535  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
4536  * the driver or user space application doesn't support the 6 GHz band.
4537  *
4538  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
4539  * Used with event to notify the VHT segment 1 center channel number selected in
4540  * ACS operation.
4541  * Note: If both the driver and user-space application supports the 6 GHz band,
4542  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
4543  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
4544  * To maintain backward compatibility,
4545  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
4546  * the driver or user space application doesn't support the 6 GHz band.
4547  *
4548  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
4549  * Used with command to configure the channel list using an array of channel
4550  * center frequencies in MHz (u32).
4551  * Note: If both the driver and user-space application supports the 6 GHz band,
4552  * the driver first parses the frequency list and if it fails to get a frequency
4553  * list, parses the channel list specified using
4554  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
4555  * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
4556  *
4557  * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
4558  * Used with event to notify the primary channel center frequency (MHz) selected
4559  * in ACS operation.
4560  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4561  * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
4562  *
4563  * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
4564  * Used with event to notify the secondary channel center frequency (MHz)
4565  * selected in ACS operation.
4566  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4567  * includes this attribute along with
4568  * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
4569  *
4570  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
4571  * Used with event to notify the VHT segment 0 center channel frequency (MHz)
4572  * selected in ACS operation.
4573  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4574  * includes this attribute along with
4575  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
4576  *
4577  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
4578  * Used with event to notify the VHT segment 1 center channel frequency (MHz)
4579  * selected in ACS operation.
4580  * Note: If the driver supports the 6 GHz band, the event sent from the driver
4581  * includes this attribute along with
4582  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
4583  *
4584  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
4585  * Used with command to notify the driver of EDMG request for ACS
4586  * operation.
4587  *
4588  * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
4589  * Used with event to notify the EDMG channel number selected in ACS
4590  * operation.
4591  * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
4592  *
4593  * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
4594  * Used with event to notify the puncture pattern selected in ACS operation.
4595  * Encoding for this attribute will follow the convention used in the Disabled
4596  * Subchannel Bitmap field of the EHT Operation IE.
4597  *
4598  * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
4599  * Used with command to configure ACS operation for EHT mode.
4600  * Disable (flag attribute not present) - EHT disabled and
4601  * Enable (flag attribute present) - EHT enabled.
4602  *
4603  * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
4604  * Used with command to configure how older scan can be considered for ACS
4605  * scoring. In case scan was performed on partial set of channels configured
4606  * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
4607  * (in ms), then scan only remaining channels.
4608  */
4609 enum qca_wlan_vendor_attr_acs_offload {
4610 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
4611 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
4612 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
4613 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
4614 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
4615 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
4616 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
4617 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
4618 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
4619 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
4620 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
4621 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
4622 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
4623 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
4624 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
4625 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
4626 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
4627 	QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
4628 	QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
4629 	QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
4630 	QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
4631 
4632 	/* keep last */
4633 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
4634 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
4635 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
4636 };
4637 
4638 /**
4639  * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
4640  * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
4641  *
4642  * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
4643  * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
4644  * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
4645  * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
4646  * @QCA_ACS_MODE_IEEE80211ANY: all modes
4647  * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
4648  */
4649 enum qca_wlan_vendor_acs_hw_mode {
4650 	QCA_ACS_MODE_IEEE80211B,
4651 	QCA_ACS_MODE_IEEE80211G,
4652 	QCA_ACS_MODE_IEEE80211A,
4653 	QCA_ACS_MODE_IEEE80211AD,
4654 	QCA_ACS_MODE_IEEE80211ANY,
4655 	QCA_ACS_MODE_IEEE80211AX,
4656 };
4657 
4658 /**
4659  * enum qca_access_policy - access control policy
4660  *
4661  * Access control policy is applied on the configured IE
4662  * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
4663  * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
4664  *
4665  * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
4666  *»       with the specific configuration (IE) set, i.e. allow all the
4667  *»       connections which do not match the configuration.
4668  * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
4669  *»       with the specific configuration (IE) set, i.e. deny all the
4670  *»       connections which do not match the configuration.
4671  */
4672 enum qca_access_policy {
4673 	QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
4674 	QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
4675 };
4676 
4677 /**
4678  * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
4679  *
4680  * The valid values for the ignore assoc disallowed
4681  *
4682  * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
4683  * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
4684  *
4685  */
4686 enum qca_ignore_assoc_disallowed {
4687 	QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
4688 	QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
4689 };
4690 
4691 /* Attributes for data used by
4692  * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
4693  * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
4694  */
4695 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
4696 		QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
4697 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
4698 		QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
4699 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
4700 		QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
4701 enum qca_wlan_vendor_attr_config {
4702 	QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
4703 	/*
4704 	 * Unsigned 32-bit value to set the DTIM period.
4705 	 * Whether the wifi chipset wakes at every dtim beacon or a multiple of
4706 	 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
4707 	 * DTIM beacons.
4708 	 */
4709 	QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
4710 	/*
4711 	 * Unsigned 32-bit value to set the wifi_iface stats averaging factor
4712 	 * used to calculate statistics like average the TSF offset or average
4713 	 * number of frame leaked.
4714 	 * For instance, upon Beacon frame reception:
4715 	 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
4716 	 * For instance, when evaluating leaky APs:
4717 	 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
4718 	 */
4719 	QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
4720 	/*
4721 	 * Unsigned 32-bit value to configure guard time, i.e., when
4722 	 * implementing IEEE power management based on frame control PM bit, how
4723 	 * long the driver waits before shutting down the radio and after
4724 	 * receiving an ACK frame for a Data frame with PM bit set.
4725 	 */
4726 	QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
4727 	/* Unsigned 32-bit value to change the FTM capability dynamically */
4728 	QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
4729 	/* Unsigned 16-bit value to configure maximum TX rate dynamically */
4730 	QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
4731 	/*
4732 	 * Unsigned 32-bit value to configure the number of continuous
4733 	 * Beacon Miss which shall be used by the firmware to penalize
4734 	 * the RSSI.
4735 	 */
4736 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
4737 	/*
4738 	 * Unsigned 8-bit value to configure the channel avoidance indication
4739 	 * behavior. Firmware to send only one indication and ignore duplicate
4740 	 * indications when set to avoid multiple Apps wakeups.
4741 	 */
4742 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
4743 	/*
4744 	 * 8-bit unsigned value to configure the maximum TX MPDU for
4745 	 * aggregation.
4746 	 */
4747 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
4748 	/*
4749 	 * 8-bit unsigned value to configure the maximum RX MPDU for
4750 	 * aggregation.
4751 	 */
4752 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
4753 	/*
4754 	 * 8-bit unsigned value to configure the Non aggregrate/11g sw
4755 	 * retry threshold (0 disable, 31 max).
4756 	 */
4757 	QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
4758 	/*
4759 	 * 8-bit unsigned value to configure the aggregrate sw
4760 	 * retry threshold (0 disable, 31 max).
4761 	 */
4762 	QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
4763 	/*
4764 	 * 8-bit unsigned value to configure the MGMT frame
4765 	 * retry threshold (0 disable, 31 max).
4766 	 */
4767 	QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
4768 	/*
4769 	 * 8-bit unsigned value to configure the CTRL frame
4770 	 * retry threshold (0 disable, 31 max).
4771 	 */
4772 	QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
4773 	/*
4774 	 * 8-bit unsigned value to configure the propagation delay for
4775 	 * 2G/5G band (0~63, units in us)
4776 	 */
4777 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
4778 	/*
4779 	 * Unsigned 32-bit value to configure the number of unicast TX fail
4780 	 * packet count. The peer is disconnected once this threshold is
4781 	 * reached.
4782 	 */
4783 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
4784 	/*
4785 	 * Attribute used to set scan default IEs to the driver.
4786 	 *
4787 	 * These IEs can be used by scan operations that will be initiated by
4788 	 * the driver/firmware.
4789 	 *
4790 	 * For further scan requests coming to the driver, these IEs should be
4791 	 * merged with the IEs received along with scan request coming to the
4792 	 * driver. If a particular IE is present in the scan default IEs but not
4793 	 * present in the scan request, then that IE should be added to the IEs
4794 	 * sent in the Probe Request frames for that scan request.
4795 	 */
4796 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
4797 	/* Unsigned 32-bit attribute for generic commands */
4798 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
4799 	/* Unsigned 32-bit value attribute for generic commands */
4800 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
4801 	/* Unsigned 32-bit data attribute for generic command response */
4802 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
4803 	/*
4804 	 * Unsigned 32-bit length attribute for
4805 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4806 	 */
4807 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
4808 	/*
4809 	 * Unsigned 32-bit flags attribute for
4810 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
4811 	 */
4812 	QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
4813 	/*
4814 	 * Unsigned 32-bit, defining the access policy.
4815 	 * See enum qca_access_policy. Used with
4816 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
4817 	 */
4818 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
4819 	/*
4820 	 * Sets the list of full set of IEs for which a specific access policy
4821 	 * has to be applied. Used along with
4822 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
4823 	 * Zero length payload can be used to clear this access constraint.
4824 	 */
4825 	QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
4826 	/*
4827 	 * Unsigned 32-bit, specifies the interface index (netdev) for which the
4828 	 * corresponding configurations are applied. If the interface index is
4829 	 * not specified, the configurations are attributed to the respective
4830 	 * wiphy.
4831 	 */
4832 	QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
4833 	/*
4834 	 * 8-bit unsigned value to trigger QPower:
4835 	 * 1-Enable, 0-Disable
4836 	 */
4837 	QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
4838 	/*
4839 	 * 8-bit unsigned value to configure the driver and below layers to
4840 	 * ignore the assoc disallowed set by APs while connecting
4841 	 * 1-Ignore, 0-Don't ignore
4842 	 */
4843 	QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
4844 	/*
4845 	 * 32-bit unsigned value to trigger antenna diversity features:
4846 	 * 1-Enable, 0-Disable
4847 	 */
4848 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
4849 	/* 32-bit unsigned value to configure specific chain antenna */
4850 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
4851 	/*
4852 	 * 32-bit unsigned value to trigger cycle selftest
4853 	 * 1-Enable, 0-Disable
4854 	 */
4855 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
4856 	/*
4857 	 * 32-bit unsigned to configure the cycle time of selftest
4858 	 * the unit is micro-second
4859 	 */
4860 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
4861 	/* 32-bit unsigned value to set reorder timeout for AC_VO */
4862 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
4863 	/* 32-bit unsigned value to set reorder timeout for AC_VI */
4864 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
4865 	/* 32-bit unsigned value to set reorder timeout for AC_BE */
4866 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
4867 	/* 32-bit unsigned value to set reorder timeout for AC_BK */
4868 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
4869 	/* 6-byte MAC address to point out the specific peer */
4870 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
4871 	/* 32-bit unsigned value to set window size for specific peer */
4872 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
4873 	/* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
4874 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
4875 	/* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
4876 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
4877 	/*
4878 	 * 32-bit unsigned value to configure 5 or 10 MHz channel width for
4879 	 * station device while in disconnect state. The attribute use the
4880 	 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
4881 	 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
4882 	 * 10 MHz channel width, the station will not connect to a BSS using 20
4883 	 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
4884 	 * clear this constraint.
4885 	 */
4886 	QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
4887 	/*
4888 	 * 32-bit unsigned value to configure the propagation absolute delay
4889 	 * for 2G/5G band (units in us)
4890 	 */
4891 	QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
4892 	/* 32-bit unsigned value to set probe period */
4893 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
4894 	/* 32-bit unsigned value to set stay period */
4895 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
4896 	/* 32-bit unsigned value to set snr diff */
4897 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
4898 	/* 32-bit unsigned value to set probe dwell time */
4899 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
4900 	/* 32-bit unsigned value to set mgmt snr weight */
4901 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
4902 	/* 32-bit unsigned value to set data snr weight */
4903 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
4904 	/* 32-bit unsigned value to set ack snr weight */
4905 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
4906 	/*
4907 	 * 32-bit unsigned value to configure the listen interval.
4908 	 * This is in units of beacon intervals. This configuration alters
4909 	 * the negotiated listen interval with the AP during the connection.
4910 	 * It is highly recommended to configure a value less than or equal to
4911 	 * the one negotiated during the association. Configuring any greater
4912 	 * value can have adverse effects (frame loss, AP disassociating STA,
4913 	 * etc.).
4914 	 */
4915 	QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
4916 	/*
4917 	 * 8 bit unsigned value that is set on an AP/GO virtual interface to
4918 	 * disable operations that would cause the AP/GO to leave its operating
4919 	 * channel.
4920 	 *
4921 	 * This will restrict the scans to the AP/GO operating channel and the
4922 	 * channels of the other band, if DBS is supported.A STA/CLI interface
4923 	 * brought up after this setting is enabled, will be restricted to
4924 	 * connecting to devices only on the AP/GO interface's operating channel
4925 	 * or on the other band in DBS case. P2P supported channel list is
4926 	 * modified, to only include AP interface's operating-channel and the
4927 	 * channels of the other band if DBS is supported.
4928 	 *
4929 	 * These restrictions are only applicable as long as the AP/GO interface
4930 	 * is alive. If the AP/GO interface is brought down then this
4931 	 * setting/restriction is forgotten.
4932 	 *
4933 	 * If this variable is set on an AP/GO interface while a multi-channel
4934 	 * concurrent session is active, it has no effect on the operation of
4935 	 * the current interfaces, other than restricting the scan to the AP/GO
4936 	 * operating channel and the other band channels if DBS is supported.
4937 	 * However, if the STA is brought down and restarted then the new STA
4938 	 * connection will either be formed on the AP/GO channel or on the
4939 	 * other band in a DBS case. This is because of the scan being
4940 	 * restricted on these channels as mentioned above.
4941 	 *
4942 	 * 1-Disable offchannel operations, 0-Enable offchannel operations.
4943 	 */
4944 	QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
4945 
4946 	/*
4947 	 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
4948 	 * on an interface.
4949 	 * 1 - Enable , 0 - Disable.
4950 	 */
4951 	QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
4952 
4953 	/*
4954 	 * 8 bit unsigned value to globally enable/disable scan
4955 	 * 1 - Enable, 0 - Disable.
4956 	 */
4957 	QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
4958 
4959 	/* 8-bit unsigned value to set the total beacon miss count */
4960 	QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
4961 
4962 	/*
4963 	 * Unsigned 32-bit value to configure the number of continuous
4964 	 * Beacon Miss which shall be used by the firmware to penalize
4965 	 * the RSSI for BTC.
4966 	 */
4967 	QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
4968 
4969 	/*
4970 	 * 8-bit unsigned value to configure the driver and below layers to
4971 	 * enable/disable all fils features.
4972 	 * 0-enable, 1-disable
4973 	 */
4974 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
4975 
4976 	/* 16-bit unsigned value to configure the level of WLAN latency
4977 	 * module. See enum qca_wlan_vendor_attr_config_latency_level.
4978 	 */
4979 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
4980 
4981 	/*
4982 	 * 8-bit unsigned value indicating the driver to use the RSNE as-is from
4983 	 * the connect interface. Exclusively used for the scenarios where the
4984 	 * device is used as a test bed device with special functionality and
4985 	 * not recommended for production. This helps driver to not validate the
4986 	 * RSNE passed from user space and thus allow arbitrary IE data to be
4987 	 * used for testing purposes.
4988 	 * 1-enable, 0-disable.
4989 	 * Applications set/reset this configuration. If not reset, this
4990 	 * parameter remains in use until the driver is unloaded.
4991 	 */
4992 	QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
4993 
4994 	/*
4995 	 * 8-bit unsigned value to trigger green Tx power saving.
4996 	 * 1-Enable, 0-Disable
4997 	 */
4998 	QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
4999 
5000 	/*
5001 	 * Attribute to configure disconnect IEs to the driver.
5002 	 * This carries an array of unsigned 8-bit characters.
5003 	 *
5004 	 * If this is configured, driver shall fill the IEs in disassoc/deauth
5005 	 * frame.
5006 	 * These IEs are expected to be considered only for the next
5007 	 * immediate disconnection (disassoc/deauth frame) originated by
5008 	 * the DUT, irrespective of the entity (user space/driver/firmware)
5009 	 * triggering the disconnection.
5010 	 * The host drivers are not expected to use the IEs set through
5011 	 * this interface for further disconnections after the first immediate
5012 	 * disconnection initiated post the configuration.
5013 	 * If the IEs are also updated through cfg80211 interface (after the
5014 	 * enhancement to cfg80211_disconnect), host driver is expected to
5015 	 * take the union of IEs from both of these interfaces and send in
5016 	 * further disassoc/deauth frames.
5017 	 */
5018 	QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
5019 
5020 	/* 8-bit unsigned value for ELNA bypass.
5021 	 * 0 - Disable eLNA bypass.
5022 	 * 1 - Enable eLNA bypass.
5023 	 * 2 - Reset eLNA bypass configuration, the driver should
5024 	 *	revert to the default configuration of eLNA bypass.
5025 	 */
5026 	QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
5027 
5028 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5029 	 * to send the Beacon Report response with failure reason for the
5030 	 * scenarios where STA cannot honor the Beacon report request from AP.
5031 	 * 1-Enable, 0-Disable.
5032 	 */
5033 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
5034 
5035 	/* 8-bit unsigned value. This attribute enables/disables the host driver
5036 	 * to send roam reason information in the reassociation request to the
5037 	 * AP. 1-Enable, 0-Disable.
5038 	 */
5039 	QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
5040 
5041 	/* 32-bit unsigned value to configure different PHY modes to the
5042 	 * driver/firmware. The possible values are defined in
5043 	 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
5044 	 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
5045 	 * the driver.
5046 	 */
5047 	QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
5048 
5049 	/* 8-bit unsigned value to configure the maximum supported channel width
5050 	 * for STA mode. If this value is configured when STA is in connected
5051 	 * state, it should not exceed the negotiated channel width. If it is
5052 	 * configured when STA is in disconnected state, the configured value
5053 	 * will take effect for the next immediate connection.
5054 	 * Possible values are:
5055 	 *   NL80211_CHAN_WIDTH_20
5056 	 *   NL80211_CHAN_WIDTH_40
5057 	 *   NL80211_CHAN_WIDTH_80
5058 	 *   NL80211_CHAN_WIDTH_80P80
5059 	 *   NL80211_CHAN_WIDTH_160
5060 	 */
5061 	QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
5062 
5063 	/* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
5064 	 * This attribute is only applicable for STA mode. When dynamic
5065 	 * bandwidth adjustment is disabled, STA will use static channel width
5066 	 * the value of which is negotiated during connection.
5067 	 * 1-enable (default), 0-disable
5068 	 */
5069 	QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
5070 
5071 	/* 8-bit unsigned value to configure the maximum number of subframes of
5072 	 * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
5073 	 * it is decided by hardware.
5074 	 */
5075 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
5076 
5077 	/* 8-bit unsigned value to configure the maximum number of subframes of
5078 	 * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
5079 	 * it is decided by hardware.
5080 	 */
5081 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
5082 
5083 	/* 8-bit unsigned value. This attribute is used to dynamically
5084 	 * enable/disable the LDPC capability of the device. When configured in
5085 	 * the disconnected state, the updated configuration will be considered
5086 	 * for the immediately following connection attempt. If this
5087 	 * configuration is modified while the device is in the connected state,
5088 	 * the LDPC TX will be updated with this configuration immediately,
5089 	 * while the LDPC RX configuration update will take place starting from
5090 	 * the subsequent association attempt.
5091 	 * 1-Enable, 0-Disable.
5092 	 */
5093 	QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
5094 
5095 	/* 8-bit unsigned value. This attribute is used to dynamically
5096 	 * enable/disable the TX STBC capability of the device. When configured
5097 	 * in the disconnected state, the updated configuration will be
5098 	 * considered for the immediately following connection attempt. If the
5099 	 * connection is formed with TX STBC enabled and if this configuration
5100 	 * is disabled during that association, the TX will be impacted
5101 	 * immediately. Further connection attempts will disable TX STBC.
5102 	 * However, enabling the TX STBC for a connected session with disabled
5103 	 * capability is not allowed and will fail.
5104 	 * 1-Enable, 0-Disable.
5105 	 */
5106 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
5107 
5108 	/* 8-bit unsigned value. This attribute is used to dynamically
5109 	 * enable/disable the RX STBC capability of the device. When configured
5110 	 * in the disconnected state, the updated configuration will be
5111 	 * considered for the immediately following connection attempt. If the
5112 	 * configuration is modified in the connected state, there will be no
5113 	 * impact for the current association, but further connection attempts
5114 	 * will use the updated configuration.
5115 	 * 1-Enable, 0-Disable.
5116 	 */
5117 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
5118 
5119 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5120 	 * the number of spatial streams. When configured in the disconnected
5121 	 * state, the updated configuration will be considered for the
5122 	 * immediately following connection attempt. If the NSS is updated after
5123 	 * the connection, the updated NSS value is notified to the peer using
5124 	 * the Operating Mode Notification/Spatial Multiplexing Power Save
5125 	 * frame. The updated NSS value after the connection shall not be
5126 	 * greater than the one negotiated during the connection. Any such
5127 	 * higher value configuration shall be returned with a failure.
5128 	 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
5129 	 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
5130 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
5131 	 * configure the asymmetric NSS configuration (such as 1X2).
5132 	 */
5133 	QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
5134 
5135 	/*
5136 	 * 8-bit unsigned value to trigger Optimized Power Management:
5137 	 * 1-Enable, 0-Disable
5138 	 */
5139 	QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
5140 
5141 	/* 8-bit unsigned value. This attribute takes the QOS/access category
5142 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5143 	 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
5144 	 * is invalid for this attribute. This will override the DSCP value
5145 	 * configured in the frame with the intention to only upgrade the QOS.
5146 	 * That said, it is not intended to downgrade the QOS for the frames.
5147 	 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
5148 	 * to disable.
5149 	 *
5150 	 * If only UDP frames of BE or BK access category needs to be upgraded
5151 	 * without changing the access category of VO or VI UDP frames, refer to
5152 	 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
5153 	 *
5154 	 * This attribute is not recommended to be used as it blindly forces all
5155 	 * UDP packets to a higher access category which could impact the
5156 	 * traffic pattern of all apps using UDP and can cause unknown behavior.
5157 	 */
5158 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
5159 
5160 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5161 	 * the number of chains to be used for transmitting data. This
5162 	 * configuration is allowed only when in connected state and will be
5163 	 * effective until disconnected. The driver rejects this configuration
5164 	 * if the number of spatial streams being used in the current connection
5165 	 * cannot be supported by this configuration.
5166 	 */
5167 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
5168 
5169 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5170 	 * the number of chains to be used for receiving data. This
5171 	 * configuration is allowed only when in connected state and will be
5172 	 * effective until disconnected. The driver rejects this configuration
5173 	 * if the number of spatial streams being used in the current connection
5174 	 * cannot be supported by this configuration.
5175 	 */
5176 	QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
5177 
5178 	/* 8-bit unsigned value to configure ANI setting type.
5179 	 * See &enum qca_wlan_ani_setting for possible values.
5180 	 */
5181 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
5182 	/* 32-bit signed value to configure ANI level. This is used when
5183 	 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
5184 	 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
5185 	 * is invalid, the driver will return a failure.
5186 	 */
5187 	QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
5188 
5189 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5190 	 * the number of spatial streams used for transmitting the data. When
5191 	 * configured in the disconnected state, the configured value will
5192 	 * be considered for the following connection attempt.
5193 	 * If the NSS is updated after the connection, the updated NSS value
5194 	 * is notified to the peer using the Operating Mode Notification/Spatial
5195 	 * Multiplexing Power Save frame.
5196 	 * The TX NSS value configured after the connection shall not be greater
5197 	 * than the value negotiated during the connection. Any such higher
5198 	 * value configuration shall be treated as invalid configuration by
5199 	 * the driver. This attribute shall be configured along with
5200 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
5201 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5202 	 * configuration (such as 1X2).
5203 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5204 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
5205 	 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
5206 	 */
5207 	QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
5208 
5209 	/* 8-bit unsigned value. This attribute is used to dynamically configure
5210 	 * the number of spatial streams used for receiving the data. When
5211 	 * configured in the disconnected state, the configured value will
5212 	 * be considered for the following connection attempt.
5213 	 * If the NSS is updated after the connection, the updated NSS value
5214 	 * is notified to the peer using the Operating Mode Notification/Spatial
5215 	 * Multiplexing Power Save frame.
5216 	 * The RX NSS value configured after the connection shall not be greater
5217 	 * than the value negotiated during the connection. Any such higher
5218 	 * value configuration shall be treated as invalid configuration by
5219 	 * the driver. This attribute shall be configured along with
5220 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
5221 	 * configuration (such as 2X2 or 1X1) or the asymmetric
5222 	 * configuration (such as 1X2).
5223 	 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
5224 	 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
5225 	 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
5226 	 */
5227 	QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
5228 
5229 	/*
5230 	 * 8-bit unsigned value. This attribute, when set, indicates whether the
5231 	 * specified interface is the primary STA interface when there are more
5232 	 * than one STA interfaces concurrently active.
5233 	 *
5234 	 * This configuration helps the firmware/hardware to support certain
5235 	 * features (e.g., roaming) on this primary interface, if the same
5236 	 * cannot be supported on the concurrent STA interfaces simultaneously.
5237 	 *
5238 	 * This configuration is only applicable for a single STA interface on
5239 	 * a device and gives the priority for it only over other concurrent STA
5240 	 * interfaces.
5241 	 *
5242 	 * If the device is a multi wiphy/soc, this configuration applies to a
5243 	 * single STA interface across the wiphys.
5244 	 *
5245 	 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
5246 	 */
5247 	QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
5248 
5249 	/*
5250 	 * 8-bit unsigned value. This attribute can be used to configure the
5251 	 * driver to enable/disable FT-over-DS feature. Possible values for
5252 	 * this attribute are 1-Enable and 0-Disable.
5253 	 */
5254 	QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
5255 
5256 	/*
5257 	 * 8-bit unsigned value. This attribute can be used to configure the
5258 	 * firmware to enable/disable ARP/NS offload feature. Possible values
5259 	 * for this attribute are 0-Disable and 1-Enable.
5260 	 *
5261 	 * This attribute is only applicable for STA/P2P-Client interface,
5262 	 * and is optional, default behavior is APR/NS offload Enable.
5263 	 *
5264 	 * This attribute can be set in disconncted and connected state, and
5265 	 * will restore to default behavior if interface is closed.
5266 	 */
5267 	QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
5268 
5269 	/*
5270 	 * 8-bit unsigned value. This attribute can be used to configure the
5271 	 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
5272 	 * for this attribute are defined in the enum qca_dbam_config.
5273 	 */
5274 	QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
5275 
5276 	/* 8-bit unsigned value. This attribute takes the QoS/access category
5277 	 * value represented by the enum qca_wlan_ac_type and expects the driver
5278 	 * to upgrade the UDP frames of BE or BK access category to this access
5279 	 * category. This attribute will not modify UDP frames of VO or VI
5280 	 * access category. The value of QCA_WLAN_AC_ALL is invalid for this
5281 	 * attribute.
5282 	 *
5283 	 * This will override the DSCP value configured in the frame with the
5284 	 * intention to only upgrade the access category. That said, it is not
5285 	 * intended to downgrade the access category for the frames.
5286 	 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
5287 	 * disabled, as BK is of the lowest priority and an upgrade to it does
5288 	 * not result in any changes for the frames.
5289 	 *
5290 	 * This attribute behavior is similar to
5291 	 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
5292 	 * only UDP frames of BE or BK access category are upgraded and not
5293 	 * UDP frames of VI or VO access category.
5294 	 *
5295 	 * This attribute is not recommended to be used as it blindly forces all
5296 	 * UDP packets of BE or BK access category to a higher access category
5297 	 * which could impact the traffic pattern of all apps using UDP and can
5298 	 * cause unknown behavior.
5299 	 */
5300 	QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
5301 
5302 	/* 8-bit unsigned value to configure the driver to enable/disable the
5303 	 * periodic sounding for Tx beamformer functionality. The default
5304 	 * behavior uses algorithm to do sounding based on packet stats.
5305 	 *
5306 	 * 0 - Default behavior.
5307 	 * 1 - Enable the periodic sounding for Tx beamformer.
5308 	 * This attribute is used for testing purposes.
5309 	 */
5310 	QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
5311 
5312 	/* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
5313 	 * Userspace sends this information to driver/firmware to configure
5314 	 * wfc state. Driver/Firmware uses this information to
5315 	 * optimize power savings, rate adaption, roaming, etc.
5316 	 *
5317 	 * 1 - wfc is on.
5318 	 * 0 - wfc is off.
5319 	 */
5320 	QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
5321 
5322 	/* 8-bit unsigned value to configure the driver to enable/disable the
5323 	 * EHT EML capability in management frame EHT capabilities.
5324 	 * 1 - Enable, 0 - Disable.
5325 	 */
5326 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
5327 
5328 	/* 8-bit unsigned value to configure the driver with EHT MLO max
5329 	 * simultaneous links to be used for MLO connection.
5330 	 * The range of the value is 0 to 14.
5331 	 */
5332 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
5333 
5334 	/* 8-bit unsigned value to configure the driver with EHT MLO maximum
5335 	 * number of links to be used for MLO connection.
5336 	 * The range of the value is 1 to 16.
5337 	 */
5338 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
5339 
5340 	/* 8-bit unsigned value to configure the driver with EHT MLO mode.
5341 	 * Uses enum qca_wlan_eht_mlo_mode values.
5342 	 */
5343 	QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
5344 
5345 	/* keep last */
5346 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
5347 	QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
5348 	QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
5349 };
5350 
5351 /**
5352  * enum qca_dbam_config - Specifies DBAM config mode
5353  * @QCA_DBAM_DISABLE: Firmware disables DBAM
5354  * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
5355  * internal criteria are met.
5356  * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
5357  */
5358 enum qca_dbam_config {
5359 	QCA_DBAM_DISABLE = 0,
5360 	QCA_DBAM_ENABLE = 1,
5361 	QCA_DBAM_FORCE_ENABLE = 2,
5362 };
5363 
5364 /**
5365  * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
5366  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
5367  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
5368  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
5369  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
5370  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
5371  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
5372  */
5373 enum qca_wlan_vendor_attr_wifi_logger_start {
5374 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
5375 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
5376 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
5377 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
5378 	/* keep last */
5379 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
5380 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
5381 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
5382 };
5383 
5384 /*
5385  * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
5386  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
5387  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
5388  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
5389  * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
5390  */
5391 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
5392 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
5393 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
5394 	/* keep last */
5395 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
5396 	QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
5397 		QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
5398 };
5399 
5400 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
5401 /**
5402  * enum wlan_offloaded_packets_control - control commands
5403  * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
5404  * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
5405  *
5406  */
5407 enum wlan_offloaded_packets_control {
5408 	WLAN_START_OFFLOADED_PACKETS = 1,
5409 	WLAN_STOP_OFFLOADED_PACKETS  = 2
5410 };
5411 
5412 /**
5413  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
5414  *
5415  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
5416  *      the offloaded data.
5417  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
5418  *      data.
5419  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
5420  *      indication.
5421  */
5422 enum qca_wlan_vendor_attr_data_offload_ind {
5423 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
5424 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
5425 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
5426 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
5427 
5428 	/* keep last */
5429 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
5430 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
5431 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
5432 };
5433 
5434 /**
5435  * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
5436  * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
5437  */
5438 enum qca_wlan_vendor_attr_offloaded_packets {
5439 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
5440 	/* Takes valid value from the enum
5441 	 * qca_wlan_offloaded_packets_sending_control
5442 	 * Unsigned 32-bit value
5443 	 */
5444 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
5445 	/* Unsigned 32-bit value */
5446 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
5447 	/* array of u8 len: Max packet size */
5448 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
5449 	/* 6-byte MAC address used to represent source MAC address */
5450 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
5451 	/* 6-byte MAC address used to represent destination MAC address */
5452 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
5453 	/* Unsigned 32-bit value, in milli seconds */
5454 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
5455 	/* This optional unsigned 16-bit attribute is used for specifying
5456 	 * ethernet protocol type. If not specified ethertype defaults to IPv4.
5457 	 */
5458 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
5459 
5460 	/* keep last */
5461 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
5462 	QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
5463 		QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
5464 };
5465 
5466 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS  */
5467 
5468 /**
5469  * enum qca_wlan_rssi_monitoring_control - rssi control commands
5470  * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
5471  * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
5472  * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
5473  */
5474 enum qca_wlan_rssi_monitoring_control {
5475 	QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
5476 	QCA_WLAN_RSSI_MONITORING_START,
5477 	QCA_WLAN_RSSI_MONITORING_STOP,
5478 };
5479 
5480 /**
5481  * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
5482  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
5483  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
5484  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
5485  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
5486  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
5487  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
5488  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
5489  * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
5490  */
5491 enum qca_wlan_vendor_attr_rssi_monitoring {
5492 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
5493 
5494 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
5495 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
5496 
5497 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
5498 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
5499 
5500 	/* attributes to be used/received in callback */
5501 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
5502 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
5503 
5504 	/* keep last */
5505 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
5506 	QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
5507 		QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
5508 };
5509 
5510 /**
5511  * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
5512  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5513  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
5514  * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
5515  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
5516  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
5517  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
5518  * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
5519  * address
5520  * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
5521  * created
5522  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
5523  * NCS_SK_TYPE/PMK/SCID instead
5524  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
5525  * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
5526  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
5527  * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
5528  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
5529  * code: accept/reject
5530  * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
5531  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
5532  * driver
5533  * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
5534  * driver
5535  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
5536  * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
5537  * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
5538  * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
5539  * PMKID
5540  * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
5541  * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
5542  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
5543  * update:
5544  *     BIT_0: NSS Update
5545  *     BIT_1: Channel list update
5546  * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
5547  * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
5548  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
5549  *     0:20 MHz,
5550  *     1:40 MHz,
5551  *     2:80 MHz,
5552  *     3:160 MHz
5553  * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
5554  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
5555  * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
5556  * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
5557  * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
5558  * transport port used by NDP.
5559  * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
5560  * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
5561  * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
5562  * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
5563  * NDP remote peer supports NAN NDPE. 1:support 0:not support
5564  * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
5565  * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
5566  * A lower-case representation of the Service Name shall be used to
5567  * calculate the Service ID.
5568  * Array of u8: length is 6 bytes
5569  * This attribute is used and optional for ndp indication.
5570 */
5571 enum qca_wlan_vendor_attr_ndp_params {
5572 	QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
5573 	QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
5574 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
5575 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
5576 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
5577 	QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
5578 	QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
5579 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
5580 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
5581 	QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
5582 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
5583 	QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
5584 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
5585 	QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
5586 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
5587 	QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
5588 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
5589 	QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
5590 	QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
5591 	QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
5592 	QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
5593 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
5594 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
5595 	QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
5596 	QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
5597 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
5598 	QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
5599 	QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
5600 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
5601 	QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
5602 	QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
5603 	QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
5604 
5605 	/* keep last */
5606 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
5607 	QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
5608 		QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
5609 };
5610 
5611 /**
5612  * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
5613  * QCA_NL80211_VENDOR_SUBCMD_NDP.
5614  * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
5615  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
5616  * data path interface.
5617  * This command was initially designed to both create and start a NAN
5618  * data path interface. However, changes to Linux 5.12 no longer allow
5619  * interface creation via vendor commands. When the driver advertises
5620  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5621  * userspace must explicitly first create the interface using
5622  * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
5623  * to start the interface.
5624  * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
5625  * data path interface.
5626  * This command was initially designed to both stop and delete a NAN
5627  * data path interface. However, changes to Linux 5.12 no longer allow
5628  * interface deletion via vendor commands. When the driver advertises
5629  * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
5630  * userspace must explicitly delete the interface using
5631  * NL80211_CMD_DEL_INTERFACE after calling this command.
5632  * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
5633  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
5634  * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
5635  * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
5636  * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
5637  * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
5638  * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
5639  * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
5640  * being received
5641  * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
5642  * update
5643  */
5644 enum qca_wlan_ndp_sub_cmd {
5645 	QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
5646 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
5647 	QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
5648 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
5649 	QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
5650 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
5651 	QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
5652 	QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
5653 	QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
5654 	QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
5655 	QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
5656 	QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
5657 	QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
5658 };
5659 
5660 /**
5661  * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
5662  * information. These attributes are sent as part of
5663  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
5664  * attributes correspond to a single channel.
5665  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
5666  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5667  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
5668  * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
5669  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
5670  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
5671  * regulatory transmission power
5672  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
5673  * transmission power
5674  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
5675  * transmission power
5676  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
5677  * class id
5678  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
5679  * antenna gain in dbm
5680  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
5681  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
5682  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
5683  * center frequency in MHz.
5684  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
5685  * segment 0 in center freq in MHz. (this is the legacy alias)
5686  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
5687  * center frequency in MHz.
5688  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
5689  * segment 1 in center freq in MHz. (this is the legacy alias)
5690  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
5691  * flag indicating the AP power modes supported by the channel, as given by
5692  * enum qca_wlan_vendor_external_acs_chan_power_level.
5693  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
5694  * attributes for each power mode. It takes attr as defined in enum
5695  * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5696  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
5697  * This indicates the overlapping 320 MHz center frequency in MHz, if the
5698  * given primary channel supports more than one 320 MHz channel bonding.
5699  *
5700  */
5701 enum qca_wlan_vendor_external_acs_event_chan_info_attr {
5702 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
5703 
5704 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
5705 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
5706 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
5707 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
5708 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
5709 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
5710 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
5711 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
5712 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
5713 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
5714 	/*
5715 	 * A bitmask (u32) with flags specified in
5716 	 * enum qca_wlan_vendor_channel_prop_flags_2.
5717 	 */
5718 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
5719 
5720 	/*
5721 	 * Segment 0 in MHz (u32).
5722 	 *
5723 	 * For 20/40/80 MHz bandwidth, this indicates the channel center
5724 	 * frequency index for the 20/40/80 MHz operating channel.
5725 	 * For 160 MHz bandwidth, this indicates the channel center
5726 	 * frequency of the primary 80 MHz channel.
5727 	 * For 320 MHz bandwidth, indicates the channel center frequency
5728 	 * of the primary 160 MHz channel.
5729 	 *
5730 	 * To maintain backward compatibility,
5731 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5732 	 * is also maintained.
5733 	 */
5734 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
5735 	/* Legacy alias for the Segment 0 attribute.
5736 	 *
5737 	 * VHT segment 0 in MHz (u32) and the attribute is mandatory.
5738 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5739 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5740 	 * along with
5741 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
5742 	 *
5743 	 * If both the driver and user-space application supports the 6 GHz
5744 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
5745 	 * is deprecated and
5746 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5747 	 * should be used.
5748 	 *
5749 	 * To maintain backward compatibility,
5750 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
5751 	 * is still used if either of the driver or user space application
5752 	 * doesn't support the 6 GHz band.
5753 	 */
5754 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
5755 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
5756 
5757 	/*
5758 	 * Segment 1 in MHz (u32).
5759 	 *
5760 	 * For 20/40/80 MHz bandwidth, this is set to 0.
5761 	 * For 160 MHz bandwidth, indicates the channel center frequency of the
5762 	 * 160 MHz channel.
5763 	 * For 320 MHz bandwidth, indicates the channel center frequency of the
5764 	 * 320 MHz channel.
5765 	 *
5766 	 * To maintain backward compatibility,
5767 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5768 	 * is also maintained.
5769 	 */
5770 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
5771 	/* Legacy alias for the Segment 1 attribute.
5772 	 *
5773 	 * VHT segment 1 in MHz (u32) and the attribute is mandatory.
5774 	 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
5775 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5776 	 * along with
5777 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
5778 	 *
5779 	 * If both the driver and user-space application supports the 6 GHz
5780 	 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
5781 	 * is deprecated and
5782 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5783 	 * should be considered.
5784 	 *
5785 	 * To maintain backward compatibility,
5786 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
5787 	 * is still used if either of the driver or user space application
5788 	 * doesn't support the 6 GHz band.
5789 	 */
5790 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
5791 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
5792 	/*
5793 	 * 16-bit attribute of bits indicating the AP power modes supported by
5794 	 * the channel (u16).
5795 	 * Note: Currently, only 3 bits are used in the attribute and each bit
5796 	 * corresponds to the power mode mentioned in enum
5797 	 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
5798 	 * set if the associated mode is supported.
5799 	 */
5800 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
5801 									= 14,
5802 	/* Array of nested attributes for each power mode. It takes attr as
5803 	 * defined in enum
5804 	 * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
5805 	 */
5806 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR	= 15,
5807 	/*
5808 	 * This indicates the overlapping 320 MHz center frequency in MHz
5809 	 * (u32), if the given primary channel supports more than one
5810 	 * 320 MHz channel bonding.
5811 	 *
5812 	 * Example:
5813 	 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
5814 	 * center frequency (primary 160 MHz) is 6185 MHz and there can be two
5815 	 * possible segment 2 frequencies for this (320 MHz center
5816 	 * frequencies):
5817 	 *
5818 	 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
5819 	 *    from frequency 5945 MHz - 6265 MHz
5820 	 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
5821 	 *    from frequency 6105 MHz - 6425 MHz
5822 	 *
5823 	 * In this case,
5824 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
5825 	 * return 6185 MHz.
5826 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
5827 	 * return 6105 MHz.
5828 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
5829 	 * will return 6265 MHz.
5830 	 */
5831 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
5832 									= 16,
5833 
5834 	/* keep last */
5835 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
5836 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
5837 		QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
5838 };
5839 
5840 /**
5841  * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
5842  * values that the vendor external ACS channel power attribute
5843  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
5844  * take.
5845  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
5846  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
5847  * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
5848  */
5849 enum qca_wlan_vendor_external_acs_chan_power_level {
5850 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
5851 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
5852 	QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
5853 };
5854 
5855 /**
5856  * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
5857  * attributes for power mode type and power values corresponding to that.
5858  * These attributes are sent as part of
5859  * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
5860  */
5861 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
5862 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
5863 	/*
5864 	 * Power mode (u8) takes the values defined in enum
5865 	 * qca_wlan_vendor_external_acs_chan_power_mode
5866 	 */
5867 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
5868 									= 1,
5869 	/*
5870 	 * Indicates if power value is a PSD/EIRP value (flag). If flag is
5871 	 * present, it indicates a PSD value.
5872 	 */
5873 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
5874 	/*
5875 	 * Power value (u32) PSD/EIRP as indicated by
5876 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
5877 	 * for power mode corresponding to the
5878 	 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
5879 	 * Units for PSD - dBm/MHz
5880 	 * Units for EIRP - dBm
5881 	 */
5882 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
5883 									= 3,
5884 	/* keep last */
5885 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
5886 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
5887 	QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
5888 };
5889 
5890 /**
5891  * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
5892  * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
5893  * driver.
5894  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
5895  * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
5896  * ACS need to be started
5897  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
5898  * driver supports spectral scanning or not
5899  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
5900  * offloaded to firmware.
5901  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
5902  * provides additional channel capability as part of scan operation.
5903  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
5904  * interface status is UP
5905  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
5906  * interface. It takes one of nl80211_iftype values.
5907  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
5908  * of chan width. ACS logic should try to get a channel with specified width
5909  * if not found then look for lower values.
5910  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
5911  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
5912  * a/b/g/n/ac.
5913  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
5914  * among which ACS should choose best frequency.
5915  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
5916  * driver which will have <channel(u8), weight(u8)> format as array of
5917  * nested values.
5918  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
5919  * for each channel. It takes attr as defined in
5920  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
5921  * PCL mandatory, PCL preferred, etc.It uses values defined in enum
5922  * qca_wlan_vendor_attr_external_acs_policy.
5923  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
5924  * Operating Parameter (RROP) availability information (u16). It uses values
5925  * defined in enum qca_wlan_vendor_attr_rropavail_info.
5926  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
5927  * indicate if driver supports 6 GHz AFC trigger for External ACS.
5928  */
5929 enum qca_wlan_vendor_attr_external_acs_event {
5930 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
5931 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
5932 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
5933 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
5934 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
5935 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
5936 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
5937 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
5938 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
5939 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
5940 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
5941 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
5942 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
5943 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
5944 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
5945 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
5946 
5947 	/* keep last */
5948 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
5949 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
5950 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
5951 };
5952 
5953 enum qca_iface_type {
5954 	QCA_IFACE_TYPE_STA,
5955 	QCA_IFACE_TYPE_AP,
5956 	QCA_IFACE_TYPE_P2P_CLIENT,
5957 	QCA_IFACE_TYPE_P2P_GO,
5958 	QCA_IFACE_TYPE_IBSS,
5959 	QCA_IFACE_TYPE_TDLS,
5960 };
5961 
5962 /**
5963  * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
5964  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
5965  * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
5966  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
5967  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
5968  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
5969  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
5970  * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
5971  */
5972 enum qca_wlan_vendor_attr_pcl_config {
5973 	QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
5974 	QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
5975 	QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
5976 	QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
5977 	QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
5978 };
5979 
5980 enum qca_set_band {
5981 	QCA_SETBAND_AUTO = 0,
5982 	QCA_SETBAND_5G = BIT(0),
5983 	QCA_SETBAND_2G = BIT(1),
5984 	QCA_SETBAND_6G = BIT(2),
5985 };
5986 
5987 /**
5988  * enum set_reset_packet_filter - set packet filter control commands
5989  * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
5990  * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
5991  * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
5992  * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
5993  * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
5994  * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
5995  */
5996 enum set_reset_packet_filter {
5997 	QCA_WLAN_SET_PACKET_FILTER = 1,
5998 	QCA_WLAN_GET_PACKET_FILTER = 2,
5999 	QCA_WLAN_WRITE_PACKET_FILTER = 3,
6000 	QCA_WLAN_READ_PACKET_FILTER = 4,
6001 	QCA_WLAN_ENABLE_PACKET_FILTER = 5,
6002 	QCA_WLAN_DISABLE_PACKET_FILTER = 6,
6003 };
6004 
6005 /**
6006  * enum qca_wlan_vendor_attr_packet_filter - APF control commands
6007  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
6008  * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
6009  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
6010  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
6011  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
6012  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
6013  * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
6014  *	section in packet filter buffer
6015  */
6016 enum qca_wlan_vendor_attr_packet_filter {
6017 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
6018 	QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
6019 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
6020 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
6021 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
6022 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
6023 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
6024 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
6025 
6026 	/* keep last */
6027 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
6028 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
6029 	QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
6030 };
6031 
6032 /**
6033  * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
6034  * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
6035  */
6036 enum qca_wlan_vendor_attr_wake_stats {
6037 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
6038 	/* Unsigned 32-bit value indicating the total count of wake event */
6039 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
6040 	/* Array of individual wake count, each index representing wake reason
6041 	 */
6042 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
6043 	/* Unsigned 32-bit value representing wake count array */
6044 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
6045 	/* Unsigned 32-bit total wake count value of driver/fw */
6046 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
6047 	/* Array of wake stats of driver/fw */
6048 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
6049 	/* Unsigned 32-bit total wake count value of driver/fw */
6050 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
6051 	/* Unsigned 32-bit total wake count value of packets received */
6052 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
6053 	/* Unsigned 32-bit wake count value unicast packets received */
6054 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
6055 	/* Unsigned 32-bit wake count value multicast packets received */
6056 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
6057 	/* Unsigned 32-bit wake count value broadcast packets received */
6058 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
6059 	/* Unsigned 32-bit wake count value of ICMP packets */
6060 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
6061 	/* Unsigned 32-bit wake count value of ICMP6 packets */
6062 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
6063 	/* Unsigned 32-bit value ICMP6 router advertisement */
6064 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
6065 	/* Unsigned 32-bit value ICMP6 neighbor advertisement */
6066 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
6067 	/* Unsigned 32-bit value ICMP6 neighbor solicitation */
6068 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
6069 	/* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
6070 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
6071 	/* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
6072 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
6073 	/* Unsigned 32-bit wake count value of receive side multicast */
6074 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
6075 	/* Unsigned 32-bit wake count value of a given RSSI breach */
6076 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
6077 	/* Unsigned 32-bit wake count value of low RSSI */
6078 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
6079 	/* Unsigned 32-bit value GSCAN count */
6080 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
6081 	/* Unsigned 32-bit value PNO complete count */
6082 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
6083 	/* Unsigned 32-bit value PNO match count */
6084 	QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
6085 	/* keep last */
6086 	QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
6087 	QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
6088 		QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
6089 };
6090 
6091 /**
6092  * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
6093  * configured by userspace to the driver/firmware. The values will be
6094  * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
6095  * The driver/firmware takes necessary actions requested by userspace
6096  * such as throttling wifi tx etc. in order to mitigate high temperature.
6097  *
6098  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
6099  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
6100  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
6101  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
6102  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
6103  * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
6104  */
6105 enum qca_wlan_vendor_thermal_level {
6106 	QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
6107 	QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
6108 	QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
6109 	QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
6110 	QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
6111 	QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
6112 };
6113 
6114 /**
6115  * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
6116  * cmd value. Used for NL attributes for data used by
6117  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6118  */
6119 enum qca_wlan_vendor_attr_thermal_cmd {
6120 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
6121 	/* The value of command, driver will implement different operations
6122 	 * according to this value. It uses values defined in
6123 	 * enum qca_wlan_vendor_attr_thermal_cmd_type.
6124 	 * u32 attribute.
6125 	 */
6126 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
6127 	/* Userspace uses this attribute to configure thermal level to the
6128 	 * driver/firmware, or get thermal level from the driver/firmware.
6129 	 * Used in request or response, u32 attribute,
6130 	 * possible values are defined in enum qca_wlan_vendor_thermal_level.
6131 	 */
6132 	QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
6133 	/* Userspace uses this attribute to configure the time in which the
6134 	 * driver/firmware should complete applying settings it received from
6135 	 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
6136 	 * command type. Used in request, u32 attribute, value is in
6137 	 * milliseconds. A value of zero indicates to apply the settings
6138 	 * immediately. The driver/firmware can delay applying the configured
6139 	 * thermal settings within the time specified in this attribute if
6140 	 * there is any critical ongoing operation.
6141 	 */
6142 	QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
6143 	/* Nested attribute, driver/firmware uses this attribute to report
6144 	 * thermal stats of different thermal levels to userspace when requested
6145 	 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
6146 	 * type. This attribute contains nested array of records of thermal
6147 	 * statistics of multiple levels. The attributes used inside this nested
6148 	 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
6149 	 */
6150 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
6151 
6152 	/* keep last */
6153 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
6154 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
6155 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
6156 };
6157 
6158 /**
6159  * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
6160  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
6161  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
6162  * thermal command types sent to driver.
6163  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
6164  * get thermal shutdown configuration parameters for display. Parameters
6165  * responded from driver are defined in
6166  * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
6167  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
6168  * get temperature. Host should respond with a temperature data. It is defined
6169  * in enum qca_wlan_vendor_attr_thermal_get_temperature.
6170  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
6171  * suspend action.
6172  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
6173  * resume action.
6174  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
6175  * the driver/firmware.
6176  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
6177  * thermal level from the driver/firmware. The driver should respond with a
6178  * thermal level defined in enum qca_wlan_vendor_thermal_level.
6179  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
6180  * current thermal stats from the driver/firmware. The driver should respond
6181  * with stats of all thermal levels encapsulated in attribute
6182  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
6183  * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
6184  * the current thermal stats all thermal levels maintained in the
6185  * driver/firmware and start counting from zero again.
6186  */
6187 enum qca_wlan_vendor_attr_thermal_cmd_type {
6188 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
6189 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
6190 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
6191 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
6192 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
6193 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
6194 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
6195 	QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
6196 };
6197 
6198 /**
6199  * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
6200  * to get chip temperature by user.
6201  * enum values are used for NL attributes for data used by
6202  * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
6203  * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
6204  */
6205 enum qca_wlan_vendor_attr_thermal_get_temperature {
6206 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
6207 	/* Temperature value (degree Celsius) from driver.
6208 	 * u32 attribute.
6209 	 */
6210 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
6211 
6212 	/* keep last */
6213 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
6214 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
6215 	QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
6216 };
6217 
6218 /**
6219  * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
6220  * report thermal events from driver to user space.
6221  * enum values are used for NL attributes for data used by
6222  * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
6223  */
6224 enum qca_wlan_vendor_attr_thermal_event {
6225 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
6226 	/* Temperature value (degree Celsius) from driver.
6227 	 * u32 attribute.
6228 	 */
6229 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
6230 	/* Indication of resume completion from power save mode.
6231 	 * NLA_FLAG attribute.
6232 	 */
6233 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
6234 	/* Thermal level from the driver.
6235 	 * u32 attribute. Possible values are defined in
6236 	 * enum qca_wlan_vendor_thermal_level.
6237 	 */
6238 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
6239 
6240 	/* keep last */
6241 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
6242 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
6243 	QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
6244 };
6245 
6246 /**
6247  * enum qca_vendor_element_id - QCA Vendor Specific element types
6248  *
6249  * These values are used to identify QCA Vendor Specific elements. The
6250  * payload of the element starts with the three octet OUI (OUI_QCA) and
6251  * is followed by a single octet type which is defined by this enum.
6252  *
6253  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
6254  *      This element can be used to specify preference order for supported
6255  *      channels. The channels in this list are in preference order (the first
6256  *      one has the highest preference) and are described as a pair of
6257  *      (global) Operating Class and Channel Number (each one octet) fields.
6258  *
6259  *      This extends the standard P2P functionality by providing option to have
6260  *      more than one preferred operating channel. When this element is present,
6261  *      it replaces the preference indicated in the Operating Channel attribute.
6262  *      For supporting other implementations, the Operating Channel attribute is
6263  *      expected to be used with the highest preference channel. Similarly, all
6264  *      the channels included in this Preferred channel list element are
6265  *      expected to be included in the Channel List attribute.
6266  *
6267  *      This vendor element may be included in GO Negotiation Request, P2P
6268  *      Invitation Request, and Provision Discovery Request frames.
6269  *
6270  * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
6271  *      This element can be used for pre-standard publication testing of HE
6272  *      before P802.11ax draft assigns the element ID. The payload of this
6273  *      vendor specific element is defined by the latest P802.11ax draft.
6274  *      Please note that the draft is still work in progress and this element
6275  *      payload is subject to change.
6276  *
6277  * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
6278  *      This element can be used for pre-standard publication testing of HE
6279  *      before P802.11ax draft assigns the element ID. The payload of this
6280  *      vendor specific element is defined by the latest P802.11ax draft.
6281  *      Please note that the draft is still work in progress and this element
6282  *      payload is subject to change.
6283  *
6284  * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
6285  *      element).
6286  *      This element can be used for pre-standard publication testing of HE
6287  *      before P802.11ax draft assigns the element ID extension. The payload of
6288  *      this vendor specific element is defined by the latest P802.11ax draft
6289  *      (not including the Element ID Extension field). Please note that the
6290  *      draft is still work in progress and this element payload is subject to
6291  *      change.
6292  *
6293  * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
6294  *      This element can be used for pre-standard publication testing of HE
6295  *      before P802.11ax draft assigns the element ID extension. The payload of
6296  *      this vendor specific element is defined by the latest P802.11ax draft
6297  *      (not including the Element ID Extension field). Please note that the
6298  *      draft is still work in progress and this element payload is subject to
6299  *      change.
6300  *
6301  * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
6302  *      This element can be used for pre-standard publication testing of HE
6303  *      before P802.11ax draft assigns the element ID extension. The payload of
6304  *      this vendor specific element is defined by the latest P802.11ax draft
6305  *      (not including the Element ID Extension field). Please note that the
6306  *      draft is still work in progress and this element payload is subject to
6307  *      change.
6308  */
6309 enum qca_vendor_element_id {
6310 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
6311 	QCA_VENDOR_ELEM_HE_CAPAB = 1,
6312 	QCA_VENDOR_ELEM_HE_OPER = 2,
6313 	QCA_VENDOR_ELEM_RAPS = 3,
6314 	QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
6315 	QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
6316 };
6317 
6318 /**
6319  * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
6320  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
6321  * Specify the TSF command. Possible values are defined in
6322  * &enum qca_tsf_cmd.
6323  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
6324  * This attribute contains TSF timer value. This attribute is only available
6325  * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6326  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
6327  * This attribute contains SOC timer value at TSF capture. This attribute is
6328  * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
6329  * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
6330  * This attribute is used to provide TSF sync interval and only applicable when
6331  * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
6332  * driver will use the default value. Time unit is in milliseconds.
6333  */
6334 enum qca_vendor_attr_tsf_cmd {
6335 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
6336 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
6337 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
6338 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
6339 	QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
6340 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
6341 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
6342 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
6343 };
6344 
6345 /**
6346  * enum qca_tsf_cmd: TSF driver commands
6347  * @QCA_TSF_CAPTURE: Initiate TSF Capture
6348  * @QCA_TSF_GET: Get TSF capture value
6349  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
6350  * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
6351  * will automatically send TSF report to the host. To query
6352  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
6353  * initiated first.
6354  * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
6355  * will not automatically send TSF report to the host. If
6356  * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
6357  * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
6358  * operation needs to be initiated.
6359  * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
6360  * fetches TSF and host time mapping from the firmware with interval configured
6361  * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
6362  * interval value is not provided the driver will use the default value. The
6363  * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
6364  * command.
6365  * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
6366  */
6367 enum qca_tsf_cmd {
6368 	QCA_TSF_CAPTURE,
6369 	QCA_TSF_GET,
6370 	QCA_TSF_SYNC_GET,
6371 	QCA_TSF_AUTO_REPORT_ENABLE,
6372 	QCA_TSF_AUTO_REPORT_DISABLE,
6373 	QCA_TSF_SYNC_START,
6374 	QCA_TSF_SYNC_STOP,
6375 };
6376 
6377 /**
6378  * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
6379  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
6380  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
6381  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
6382  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
6383  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
6384  * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
6385  */
6386 enum qca_vendor_attr_get_preferred_freq_list {
6387 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
6388 	/* A 32-unsigned value; the interface type/mode for which the preferred
6389 	 * frequency list is requested (see enum qca_iface_type for possible
6390 	 * values); used in both south- and north-bound.
6391 	 */
6392 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
6393 	/* An array of 32-unsigned values; values are frequency (MHz); used
6394 	 * in north-bound only.
6395 	 */
6396 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
6397 	/* An array of nested values as per enum
6398 	 *  qca_wlan_vendor_attr_pcl_config attribute.
6399 	 *  Each element contains frequency (MHz), weight, and flag
6400 	 *  bit mask indicating how the frequency should be used in P2P
6401 	 *  negotiation.
6402 	 */
6403 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
6404 	/* keep last */
6405 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
6406 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
6407 		QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
6408 };
6409 
6410 /**
6411  * enum qca_vendor_attr_probable_oper_channel - channel hint
6412  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
6413  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
6414  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
6415  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
6416  * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
6417  */
6418 enum qca_vendor_attr_probable_oper_channel {
6419 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
6420 	/* 32-bit unsigned value; indicates the connection/iface type likely to
6421 	 * come on this channel (see enum qca_iface_type).
6422 	 */
6423 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
6424 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
6425 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
6426 	/* keep last */
6427 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
6428 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
6429 		QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
6430 };
6431 
6432 /**
6433  * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
6434  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
6435  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
6436  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
6437  * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
6438  */
6439 enum qca_wlan_vendor_attr_gw_param_config {
6440 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
6441 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
6442 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
6443 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
6444 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
6445 	QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
6446 		QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
6447 };
6448 
6449 /**
6450  * enum drv_dbs_capability - DBS capability
6451  * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
6452  * @DRV_DBS_CAPABILITY_1X1: 1x1
6453  * @DRV_DBS_CAPABILITY_2X2: 2x2
6454  */
6455 enum drv_dbs_capability {
6456 	DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
6457 	DRV_DBS_CAPABILITY_1X1,
6458 	DRV_DBS_CAPABILITY_2X2,
6459 };
6460 
6461 /**
6462  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
6463  *
6464  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
6465  */
6466 enum qca_vendor_attr_txpower_decr_db {
6467 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
6468 	/*
6469 	 * 8-bit unsigned value to indicate the reduction of TX power in dB for
6470 	 * a virtual interface.
6471 	 */
6472 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
6473 	/* keep last */
6474 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
6475 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
6476 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
6477 };
6478 
6479 /**
6480  * enum qca_vendor_attr_ota_test - Enable OTA test
6481  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
6482  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
6483  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
6484  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
6485  */
6486 enum qca_vendor_attr_ota_test {
6487 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
6488 	/* 8-bit unsigned value to indicate if OTA test is enabled */
6489 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
6490 	/* keep last */
6491 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
6492 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
6493 		QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
6494 };
6495 
6496 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
6497  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
6498  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
6499  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
6500  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
6501  */
6502 enum qca_vendor_attr_txpower_scale {
6503 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
6504 	/* 8-bit unsigned value to indicate the scaling of tx power */
6505 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
6506 	/* keep last */
6507 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
6508 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
6509 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
6510 };
6511 
6512 /**
6513  * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
6514  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
6515  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
6516  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
6517  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
6518  */
6519 enum qca_vendor_attr_txpower_scale_decr_db {
6520 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
6521 	/* 8-bit unsigned value to indicate the scaling of tx power */
6522 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
6523 	/* keep last */
6524 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
6525 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
6526 		QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
6527 };
6528 
6529 /**
6530  * enum dfs_mode - state of DFS mode
6531  * @DFS_MODE_NONE: DFS mode attribute is none
6532  * @DFS_MODE_ENABLE:  DFS mode is enabled
6533  * @DFS_MODE_DISABLE: DFS mode is disabled
6534  * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
6535  */
6536 enum dfs_mode {
6537 	DFS_MODE_NONE,
6538 	DFS_MODE_ENABLE,
6539 	DFS_MODE_DISABLE,
6540 	DFS_MODE_DEPRIORITIZE
6541 };
6542 
6543 /**
6544  * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
6545  * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
6546  *
6547  * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
6548  * DFS mode for ACS operation from enum qca_acs_dfs_mode.
6549  *
6550  * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
6551  * channel number hint for ACS operation, if valid channel is specified then
6552  * ACS operation gives priority to this channel.
6553  * Note: If both the driver and user space application supports the 6 GHz band,
6554  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
6555  * should be used.
6556  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
6557  * is still used if either of the driver or user space application doesn't
6558  * support the 6 GHz band.
6559  *
6560  * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
6561  * Channel center frequency (MHz) hint for ACS operation, if a valid center
6562  * frequency is specified, ACS operation gives priority to this channel.
6563  */
6564 enum qca_wlan_vendor_attr_acs_config {
6565 	QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
6566 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
6567 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
6568 	QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
6569 
6570 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
6571 	QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
6572 		QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
6573 };
6574 
6575 /**
6576  * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
6577  */
6578 enum qca_wlan_vendor_attr_get_hw_capability {
6579 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
6580 	/*
6581 	 * Antenna isolation
6582 	 * An attribute used in the response.
6583 	 * The content of this attribute is encoded in a byte array. Each byte
6584 	 * value is an antenna isolation value. The array length is the number
6585 	 * of antennas.
6586 	 */
6587 	QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
6588 	/*
6589 	 * Request HW capability
6590 	 * An attribute used in the request.
6591 	 * The content of this attribute is a u32 array for one or more of
6592 	 * hardware capabilities (attribute IDs) that are being requested. Each
6593 	 * u32 value has a value from this
6594 	 * enum qca_wlan_vendor_attr_get_hw_capability
6595 	 * identifying which capabilities are requested.
6596 	 */
6597 	QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
6598 
6599 	/* keep last */
6600 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
6601 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
6602 	QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
6603 };
6604 
6605 /**
6606  * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
6607  *                        config params for sta roam policy
6608  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
6609  * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
6610  * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
6611  * If sta should skip unsafe channels or not in scanning
6612  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
6613  * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
6614  */
6615 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
6616 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
6617 	QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
6618 	QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
6619 
6620 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
6621 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
6622 	QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
6623 };
6624 
6625 /* Attributes for FTM commands and events */
6626 
6627 /**
6628  * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
6629  *
6630  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
6631  *      enum qca_wlan_vendor_attr_loc_capa_flags.
6632  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
6633  *      of measurement sessions that can run concurrently.
6634  *      Default is one session (no session concurrency).
6635  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
6636  *      peers that are supported in running sessions. For example,
6637  *      if the value is 8 and maximum number of sessions is 2, you can
6638  *      have one session with 8 unique peers, or 2 sessions with 4 unique
6639  *      peers each, and so on.
6640  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
6641  *      of bursts per peer, as an exponent (2^value). Default is 0,
6642  *      meaning no multi-burst support.
6643  * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
6644  *      of measurement exchanges allowed in a single burst.
6645  * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
6646  *      types. A bit mask (unsigned 32 bit value), each bit corresponds
6647  *      to an AOA type as defined by enum qca_vendor_attr_aoa_type.
6648  */
6649 enum qca_wlan_vendor_attr_loc_capa {
6650 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
6651 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
6652 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
6653 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
6654 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
6655 	QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
6656 	QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
6657 	/* keep last */
6658 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
6659 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
6660 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
6661 };
6662 
6663 /**
6664  * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
6665  *
6666  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
6667  *      can be configured as an FTM responder (for example, an AP that
6668  *      services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
6669  *      will be supported if set.
6670  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
6671  *      can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
6672  *      will be supported if set.
6673 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
6674  *      supports immediate (ASAP) response.
6675  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
6676  *      AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
6677  * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
6678  *      requesting AOA measurements as part of an FTM session.
6679  */
6680 enum qca_wlan_vendor_attr_loc_capa_flags {
6681 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
6682 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
6683 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
6684 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
6685 	QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
6686 };
6687 
6688 /**
6689  * enum qca_wlan_ani_setting - ANI setting type
6690  * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
6691  * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
6692  */
6693 enum qca_wlan_ani_setting {
6694 	QCA_WLAN_ANI_SETTING_AUTO = 0,
6695 	QCA_WLAN_ANI_SETTING_FIXED = 1,
6696 };
6697 
6698 /**
6699  * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
6700  *
6701  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
6702  * Channel number on which Access Point should restart.
6703  * Note: If both the driver and user space application supports the 6 GHz band,
6704  * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
6705  * should be used.
6706  * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
6707  * is still used if either of the driver or user space application doesn't
6708  * support the 6 GHz band.
6709  *
6710  * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
6711  * Nested attribute to hold list of center frequencies on which AP is
6712  * expected to operate. This is irrespective of ACS configuration.
6713  * This list is a priority based one and is looked for before the AP is
6714  * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
6715  * co-exist in the system.
6716  *
6717  * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
6718  * Channel center frequency (MHz) on which the access point should restart.
6719  */
6720 enum qca_wlan_vendor_attr_sap_config {
6721 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
6722 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
6723 	QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
6724 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
6725 
6726 	/* Keep last */
6727 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
6728 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
6729 	QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
6730 };
6731 
6732 /**
6733  * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
6734  * a single peer in a measurement session.
6735  *
6736  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
6737  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
6738  *      to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
6739  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
6740  *      FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
6741  *      9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
6742  *      list of supported attributes.
6743  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
6744  *      secure measurement.
6745  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
6746  *      measurement every <value> bursts. If 0 or not specified,
6747  *      AOA measurements will be disabled for this peer.
6748  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
6749  *      the measurement frames are exchanged. Optional; if not
6750  *      specified, try to locate the peer in the kernel scan
6751  *      results cache and use frequency from there.
6752  */
6753 enum qca_wlan_vendor_attr_ftm_peer_info {
6754 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
6755 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
6756 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
6757 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
6758 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
6759 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
6760 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
6761 	/* keep last */
6762 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
6763 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
6764 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
6765 };
6766 
6767 /**
6768  * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
6769  *      per-peer
6770  *
6771  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
6772  *      immediate (ASAP) response from peer.
6773  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
6774  *      LCI report from peer. The LCI report includes the absolute
6775  *      location of the peer in "official" coordinates (similar to GPS).
6776  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
6777  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
6778  *      Location civic report from peer. The LCR includes the location
6779  *      of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
6780  *      11.24.6.7 for more information.
6781  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
6782  *      request a secure measurement.
6783  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
6784  */
6785 enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
6786 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP    = 1 << 0,
6787 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI     = 1 << 1,
6788 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR     = 1 << 2,
6789 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE  = 1 << 3,
6790 };
6791 
6792 /**
6793  * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
6794  *
6795  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
6796  *      to perform in a single burst.
6797  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
6798  *      perform, specified as an exponent (2^value).
6799  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
6800  *      instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
6801  * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
6802  *      as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
6803  *      be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
6804  */
6805 enum qca_wlan_vendor_attr_ftm_meas_param {
6806 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
6807 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
6808 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
6809 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
6810 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
6811 	/* keep last */
6812 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
6813 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
6814 	QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
6815 };
6816 
6817 /**
6818  * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
6819  *
6820  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
6821  *       peer.
6822  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
6823  *      request for this peer.
6824  *      See enum qca_wlan_vendor_attr_ftm_peer_result_status.
6825  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
6826  *      to measurement results for this peer.
6827  *      See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
6828  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
6829  *      request failed and peer requested not to send an additional request
6830  *      for this number of seconds.
6831  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
6832  *      from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6833  *      9.4.2.22.10.
6834  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
6835  *      received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
6836  *      9.4.2.22.13.
6837  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
6838  *      overridden some measurement request parameters. See
6839  *      enum qca_wlan_vendor_attr_ftm_meas_param.
6840  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
6841  *      for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
6842  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
6843  *      results. Each entry is a nested attribute defined
6844  *      by enum qca_wlan_vendor_attr_ftm_meas.
6845  */
6846 enum qca_wlan_vendor_attr_ftm_peer_result {
6847 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
6848 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
6849 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
6850 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
6851 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
6852 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
6853 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
6854 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
6855 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
6856 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
6857 	/* keep last */
6858 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
6859 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
6860 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
6861 };
6862 
6863 /**
6864  * enum qca_wlan_vendor_attr_ftm_peer_result_status
6865  *
6866  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
6867  *      will be provided. Peer may have overridden some measurement parameters,
6868  *      in which case overridden parameters will be report by
6869  *      QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
6870  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
6871  *      of performing the measurement request. No more results will be sent
6872  *      for this peer in this session.
6873  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
6874  *      failed, and requested not to send an additional request for number
6875  *      of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
6876  *      attribute.
6877  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
6878  *      failed. Request was not sent over the air.
6879  */
6880 enum qca_wlan_vendor_attr_ftm_peer_result_status {
6881 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
6882 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
6883 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
6884 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
6885 };
6886 
6887 /**
6888  * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
6889  *  for measurement result, per-peer
6890  *
6891  * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
6892  *      measurement completed for this peer. No more results will be reported
6893  *      for this peer in this session.
6894  */
6895 enum qca_wlan_vendor_attr_ftm_peer_result_flags {
6896 	QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
6897 };
6898 
6899 /**
6900  * enum qca_vendor_attr_loc_session_status: Session completion status code
6901  *
6902  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
6903  *      successfully.
6904  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
6905  *      by request.
6906  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
6907  *      was invalid and was not started.
6908  * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
6909  *      and did not complete normally (for example out of resources).
6910  */
6911 enum qca_vendor_attr_loc_session_status {
6912 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
6913 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
6914 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
6915 	QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
6916 };
6917 
6918 /**
6919  * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
6920  *
6921  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
6922  *      recorded by responder, in picoseconds.
6923  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6924  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
6925  *      initiator, in picoseconds.
6926  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6927  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
6928  *      initiator, in picoseconds.
6929  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6930  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
6931  *      responder, in picoseconds.
6932  *      See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
6933  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
6934  *      during this measurement exchange. Optional and will be provided if
6935  *      the hardware can measure it.
6936  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
6937  *      responder. Not always provided.
6938  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6939  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
6940  *      responder. Not always provided.
6941  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6942  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
6943  *      initiator. Not always provided.
6944  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6945  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
6946  *      initiator. Not always provided.
6947  *      See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
6948  * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
6949  */
6950 enum qca_wlan_vendor_attr_ftm_meas {
6951 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
6952 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
6953 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
6954 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
6955 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
6956 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
6957 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
6958 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
6959 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
6960 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
6961 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
6962 	/* keep last */
6963 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
6964 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
6965 	QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
6966 };
6967 
6968 /**
6969  * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
6970  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
6971  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
6972  *     A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
6973  *     of the social channels.
6974  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
6975  *     A 32-bit unsigned value; the P2P listen offload period (ms).
6976  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
6977  *     A 32-bit unsigned value; the P2P listen interval duration (ms).
6978  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
6979  *     A 32-bit unsigned value; number of interval times the Firmware needs
6980  *     to run the offloaded P2P listen operation before it stops.
6981  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
6982  *     An array of unsigned 8-bit characters; vendor information elements.
6983  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
6984  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
6985  *     A 32-bit unsigned value; a control flag to indicate whether listen
6986  *     results need to be flushed to wpa_supplicant.
6987  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
6988  *     A 8-bit unsigned value; reason code for P2P listen offload stop
6989  *     event.
6990  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
6991  * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
6992  */
6993 enum qca_wlan_vendor_attr_p2p_listen_offload {
6994 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
6995 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
6996 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
6997 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
6998 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
6999 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
7000 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
7001 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
7002 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
7003 	/* keep last */
7004 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
7005 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
7006 	QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
7007 };
7008 
7009 /**
7010  * enum qca_wlan_vendor_drv_info - WLAN driver info
7011  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
7012  * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
7013  * between Firmware & Host.
7014  */
7015 enum qca_wlan_vendor_drv_info {
7016 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
7017 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
7018 
7019 	/* keep last */
7020 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
7021 	QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
7022 		QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
7023 };
7024 
7025 /**
7026  * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
7027  *
7028  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
7029  *      CIR (channel impulse response) path for each antenna.
7030  * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
7031  *      of the strongest CIR path for each antenna.
7032  */
7033 enum qca_wlan_vendor_attr_aoa_type {
7034 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
7035 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
7036 	QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
7037 };
7038 
7039 /**
7040  * enum qca_wlan_vendor_attr_encryption_test - Attributes to
7041  * validate encryption engine
7042  *
7043  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
7044  *    This will be included if the request is for decryption; if not included,
7045  *    the request is treated as a request for encryption by default.
7046  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
7047  *    indicating the key cipher suite. Takes same values as
7048  *    NL80211_ATTR_KEY_CIPHER.
7049  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
7050  *    Key Id to be used for encryption
7051  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
7052  *    Key (TK) to be used for encryption/decryption
7053  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
7054  *    Packet number to be specified for encryption/decryption
7055  *    6 bytes for TKIP/CCMP/GCMP.
7056  * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
7057  *    representing the 802.11 packet (header + payload + FCS) that
7058  *    needs to be encrypted/decrypted.
7059  *    Encrypted/decrypted response from the driver will also be sent
7060  *    to userspace with the same attribute.
7061  */
7062 enum qca_wlan_vendor_attr_encryption_test {
7063 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
7064 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
7065 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
7066 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
7067 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
7068 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
7069 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
7070 
7071 	/* keep last */
7072 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
7073 	QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
7074 		QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
7075 };
7076 
7077 /**
7078  * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
7079  * sector for DMG RF sector operations.
7080  *
7081  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
7082  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
7083  */
7084 enum qca_wlan_vendor_attr_dmg_rf_sector_type {
7085 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
7086 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
7087 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
7088 };
7089 
7090 /**
7091  * enum qca_wlan_vendor_attr_fw_state - State of firmware
7092  *
7093  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
7094  * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
7095  */
7096 enum qca_wlan_vendor_attr_fw_state {
7097 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
7098 	QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
7099 	QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
7100 };
7101 
7102 /**
7103  * BRP antenna limit mode
7104  *
7105  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
7106  *      antenna limit, BRP will be performed as usual.
7107  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
7108  *      antennas limit. the hardware may use less antennas than the
7109  *      maximum limit.
7110  * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
7111  *      use exactly the specified number of antennas for BRP.
7112  */
7113 enum qca_wlan_vendor_attr_brp_ant_limit_mode {
7114 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
7115 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
7116 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
7117 	QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
7118 };
7119 
7120 /**
7121  * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
7122  * DMG RF sector configuration for a single RF module.
7123  * The values are defined in a compact way which closely matches
7124  * the way it is stored in HW registers.
7125  * The configuration provides values for 32 antennas and 8 distribution
7126  * amplifiers, and together describes the characteristics of the RF
7127  * sector - such as a beam in some direction with some gain.
7128  *
7129  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
7130  *      of RF module for this configuration.
7131  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
7132  *      amplifier gain index. Unsigned 32 bit number containing
7133  *      bits for all 32 antennas.
7134  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
7135  *      amplifier gain index. Unsigned 32 bit number containing
7136  *      bits for all 32 antennas.
7137  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
7138  *      amplifier gain index. Unsigned 32 bit number containing
7139  *      bits for all 32 antennas.
7140  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
7141  *      for first 16 antennas, 2 bits per antenna.
7142  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
7143  *      for last 16 antennas, 2 bits per antenna.
7144  * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
7145  *      DTYPE values (3 bits) for each distribution amplifier, followed
7146  *      by X16 switch bits for each distribution amplifier. There are
7147  *      total of 8 distribution amplifiers.
7148  */
7149 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
7150 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
7151 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
7152 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
7153 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
7154 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
7155 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
7156 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
7157 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
7158 
7159 	/* keep last */
7160 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
7161 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
7162 	QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
7163 };
7164 
7165 /**
7166  * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
7167  * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
7168  *
7169  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
7170  *	mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
7171  *	represents the different TDLS trigger modes.
7172  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
7173  *	which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
7174  *	of packets shall meet the criteria for implicit TDLS setup.
7175  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
7176  *	packets within a duration.
7177  *	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
7178  *	a TDLS setup.
7179  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
7180  *	a TDLS Discovery to the Peer.
7181  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
7182  *	discovery attempts to know the TDLS capability of the peer. A peer is
7183  *	marked as TDLS not capable if there is no response for all the attempts.
7184  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
7185  *	within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
7186  *	number of TX / RX frames meet the criteria for TDLS teardown.
7187  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
7188  *	(u32) of Tx/Rx packets within a duration
7189  *	CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
7190  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
7191  *	corresponding to the RSSI of the peer below which a TDLS
7192  *	setup is triggered.
7193  * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
7194  *	corresponding to the RSSI of the peer above which
7195  *	a TDLS teardown is triggered.
7196  */
7197 enum qca_wlan_vendor_attr_tdls_configuration {
7198 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
7199 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
7200 
7201 	/* Attributes configuring the TDLS Implicit Trigger */
7202 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
7203 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
7204 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
7205 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
7206 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
7207 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
7208 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
7209 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
7210 
7211 	/* keep last */
7212 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
7213 	QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
7214 		QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
7215 };
7216 
7217 /**
7218  * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
7219  *	the driver.
7220  *
7221  * The following are the different values for
7222  * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
7223  *
7224  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
7225  *	initiate/teardown the TDLS connection to a respective peer comes
7226  *	 from the user space. wpa_supplicant provides the commands
7227  *	TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
7228  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
7229  *	setup/teardown to the eligible peer once the configured criteria
7230  *	(such as TX/RX threshold, RSSI) is met. The attributes
7231  *	in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
7232  *	the different configuration criteria for the TDLS trigger from the
7233  *	host driver.
7234  * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
7235  *	the TDLS setup / teardown through the implicit mode, only to the
7236  *	configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
7237  *	configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
7238  *	External mode works on top of the implicit mode, thus the host Driver
7239  *	is expected to be configured in TDLS Implicit mode too to operate in
7240  *	External mode. Configuring External mode alone without Implicit
7241  *	mode is invalid.
7242  *
7243  * All the above implementations work as expected only when the host driver
7244  * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
7245  * representing that the TDLS message exchange is not internal to the host
7246  * driver, but depends on wpa_supplicant to do the message exchange.
7247  */
7248 enum qca_wlan_vendor_tdls_trigger_mode {
7249 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
7250 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
7251 	QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
7252 };
7253 
7254 /**
7255  * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
7256  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
7257  *	that is hard-coded in the Board Data File (BDF).
7258  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
7259  *	that is hard-coded in the Board Data File (BDF).
7260  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
7261  *	that is hard-coded in the Board Data File (BDF).
7262  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
7263  *	that is hard-coded in the Board Data File (BDF).
7264  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
7265  *	that is hard-coded in the Board Data File (BDF).
7266  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
7267  *	source of SAR power limits, thereby disabling the SAR power
7268  *	limit feature.
7269  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
7270  *	limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7271  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
7272  *	limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
7273  *
7274  * This enumerates the valid set of values that may be supplied for
7275  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
7276  * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
7277  * the response to an instance of the
7278  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7279  */
7280 enum qca_vendor_attr_sar_limits_selections {
7281 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
7282 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
7283 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
7284 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
7285 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
7286 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
7287 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
7288 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
7289 };
7290 
7291 /**
7292  * enum qca_vendor_attr_sar_limits_spec_modulations -
7293  *	SAR limits specification modulation
7294  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
7295  *	CCK modulation
7296  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
7297  *	OFDM modulation
7298  *
7299  * This enumerates the valid set of values that may be supplied for
7300  * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
7301  * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
7302  * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
7303  * command or in the response to an instance of the
7304  * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
7305  */
7306 enum qca_vendor_attr_sar_limits_spec_modulations {
7307 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
7308 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
7309 };
7310 
7311 /**
7312  * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
7313  *
7314  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
7315  *	select which SAR power limit table should be used.  Valid
7316  *	values are enumerated in enum
7317  *	%qca_vendor_attr_sar_limits_selections.  The existing SAR
7318  *	power limit selection is unchanged if this attribute is not
7319  *	present.
7320  *
7321  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
7322  *	which specifies the number of SAR power limit specifications
7323  *	which will follow.
7324  *
7325  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
7326  *	limit specifications. The number of specifications is
7327  *	specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
7328  *	specification contains a set of
7329  *	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
7330  *	specification is uniquely identified by the attributes
7331  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
7332  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
7333  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
7334  *	contains as a payload the attribute
7335  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
7336  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
7337  *	Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
7338  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
7339  *	needed based upon the value of
7340  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
7341  *
7342  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
7343  *	indicate for which band this specification applies. Valid
7344  *	values are enumerated in enum %nl80211_band (although not all
7345  *	bands may be supported by a given device). If the attribute is
7346  *	not supplied then the specification will be applied to all
7347  *	supported bands.
7348  *
7349  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
7350  *	to indicate for which antenna chain this specification
7351  *	applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
7352  *	attribute is not supplied then the specification will be
7353  *	applied to all chains.
7354  *
7355  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
7356  *	value to indicate for which modulation scheme this
7357  *	specification applies. Valid values are enumerated in enum
7358  *	%qca_vendor_attr_sar_limits_spec_modulations. If the attribute
7359  *	is not supplied then the specification will be applied to all
7360  *	modulation schemes.
7361  *
7362  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
7363  *	value to specify the actual power limit value in units of 0.5
7364  *	dBm (i.e., a value of 11 represents 5.5 dBm).
7365  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7366  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
7367  *
7368  * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
7369  *	value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
7370  *	This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
7371  *	%QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
7372  *
7373  * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
7374  * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
7375  */
7376 enum qca_vendor_attr_sar_limits {
7377 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
7378 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
7379 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
7380 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
7381 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
7382 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
7383 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
7384 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
7385 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
7386 
7387 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
7388 	QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
7389 		QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
7390 };
7391 
7392 /**
7393  * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
7394  *    offload which is an extension for LL_STATS.
7395  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
7396  *    If MAC counters do not exceed the threshold, FW will report monitored
7397  *    link layer counters periodically as this setting. The first report is
7398  *    always triggered by this timer.
7399  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
7400  *    For each MAC layer counter, FW holds two copies. One is the current value.
7401  *    The other is the last report. Once a current counter's increment is larger
7402  *    than the threshold, FW will indicate that counter to host even if the
7403  *    monitoring timer does not expire.
7404  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
7405  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
7406  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
7407  *    failure code.
7408  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
7409  *    1: TX packet discarded
7410  *    2: No ACK
7411  *    3: Postpone
7412  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
7413  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
7414  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
7415  *    Threshold for all monitored parameters. If per counter dedicated threshold
7416  *    is not enabled, this threshold will take effect.
7417  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
7418  *    event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
7419  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
7420  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
7421  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
7422  *    Bit0: TX counter unit in MSDU
7423  *    Bit1: TX counter unit in MPDU
7424  *    Bit2: TX counter unit in PPDU
7425  *    Bit3: TX counter unit in byte
7426  *    Bit4: Dropped MSDUs
7427  *    Bit5: Dropped Bytes
7428  *    Bit6: MPDU retry counter
7429  *    Bit7: MPDU failure counter
7430  *    Bit8: PPDU failure counter
7431  *    Bit9: MPDU aggregation counter
7432  *    Bit10: MCS counter for ACKed MPDUs
7433  *    Bit11: MCS counter for Failed MPDUs
7434  *    Bit12: TX Delay counter
7435  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
7436  *    Bit0: MAC RX counter unit in MPDU
7437  *    Bit1: MAC RX counter unit in byte
7438  *    Bit2: PHY RX counter unit in PPDU
7439  *    Bit3: PHY RX counter unit in byte
7440  *    Bit4: Disorder counter
7441  *    Bit5: Retry counter
7442  *    Bit6: Duplication counter
7443  *    Bit7: Discard counter
7444  *    Bit8: MPDU aggregation size counter
7445  *    Bit9: MCS counter
7446  *    Bit10: Peer STA power state change (wake to sleep) counter
7447  *    Bit11: Peer STA power save counter, total time in PS mode
7448  *    Bit12: Probe request counter
7449  *    Bit13: Other management frames counter
7450  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
7451  *    Bit0: Idle time
7452  *    Bit1: TX time
7453  *    Bit2: time RX in current bss
7454  *    Bit3: Out of current bss time
7455  *    Bit4: Wireless medium busy time
7456  *    Bit5: RX in bad condition time
7457  *    Bit6: TX in bad condition time
7458  *    Bit7: time wlan card not available
7459  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
7460  *    Bit0: Per channel SNR counter
7461  *    Bit1: Per channel noise floor counter
7462  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
7463  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
7464  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
7465  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
7466  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
7467  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
7468  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
7469  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
7470  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
7471  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
7472  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
7473  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
7474  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
7475  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
7476  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
7477  *    aggregation stats buffer length
7478  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
7479  *    buffer for ACKed MPDUs.
7480  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
7481  *    buffer for failed MPDUs.
7482  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
7483  *    length of delay stats array.
7484  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
7485  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
7486  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
7487  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
7488  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
7489  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
7490  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
7491  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
7492  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
7493  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
7494  *    flagged as retransmissions
7495  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
7496  *    flagged as duplicated
7497  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
7498  *    packets discarded
7499  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
7500  *    stats buffer.
7501  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
7502  *    stats buffer.
7503  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
7504  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
7505  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
7506  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
7507  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
7508  *    requests received
7509  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
7510  *    frames received
7511  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
7512  *    there is no TX, nor RX, nor interference.
7513  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
7514  *    transmitting packets.
7515  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
7516  *    for receiving.
7517  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
7518  *    interference detected.
7519  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
7520  *    receiving packets with errors.
7521  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
7522  *    TX no-ACK.
7523  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
7524  *    the chip is unable to work in normal conditions.
7525  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
7526  *    receiving packets in current BSS.
7527  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
7528  *    receiving packets not in current BSS.
7529  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
7530  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
7531  *    This is a container for per antenna signal stats.
7532  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
7533  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
7534  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
7535  * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
7536  */
7537 enum qca_wlan_vendor_attr_ll_stats_ext {
7538 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
7539 
7540 	/* Attributes for configurations */
7541 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
7542 	QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
7543 
7544 	/* Peer STA power state change */
7545 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
7546 
7547 	/* TX failure event */
7548 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
7549 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
7550 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
7551 
7552 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
7553 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
7554 
7555 	/* MAC counters */
7556 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
7557 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
7558 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
7559 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
7560 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
7561 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
7562 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
7563 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
7564 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
7565 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
7566 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
7567 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
7568 
7569 	/* Sub-attributes for PEER_AC_TX */
7570 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
7571 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
7572 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
7573 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
7574 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
7575 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
7576 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
7577 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
7578 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
7579 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
7580 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
7581 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
7582 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
7583 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
7584 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
7585 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
7586 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
7587 
7588 	/* Sub-attributes for PEER_AC_RX */
7589 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
7590 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
7591 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
7592 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
7593 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
7594 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
7595 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
7596 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
7597 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
7598 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
7599 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
7600 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
7601 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
7602 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
7603 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
7604 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
7605 
7606 	/* Sub-attributes for CCA_BSS */
7607 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
7608 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
7609 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
7610 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
7611 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
7612 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
7613 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
7614 
7615 	/* sub-attribute for BSS_RX_TIME */
7616 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
7617 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
7618 
7619 	/* Sub-attributes for PEER_SIGNAL */
7620 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
7621 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
7622 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
7623 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
7624 
7625 	/* Sub-attributes for IFACE_BSS */
7626 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
7627 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
7628 
7629 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
7630 	QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
7631 		QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
7632 };
7633 
7634 /**
7635  * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
7636  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
7637  * in priority order as decided after ACS operation in userspace.
7638  *
7639  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
7640  * One of reason code from enum qca_wlan_vendor_acs_select_reason.
7641  *
7642  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
7643  * Array of nested values for each channel with following attributes:
7644  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7645  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7646  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7647  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7648  *     QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7649  * Note: If both the driver and user-space application supports the 6 GHz band,
7650  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
7651  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
7652  * To maintain backward compatibility,
7653  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
7654  * is still used if either of the driver or user space application doesn't
7655  * support the 6 GHz band.
7656  *
7657  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
7658  * Primary channel number
7659  * Note: If both the driver and user-space application supports the 6 GHz band,
7660  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
7661  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
7662  * To maintain backward compatibility,
7663  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
7664  * is still used if either of the driver or user space application doesn't
7665  * support the 6 GHz band.
7666  *
7667  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
7668  * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
7669  * Note: If both the driver and user-space application supports the 6 GHz band,
7670  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
7671  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
7672  * To maintain backward compatibility,
7673  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
7674  * is still used if either of the driver or user space application
7675  * doesn't support the 6 GHz band.
7676  *
7677  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
7678  * VHT seg0 channel number
7679  * Note: If both the driver and user-space application supports the 6 GHz band,
7680  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
7681  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
7682  * To maintain backward compatibility,
7683  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
7684  * is still used if either of the driver or user space application
7685  * doesn't support the 6 GHz band.
7686  *
7687  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
7688  * VHT seg1 channel number
7689  * Note: If both the driver and user-space application supports the 6 GHz band,
7690  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
7691  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
7692  * To maintain backward compatibility,
7693  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
7694  * is still used if either of the driver or user space application
7695  * doesn't support the 6 GHz band.
7696  *
7697  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
7698  * Takes one of enum nl80211_chan_width values.
7699  *
7700  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
7701  * Array of nested values for each channel with following attributes:
7702  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
7703  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
7704  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
7705  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
7706  *	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7707  * Note: If user-space application has no support of the 6 GHz band, this
7708  * attribute is optional.
7709  *
7710  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
7711  * Primary channel frequency in MHz
7712  * Note: If user-space application has no support of the 6 GHz band, this
7713  * attribute is optional.
7714  *
7715  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
7716  * Secondary channel frequency in MHz used for HT 40 MHz channels.
7717  * Note: If user-space application has no support of the 6 GHz band, this
7718  * attribute is optional.
7719  *
7720  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
7721  * VHT seg0 channel frequency in MHz
7722  * Note: If user-space application has no support of the 6GHz band, this
7723  * attribute is optional.
7724  *
7725  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
7726  * VHT seg1 channel frequency in MHz
7727  * Note: If user-space application has no support of the 6 GHz band, this
7728  * attribute is optional.
7729  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
7730  * Puncture Bitmap for selected primary channel. Optional if no support
7731  * for EHT (IEEE 802.11be). Encoding for this attribute follows the
7732  * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
7733  * element.
7734  */
7735 enum qca_wlan_vendor_attr_external_acs_channels {
7736 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
7737 
7738 	/* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
7739 	 */
7740 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
7741 
7742 	/* Array of nested values for each channel with following attributes:
7743 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
7744 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
7745 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
7746 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
7747 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
7748 	 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
7749 	 */
7750 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
7751 	/* This (u8) will hold values of one of enum nl80211_bands */
7752 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
7753 	/* Primary channel (u8) */
7754 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
7755 	/* Secondary channel (u8) used for HT 40 MHz channels */
7756 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
7757 	/* VHT seg0 channel (u8) */
7758 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
7759 	/* VHT seg1 channel (u8) */
7760 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
7761 	/* Channel width (u8). Takes one of enum nl80211_chan_width values. */
7762 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
7763 
7764 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
7765 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
7766 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
7767 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
7768 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
7769 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
7770 
7771 	/* keep last */
7772 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
7773 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
7774 		QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
7775 };
7776 
7777 /**
7778  * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
7779  * the ACS has to be triggered. These values are used by
7780  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
7781  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
7782  */
7783 enum qca_wlan_vendor_acs_select_reason {
7784 	/* Represents the reason that the ACS triggered during the AP start */
7785 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
7786 	/* Represents the reason that DFS found with the current channel */
7787 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
7788 	/* Represents the reason that LTE co-exist in the current band. */
7789 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
7790 	/* Represents the reason that generic, uncategorized interference has
7791 	 * been found in the current channel.
7792 	 */
7793 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
7794 	/* Represents the reason that excessive 802.11 interference has been
7795 	 * found in the current channel.
7796 	 */
7797 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
7798 	/* Represents the reason that generic Continuous Wave (CW) interference
7799 	 * has been found in the current channel.
7800 	 */
7801 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
7802 	/* Represents the reason that Microwave Oven (MWO) interference has been
7803 	 * found in the current channel.
7804 	 */
7805 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
7806 	/* Represents the reason that generic Frequency-Hopping Spread Spectrum
7807 	 * (FHSS) interference has been found in the current channel. This may
7808 	 * include 802.11 waveforms.
7809 	 */
7810 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
7811 	/* Represents the reason that non-802.11 generic Frequency-Hopping
7812 	 * Spread Spectrum (FHSS) interference has been found in the current
7813 	 * channel.
7814 	 */
7815 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
7816 	/* Represents the reason that generic Wideband (WB) interference has
7817 	 * been found in the current channel. This may include 802.11 waveforms.
7818 	 */
7819 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
7820 	/* Represents the reason that non-802.11 generic Wideband (WB)
7821 	 * interference has been found in the current channel.
7822 	 */
7823 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
7824 	/* Represents the reason that Jammer interference has been found in the
7825 	 * current channel.
7826 	 */
7827 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
7828 	/* Represents the reason that ACS triggered by AFC */
7829 	QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
7830 };
7831 
7832 /**
7833  * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
7834  *
7835  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
7836  * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
7837  * to get the available value that this item can use.
7838  *
7839  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
7840  * value to specify the gpio number.
7841  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7842  * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
7843  *
7844  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
7845  * value to specify the gpio output level, please refer to enum qca_gpio_value
7846  * to get the available value that this item can use.
7847  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7848  * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
7849  *
7850  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
7851  * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
7852  * to get the available value that this item can use.
7853  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7854  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7855  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7856  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7857  * attribute is present.
7858  *
7859  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
7860  * value to specify the gpio interrupt mode, please refer to enum
7861  * qca_gpio_interrupt_mode to get the available value that this item can use.
7862  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7863  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7864  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7865  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7866  * attribute is present.
7867  *
7868  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
7869  * value to specify the gpio direction, please refer to enum qca_gpio_direction
7870  * to get the available value that this item can use.
7871  * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7872  * %QCA_WLAN_VENDOR_GPIO_CONFIG and
7873  * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
7874  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
7875  * attribute is present.
7876  *
7877  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
7878  * Value to specify the mux config. Meaning of a given value is dependent
7879  * on the target chipset and gpio pin. Must be of the range 0-15.
7880  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7881  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
7882  *
7883  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
7884  * Value to specify the drive, Refer to enum qca_gpio_drive.
7885  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7886  * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
7887  *
7888  * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
7889  * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
7890  * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
7891  * other parameters for the given GPIO will be obtained from internal
7892  * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
7893  * specified to indicate the GPIO pin being configured.
7894  */
7895 enum qca_wlan_gpio_attr {
7896 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
7897 	/* Unsigned 32-bit attribute for GPIO command */
7898 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
7899 	/* Unsigned 32-bit attribute for GPIO PIN number to configure */
7900 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
7901 	/* Unsigned 32-bit attribute for GPIO value to configure */
7902 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
7903 	/* Unsigned 32-bit attribute for GPIO pull type */
7904 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
7905 	/* Unsigned 32-bit attribute for GPIO interrupt mode */
7906 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
7907 	/* Unsigned 32-bit attribute for GPIO direction to configure */
7908 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
7909 	/* Unsigned 32-bit attribute for GPIO mux config */
7910 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
7911 	/* Unsigned 32-bit attribute for GPIO drive */
7912 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
7913 	/* Flag attribute for using internal gpio configuration */
7914 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
7915 
7916 	/* keep last */
7917 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
7918 	QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
7919 		QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
7920 };
7921 
7922 /**
7923  * enum gpio_cmd_type - GPIO configuration command type
7924  * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
7925  * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
7926  */
7927 enum qca_gpio_cmd_type {
7928 	QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
7929 	QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
7930 };
7931 
7932 /**
7933  * enum qca_gpio_pull_type - GPIO pull type
7934  * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
7935  * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
7936  * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
7937  */
7938 enum qca_gpio_pull_type {
7939 	QCA_WLAN_GPIO_PULL_NONE = 0,
7940 	QCA_WLAN_GPIO_PULL_UP = 1,
7941 	QCA_WLAN_GPIO_PULL_DOWN = 2,
7942 	QCA_WLAN_GPIO_PULL_MAX,
7943 };
7944 
7945 /**
7946  * enum qca_gpio_direction - GPIO direction
7947  * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
7948  * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
7949  * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
7950  */
7951 enum qca_gpio_direction {
7952 	QCA_WLAN_GPIO_INPUT = 0,
7953 	QCA_WLAN_GPIO_OUTPUT = 1,
7954 	QCA_WLAN_GPIO_DIR_MAX,
7955 };
7956 
7957 /**
7958  * enum qca_gpio_value - GPIO Value
7959  * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
7960  * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
7961  * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
7962  */
7963 enum qca_gpio_value {
7964 	QCA_WLAN_GPIO_LEVEL_LOW = 0,
7965 	QCA_WLAN_GPIO_LEVEL_HIGH = 1,
7966 	QCA_WLAN_GPIO_LEVEL_MAX,
7967 };
7968 
7969 /**
7970  * enum gpio_interrupt_mode - GPIO interrupt mode
7971  * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
7972  * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
7973  * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
7974  * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
7975  * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
7976  * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
7977  * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
7978  */
7979 enum qca_gpio_interrupt_mode {
7980 	QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
7981 	QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
7982 	QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
7983 	QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
7984 	QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
7985 	QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
7986 	QCA_WLAN_GPIO_INTMODE_MAX,
7987 };
7988 
7989 /**
7990  * enum gpio_drive - GPIO drive
7991  * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
7992  * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
7993  * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
7994  * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
7995  * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
7996  * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
7997  * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
7998  * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
7999  * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
8000  */
8001 enum qca_gpio_drive {
8002 	QCA_WLAN_GPIO_DRIVE_2MA = 0,
8003 	QCA_WLAN_GPIO_DRIVE_4MA = 1,
8004 	QCA_WLAN_GPIO_DRIVE_6MA = 2,
8005 	QCA_WLAN_GPIO_DRIVE_8MA = 3,
8006 	QCA_WLAN_GPIO_DRIVE_10MA = 4,
8007 	QCA_WLAN_GPIO_DRIVE_12MA = 5,
8008 	QCA_WLAN_GPIO_DRIVE_14MA = 6,
8009 	QCA_WLAN_GPIO_DRIVE_16MA = 7,
8010 	QCA_WLAN_GPIO_DRIVE_MAX,
8011 };
8012 
8013 /**
8014  * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
8015  * MSDUQ depth threshold per peer per tid in the target
8016  *
8017  * Associated Vendor Command:
8018  * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
8019  */
8020 enum qca_wlan_set_qdepth_thresh_attr {
8021 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
8022 	/* 6-byte MAC address */
8023 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
8024 	/* Unsigned 32-bit attribute for holding the TID */
8025 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
8026 	/* Unsigned 32-bit attribute for holding the update mask
8027 	 * bit 0 - Update high priority msdu qdepth threshold
8028 	 * bit 1 - Update low priority msdu qdepth threshold
8029 	 * bit 2 - Update UDP msdu qdepth threshold
8030 	 * bit 3 - Update Non UDP msdu qdepth threshold
8031 	 * rest of bits are reserved
8032 	 */
8033 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
8034 	/* Unsigned 32-bit attribute for holding the threshold value */
8035 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
8036 
8037 	/* keep last */
8038 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
8039 	QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
8040 		QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
8041 };
8042 
8043 /**
8044  * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
8045  * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
8046  * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
8047  * external ACS policies to select the channels w.r.t. the PCL weights.
8048  * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
8049  * their PCL weights.)
8050  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
8051  * select a channel with non-zero PCL weight.
8052  * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
8053  * channel with non-zero PCL weight.
8054  *
8055  */
8056 enum qca_wlan_vendor_attr_external_acs_policy {
8057 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
8058 	QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
8059 };
8060 
8061 /**
8062  * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
8063  */
8064 enum qca_wlan_vendor_attr_spectral_scan {
8065 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
8066 	/*
8067 	 * Number of times the chip enters spectral scan mode before
8068 	 * deactivating spectral scans. When set to 0, chip will enter spectral
8069 	 * scan mode continuously. u32 attribute.
8070 	 */
8071 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
8072 	/*
8073 	 * Spectral scan period. Period increment resolution is 256*Tclk,
8074 	 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
8075 	 */
8076 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
8077 	/* Spectral scan priority. u32 attribute. */
8078 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
8079 	/* Number of FFT data points to compute. u32 attribute. */
8080 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
8081 	/*
8082 	 * Enable targeted gain change before starting the spectral scan FFT.
8083 	 * u32 attribute.
8084 	 */
8085 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
8086 	/* Restart a queued spectral scan. u32 attribute. */
8087 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
8088 	/*
8089 	 * Noise floor reference number for the calculation of bin power.
8090 	 * u32 attribute.
8091 	 */
8092 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
8093 	/*
8094 	 * Disallow spectral scan triggers after TX/RX packets by setting
8095 	 * this delay value to roughly SIFS time period or greater.
8096 	 * u32 attribute.
8097 	 */
8098 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
8099 	/*
8100 	 * Number of strong bins (inclusive) per sub-channel, below
8101 	 * which a signal is declared a narrow band tone. u32 attribute.
8102 	 */
8103 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
8104 	/*
8105 	 * Specify the threshold over which a bin is declared strong (for
8106 	 * scan bandwidth analysis). u32 attribute.
8107 	 */
8108 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
8109 	/* Spectral scan report mode. u32 attribute. */
8110 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
8111 	/*
8112 	 * RSSI report mode, if the ADC RSSI is below
8113 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
8114 	 * then FFTs will not trigger, but timestamps and summaries get
8115 	 * reported. u32 attribute.
8116 	 */
8117 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
8118 	/*
8119 	 * ADC RSSI must be greater than or equal to this threshold (signed dB)
8120 	 * to ensure spectral scan reporting with normal error code.
8121 	 * u32 attribute.
8122 	 */
8123 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
8124 	/*
8125 	 * Format of frequency bin magnitude for spectral scan triggered FFTs:
8126 	 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
8127 	 * u32 attribute.
8128 	 */
8129 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
8130 	/*
8131 	 * Format of FFT report to software for spectral scan triggered FFTs.
8132 	 * 0: No FFT report (only spectral scan summary report)
8133 	 * 1: 2-dword summary of metrics for each completed FFT + spectral scan
8134 	 * report
8135 	 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
8136 	 * bins (in-band) per FFT + spectral scan summary report
8137 	 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
8138 	 * bins (all) per FFT + spectral scan summary report
8139 	 * u32 attribute.
8140 	 */
8141 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
8142 	/*
8143 	 * Number of LSBs to shift out in order to scale the FFT bins.
8144 	 * u32 attribute.
8145 	 */
8146 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
8147 	/*
8148 	 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
8149 	 * in dBm power. u32 attribute.
8150 	 */
8151 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
8152 	/*
8153 	 * Per chain enable mask to select input ADC for search FFT.
8154 	 * u32 attribute.
8155 	 */
8156 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
8157 	/*
8158 	 * An unsigned 64-bit integer provided by host driver to identify the
8159 	 * spectral scan request. This attribute is included in the scan
8160 	 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
8161 	 * and used as an attribute in
8162 	 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
8163 	 * specific scan to be stopped.
8164 	 */
8165 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
8166 	/* Skip interval for FFT reports. u32 attribute */
8167 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
8168 	/* Set to report only one set of FFT results.
8169 	 * u32 attribute.
8170 	 */
8171 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
8172 	/* Debug level for spectral module in driver.
8173 	 * 0 : Verbosity level 0
8174 	 * 1 : Verbosity level 1
8175 	 * 2 : Verbosity level 2
8176 	 * 3 : Matched filterID display
8177 	 * 4 : One time dump of FFT report
8178 	 * u32 attribute.
8179 	 */
8180 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
8181 	/* Type of spectral scan request. u32 attribute.
8182 	 * It uses values defined in enum
8183 	 * qca_wlan_vendor_attr_spectral_scan_request_type.
8184 	 */
8185 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
8186 	/* This specifies the frequency span over which spectral
8187 	 * scan would be carried out. Its value depends on the
8188 	 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
8189 	 * the relation is as follows.
8190 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8191 	 *    Not applicable. Spectral scan would happen in the
8192 	 *    operating span.
8193 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8194 	 *    Center frequency (in MHz) of the span of interest or
8195 	 *    for convenience, center frequency (in MHz) of any channel
8196 	 *    in the span of interest. For 80+80 MHz agile spectral scan
8197 	 *    request it represents center frequency (in MHz) of the primary
8198 	 *    80 MHz span or for convenience, center frequency (in MHz) of any
8199 	 *    channel in the primary 80 MHz span. If agile spectral scan is
8200 	 *    initiated without setting a valid frequency it returns the
8201 	 *    error code
8202 	 *    (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
8203 	 * u32 attribute.
8204 	 */
8205 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
8206 	/* Spectral scan mode. u32 attribute.
8207 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8208 	 * If this attribute is not present, it is assumed to be
8209 	 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
8210 	 */
8211 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
8212 	/* Spectral scan error code. u32 attribute.
8213 	 * It uses values defined in enum
8214 	 * qca_wlan_vendor_spectral_scan_error_code.
8215 	 * This attribute is included only in failure scenarios.
8216 	 */
8217 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
8218 	/* 8-bit unsigned value to enable/disable debug of the
8219 	 * Spectral DMA ring.
8220 	 * 1-enable, 0-disable
8221 	 */
8222 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
8223 	/* 8-bit unsigned value to enable/disable debug of the
8224 	 * Spectral DMA buffers.
8225 	 * 1-enable, 0-disable
8226 	 */
8227 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
8228 	/* This specifies the frequency span over which spectral scan would be
8229 	 * carried out. Its value depends on the value of
8230 	 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
8231 	 * follows.
8232 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
8233 	 *    Not applicable. Spectral scan would happen in the operating span.
8234 	 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
8235 	 *    This attribute is applicable only for agile spectral scan
8236 	 *    requests in 80+80 MHz mode. It represents center frequency (in
8237 	 *    MHz) of the secondary 80 MHz span or for convenience, center
8238 	 *    frequency (in MHz) of any channel in the secondary 80 MHz span.
8239 	 * u32 attribute.
8240 	 */
8241 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
8242 	/* This attribute specifies the bandwidth to be used for Spectral scan
8243 	 * operation. This is an u8 attribute and uses the values in enum
8244 	 * nl80211_chan_width.  This is an optional attribute.
8245 	 * If this attribute is not populated, the driver should configure the
8246 	 * Spectral scan bandwidth to the maximum value supported by the target
8247 	 * for the current operating bandwidth.
8248 	 */
8249 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
8250 	/* Spectral FFT recapture flag attribute, to enable/disable FFT
8251 	 * recapture. Recapture can only be enabled for Scan period greater
8252 	 * than 52us.
8253 	 * If this attribute is enabled, re-triggers will be enabled in uCode
8254 	 * when AGC gain changes.
8255 	 */
8256 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
8257 
8258 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
8259 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
8260 		QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
8261 };
8262 
8263 /**
8264  * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
8265  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
8266  */
8267 enum qca_wlan_vendor_attr_spectral_diag_stats {
8268 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
8269 	/* Number of spectral TLV signature mismatches.
8270 	 * u64 attribute.
8271 	 */
8272 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
8273 	/* Number of spectral phyerror events with insufficient length when
8274 	 * parsing for secondary 80 search FFT report. u64 attribute.
8275 	 */
8276 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
8277 	/* Number of spectral phyerror events without secondary 80
8278 	 * search FFT report. u64 attribute.
8279 	 */
8280 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
8281 	/* Number of spectral phyerror events with vht operation segment 1 id
8282 	 * mismatches in search fft report. u64 attribute.
8283 	 */
8284 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
8285 	/* Number of spectral phyerror events with vht operation segment 2 id
8286 	 * mismatches in search fft report. u64 attribute.
8287 	 */
8288 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
8289 
8290 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
8291 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
8292 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
8293 };
8294 
8295 /**
8296  * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
8297  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
8298  */
8299 enum qca_wlan_vendor_attr_spectral_cap {
8300 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
8301 	/* Flag attribute to indicate phydiag capability */
8302 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
8303 	/* Flag attribute to indicate radar detection capability */
8304 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
8305 	/* Flag attribute to indicate spectral capability */
8306 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
8307 	/* Flag attribute to indicate advanced spectral capability */
8308 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
8309 	/* Spectral hardware generation. u32 attribute.
8310 	 * It uses values defined in enum
8311 	 * qca_wlan_vendor_spectral_scan_cap_hw_gen.
8312 	 */
8313 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
8314 	/* Spectral bin scaling formula ID. u16 attribute.
8315 	 * It uses values defined in enum
8316 	 * qca_wlan_vendor_spectral_scan_cap_formula_id.
8317 	 */
8318 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
8319 	/* Spectral bin scaling param - low level offset.
8320 	 * s16 attribute.
8321 	 */
8322 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
8323 	/* Spectral bin scaling param - high level offset.
8324 	 * s16 attribute.
8325 	 */
8326 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
8327 	/* Spectral bin scaling param - RSSI threshold.
8328 	 * s16 attribute.
8329 	 */
8330 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
8331 	/* Spectral bin scaling param - default AGC max gain.
8332 	 * u8 attribute.
8333 	 */
8334 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
8335 	/* Flag attribute to indicate agile spectral scan capability
8336 	 * for 20/40/80 MHz modes.
8337 	 */
8338 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
8339 	/* Flag attribute to indicate agile spectral scan capability
8340 	 * for 160 MHz mode.
8341 	 */
8342 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
8343 	/* Flag attribute to indicate agile spectral scan capability
8344 	 * for 80+80 MHz mode.
8345 	 */
8346 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
8347 	/* Number of spectral detectors used for scan in 20 MHz.
8348 	 * u32 attribute.
8349 	 */
8350 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
8351 	/* Number of spectral detectors used for scan in 40 MHz.
8352 	 * u32 attribute.
8353 	 */
8354 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
8355 	/* Number of spectral detectors used for scan in 80 MHz.
8356 	 * u32 attribute.
8357 	 */
8358 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
8359 	/* Number of spectral detectors used for scan in 160 MHz.
8360 	 * u32 attribute.
8361 	 */
8362 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
8363 	/* Number of spectral detectors used for scan in 80+80 MHz.
8364 	 * u32 attribute.
8365 	 */
8366 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
8367 	/* Flag attribute to indicate agile spectral scan capability
8368 	 * for 320 MHz mode.
8369 	 */
8370 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
8371 	/* Number of spectral detectors used for scan in 320 MHz.
8372 	 * u32 attribute.
8373 	 */
8374 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
8375 
8376 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
8377 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
8378 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
8379 };
8380 
8381 /**
8382  * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
8383  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
8384  */
8385 enum qca_wlan_vendor_attr_spectral_scan_status {
8386 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
8387 	/* Flag attribute to indicate whether spectral scan is enabled */
8388 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
8389 	/* Flag attribute to indicate whether spectral scan is in progress*/
8390 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
8391 	/* Spectral scan mode. u32 attribute.
8392 	 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
8393 	 * If this attribute is not present, normal mode
8394 	 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
8395 	 * requested.
8396 	 */
8397 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
8398 
8399 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
8400 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
8401 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
8402 };
8403 
8404 /**
8405  * enum qca_wlan_vendor_attr_config_latency_level - Level for
8406  * wlan latency module.
8407  *
8408  * There will be various of Wi-Fi functionality like scan/roaming/adaptive
8409  * power saving which would causing data exchange out of service, this
8410  * would be a big impact on latency. For latency sensitive applications over
8411  * Wi-Fi are intolerant to such operations and thus would configure them
8412  * to meet their respective needs. It is well understood by such applications
8413  * that altering the default behavior would degrade the Wi-Fi functionality
8414  * w.r.t the above pointed WLAN operations.
8415  *
8416  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
8417  *      Default WLAN operation level which throughput orientated.
8418  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
8419  *      Use XR level to benefit XR (extended reality) application to achieve
8420  *      latency and power by via constraint scan/roaming/adaptive PS.
8421  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
8422  *      Use low latency level to benefit application like concurrent
8423  *      downloading or video streaming via constraint scan/adaptive PS.
8424  * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
8425  *      Use ultra low latency level to benefit for gaming/voice
8426  *      application via constraint scan/roaming/adaptive PS.
8427  */
8428 enum qca_wlan_vendor_attr_config_latency_level {
8429 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
8430 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
8431 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
8432 	/* legacy name */
8433 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
8434 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
8435 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
8436 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
8437 
8438 	/* keep last */
8439 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
8440 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
8441 	QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
8442 };
8443 
8444 /**
8445  * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
8446  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
8447  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
8448  * spectral scan request types.
8449  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
8450  * set the spectral parameters and start scan.
8451  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
8452  * only set the spectral parameters.
8453  * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
8454  * only start the spectral scan.
8455  */
8456 enum qca_wlan_vendor_attr_spectral_scan_request_type {
8457 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
8458 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
8459 	QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
8460 };
8461 
8462 /**
8463  * qca_wlan_vendor_spectral_scan_mode: Attribute values for
8464  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
8465  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
8466  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
8467  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
8468  * spectral scan modes.
8469  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
8470  * spectral scan in the current operating span.
8471  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
8472  * spectral scan in the configured agile span.
8473  */
8474 enum qca_wlan_vendor_spectral_scan_mode {
8475 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
8476 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
8477 };
8478 
8479 /**
8480  * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
8481  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
8482  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
8483  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
8484  * of a parameter is not supported.
8485  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
8486  * mode is not supported.
8487  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
8488  * has invalid value.
8489  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
8490  * is not initialized.
8491  */
8492 enum qca_wlan_vendor_spectral_scan_error_code {
8493 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
8494 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
8495 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
8496 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
8497 };
8498 
8499 /**
8500  * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
8501  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
8502  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8503  * spectral hardware generation.
8504  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
8505  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
8506  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
8507  */
8508 enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
8509 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
8510 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
8511 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
8512 };
8513 
8514 /**
8515  * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
8516  * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
8517  * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
8518  * Spectral bin scaling formula ID.
8519  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
8520  * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
8521  * and RSSI threshold based formula.
8522  */
8523 enum qca_wlan_vendor_spectral_scan_cap_formula_id {
8524 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
8525 	QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
8526 };
8527 
8528 /**
8529  * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
8530  * RF Operating Parameter (RROP) information is available, and if so, at which
8531  * point in the application-driver interaction sequence it can be retrieved by
8532  * the application from the driver. This point may vary by architecture and
8533  * other factors. This is a u16 value.
8534  */
8535 enum qca_wlan_vendor_attr_rropavail_info {
8536 	/* RROP information is unavailable. */
8537 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
8538 	/* RROP information is available and the application can retrieve the
8539 	 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
8540 	 * event from the driver.
8541 	 */
8542 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
8543 	/* RROP information is available only after a vendor specific scan
8544 	 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
8545 	 * successfully completed. The application can retrieve the information
8546 	 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
8547 	 * the driver.
8548 	 */
8549 	QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
8550 };
8551 
8552 /**
8553  * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
8554  * Representative RF Operating Parameter (RROP) information. It is sent for the
8555  * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
8556  * intended for use by external Auto Channel Selection applications. It provides
8557  * guidance values for some RF parameters that are used by the system during
8558  * operation. These values could vary by channel, band, radio, and so on.
8559  */
8560 enum qca_wlan_vendor_attr_rrop_info {
8561 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
8562 
8563 	/* Representative Tx Power List (RTPL) which has an array of nested
8564 	 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
8565 	 */
8566 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
8567 
8568 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
8569 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
8570 	QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
8571 };
8572 
8573 /**
8574  * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
8575  * entry instances in the Representative Tx Power List (RTPL). It provides
8576  * simplified power values intended for helping external Auto channel Selection
8577  * applications compare potential Tx power performance between channels, other
8578  * operating conditions remaining identical. These values are not necessarily
8579  * the actual Tx power values that will be used by the system. They are also not
8580  * necessarily the max or average values that will be used. Instead, they are
8581  * relative, summarized keys for algorithmic use computed by the driver or
8582  * underlying firmware considering a number of vendor specific factors.
8583  */
8584 enum qca_wlan_vendor_attr_rtplinst {
8585 	QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
8586 
8587 	/* Primary channel number (u8).
8588 	 * Note: If both the driver and user space application support the
8589 	 * 6 GHz band, this attribute is deprecated and
8590 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
8591 	 * maintain backward compatibility,
8592 	 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
8593 	 * driver or user space application or both do not support the 6 GHz
8594 	 * band.
8595 	 */
8596 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
8597 	/* Representative Tx power in dBm (s32) with emphasis on throughput. */
8598 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
8599 	/* Representative Tx power in dBm (s32) with emphasis on range. */
8600 	QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
8601 	/* Primary channel center frequency (u32) in MHz */
8602 	QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
8603 
8604 	QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
8605 	QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
8606 		QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
8607 };
8608 
8609 /**
8610  * enum qca_wlan_vendor_attr_mac - Used by the vendor command
8611  * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8612  *
8613  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
8614  *  array of nested values as per attributes in
8615  *  enum qca_wlan_vendor_attr_mac_mode_info.
8616  */
8617 enum qca_wlan_vendor_attr_mac {
8618 	QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
8619 	QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
8620 
8621 	/* keep last */
8622 	QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
8623 	QCA_WLAN_VENDOR_ATTR_MAC_MAX =
8624 		QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
8625 };
8626 
8627 /**
8628  * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
8629  * WiFi netdev interface on a respective MAC. Used by the attribute
8630  * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
8631  *
8632  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
8633  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
8634  *  the connected Wi-Fi interface(u32).
8635  */
8636 enum qca_wlan_vendor_attr_mac_iface_info {
8637 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
8638 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
8639 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
8640 
8641 	/* keep last */
8642 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
8643 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
8644 		QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
8645 };
8646 
8647 /**
8648  * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
8649  *  Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
8650  *  vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
8651  *
8652  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
8653  *  MAC (u32)
8654  * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
8655  *  at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
8656  *  in enum nl80211_band.
8657  * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
8658  * interfaces associated with this MAC. Represented by enum
8659  * qca_wlan_vendor_attr_mac_iface_info.
8660  */
8661 enum qca_wlan_vendor_attr_mac_info {
8662 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
8663 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
8664 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
8665 	QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
8666 
8667 	/* keep last */
8668 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
8669 	QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
8670 		QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
8671 
8672 };
8673 
8674 /**
8675  * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
8676  * to get thermal status from driver/firmware.
8677  * enum values are used for NL attributes encapsulated inside
8678  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
8679  *
8680  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
8681  * of a thermal level in Celsius. u32 size.
8682  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
8683  * of a thermal level in Celsius. u32 size.
8684  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
8685  * thermal level in milliseconds. u32 size.
8686  * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
8687  * of times the temperature crossed into the temperature range defined by the
8688  * thermal level from both higher and lower directions. u32 size.
8689  */
8690 enum qca_wlan_vendor_attr_thermal_stats {
8691 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
8692 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
8693 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
8694 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
8695 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
8696 
8697 	/* keep last */
8698 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
8699 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
8700 	QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
8701 };
8702 
8703 /**
8704  * enum he_fragmentation_val - HE fragmentation support values
8705  * Indicates level of dynamic fragmentation that is supported by
8706  * a STA as a recipient.
8707  * HE fragmentation values are defined as per 11ax spec and are used in
8708  * HE capability IE to advertise the support. These values are validated
8709  * in the driver to check the device capability and advertised in the HE
8710  * capability element.
8711  *
8712  * @HE_FRAG_DISABLE: no support for dynamic fragmentation
8713  * @HE_FRAG_LEVEL1: support for dynamic fragments that are
8714  *	contained within an MPDU or S-MPDU, no support for dynamic fragments
8715  *	within an A-MPDU that is not an S-MPDU.
8716  * @HE_FRAG_LEVEL2: support for dynamic fragments that are
8717  *	contained within an MPDU or S-MPDU and support for up to one dynamic
8718  *	fragment for each MSDU, each A-MSDU if supported by the recipient, and
8719  *	each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
8720  *	MPDU or S-MPDU.
8721  * @HE_FRAG_LEVEL3: support for dynamic fragments that are
8722  *	contained within an MPDU or S-MPDU and support for multiple dynamic
8723  *	fragments for each MSDU and for each A-MSDU if supported by the
8724  *	recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
8725  *	fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
8726  */
8727 enum he_fragmentation_val {
8728 	HE_FRAG_DISABLE,
8729 	HE_FRAG_LEVEL1,
8730 	HE_FRAG_LEVEL2,
8731 	HE_FRAG_LEVEL3,
8732 };
8733 
8734 /**
8735  * enum he_mcs_config - HE MCS support configuration
8736  *
8737  * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
8738  * These values are used in driver to configure the HE MCS map to advertise
8739  * Tx/Rx MCS map in HE capability and these values are applied for all the
8740  * streams supported by the device. To configure MCS for different bandwidths,
8741  * vendor command needs to be sent using this attribute with appropriate value.
8742  * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
8743  * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
8744  * for HE_160_MCS0_11 send this command using HE MCS config attribute with
8745  * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
8746  *
8747  * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
8748  * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
8749  * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
8750  * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
8751  * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
8752  * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
8753  * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
8754  * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
8755  * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
8756  */
8757 enum he_mcs_config {
8758 	HE_80_MCS0_7 = 0,
8759 	HE_80_MCS0_9 = 1,
8760 	HE_80_MCS0_11 = 2,
8761 	HE_160_MCS0_7 = 4,
8762 	HE_160_MCS0_9 = 5,
8763 	HE_160_MCS0_11 = 6,
8764 	HE_80p80_MCS0_7 = 8,
8765 	HE_80p80_MCS0_9 = 9,
8766 	HE_80p80_MCS0_11 = 10,
8767 };
8768 
8769 /**
8770  * enum qca_wlan_ba_session_config - BA session configuration
8771  *
8772  * Indicates the configuration values for BA session configuration attribute.
8773  *
8774  * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
8775  * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
8776  */
8777 enum qca_wlan_ba_session_config {
8778 	QCA_WLAN_ADD_BA = 1,
8779 	QCA_WLAN_DELETE_BA = 2,
8780 };
8781 
8782 /**
8783  * enum qca_wlan_ac_type - access category type
8784  *
8785  * Indicates the access category type value.
8786  *
8787  * @QCA_WLAN_AC_BE: BE access category
8788  * @QCA_WLAN_AC_BK: BK access category
8789  * @QCA_WLAN_AC_VI: VI access category
8790  * @QCA_WLAN_AC_VO: VO access category
8791  * @QCA_WLAN_AC_ALL: All ACs
8792  */
8793 enum qca_wlan_ac_type {
8794 	QCA_WLAN_AC_BE = 0,
8795 	QCA_WLAN_AC_BK = 1,
8796 	QCA_WLAN_AC_VI = 2,
8797 	QCA_WLAN_AC_VO = 3,
8798 	QCA_WLAN_AC_ALL = 4,
8799 };
8800 
8801 /**
8802  * enum qca_wlan_he_ltf_cfg - HE LTF configuration
8803  *
8804  * Indicates the HE LTF configuration value.
8805  *
8806  * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
8807  * the mandatory HE-LTF based on the GI setting
8808  * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
8809  * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
8810  * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
8811  */
8812 enum qca_wlan_he_ltf_cfg {
8813 	QCA_WLAN_HE_LTF_AUTO = 0,
8814 	QCA_WLAN_HE_LTF_1X = 1,
8815 	QCA_WLAN_HE_LTF_2X = 2,
8816 	QCA_WLAN_HE_LTF_4X = 3,
8817 };
8818 
8819 /**
8820  * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
8821  *
8822  * Indicates the HE trigger frame MAC padding duration value.
8823  *
8824  * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
8825  * process the trigger frame.
8826  * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
8827  * trigger frame.
8828  * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
8829  * trigger frame.
8830  */
8831 enum qca_wlan_he_mac_padding_dur {
8832 	QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
8833 	QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
8834 	QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
8835 };
8836 
8837 /**
8838  * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
8839  *
8840  * Indicates the HE Operating mode control channel width setting value.
8841  *
8842  * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
8843  * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
8844  * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
8845  * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
8846  */
8847 enum qca_wlan_he_om_ctrl_ch_bw {
8848 	QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
8849 	QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
8850 	QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
8851 	QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
8852 };
8853 
8854 /**
8855  * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
8856  *
8857  * Indicates the frame types to use for keep alive data.
8858  *
8859  * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
8860  * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
8861  * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
8862  */
8863 enum qca_wlan_keep_alive_data_type {
8864 	QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
8865 	QCA_WLAN_KEEP_ALIVE_DATA = 1,
8866 	QCA_WLAN_KEEP_ALIVE_MGMT = 2,
8867 };
8868 
8869 /**
8870  * enum eht_mcs_config - EHT MCS support configuration
8871  *
8872  * Configures the EHT Tx/Rx MCS map in EHT Capability element.
8873  * These values are used in the driver to configure the EHT MCS map to advertise
8874  * Tx/Rx MCS map in EHT capability and these values are applied for all the
8875  * streams supported by the device.
8876  * @EHT_MCS0_7: EHT MCS 0 to 7 support
8877  * @EHT_MCS0_9: EHT MCS 0 to 9 support
8878  * @EHT_MCS0_11: EHT MCS 0 to 11 support
8879  * @EHT_MCS0_13: EHT MCS 0 to 13 support
8880  */
8881 enum eht_mcs_config {
8882 	EHT_MCS0_7 = 0,
8883 	EHT_MCS0_9 = 1,
8884 	EHT_MCS0_11 = 2,
8885 	EHT_MCS0_13 = 3,
8886 };
8887 
8888 /**
8889  * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
8890  * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
8891  * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
8892  * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
8893  * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
8894  * multi-link multi radio mode.
8895  * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
8896  * multi-link multi radio mode.
8897  */
8898 enum qca_wlan_eht_mlo_mode {
8899 	QCA_WLAN_EHT_MODE_INVALID = 0,
8900 	QCA_WLAN_EHT_MLSR = 1,
8901 	QCA_WLAN_EHT_EMLSR = 2,
8902 	QCA_WLAN_EHT_NON_STR_MLMR = 3,
8903 	QCA_WLAN_EHT_STR_MLMR = 4,
8904 };
8905 
8906 /**
8907  * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
8908  * HE operating mode control transmit request. These attributes are
8909  * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
8910  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
8911  *
8912  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
8913  * indicates the maximum number of spatial streams, NSS, that the STA
8914  * supports in reception for PPDU bandwidths less than or equal to 80 MHz
8915  * and is set to NSS - 1.
8916  *
8917  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
8918  * indicates the operating channel width supported by the STA for both
8919  * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
8920  *
8921  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
8922  * indicates the all trigger based UL MU operations by the STA.
8923  * 0 - UL MU operations are enabled by the STA.
8924  * 1 - All triggered UL MU transmissions are suspended by the STA.
8925  *
8926  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
8927  * indicates the maximum number of space-time streams, NSTS, that
8928  * the STA supports in transmission and is set to NSTS - 1.
8929  *
8930  * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
8931  * combined with the UL MU Disable subfield and the recipient's setting
8932  * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
8933  * capabilities to determine which HE TB PPDUs are possible by the
8934  * STA to transmit.
8935  * 0 - UL MU data operations are enabled by the STA.
8936  * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
8937  * bit is not set, else UL MU Tx is suspended.
8938  *
8939  */
8940 enum qca_wlan_vendor_attr_he_omi_tx {
8941 	QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
8942 	QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
8943 	QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
8944 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
8945 	QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
8946 	QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
8947 
8948 	/* keep last */
8949 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
8950 	QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
8951 	QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
8952 };
8953 
8954 /**
8955  * enum qca_wlan_vendor_phy_mode - Different PHY modes
8956  * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
8957  *
8958  * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
8959  * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
8960  * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
8961  * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
8962  * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
8963  * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
8964  * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
8965  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
8966  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
8967  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
8968  * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
8969  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
8970  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
8971  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
8972  * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
8973  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
8974  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
8975  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
8976  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
8977  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
8978  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
8979  * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
8980  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
8981  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
8982  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
8983  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
8984  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
8985  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
8986  * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
8987  */
8988 enum qca_wlan_vendor_phy_mode {
8989 	QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
8990 	QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
8991 	QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
8992 	QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
8993 	QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
8994 	QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
8995 	QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
8996 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
8997 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
8998 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
8999 	QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
9000 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
9001 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
9002 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
9003 	QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
9004 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
9005 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
9006 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
9007 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
9008 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
9009 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
9010 	QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
9011 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
9012 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
9013 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
9014 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
9015 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
9016 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
9017 	QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
9018 };
9019 
9020 /* Attributes for data used by
9021  * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
9022  */
9023 enum qca_wlan_vendor_attr_wifi_test_config {
9024 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
9025 	/* 8-bit unsigned value to configure the driver to enable/disable
9026 	 * WMM feature. This attribute is used to configure testbed device.
9027 	 * 1-enable, 0-disable
9028 	 */
9029 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
9030 
9031 	/* 8-bit unsigned value to configure the driver to accept/reject
9032 	 * the addba request from peer. This attribute is used to configure
9033 	 * the testbed device.
9034 	 * 1-accept addba, 0-reject addba
9035 	 */
9036 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
9037 
9038 	/* 8-bit unsigned value to configure the driver to send or not to
9039 	 * send the addba request to peer.
9040 	 * This attribute is used to configure the testbed device.
9041 	 * 1-send addba, 0-do not send addba
9042 	 */
9043 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
9044 
9045 	/* 8-bit unsigned value to indicate the HE fragmentation support.
9046 	 * Uses enum he_fragmentation_val values.
9047 	 * This attribute is used to configure the testbed device to
9048 	 * allow the advertised hardware capabilities to be downgraded
9049 	 * for testing purposes.
9050 	 */
9051 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
9052 
9053 	/* 8-bit unsigned value to indicate the HE MCS support.
9054 	 * Uses enum he_mcs_config values.
9055 	 * This attribute is used to configure the testbed device to
9056 	 * allow the advertised hardware capabilities to be downgraded
9057 	 * for testing purposes.
9058 	 */
9059 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
9060 
9061 	/* 8-bit unsigned value to configure the driver to allow or not to
9062 	 * allow the connection with WEP/TKIP in HT/VHT/HE modes.
9063 	 * This attribute is used to configure the testbed device.
9064 	 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
9065 	 */
9066 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
9067 
9068 	/* 8-bit unsigned value to configure the driver to add a
9069 	 * new BA session or delete the existing BA session for
9070 	 * given TID. ADDBA command uses the buffer size and tid
9071 	 * configuration if user specifies the values else default
9072 	 * value for buffer size is used for all tids if the tid
9073 	 * also not specified. For DEL_BA command TID value is
9074 	 * required to process the command.
9075 	 * Uses enum qca_wlan_ba_session_config values.
9076 	 * This attribute is used to configure the testbed device.
9077 	 */
9078 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
9079 
9080 	/* 16-bit unsigned value to configure the buffer size in addba
9081 	 * request and response frames.
9082 	 * This attribute is used to configure the testbed device.
9083 	 * The range of the value is 0 to 256.
9084 	 */
9085 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
9086 
9087 	/* 8-bit unsigned value to configure the buffer size in addba
9088 	 * request and response frames.
9089 	 * This attribute is used to configure the testbed device.
9090 	 */
9091 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
9092 
9093 	/* 8-bit unsigned value to configure the no ack policy.
9094 	 * To configure no ack policy, access category value
9095 	 * is required to process the command.
9096 	 * This attribute is used to configure the testbed device.
9097 	 * 1 - enable no ack, 0 - disable no ack
9098 	 */
9099 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
9100 
9101 	/* 8-bit unsigned value to configure the AC for no ack policy
9102 	 * This attribute is used to configure the testbed device.
9103 	 * uses the enum qca_wlan_ac_type values
9104 	 */
9105 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
9106 
9107 	/* 8-bit unsigned value to configure the HE LTF
9108 	 * This attribute is used to configure the testbed device.
9109 	 * Uses the enum qca_wlan_he_ltf_cfg values.
9110 	 */
9111 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
9112 
9113 	/* 8-bit unsigned value to configure the tx beamformee.
9114 	 * This attribute is used to configure the testbed device.
9115 	 * 1 - enable, 0 - disable.
9116 	 */
9117 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
9118 
9119 	/* 8-bit unsigned value to configure the tx beamformee number of
9120 	 * space-time streams.
9121 	 * This attribute is used to configure the testbed device.
9122 	 * The range of the value is 0 to 8
9123 	 */
9124 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
9125 
9126 	/* 8-bit unsigned value to configure the MU EDCA params for given AC
9127 	 * This attribute is used to configure the testbed device.
9128 	 * Uses the enum qca_wlan_ac_type values.
9129 	 */
9130 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
9131 
9132 	/* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
9133 	 * To configure MU EDCA AIFSN value, MU EDCA access category value
9134 	 * is required to process the command.
9135 	 * This attribute is used to configure the testbed device.
9136 	 */
9137 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
9138 
9139 	/* 8-bit unsigned value to configure the MU EDCA ECW min value for
9140 	 * given AC.
9141 	 * To configure MU EDCA ECW min value, MU EDCA access category value
9142 	 * is required to process the command.
9143 	 * This attribute is used to configure the testbed device.
9144 	 */
9145 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
9146 
9147 	/* 8-bit unsigned value to configure the MU EDCA ECW max value for
9148 	 * given AC.
9149 	 * To configure MU EDCA ECW max value, MU EDCA access category value
9150 	 * is required to process the command.
9151 	 * This attribute is used to configure the testbed device.
9152 	 */
9153 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
9154 
9155 	/* 8-bit unsigned value to configure the MU EDCA timer for given AC
9156 	 * To configure MU EDCA timer value, MU EDCA access category value
9157 	 * is required to process the command.
9158 	 * This attribute is used to configure the testbed device.
9159 	 */
9160 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
9161 
9162 	/* 8-bit unsigned value to configure the HE trigger frame MAC padding
9163 	 * duration.
9164 	 * This attribute is used to configure the testbed device.
9165 	 * Uses the enum qca_wlan_he_mac_padding_dur values.
9166 	 */
9167 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
9168 
9169 	/* 8-bit unsigned value to override the MU EDCA params to defaults
9170 	 * regardless of the AP beacon MU EDCA params. If it is enabled use
9171 	 * the default values else use the MU EDCA params from AP beacon.
9172 	 * This attribute is used to configure the testbed device.
9173 	 * 1 - enable override, 0 - disable.
9174 	 */
9175 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
9176 
9177 	/* 8-bit unsigned value to configure the support for receiving
9178 	 * an MPDU that contains an operating mode control subfield.
9179 	 * This attribute is used to configure the testbed device.
9180 	 * 1-enable, 0-disable.
9181 	 */
9182 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
9183 
9184 	/* Nested attribute values required to setup the TWT session.
9185 	 * enum qca_wlan_vendor_attr_twt_setup provides the necessary
9186 	 * information to set up the session. It contains broadcast flags,
9187 	 * set_up flags, trigger value, flow type, flow ID, wake interval
9188 	 * exponent, protection, target wake time, wake duration, wake interval
9189 	 * mantissa. These nested attributes are used to setup a host triggered
9190 	 * TWT session.
9191 	 */
9192 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
9193 
9194 	/* This nested attribute is used to terminate the current TWT session.
9195 	 * It does not currently carry any attributes.
9196 	 */
9197 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
9198 
9199 	/* This nested attribute is used to suspend the current TWT session.
9200 	 * It does not currently carry any attributes.
9201 	 */
9202 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
9203 
9204 	/* Nested attribute values to indicate the request for resume.
9205 	 * This attribute is used to resume the TWT session.
9206 	 * enum qca_wlan_vendor_attr_twt_resume provides the necessary
9207 	 * parameters required to resume the TWT session.
9208 	 */
9209 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
9210 
9211 	/* 8-bit unsigned value to set the HE operating mode control
9212 	 * (OM CTRL) Channel Width subfield.
9213 	 * The Channel Width subfield indicates the operating channel width
9214 	 * supported by the STA for both reception and transmission.
9215 	 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
9216 	 * This setting is cleared with the
9217 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9218 	 * flag attribute to reset defaults.
9219 	 * This attribute is used to configure the testbed device.
9220 	 */
9221 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
9222 
9223 	/* 8-bit unsigned value to configure the number of spatial
9224 	 * streams in HE operating mode control field.
9225 	 * This setting is cleared with the
9226 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9227 	 * flag attribute to reset defaults.
9228 	 * This attribute is used to configure the testbed device.
9229 	 */
9230 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
9231 
9232 	/* Flag attribute to configure the UL MU disable bit in
9233 	 * HE operating mode control field.
9234 	 * This setting is cleared with the
9235 	 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
9236 	 * flag attribute to reset defaults.
9237 	 * This attribute is used to configure the testbed device.
9238 	 */
9239 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
9240 
9241 	/* Flag attribute to clear the previously set HE operating mode
9242 	 * control field configuration.
9243 	 * This attribute is used to configure the testbed device to reset
9244 	 * defaults to clear any previously set HE operating mode control
9245 	 * field configuration.
9246 	 */
9247 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
9248 
9249 	/* 8-bit unsigned value to configure HE single user PPDU
9250 	 * transmission. By default this setting is disabled and it
9251 	 * is disabled in the reset defaults of the device configuration.
9252 	 * This attribute is used to configure the testbed device.
9253 	 * 1-enable, 0-disable
9254 	 */
9255 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
9256 
9257 	/* 8-bit unsigned value to configure action frame transmission
9258 	 * in HE trigger based PPDU transmission.
9259 	 * By default this setting is disabled and it is disabled in
9260 	 * the reset defaults of the device configuration.
9261 	 * This attribute is used to configure the testbed device.
9262 	 * 1-enable, 0-disable
9263 	 */
9264 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
9265 
9266 	/* Nested attribute to indicate HE operating mode control field
9267 	 * transmission. It contains operating mode control field Nss,
9268 	 * channel bandwidth, Tx Nsts and UL MU disable attributes.
9269 	 * These nested attributes are used to send HE operating mode control
9270 	 * with configured values.
9271 	 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
9272 	 * This attribute is used to configure the testbed device.
9273 	 */
9274 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
9275 
9276 	/* 8-bit unsigned value to configure +HTC_HE support to indicate the
9277 	 * support for the reception of a frame that carries an HE variant
9278 	 * HT Control field.
9279 	 * This attribute is used to configure the testbed device.
9280 	 * 1-enable, 0-disable
9281 	 */
9282 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
9283 
9284 	/* 8-bit unsigned value to configure VHT support in 2.4G band.
9285 	 * This attribute is used to configure the testbed device.
9286 	 * 1-enable, 0-disable
9287 	 */
9288 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
9289 
9290 	/* 8-bit unsigned value to configure HE testbed defaults.
9291 	 * This attribute is used to configure the testbed device.
9292 	 * 1-set the device HE capabilities to testbed defaults.
9293 	 * 0-reset the device HE capabilities to supported config.
9294 	 */
9295 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
9296 
9297 	/* 8-bit unsigned value to configure twt request support.
9298 	 * This attribute is used to configure the testbed device.
9299 	 * 1-enable, 0-disable.
9300 	 */
9301 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
9302 
9303 	/* 8-bit unsigned value to configure protection for Management
9304 	 * frames when PMF is enabled for the association.
9305 	 * This attribute is used to configure the testbed device.
9306 	 * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
9307 	 */
9308 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
9309 
9310 	/* Flag attribute to inject Disassociation frame to the connected AP.
9311 	 * This attribute is used to configure the testbed device.
9312 	 */
9313 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
9314 
9315 	/* 8-bit unsigned value to configure an override for the RSNXE Used
9316 	 * subfield in the MIC control field of the FTE in FT Reassociation
9317 	 * Request frame.
9318 	 * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
9319 	 * This attribute is used to configure the testbed device.
9320 	 * This attribute can be configured when STA is in disconnected or
9321 	 * associated state and the configuration is valid until the next
9322 	 * disconnection.
9323 	 */
9324 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
9325 
9326 	/* 8-bit unsigned value to configure the driver to ignore CSA (Channel
9327 	 * Switch Announcement) when STA is in connected state.
9328 	 * 0 - Default behavior, 1 - Ignore CSA.
9329 	 * This attribute is used to configure the testbed device.
9330 	 * This attribute can be configured when STA is in disconnected or
9331 	 * associated state and the configuration is valid until the next
9332 	 * disconnection.
9333 	 */
9334 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
9335 
9336 	/* Nested attribute values required to configure OCI (Operating Channel
9337 	 * Information). Attributes defined in enum
9338 	 * qca_wlan_vendor_attr_oci_override are nested within this attribute.
9339 	 * This attribute is used to configure the testbed device.
9340 	 * This attribute can be configured when STA is in disconnected or
9341 	 * associated state and the configuration is valid until the next
9342 	 * disconnection.
9343 	 */
9344 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
9345 
9346 	/* 8-bit unsigned value to configure the driver/firmware to ignore SA
9347 	 * Query timeout. If this configuration is enabled STA shall not send
9348 	 * Deauthentication frmae when SA Query times out (mainly, after a
9349 	 * channel switch when OCV is enabled).
9350 	 * 0 - Default behavior, 1 - Ignore SA Query timeout.
9351 	 * This attribute is used to configure the testbed device.
9352 	 * This attribute can be configured only when STA is in associated state
9353 	 * and the configuration is valid until the disconnection.
9354 	 */
9355 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
9356 
9357 	/* 8-bit unsigned value to configure the driver/firmware to start or
9358 	 * stop transmitting FILS discovery frames.
9359 	 * 0 - Stop transmitting FILS discovery frames
9360 	 * 1 - Start transmitting FILS discovery frames
9361 	 * This attribute is used to configure the testbed device.
9362 	 * This attribute can be configured only in AP mode and the
9363 	 * configuration is valid until AP restart.
9364 	 */
9365 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
9366 
9367 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9368 	 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
9369 	 * information field.
9370 	 * 0 - Disable full bandwidth UL MU-MIMO subfield
9371 	 * 1 - Enable full bandwidth UL MU-MIMO subfield
9372 	 * This attribute is used to configure the testbed device.
9373 	 */
9374 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
9375 
9376 	/* 16-bit unsigned value to configure the driver with a specific BSS
9377 	 * max idle period to advertise in the BSS Max Idle Period element
9378 	 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
9379 	 * This attribute is used to configure the testbed device.
9380 	 */
9381 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
9382 
9383 	/* 8-bit unsigned value to configure the driver to use only RU 242 tone
9384 	 * for data transmission.
9385 	 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
9386 	 * This attribute is used to configure the testbed device.
9387 	 */
9388 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
9389 
9390 	/* 8-bit unsigned value to configure the driver to disable data and
9391 	 * management response frame transmission to test the BSS max idle
9392 	 * feature.
9393 	 * 0 - Default behavior, 1 - Disable data and management response Tx.
9394 	 * This attribute is used to configure the testbed device.
9395 	 */
9396 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
9397 
9398 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9399 	 * disable Punctured Preamble Rx subfield in the HE PHY capabilities
9400 	 * information field.
9401 	 * 0 - Disable Punctured Preamble Rx subfield
9402 	 * 1 - Enable Punctured Preamble Rx subfield
9403 	 * This attribute is used to configure the testbed device.
9404 	 */
9405 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
9406 
9407 	/* 8-bit unsigned value to configure the driver to ignore the SAE H2E
9408 	 * requirement mismatch for 6 GHz connection.
9409 	 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
9410 	 * This attribute is used to configure the testbed device.
9411 	 */
9412 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
9413 
9414 	/* 8-bit unsigned value to configure the driver to allow 6 GHz
9415 	 * connection with all security modes.
9416 	 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
9417 	 * modes.
9418 	 * This attribute is used for testing purposes.
9419 	 */
9420 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
9421 
9422 	/* 8-bit unsigned value to configure the driver to transmit data with
9423 	 * ER SU PPDU type.
9424 	 *
9425 	 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
9426 	 * This attribute is used for testing purposes.
9427 	 */
9428 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
9429 
9430 	/* 8-bit unsigned value to configure the driver to use Data or
9431 	 * Management frame type for keep alive data.
9432 	 * Uses enum qca_wlan_keep_alive_data_type values.
9433 	 *
9434 	 * This attribute is used for testing purposes.
9435 	 */
9436 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
9437 
9438 	/* 8-bit unsigned value to configure the driver to use scan request
9439 	 * BSSID value in Probe Request frame RA(A1) during the scan. The
9440 	 * driver saves this configuration and applies this setting to all user
9441 	 * space scan requests until the setting is cleared. If this
9442 	 * configuration is set, the driver uses the BSSID value from the scan
9443 	 * request to set the RA(A1) in the Probe Request frames during the
9444 	 * scan.
9445 	 *
9446 	 * 0 - Default behavior uses the broadcast RA in Probe Request frames.
9447 	 * 1 - Uses the scan request BSSID in RA in Probe Request frames.
9448 	 * This attribute is used for testing purposes.
9449 	 */
9450 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
9451 
9452 	/* 8-bit unsigned value to configure the driver to enable/disable the
9453 	 * BSS max idle period support.
9454 	 *
9455 	 * 0 - Disable the BSS max idle support.
9456 	 * 1 - Enable the BSS max idle support.
9457 	 * This attribute is used for testing purposes.
9458 	 */
9459 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
9460 
9461 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9462 	 * disable Rx control frame to MultiBSS subfield in the HE MAC
9463 	 * capabilities information field.
9464 	 * 0 - Disable Rx control frame to MultiBSS subfield
9465 	 * 1 - Enable Rx control frame to MultiBSS subfield
9466 	 * This attribute is used to configure the testbed device.
9467 	 */
9468 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
9469 
9470 	/* 8-bit unsigned value to configure the driver/firmware to enable or
9471 	 * disable Broadcast TWT support subfield in the HE MAC capabilities
9472 	 * information field.
9473 	 * 0 - Disable Broadcast TWT support subfield
9474 	 * 1 - Enable Broadcast TWT support subfield
9475 	 * This attribute is used to configure the testbed device.
9476 	 */
9477 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
9478 
9479 	/* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
9480 	 * mode for 802.11be MLO capable devices. If the attribute is set to 1,
9481 	 * and if the FW supports this capability too, then the STA host
9482 	 * advertises this capability to AP over assoc request frame. This
9483 	 * attribute will not have any effect on legacy devices with no 802.11be
9484 	 * support.
9485 	 * 0 - Default behavior
9486 	 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
9487 	 * This attribute is used to configure the testbed device.
9488 	 */
9489 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
9490 
9491 	/* 8-bit unsigned value to configure the driver to enable/disable the
9492 	 * periodic sounding for Tx beamformer functionality. The default
9493 	 * behavior uses algorithm to do sounding based on packet stats.
9494 	 *
9495 	 * 0 - Default behavior.
9496 	 * 1 - Enable the periodic sounding for Tx beamformer.
9497 	 * This attribute is used for testing purposes.
9498 	 */
9499 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
9500 
9501 	/* 8-bit unsigned value to configure beamformee SS EHT capability
9502 	 * to indicate the maximum number of spatial streams that the STA
9503 	 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
9504 	 * The range of the value is 3 to 7.
9505 	 * This attribute is used to configure the testbed device.
9506 	 */
9507 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
9508 
9509 	/* 8-bit unsigned value to configure beamformee SS EHT capability
9510 	 * to indicate the maximum number of spatial streams that the STA
9511 	 * can receive in an EHT sounding NDP for 160 MHz bandwidth.
9512 	 * The range of the value is 3 to 7.
9513 	 * This attribute is used to configure the testbed device.
9514 	 */
9515 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
9516 
9517 	/* 8-bit unsigned value to configure beamformee SS EHT capability
9518 	 * to indicate the maximum number of spatial streams that the STA
9519 	 * can receive in an EHT sounding NDP for 320 MHz bandwidth.
9520 	 * The range of the value is 3 to 7.
9521 	 * This attribute is used to configure the testbed device.
9522 	 */
9523 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
9524 
9525 	/* 8-bit unsigned value to configure the driver to exclude station
9526 	 * profile in Probe Request frame Multi-Link element.
9527 	 * 0 - Default behavior, sends the Probe Request frame with station
9528 	 * profile data included in the Multi-Link element.
9529 	 * 1 - Exclude station profile in Probe Request frame Multi-Link
9530 	 * element.
9531 	 * This attribute is used to configure the testbed device.
9532 	 */
9533 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
9534 
9535 	/* 8-bit unsigned value to configure EHT testbed defaults.
9536 	 * This attribute is used to configure the testbed device.
9537 	 * 1 - Set the device EHT capabilities to testbed defaults.
9538 	 * 0 - Reset the device EHT capabilities to supported config.
9539 	 */
9540 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
9541 
9542 	/* 8-bit unsigned value to indicate the EHT MCS support.
9543 	 * Uses enum eht_mcs_config values.
9544 	 * This attribute is used to configure the testbed device to
9545 	 * allow the advertised hardware capabilities to be downgraded
9546 	 * for testing purposes.
9547 	 */
9548 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
9549 
9550 	/* 8-bit unsigned value to configure EHT TB Sounding Feedback
9551 	 * Rate Limit capability.
9552 	 * This attribute is used to configure the testbed device.
9553 	 * 0 - Indicates no maximum supported data rate limitation.
9554 	 * 1 - Indicates the maximum supported data rate is the lower of
9555 	 * the 1500 Mb/s and the maximum supported data rate.
9556 	 */
9557 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
9558 
9559 	/* keep last */
9560 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
9561 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
9562 	QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
9563 };
9564 
9565 /**
9566  * enum qca_wlan_twt_operation - Operation of the config TWT request
9567  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
9568  * The response for the respective operations can be either synchronous or
9569  * asynchronous (wherever specified). If synchronous, the response to this
9570  * operation is obtained in the corresponding vendor command reply to the user
9571  * space. For the asynchronous case the response is obtained as an event with
9572  * the same operation type.
9573  *
9574  * Drivers shall support either of these modes but not both simultaneously.
9575  * This support for asynchronous mode is advertised through the flag
9576  * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
9577  * the driver shall support synchronous mode.
9578  *
9579  * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
9580  * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9581  * qca_wlan_vendor_attr_twt_setup. Depending upon the
9582  * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
9583  * synchronous or asynchronous operation.
9584  *
9585  * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
9586  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9587  * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
9588  *
9589  * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
9590  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9591  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9592  * This terminate can either get triggered by the user space or can as well be
9593  * a notification from the firmware if it initiates a terminate.
9594  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9595  * the request from user space can either be a synchronous or asynchronous
9596  * operation.
9597  *
9598  * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
9599  * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9600  * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
9601  * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
9602  * this is either a synchronous or asynchronous operation.
9603  *
9604  * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
9605  * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
9606  * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
9607  * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
9608  * request.
9609  * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9610  * capability, this is either a synchronous or asynchronous operation.
9611  *
9612  * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
9613  * combination of suspend and resume in a single request. Required parameters
9614  * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
9615  * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
9616  * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
9617  * capability, this is either a synchronous or asynchronous operation.
9618  *
9619  * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
9620  * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
9621  * session is setup. It's a synchronous operation.
9622  *
9623  * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
9624  * Valid only after the TWT session is setup. It's a synchronous operation.
9625  *
9626  * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
9627  * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
9628  * operation.
9629  *
9630  * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
9631  * ready for a new TWT session setup after it issued a twt teardown.
9632  *
9633  * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
9634  * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
9635  * the enum qca_wlan_vendor_attr_twt_set_param.
9636  *
9637  * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
9638  * related information for example TWT required bit in AP capabilities etc.
9639  * The reason for the notification is sent using
9640  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
9641  */
9642 enum qca_wlan_twt_operation {
9643 	QCA_WLAN_TWT_SET = 0,
9644 	QCA_WLAN_TWT_GET = 1,
9645 	QCA_WLAN_TWT_TERMINATE = 2,
9646 	QCA_WLAN_TWT_SUSPEND = 3,
9647 	QCA_WLAN_TWT_RESUME = 4,
9648 	QCA_WLAN_TWT_NUDGE = 5,
9649 	QCA_WLAN_TWT_GET_STATS = 6,
9650 	QCA_WLAN_TWT_CLEAR_STATS = 7,
9651 	QCA_WLAN_TWT_GET_CAPABILITIES = 8,
9652 	QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
9653 	QCA_WLAN_TWT_SET_PARAM = 10,
9654 	QCA_WLAN_TWT_NOTIFY = 11,
9655 };
9656 
9657 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
9658  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
9659  *
9660  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
9661  * u8 attribute. Specify the TWT operation of this request. Possible values
9662  * are defined in enum qca_wlan_twt_operation. The parameters for the
9663  * respective operation is specified through
9664  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
9665  *
9666  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
9667  * parameters configured for TWT. These parameters are represented by
9668  * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
9669  * enum qca_wlan_vendor_attr_twt_set_param or
9670  * enum qca_wlan_vendor_attr_twt_stats based on the operation.
9671  *
9672  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
9673  * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
9674  * The values used by this attribute are defined in
9675  * enum qca_wlan_vendor_twt_status.
9676  */
9677 enum qca_wlan_vendor_attr_config_twt {
9678 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
9679 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
9680 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
9681 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
9682 
9683 	/* keep last */
9684 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
9685 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
9686 	QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
9687 };
9688 
9689 /**
9690  * qca_wlan_twt_setup_state: Represents the TWT session states.
9691  *
9692  * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
9693  * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
9694  * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
9695  */
9696 enum qca_wlan_twt_setup_state {
9697 	QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
9698 	QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
9699 	QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
9700 };
9701 
9702 /**
9703  * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
9704  * TWT (Target Wake Time) setup request. These attributes are sent as part of
9705  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
9706  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
9707  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
9708  *
9709  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
9710  * Disable (flag attribute not present) - Individual TWT
9711  * Enable (flag attribute present) - Broadcast TWT.
9712  * Individual means the session is between the STA and the AP.
9713  * This session is established using a separate negotiation between
9714  * STA and AP.
9715  * Broadcast means the session is across multiple STAs and an AP. The
9716  * configuration parameters are announced in Beacon frames by the AP.
9717  * This is used in
9718  * 1. TWT SET Request and Response
9719  * 2. TWT GET Response
9720  *
9721  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
9722  * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
9723  * specify the TWT request type. This is used in TWT SET operation.
9724  *
9725  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
9726  * Enable (flag attribute present) - TWT with trigger support.
9727  * Disable (flag attribute not present) - TWT without trigger support.
9728  * Trigger means the AP will send the trigger frame to allow STA to send data.
9729  * Without trigger, the STA will wait for the MU EDCA timer before
9730  * transmitting the data.
9731  * This is used in
9732  * 1. TWT SET Request and Response
9733  * 2. TWT GET Response
9734  *
9735  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
9736  * 0 - Announced TWT - In this mode, STA may skip few service periods to
9737  * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
9738  * NULL frame to AP.
9739  * 1 - Unannounced TWT - The STA will wakeup during every SP.
9740  * This is a required parameter for
9741  * 1. TWT SET Request and Response
9742  * 2. TWT GET Response
9743  *
9744  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
9745  * Flow ID is the unique identifier for each TWT session.
9746  * If not provided then dialog ID will be set to zero.
9747  * This is an optional parameter for
9748  * 1. TWT SET Request and Response
9749  * 2. TWT GET Request and Response
9750  * 3. TWT TERMINATE Request and Response
9751  * 4. TWT SUSPEND Request and Response
9752  * Flow Id values from 0 to 254 represent a single TWT session
9753  * Flow ID value of 255 represents all twt sessions for the following
9754  * 1. TWT TERMINATE Request and Response
9755  * 2. TWT SUSPEND Request and Response
9756  * 4. TWT CLEAR STATISTICS request
9757  * 5. TWT GET STATISTICS request and response
9758  * If an invalid dialog id is provided, status
9759  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
9760  *
9761  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
9762  * This attribute (exp) is used along with the mantissa to derive the
9763  * wake interval using the following formula:
9764  * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
9765  * Wake interval is the interval between 2 successive SP.
9766  * This is a required parameter for
9767  * 1. TWT SET Request and Response
9768  * 2. TWT GET Response
9769  *
9770  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
9771  * Enable (flag attribute present) - Protection required.
9772  * Disable (flag attribute not present) - Protection not required.
9773  * If protection is enabled, then the AP will use protection
9774  * mechanism using RTS/CTS to self to reserve the airtime.
9775  * This is used in
9776  * 1. TWT SET Request and Response
9777  * 2. TWT GET Response
9778  *
9779  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
9780  * This attribute is used as the SP offset which is the offset from
9781  * TSF after which the wake happens. The units are in microseconds. If
9782  * this attribute is not provided, then the value will be set to zero.
9783  * This is an optional parameter for
9784  * 1. TWT SET Request and Response
9785  * 2. TWT GET Response
9786  *
9787  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
9788  * This is the duration of the service period. This is specified as
9789  * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
9790  * This is a required parameter for
9791  * 1. TWT SET Request and Response
9792  * 2. TWT GET Response
9793  *
9794  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
9795  * This attribute is used to configure wake interval mantissa.
9796  * The units are in TU.
9797  * This is a required parameter for
9798  * 1. TWT SET Request and Response
9799  * 2. TWT GET Response
9800  *
9801  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
9802  * This field is applicable for TWT response only.
9803  * This contains status values in enum qca_wlan_vendor_twt_status
9804  * and is passed to the userspace. This is used in TWT SET operation.
9805  * This is a required parameter for
9806  * 1. TWT SET Response
9807  * 2. TWT TERMINATE Response
9808  * 3. TWT SUSPEND Response
9809  * 4. TWT RESUME Response
9810  * 5. TWT NUDGE Response
9811  *
9812  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
9813  * This field is applicable for TWT response only.
9814  * This field contains response type from the TWT responder and is
9815  * passed to the userspace. The values for this field are defined in
9816  * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
9817  * response.
9818  *
9819  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
9820  * In TWT setup command this field contains absolute TSF that will
9821  * be used by TWT requester during setup.
9822  * In TWT response this field contains absolute TSF value of the
9823  * wake time received from the TWT responder and is passed to
9824  * the userspace.
9825  * This is an optional parameter for
9826  * 1. TWT SET Request
9827  * This is a required parameter for
9828  * 1. TWT SET Response
9829  * 2. TWT GET Response
9830  *
9831  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
9832  * Enable (flag attribute present) - Indicates that the TWT responder
9833  * supports reception of TWT information frame from the TWT requestor.
9834  * Disable (flag attribute not present) - Indicates that the responder
9835  * doesn't support reception of TWT information frame from requestor.
9836  * This is used in
9837  * 1. TWT SET Response
9838  * 2. TWT GET Response
9839  *
9840  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
9841  * Represents the MAC address of the peer for which the TWT session
9842  * is being configured. This is used in AP mode to represent the respective
9843  * client
9844  * In AP mode, this is a required parameter in response for
9845  * 1. TWT SET
9846  * 2. TWT GET
9847  * 3. TWT TERMINATE
9848  * 4. TWT SUSPEND
9849  * In STA mode, this is an optional parameter in request and response for
9850  * the above four TWT operations.
9851  * In AP mode, this is a required parameter in request for
9852  * 1. TWT GET
9853  * 2. TWT TERMINATE
9854  *
9855  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
9856  * Minimum tolerance limit of wake interval parameter in microseconds.
9857  *
9858  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
9859  * Maximum tolerance limit of wake interval parameter in microseconds.
9860  *
9861  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
9862  * Minimum tolerance limit of wake duration parameter in microseconds.
9863  *
9864  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
9865  * Maximum tolerance limit of wake duration parameter in microseconds.
9866  *
9867  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
9868  * TWT state for the given dialog id. The values for this are represented
9869  * by enum qca_wlan_twt_setup_state.
9870  * This is obtained through TWT GET operation.
9871  *
9872  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
9873  * This attribute is used to configure wake interval mantissa.
9874  * The unit is microseconds. This attribute, when specified, takes
9875  * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
9876  * This parameter is used for
9877  * 1. TWT SET Request and Response
9878  * 2. TWT GET Response
9879  *
9880  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
9881  * This attribute is used to configure Broadcast TWT ID.
9882  * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
9883  * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
9884  * This parameter is used for
9885  * 1. TWT SET Request
9886  * 2. TWT TERMINATE Request
9887  *
9888  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
9889  * This attribute is used to configure Broadcast TWT recommendation.
9890  * The Broadcast TWT Recommendation subfield contains a value that indicates
9891  * recommendations on the types of frames that are transmitted by TWT
9892  * scheduled STAs and scheduling AP during the broadcast TWT SP.
9893  * The allowed values are 0 - 3.
9894  * This parameter is used for
9895  * 1. TWT SET Request
9896  *
9897  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
9898  * This attribute is used to configure Broadcast TWT Persistence.
9899  * The Broadcast TWT Persistence subfield indicates the number of
9900  * TBTTs during which the Broadcast TWT SPs corresponding to this
9901  * broadcast TWT Parameter set are present. The number of beacon intervals
9902  * during which the Broadcast TWT SPs are present is equal to the value in the
9903  * Broadcast TWT Persistence subfield plus 1 except that the value 255
9904  * indicates that the Broadcast TWT SPs are present until explicitly terminated.
9905  * This parameter is used for
9906  * 1. TWT SET Request
9907  *
9908  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
9909  * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
9910  * from TWT response frame.
9911  * This parameter is used for
9912  * 1. TWT SET Response
9913  * 2. TWT GET Response
9914  *
9915  * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
9916  * This attribute is used to configure the announce timeout value (in us) in
9917  * firmware. This timeout value is only applicable for announced TWT. If
9918  * timeout value is non-zero then firmware waits upto timeout value to use
9919  * data frame as announcement frame. If timeout value is 0 then firmware sends
9920  * explicit QoS NULL frame as announcement frame on SP start. Default value in
9921  * firmware is 0.
9922  * This parameter is used for
9923  * 1. TWT SET Request
9924  */
9925 enum qca_wlan_vendor_attr_twt_setup {
9926 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
9927 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
9928 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
9929 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
9930 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
9931 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
9932 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
9933 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
9934 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
9935 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
9936 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
9937 
9938 	/* TWT Response only attributes */
9939 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
9940 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
9941 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
9942 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
9943 
9944 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
9945 
9946 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
9947 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
9948 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
9949 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
9950 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
9951 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
9952 
9953 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
9954 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
9955 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
9956 
9957 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
9958 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
9959 
9960 	/* keep last */
9961 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
9962 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
9963 	QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
9964 };
9965 
9966 /**
9967  * enum qca_wlan_vendor_twt_status - Represents the status of the requested
9968  * TWT operation
9969  *
9970  * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
9971  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
9972  * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
9973  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
9974  * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
9975  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
9976  * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
9977  * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
9978  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
9979  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
9980  * request/response frame
9981  * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
9982  * frame
9983  * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
9984  * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
9985  * unknown reason
9986  * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
9987  * suspend state
9988  * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
9989  * invalid IE in the received TWT frame
9990  * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
9991  * the responder are not in the specified range
9992  * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
9993  * session due to request from the responder. Used on the TWT_TERMINATE
9994  * notification from the firmware.
9995  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
9996  * session due to roaming. Used on the TWT_TERMINATE notification from the
9997  * firmware.
9998  * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
9999  * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
10000  * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
10001  * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
10002  * request due to roaming in progress.
10003  * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
10004  * setup request due to channel switch in progress.
10005  * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
10006  * request due to scan in progress.
10007  * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
10008  * terminate an existing TWT session on power save exit request from userspace.
10009  * Used on the TWT_TERMINATE notification from the driver/firmware.
10010  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
10011  * required bit in its capabilities.
10012  * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
10013  * the TWT required bit(1->0) in its capabilities.
10014  */
10015 enum qca_wlan_vendor_twt_status {
10016 	QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
10017 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
10018 	QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
10019 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
10020 	QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
10021 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
10022 	QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
10023 	QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
10024 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
10025 	QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
10026 	QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
10027 	QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
10028 	QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
10029 	QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
10030 	QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
10031 	QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
10032 	QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
10033 	QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
10034 	QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
10035 	QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
10036 	QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
10037 	QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
10038 	QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
10039 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
10040 	QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
10041 };
10042 
10043 /**
10044  * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
10045  * TWT (Target Wake Time) resume request. These attributes are sent as part of
10046  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
10047  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
10048  * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10049  *
10050  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
10051  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
10052  * These attributes are used as the SP offset which is the offset from TSF after
10053  * which the wake happens. The units are in microseconds. Please note that
10054  * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
10055  * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
10056  * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
10057  * will be set to zero.
10058  *
10059  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
10060  * This attribute represents the next TWT subfield size.
10061  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10062  * and 4 for 64 bits.
10063  *
10064  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
10065  * Flow ID is the unique identifier for each TWT session. This attribute
10066  * represents the respective TWT session to resume.
10067  * Flow Id values from 0 to 254 represent a single TWT session
10068  * Flow ID value of 255 represents all TWT sessions.
10069  * If an invalid dialog id is provided, status
10070  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10071  *
10072  * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
10073  * Represents the MAC address of the peer to which TWT Resume is
10074  * being sent. This is used in AP mode to represent the respective
10075  * client and is a required parameter. In STA mode, this is an optional
10076  * parameter
10077  *
10078  */
10079 enum qca_wlan_vendor_attr_twt_resume {
10080 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
10081 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
10082 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
10083 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
10084 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
10085 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
10086 
10087 	/* keep last */
10088 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
10089 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
10090 	QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
10091 };
10092 
10093 /**
10094  * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
10095  * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
10096  * and resume in a single request. These attributes are sent as part of
10097  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10098  *
10099  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10100  * Flow ID is the unique identifier for each TWT session. This attribute
10101  * represents the respective TWT session to suspend and resume.
10102  *
10103  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
10104  * Flow ID is the unique identifier for each TWT session. This attribute
10105  * represents the respective TWT session to suspend and resume.
10106  * Flow Id values from 0 to 254 represent a single TWT session
10107  * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
10108  * and response.
10109  * If an invalid dialog id is provided, status
10110  * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
10111  *
10112  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
10113  * This attribute is used as the SP offset which is the offset from
10114  * TSF after which the wake happens. The units are in microseconds.
10115  *
10116  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
10117  * This attribute represents the next TWT subfield size.
10118  * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
10119  * and 4 for 64 bits.
10120  *
10121  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
10122  * Represents the MAC address of the peer to which TWT Suspend and Resume is
10123  * being sent. This is used in AP mode to represent the respective
10124  * client and is a required parameter. In STA mode, this is an optional
10125  * parameter.
10126  *
10127  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
10128  * This field contains absolute TSF value of the time at which twt
10129  * sesion will be resumed.
10130  *
10131  * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
10132  * This field will be used when device supports Flexible TWT.
10133  * This field contains an offset value by which to shift the starting time
10134  * of the next service period. The value of offset can be negative or positive.
10135  * If provided, this attribute will override
10136  * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
10137  */
10138 enum qca_wlan_vendor_attr_twt_nudge {
10139 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
10140 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
10141 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
10142 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
10143 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
10144 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
10145 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
10146 
10147 	/* keep last */
10148 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
10149 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
10150 	QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
10151 };
10152 
10153 /**
10154  * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
10155  * TWT (Target Wake Time) get statistics and clear statistics request.
10156  * These attributes are sent as part of
10157  * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10158  *
10159  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
10160  * Flow ID is the unique identifier for each TWT session. This attribute
10161  * represents the respective TWT session for get and clear TWT statistics.
10162  * Flow Id values from 0 to 254 represent a single TWT session
10163  * Flow ID value of 255 represents all TWT sessions in
10164  * 1) TWT GET STATISTICS request and response
10165  * 2) TWT CLEAR STATISTICS request
10166  *
10167  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
10168  * Represents the MAC address of the peer for which TWT Statistics
10169  * is required.
10170  * In AP mode this is used to represent the respective
10171  * client and is a required parameter for
10172  * 1) TWT GET STATISTICS request and response
10173  * 2) TWT CLEAR STATISTICS request and response
10174  * In STA mode, this is an optional parameter.
10175  *
10176  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
10177  * This is the duration of the service period in microseconds.
10178  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10179  *
10180  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
10181  * Average of actual wake duration observed so far. Unit is microseconds.
10182  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10183  *
10184  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
10185  * Number of TWT service period elapsed so far.
10186  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10187  *
10188  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10189  * This is the minimum value of wake duration observed across
10190  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10191  * microseconds.
10192  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10193  *
10194  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
10195  * This is the maximum value of wake duration observed across
10196  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
10197  * microseconds.
10198  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10199  *
10200  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
10201  * Average number of MPDU's transmitted successfully across
10202  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10203  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10204  *
10205  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
10206  * Average number of MPDU's received successfully across
10207  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10208  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10209  *
10210  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
10211  * Average number of bytes transmitted successfully across
10212  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10213  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10214  *
10215  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
10216  * Average number of bytes received successfully across
10217  * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
10218  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10219  *
10220  * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
10221  * Status of the TWT GET STATISTICS request.
10222  * This contains status values in enum qca_wlan_vendor_twt_status
10223  * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
10224  */
10225 enum qca_wlan_vendor_attr_twt_stats {
10226 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
10227 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
10228 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
10229 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
10230 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
10231 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
10232 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
10233 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
10234 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
10235 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
10236 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
10237 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
10238 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
10239 
10240 	/* keep last */
10241 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
10242 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
10243 	QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
10244 };
10245 
10246 /**
10247  * qca_wlan_twt_get_capa  - Represents the Bitmap of TWT capabilities
10248  * supported by the device and peer.
10249  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
10250  *
10251  * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
10252  * TWT non-scheduling STA. This capability is advertised in the HE
10253  * capability/Extended capabilities information element in the
10254  * Association request frame by the device.
10255  *
10256  * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
10257  * by the TWT scheduling AP. This capability is advertised in the extended
10258  * capabilities/HE capabilities information element.
10259  *
10260  * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
10261  * for the broadcast TWT functionality. On responder side, this	indicates
10262  * support for the role of broadcast TWT scheduling functionality. This
10263  * capability is advertised in the HE capabilities information element.
10264  *
10265  * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
10266  * This capability is advertised in the HE capabilities information element.
10267  *
10268  * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
10269  * that it mandates the associated HE STAs to support TWT. This capability is
10270  * advertised by AP in the HE Operation Parameters field of the HE operation
10271  * information element.
10272  */
10273 enum qca_wlan_twt_capa {
10274 	QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
10275 	QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
10276 	QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
10277 	QCA_WLAN_TWT_CAPA_FLEXIBLE =  BIT(3),
10278 	QCA_WLAN_TWT_CAPA_REQUIRED =  BIT(4),
10279 
10280 };
10281 
10282 /**
10283  * enum qca_wlan_vendor_attr_twt_capability  - Represents attributes for TWT
10284  * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
10285  * operation.
10286  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
10287  * Represents the MAC address of the peer for which the TWT capabilities
10288  * are being queried. This is used in AP mode to represent the respective
10289  * client. In STA mode, this is an optional parameter.
10290  *
10291  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
10292  * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
10293  * enum qca_wlan_twt_capa.
10294  * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
10295  * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
10296  * enum qca_wlan_twt_capa.
10297  */
10298 enum qca_wlan_vendor_attr_twt_capability {
10299 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
10300 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
10301 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
10302 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
10303 
10304 	/* keep last */
10305 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
10306 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
10307 	QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
10308 };
10309 
10310 /**
10311  * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
10312  * TWT (Target Wake Time) related parameters. It is used when
10313  * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
10314  * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
10315  *
10316  * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
10317  * This attribute configures AC parameters to be used for all TWT
10318  * sessions in AP mode.
10319  * Uses the enum qca_wlan_ac_type values.
10320  */
10321 enum qca_wlan_vendor_attr_twt_set_param {
10322 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
10323 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
10324 
10325 	/* keep last */
10326 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
10327 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
10328 	QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
10329 };
10330 
10331 /**
10332  * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
10333  * the TWT responder
10334  *
10335  * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
10336  * parameters that are different from TWT requesting STA suggested
10337  * or demanded TWT parameters
10338  * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
10339  * parameters that are different from TWT requesting STA TWT suggested
10340  * or demanded parameters
10341  * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
10342  * setup
10343  * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
10344  * setup.
10345  */
10346 enum qca_wlan_vendor_twt_setup_resp_type {
10347 	QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
10348 	QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
10349 	QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
10350 	QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
10351 };
10352 
10353 /**
10354  * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
10355  * Represents the setup type being requested for TWT.
10356  * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
10357  * parameters but relying on AP to fill the parameters during the negotiation.
10358  * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
10359  * values which the AP may accept or AP may provide alternative parameters
10360  * which the STA may accept.
10361  * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
10362  * alternate parameters than the requested ones.
10363  */
10364 enum qca_wlan_vendor_twt_setup_req_type {
10365 	QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
10366 	QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
10367 	QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
10368 };
10369 
10370 /**
10371  * enum qca_wlan_throughput_level - Current throughput level
10372  *
10373  * Indicates the current level of throughput calculated by driver. The driver
10374  * may choose different thresholds to decide whether the throughput level is
10375  * low or medium or high based on variety of parameters like physical link
10376  * capacity of current connection, number of pakcets being dispatched per
10377  * second etc. The throughput level events might not be consistent with the
10378  * actual current throughput value being observed.
10379  *
10380  * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
10381  * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
10382  * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
10383  */
10384 enum qca_wlan_throughput_level {
10385 	QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
10386 	QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
10387 	QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
10388 };
10389 
10390 /**
10391  * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
10392  * report throughput changes from driver to user space. enum values are used
10393  * for NL attributes sent with
10394  * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
10395  */
10396 enum qca_wlan_vendor_attr_throughput_change {
10397 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
10398 	/*
10399 	 * Indicates the direction of throughput in which the change is being
10400 	 * reported. u8 attribute. Value is 0 for TX and 1 for RX.
10401 	 */
10402 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
10403 
10404 	/*
10405 	 * Indicates the newly observed throughput level.
10406 	 * qca_wlan_throughput_level describes the possible range of values.
10407 	 * u8 attribute.
10408 	 */
10409 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
10410 
10411 	/*
10412 	 * Indicates the driver's guidance on the new value to be set to
10413 	 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
10414 	 * may optionally include this attribute.
10415 	 */
10416 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
10417 
10418 	/*
10419 	 * Indicates the driver's guidance on the new value to be set to
10420 	 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
10421 	 * values are from -31 to 31. Driver may optionally include this
10422 	 * attribute.
10423 	 */
10424 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
10425 
10426 	/*
10427 	 * Indicates the driver's guidance on the new value to be set to
10428 	 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
10429 	 * optionally include this attribute.
10430 	 */
10431 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
10432 
10433 	/* keep last */
10434 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
10435 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
10436 	QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
10437 };
10438 
10439 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
10440  * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
10441  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10442  */
10443 enum qca_wlan_nan_ext_subcmd_type {
10444 	/* Subcmd of type NAN Enable Request */
10445 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
10446 	/* Subcmd of type NAN Disable Request */
10447 	QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
10448 };
10449 
10450 /**
10451  * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
10452  * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
10453  */
10454 enum qca_wlan_vendor_attr_nan_params {
10455 	QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
10456 	/* Carries NAN command for firmware component. Every vendor command
10457 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
10458 	 * payload containing the NAN command. NLA_BINARY attribute.
10459 	 */
10460 	QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
10461 	/* Indicates the type of NAN command sent with
10462 	 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
10463 	 * describes the possible range of values. This attribute is mandatory
10464 	 * if the command being issued is either
10465 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
10466 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
10467 	 */
10468 	QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
10469 	/* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
10470 	 * band. This attribute is mandatory when command type is
10471 	 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
10472 	 */
10473 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
10474 	/* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
10475 	 * band. This attribute is optional and should be included when command
10476 	 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
10477 	 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
10478 	 */
10479 	QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
10480 
10481 	/* keep last */
10482 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
10483 	QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
10484 		QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
10485 };
10486 
10487 /**
10488  * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
10489  * transport modes and is used by attribute
10490  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
10491  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10492  * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
10493  * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
10494  * data. The data shall be encapsulated within
10495  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
10496  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
10497  */
10498 enum qca_wlan_vendor_cfr_data_transport_modes {
10499 	QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
10500 	QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
10501 };
10502 
10503 /**
10504  * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
10505  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
10506  * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
10507  * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
10508  * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
10509  * with phase
10510  * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
10511  */
10512 enum qca_wlan_vendor_cfr_method {
10513 	QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
10514 	QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
10515 	QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
10516 };
10517 
10518 /**
10519  * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
10520  * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
10521  * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
10522  * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
10523  * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
10524  * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
10525  * is provided by one or more of below attributes:
10526  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
10527  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
10528  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
10529  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
10530  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
10531  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
10532  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10533  * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
10534  * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
10535  */
10536 enum qca_wlan_vendor_cfr_capture_type {
10537 	QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
10538 	QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
10539 	QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
10540 	QCA_WLAN_VENDOR_CFR_TA_RA = 3,
10541 	QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
10542 	QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
10543 };
10544 
10545 /**
10546  * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
10547  * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
10548  * Channel Frequency Response capture parameters and enable periodic CFR
10549  * capture.
10550  *
10551  * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
10552  * MAC address of peer. This is for CFR version 1 only.
10553  *
10554  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
10555  * Enable peer CFR Capture. This attribute is mandatory to
10556  * enable peer CFR capture. If this attribute is not present,
10557  * peer CFR capture is disabled.
10558  *
10559  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
10560  * BW of measurement, attribute uses the values in enum nl80211_chan_width
10561  * Supported values: 20, 40, 80, 80+80, 160.
10562  * Note that all targets may not support all bandwidths.
10563  * This attribute is mandatory for version 1 if attribute
10564  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10565  *
10566  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
10567  * Periodicity of CFR measurement in msec.
10568  * Periodicity should be a multiple of Base timer.
10569  * Current Base timer value supported is 10 msecs (default).
10570  * 0 for one shot capture.
10571  * This attribute is mandatory for version 1 if attribute
10572  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10573  *
10574  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
10575  * Method used to capture Channel Frequency Response.
10576  * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
10577  * This attribute is mandatory for version 1 if attribute
10578  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
10579  *
10580  * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
10581  * Enable periodic CFR capture.
10582  * This attribute is mandatory for version 1 to enable Periodic CFR capture.
10583  * If this attribute is not present, periodic CFR capture is disabled.
10584  *
10585  * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
10586  * Value is 1 or 2 since there are two versions of CFR capture. Two versions
10587  * can't be enabled at same time. This attribute is mandatory if target
10588  * support both versions and use one of them.
10589  *
10590  * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
10591  * This attribute is mandatory for version 2 if
10592  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
10593  * Bits 15:0 Bit fields indicating which group to be enabled.
10594  * Bits 31:16 Reserved for future use.
10595  *
10596  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
10597  * CFR capture duration in microsecond. This attribute is mandatory for
10598  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
10599  *
10600  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
10601  * CFR capture interval in microsecond. This attribute is mandatory for
10602  * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
10603  *
10604  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
10605  * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
10606  * This attribute is mandatory for version 2.
10607  *
10608  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
10609  * Bit fields indicating which user in the current UL MU
10610  * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
10611  * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
10612  * then the CFR capture will happen for user index 0 in the current
10613  * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
10614  * TX corresponds to user indices 0 and 2.  Bits 63:37 Reserved for future use.
10615  * This is for CFR version 2 only.
10616  *
10617  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
10618  * Indicates the number of consecutive Rx packets to be skipped
10619  * before CFR capture is enabled again.
10620  * This is for CFR version 2 only.
10621  *
10622  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
10623  * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
10624  *
10625  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
10626  * the following GROUP attributes:
10627  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
10628  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
10629  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
10630  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
10631  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
10632  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
10633  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
10634  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
10635  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
10636  *	%QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
10637  *
10638  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
10639  * Target support multiple groups for some configurations. Group number could be
10640  * any value between 0 and 15. This is for CFR version 2 only.
10641  *
10642  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
10643  * Transmitter address which is used to filter packets, this MAC address takes
10644  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
10645  * This is for CFR version 2 only.
10646  *
10647  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
10648  * Receiver address which is used to filter packets, this MAC address takes
10649  * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
10650  * This is for CFR version 2 only.
10651  *
10652  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
10653  * Mask of transmitter address which is used to filter packets.
10654  * This is for CFR version 2 only.
10655  *
10656  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
10657  * Mask of receiver address which is used to filter packets.
10658  * This is for CFR version 2 only.
10659  *
10660  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
10661  * Indicates packets with a specific NSS will be filtered for CFR capture.
10662  * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
10663  * be done for packets matching the NSS specified within this bitmask.
10664  * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
10665  *     bit 0 : NSS 1
10666  *     bit 1 : NSS 2
10667  *     ...
10668  *     bit 7 : NSS 8
10669  *
10670  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
10671  * Indicates packets with a specific BW will be filtered for CFR capture.
10672  * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
10673  * will be done for packets matching the bandwidths specified within this
10674  * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
10675  * numerated in enum nl80211_band (although not all bands may be supported
10676  * by a given device).
10677  *
10678  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
10679  * Management packets matching the subtype filter categories will be
10680  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10681  * represents the corresponding mgmt subtype value as per
10682  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10683  * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
10684  * This is for CFR version 2 only
10685  *
10686  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
10687  * Control packets matching the subtype filter categories will be
10688  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10689  * represents the corresponding control subtype value as per
10690  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10691  * This is for CFR version 2 only.
10692  *
10693  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
10694  * Data packets matching the subtype filter categories will be
10695  * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
10696  * represents the corresponding data subtype value as per
10697  * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
10698  * This is for CFR version 2 only.
10699  *
10700  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
10701  * Userspace can use this attribute to specify the driver about which transport
10702  * mode shall be used by the driver to send CFR data to userspace. Uses values
10703  * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
10704  * not present, driver shall choose the default transport mechanism which is
10705  * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
10706  *
10707  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
10708  * Userspace can use this attribute to specify the nl port id of the application
10709  * which receives the CFR data and processes it further so that the drivers can
10710  * unicast the NL events to a specific application. Optionally included when
10711  * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
10712  * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
10713  * shall multicast the netlink events when this attribute is not included.
10714  *
10715  * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
10716  * This attribute will be used by the driver to encapsulate and send CFR data
10717  * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
10718  * asynchronous event when the driver is configured to send CFR data using NL
10719  * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
10720  *
10721  */
10722 enum qca_wlan_vendor_peer_cfr_capture_attr {
10723 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
10724 	QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
10725 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
10726 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
10727 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
10728 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
10729 	QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
10730 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
10731 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
10732 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
10733 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
10734 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
10735 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
10736 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
10737 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
10738 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
10739 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
10740 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
10741 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
10742 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
10743 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
10744 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
10745 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
10746 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
10747 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
10748 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
10749 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
10750 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
10751 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
10752 
10753 	/* Keep last */
10754 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
10755 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
10756 	QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
10757 };
10758 
10759 /**
10760  * enum qca_coex_config_profiles - This enum defines different types of
10761  * traffic streams that can be prioritized one over the other during coex
10762  * scenarios.
10763  * The types defined in this enum are categorized in the below manner.
10764  * 0 - 31 values corresponds to WLAN
10765  * 32 - 63 values corresponds to BT
10766  * 64 - 95 values corresponds to Zigbee
10767  * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
10768  * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
10769  * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
10770  * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
10771  * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
10772  * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
10773  * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
10774  * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
10775  * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
10776  * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
10777  * @QCA_BT_A2DP: Prioritize BT A2DP
10778  * @QCA_BT_BLE: Prioritize BT BLE
10779  * @QCA_BT_SCO: Prioritize BT SCO
10780  * @QCA_ZB_LOW: Prioritize Zigbee Low
10781  * @QCA_ZB_HIGH: Prioritize Zigbee High
10782  */
10783 enum qca_coex_config_profiles {
10784 	/* 0 - 31 corresponds to WLAN */
10785 	QCA_WIFI_STA_DISCOVERY = 0,
10786 	QCA_WIFI_STA_CONNECTION = 1,
10787 	QCA_WIFI_STA_CLASS_3_MGMT = 2,
10788 	QCA_WIFI_STA_DATA = 3,
10789 	QCA_WIFI_STA_ALL = 4,
10790 	QCA_WIFI_SAP_DISCOVERY = 5,
10791 	QCA_WIFI_SAP_CONNECTION = 6,
10792 	QCA_WIFI_SAP_CLASS_3_MGMT = 7,
10793 	QCA_WIFI_SAP_DATA = 8,
10794 	QCA_WIFI_SAP_ALL = 9,
10795 	QCA_WIFI_CASE_MAX = 31,
10796 	/* 32 - 63 corresponds to BT */
10797 	QCA_BT_A2DP = 32,
10798 	QCA_BT_BLE = 33,
10799 	QCA_BT_SCO = 34,
10800 	QCA_BT_CASE_MAX = 63,
10801 	/* 64 - 95 corresponds to Zigbee */
10802 	QCA_ZB_LOW = 64,
10803 	QCA_ZB_HIGH = 65,
10804 	QCA_ZB_CASE_MAX = 95,
10805 	/* 0xff is default value if the u8 profile value is not set. */
10806 	QCA_PROFILE_DEFAULT_VALUE = 255
10807 };
10808 
10809 /**
10810  * enum qca_vendor_attr_coex_config_types - Coex configurations types.
10811  * This enum defines the valid set of values of coex configuration types. These
10812  * values may used by attribute
10813  * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
10814  *
10815  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
10816  *	weights to default values.
10817  * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
10818  *	weights with configurability value.
10819  */
10820 enum qca_vendor_attr_coex_config_types {
10821 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
10822 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
10823 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
10824 	QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
10825 };
10826 
10827 /**
10828  * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
10829  * attributes
10830  * Attributes for data used by
10831  * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
10832  *
10833  * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
10834  * Indicate config type.
10835  * the config types are 32-bit values from qca_vendor_attr_coex_config_types
10836  *
10837  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
10838  *	Indicate the Priority 1 profiles.
10839  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10840  *	In same priority level, maximum to 4 profiles can be set here.
10841  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
10842  *	Indicate the Priority 2 profiles.
10843  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10844  *	In same priority level, maximum to 4 profiles can be set here.
10845  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
10846  *	Indicate the Priority 3 profiles.
10847  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10848  *	In same priority level, maximum to 4 profiles can be set here.
10849  * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
10850  *	Indicate the Priority 4 profiles.
10851  *	the profiles are 8-bit values from enum qca_coex_config_profiles
10852  *	In same priority level, maximum to 4 profiles can be set here.
10853  * NOTE:
10854  * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
10855  * arrangement:
10856  *	1: In the same u32 attribute(priority x), the profiles enum values own
10857  *	same priority level.
10858  *	2: 0xff is default value if the u8 profile value is not set.
10859  *	3: max to 4 rules/profiles in same priority level.
10860  *	4: max to 4 priority level (priority 1 - priority 4)
10861  *	5: one priority level only supports one scenario from WLAN/BT/ZB,
10862  *	hybrid rules not support.
10863  *	6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
10864  *	remain blank to reset all parameters.
10865  * For example:
10866  *
10867  *	If the attributes as follow:
10868  *	priority 1:
10869  *	------------------------------------
10870  *	|  0xff  |    0   |   1   |    2   |
10871  *	------------------------------------
10872  *	priority 2:
10873  *	-------------------------------------
10874  *	|  0xff  |  0xff  |  0xff  |   32   |
10875  *	-------------------------------------
10876  *	priority 3:
10877  *	-------------------------------------
10878  *	|  0xff  |  0xff  |  0xff  |   65   |
10879  *	-------------------------------------
10880  *	then it means:
10881  *	1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10882  *		owns same priority level.
10883  *	2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
10884  *		has priority over BT_A2DP and ZB_HIGH.
10885  *	3: BT_A2DP has priority over ZB_HIGH.
10886  */
10887 
10888 enum qca_vendor_attr_coex_config_three_way {
10889 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
10890 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
10891 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
10892 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
10893 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
10894 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
10895 
10896 	/* Keep last */
10897 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
10898 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
10899 	QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
10900 };
10901 
10902 /**
10903  * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
10904  * This enum defines the valid set of values of peer stats cache types. These
10905  * values are used by attribute
10906  * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
10907  *
10908  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
10909  * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
10910  * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
10911  * statistics
10912  */
10913 enum qca_vendor_attr_peer_stats_cache_type {
10914 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
10915 
10916 	QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
10917 	QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
10918 	QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
10919 };
10920 
10921 /**
10922  * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
10923  * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
10924  * Attributes are required to flush peer rate statistics from driver to
10925  * user application.
10926  *
10927  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
10928  * Indicate peer stats cache type.
10929  * The statistics types are 32-bit values from
10930  * qca_vendor_attr_peer_stats_cache_type
10931  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
10932  * of size 6, representing peer mac address.
10933  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
10934  * containing buffer of statistics to send event to application layer entity.
10935  * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
10936  * representing cookie for peer unique session.
10937  */
10938 enum qca_wlan_vendor_attr_peer_stats_cache_params {
10939 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
10940 
10941 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
10942 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
10943 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
10944 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
10945 
10946 	/* Keep last */
10947 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
10948 	QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
10949 		QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
10950 };
10951 
10952 /**
10953  * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
10954  * this enum defines all the possible state of zigbee, which can be
10955  * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
10956  *
10957  * @ZIGBEE_IDLE: zigbee in idle state
10958  * @ZIGBEE_FORM_NETWORK: zibee forming network
10959  * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
10960  * @ZIGBEE_JOIN: zigbee joining network
10961  * @ZIGBEE_NETWORK_UP: zigbee network is up
10962  * @ZIGBEE_HMI: zigbee in HMI mode
10963  */
10964 enum qca_mpta_helper_attr_zigbee_state {
10965 	ZIGBEE_IDLE = 0,
10966 	ZIGBEE_FORM_NETWORK = 1,
10967 	ZIGBEE_WAIT_JOIN = 2,
10968 	ZIGBEE_JOIN = 3,
10969 	ZIGBEE_NETWORK_UP = 4,
10970 	ZIGBEE_HMI = 5,
10971 };
10972 
10973 /**
10974  * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
10975  * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
10976  */
10977 enum qca_mpta_helper_vendor_attr {
10978 	QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
10979 	/* Optional attribute used to update zigbee state.
10980 	 * enum qca_mpta_helper_attr_zigbee_state.
10981 	 * NLA_U32 attribute.
10982 	 */
10983 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
10984 	/* Optional attribute used to configure wlan duration for Shape-OCS
10985 	 * during interrupt.
10986 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
10987 	 * Value range 0 ~ 300 (ms).
10988 	 * NLA_U32 attribute.
10989 	 */
10990 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
10991 	/* Optional attribute used to configure non wlan duration for Shape-OCS
10992 	 * during interrupt.
10993 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
10994 	 * Value range 0 ~ 300 (ms).
10995 	 * NLA_U32 attribute.
10996 	 */
10997 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
10998 	/* Optional attribute used to configure wlan duration for Shape-OCS
10999 	 * monitor period.
11000 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
11001 	 * Value range 0 ~ 300 (ms)
11002 	 * NLA_U32 attribute
11003 	 */
11004 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
11005 	/* Optional attribute used to configure non wlan duration for Shape-OCS
11006 	 * monitor period.
11007 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
11008 	 * Value range 0 ~ 300 (ms)
11009 	 * NLA_U32 attribute
11010 	 */
11011 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
11012 	/* Optional attribute used to configure ocs interrupt duration.
11013 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
11014 	 * Value range 1000 ~ 20000 (ms)
11015 	 * NLA_U32 attribute
11016 	 */
11017 	QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
11018 	/* Optional attribute used to configure ocs monitor duration.
11019 	 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
11020 	 * Value range 1000 ~ 20000 (ms)
11021 	 * NLA_U32 attribute
11022 	 */
11023 	QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
11024 	/* Optional attribute used to notify wlan FW current zigbee channel.
11025 	 * Value range 11 ~ 26
11026 	 * NLA_U32 attribute
11027 	 */
11028 	QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
11029 	/* Optional attribute used to configure wlan mute duration.
11030 	 * Value range 0 ~ 400 (ms)
11031 	 * NLA_U32 attribute
11032 	 */
11033 	QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
11034 
11035 	/* keep last */
11036 	QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
11037 	QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
11038 		QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
11039 };
11040 
11041 /**
11042  * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
11043  * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
11044  * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
11045  *
11046  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
11047  * to request the driver to start reporting Beacon frames.
11048  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
11049  * to request the driver to stop reporting Beacon frames.
11050  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
11051  * userspace to report received Beacon frames.
11052  * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
11053  * to indicate that the driver is going to pause reporting Beacon frames.
11054  */
11055 enum qca_wlan_vendor_beacon_reporting_op_types {
11056 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
11057 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
11058 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
11059 	QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
11060 };
11061 
11062 /**
11063  * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
11064  * types of reasons for which the driver is pausing reporting Beacon frames.
11065  * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
11066  *
11067  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
11068  * reasons.
11069  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
11070  * driver/firmware is starting a scan.
11071  * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
11072  * driver/firmware disconnects from the ESS and indicates the disconnection to
11073  * userspace (non-seamless roaming case). This reason code will be used by the
11074  * driver/firmware to indicate stopping of beacon report events. Userspace
11075  * will need to start beacon reporting again (if desired) by sending vendor
11076  * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
11077  * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
11078  * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
11079  * completed.
11080  */
11081 enum qca_wlan_vendor_beacon_reporting_pause_reasons {
11082 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
11083 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
11084 	QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
11085 };
11086 
11087 /*
11088  * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
11089  * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
11090  */
11091 enum qca_wlan_vendor_attr_beacon_reporting_params {
11092 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
11093 	/* Specifies the type of operation that the vendor command/event is
11094 	 * intended for. Possible values for this attribute are defined in
11095 	 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
11096 	 */
11097 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
11098 	/* Optionally set by userspace to request the driver to report Beacon
11099 	 * frames using asynchronous vendor events when the
11100 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11101 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11102 	 * If this flag is not set, the driver will only update Beacon frames
11103 	 * in cfg80211 scan cache but not send any vendor events.
11104 	 */
11105 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
11106 	/* Optionally used by userspace to request the driver/firmware to
11107 	 * report Beacon frames periodically when the
11108 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11109 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
11110 	 * u32 attribute, indicates the period of Beacon frames to be reported
11111 	 * and in the units of beacon interval.
11112 	 * If this attribute is missing in the command, then the default value
11113 	 * of 1 will be assumed by driver, i.e., to report every Beacon frame.
11114 	 * Zero is an invalid value.
11115 	 * If a valid value is received for this attribute, the driver will
11116 	 * update the cfg80211 scan cache periodically as per the value
11117 	 * received in this attribute in addition to updating the cfg80211 scan
11118 	 * cache when there is significant change in Beacon frame IEs.
11119 	 */
11120 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
11121 	/* Used by the driver to encapsulate the SSID when the
11122 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11123 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11124 	 * u8 array with a maximum size of 32.
11125 	 *
11126 	 * When generating beacon report from non-MBSSID Beacon frame, the SSID
11127 	 * will be taken from the SSID element of the received Beacon frame.
11128 	 *
11129 	 * When generating beacon report from Multiple BSSID Beacon frame and
11130 	 * if the BSSID of the current connected BSS matches the BSSID of the
11131 	 * transmitting BSS, the SSID will be taken from the SSID element of
11132 	 * the received Beacon frame.
11133 	 *
11134 	 * When generating beacon report from Multiple BSSID Beacon frame and
11135 	 * if the BSSID of the current connected BSS matches the BSSID of one
11136 	 * of the* nontransmitting BSSs, the SSID will be taken from the SSID
11137 	 * field included in the nontransmitted BSS profile whose derived BSSI
11138 	 * is same as the BSSID of the current connected BSS. When there is no
11139 	 * nontransmitted BSS profile whose derived BSSID is same as the BSSID
11140 	 * of current connected* BSS, this attribute will not be present.
11141 	 */
11142 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
11143 	/* Used by the driver to encapsulate the BSSID of the AP to which STA
11144 	 * is currently connected to when the
11145 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11146 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
11147 	 * fixed size of 6 bytes.
11148 	 *
11149 	 * When generating beacon report from a Multiple BSSID beacon and the
11150 	 * current connected BSSID matches one of the nontransmitted BSSIDs in
11151 	 * a Multiple BSSID set, this BSSID will be that particular
11152 	 * nontransmitted BSSID and not the transmitted BSSID (i.e., the
11153 	 * transmitting address of the Beacon frame).
11154 	 */
11155 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
11156 	/* Used by the driver to encapsulate the frequency in MHz on which
11157 	 * the Beacon frame was received when the
11158 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
11159 	 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11160 	 * u32 attribute.
11161 	 */
11162 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
11163 	/* Used by the driver to encapsulate the Beacon interval
11164 	 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11165 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11166 	 * u16 attribute. The value will be copied from the Beacon frame and
11167 	 * the units are TUs.
11168 	 */
11169 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
11170 	/* Used by the driver to encapsulate the Timestamp field from the
11171 	 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
11172 	 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
11173 	 * u64 attribute.
11174 	 */
11175 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
11176 	/* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
11177 	 * Beacon frame is received in the driver when the
11178 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11179 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
11180 	 * the units of nanoseconds. This value is expected to have accuracy of
11181 	 * about 10 ms.
11182 	 */
11183 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
11184 	/* Used by the driver to encapsulate the IEs of the Beacon frame from
11185 	 * which this event is generated when the
11186 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11187 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
11188 	 */
11189 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
11190 	/* Used by the driver to specify the reason for the driver/firmware to
11191 	 * pause sending beacons to userspace when the
11192 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11193 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
11194 	 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
11195 	 * attribute.
11196 	 */
11197 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
11198 	/* Used by the driver to specify whether the driver will automatically
11199 	 * resume reporting beacon events to userspace later (for example after
11200 	 * the ongoing off-channel activity is completed etc.) when the
11201 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11202 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
11203 	 */
11204 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
11205 	/* Optionally set by userspace to request the driver not to resume
11206 	 * beacon reporting after a pause is completed, when the
11207 	 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
11208 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
11209 	 * If this flag is set, the driver will not resume beacon reporting
11210 	 * after any pause in beacon reporting is completed. Userspace has to
11211 	 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
11212 	 * to initiate beacon reporting again. If this flag is set in the recent
11213 	 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
11214 	 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
11215 	 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
11216 	 * set by the driver. Setting this flag until and unless there is a
11217 	 * specific need is not recommended as there is a chance of some beacons
11218 	 * received after pause command and next start command being not
11219 	 * reported.
11220 	 */
11221 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
11222 
11223 	/* Keep last */
11224 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
11225 	QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
11226 		QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
11227 };
11228 
11229 /**
11230  * enum qca_vendor_oem_device_type - Represents the target device in firmware.
11231  * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
11232  *
11233  * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
11234  * a virtual device.
11235  *
11236  * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
11237  * a physical device.
11238  */
11239 enum qca_vendor_oem_device_type {
11240 	QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
11241 	QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
11242 };
11243 
11244 /*
11245  * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
11246  * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
11247  *
11248  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
11249  * used to set/query the data to/from the firmware. On query, the same
11250  * attribute is used to carry the respective data in the reply sent by the
11251  * driver to userspace. The request to set/query the data and the format of the
11252  * respective data from the firmware are embedded in the attribute. The
11253  * maximum size of the attribute payload is 1024 bytes.
11254  *
11255  * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
11256  * based on this field. This optional attribute is included to specify whether
11257  * the device type is a virtual device or a physical device for the command.
11258  * This attribute can be omitted for a virtual device (default) command.
11259  * This u8 attribute is used to carry information for the device type using
11260  * values defined by enum qca_vendor_oem_device_type.
11261  *
11262  * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
11263  * attribute when the data is queried from the firmware.
11264  *
11265  * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
11266  * is set when the userspace queries data from the firmware. This attribute
11267  * should not be set when userspace sets the OEM data to the firmware.
11268  */
11269 enum qca_wlan_vendor_attr_oem_data_params {
11270 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
11271 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
11272 	QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
11273 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
11274 
11275 	/* keep last */
11276 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
11277 	QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
11278 		QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
11279 };
11280 
11281 /**
11282  * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
11283  * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
11284  *
11285  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
11286  * Nested attribute containing multiple ranges with following attributes:
11287  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
11288  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
11289  *	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
11290  *
11291  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
11292  * Starting center frequency in MHz.
11293  *
11294  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
11295  * Ending center frequency in MHz.
11296  *
11297  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
11298  * s32 attribute, optional. It is a per frequency range attribute.
11299  * The maximum TX power limit from user space is to be applied on an
11300  * unrestricted interface for corresponding frequency range. It is also
11301  * possible that the actual TX power may be even lower than this cap due to
11302  * other considerations such as regulatory compliance, SAR, etc. In absence of
11303  * this attribute the driver shall follow current behavior which means
11304  * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
11305  * power derived by the driver based on regulatory/SAR during interface up.
11306  *
11307  * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
11308  * u32 attribute, optional. Indicates all the interface types which are
11309  * restricted for all frequency ranges provided in
11310  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
11311  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
11312  * This attribute encapsulates bitmasks of interface types defined in
11313  * enum nl80211_iftype. If an interface is marked as restricted the driver must
11314  * move to a safe channel and if no safe channel is available the driver shall
11315  * terminate that interface functionality. In absence of this attribute,
11316  * interface (SAP/P2P) can still continue operating on an unsafe channel with
11317  * TX power limit derived from either
11318  * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
11319  * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
11320  * is not provided.
11321  */
11322 enum qca_wlan_vendor_attr_avoid_frequency_ext {
11323 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
11324 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
11325 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
11326 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
11327 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
11328 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
11329 
11330 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
11331 	QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
11332 		QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
11333 };
11334 
11335 /*
11336  * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
11337  * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
11338  */
11339 enum qca_wlan_vendor_attr_add_sta_node_params {
11340 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
11341 	/* 6 byte MAC address of STA */
11342 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
11343 	/* Authentication algorithm used by the station of size u16;
11344 	 * defined in enum nl80211_auth_type.
11345 	 */
11346 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
11347 
11348 	/* keep last */
11349 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
11350 	QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
11351 		QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
11352 };
11353 
11354 /**
11355  * enum qca_btc_chain_mode - Specifies BT coex chain mode.
11356  * This enum defines the valid set of values of BT coex chain mode.
11357  * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
11358  * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11359  *
11360  * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
11361  * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
11362  * separated, hybrid mode.
11363  * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
11364  * separated, fixed FDD mode.
11365  */
11366 enum qca_btc_chain_mode {
11367 	QCA_BTC_CHAIN_SHARED = 0,
11368 	QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
11369 	QCA_BTC_CHAIN_SEPARATED_FDD = 2,
11370 };
11371 
11372 /* deprecated legacy name */
11373 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
11374 
11375 /**
11376  * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
11377  * chain mode.
11378  * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
11379  *
11380  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
11381  * Indicates the BT coex chain mode, are 32-bit values from
11382  * enum qca_btc_chain_mode. This attribute is mandatory.
11383  *
11384  * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
11385  * If set, vdev should be restarted when BT coex chain mode is updated.
11386  * This attribute is optional.
11387  */
11388 enum qca_vendor_attr_btc_chain_mode {
11389 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
11390 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
11391 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
11392 
11393 	/* Keep last */
11394 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
11395 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
11396 	QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
11397 };
11398 
11399 /**
11400  * enum qca_vendor_wlan_sta_flags - Station feature flags
11401  * Bits will be set to 1 if the corresponding features are enabled.
11402  * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
11403  * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
11404     for the station
11405  * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
11406     for the station
11407  */
11408 enum qca_vendor_wlan_sta_flags {
11409 	QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
11410 	QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
11411 	QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
11412 };
11413 
11414 /**
11415  * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
11416  * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
11417  * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
11418  * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
11419  * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
11420  */
11421 enum qca_vendor_wlan_sta_guard_interval {
11422 	QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
11423 	QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
11424 	QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
11425 	QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
11426 };
11427 
11428 /**
11429  * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
11430  * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
11431  *
11432  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
11433  * Required attribute in request for AP mode only, 6-byte MAC address,
11434  * corresponding to the station's MAC address for which information is
11435  * requested. For STA mode this is not required as the info always correspond
11436  * to the self STA and the current/last association.
11437  *
11438  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
11439  * Optionally used in response, u32 attribute, contains a bitmap of different
11440  * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
11441  *
11442  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
11443  * Optionally used in response, u32 attribute, possible values are defined in
11444  * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
11445  * Guard interval used by the station.
11446  *
11447  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
11448  * Optionally used in response, u32 attribute, used in AP mode only.
11449  * Value indicates the number of data frames received from station with retry
11450  * bit set to 1 in FC.
11451  *
11452  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
11453  * Optionally used in response, u32 attribute, used in AP mode only.
11454  * Counter for number of data frames with broadcast or multicast address in
11455  * the destination address received from the station.
11456  *
11457  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
11458  * Optionally used in response, u32 attribute, used in both STA and AP modes.
11459  * Value indicates the number of data frames successfully transmitted only
11460  * after retrying the packets and for which the TX status has been updated
11461  * back to host from target.
11462  *
11463  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
11464  * Optionally used in response, u32 attribute, used in both STA and AP mode.
11465  * Value indicates the number of data frames not transmitted successfully even
11466  * after retrying the packets for the number of times equal to the total number
11467  * of retries allowed for that packet and for which the TX status has been
11468  * updated back to host from target.
11469  *
11470  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
11471  * Optionally used in response, u32 attribute, used in AP mode only.
11472  * Counter in the target for the number of data frames successfully transmitted
11473  * to the station.
11474  *
11475  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
11476  * Optionally used in response, u32 attribute, used in AP mode only.
11477  * Value indicates the number of data frames successfully transmitted only
11478  * after retrying the packets.
11479  *
11480  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
11481  * Optionally used in response, u32 attribute, used in both STA & AP mode.
11482  * Value indicates the number of data frames not transmitted successfully even
11483  * after retrying the packets for the number of times equal to the total number
11484  * of retries allowed for that packet.
11485  *
11486  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
11487  * the STA mode only. Represent the number of probe requests sent by the STA
11488  * while attempting to roam on missing certain number of beacons from the
11489  * connected AP. If queried in the disconnected state, this represents the
11490  * count for the last connected state.
11491  *
11492  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
11493  * the STA mode. Represent the number of probe responses received by the station
11494  * while attempting to roam on missing certain number of beacons from the
11495  * connected AP. When queried in the disconnected state, this represents the
11496  * count when in last connected state.
11497  *
11498  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
11499  * STA mode only. Represents the total number of frames sent out by STA
11500  * including Data, ACK, RTS, CTS, Control Management. This data is maintained
11501  * only for the connect session. Represents the count of last connected session,
11502  * when queried in the disconnected state.
11503  *
11504  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
11505  * Total number of RTS sent out by the STA. This data is maintained per connect
11506  * session. Represents the count of last connected session, when queried in the
11507  * disconnected state.
11508  *
11509  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
11510  * STA mode.Represent the number of RTS transmission failure that reach retry
11511  * limit. This data is maintained per connect session. Represents the count of
11512  * last connected session, when queried in the disconnected state.
11513  *
11514  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
11515  * the STA mode. Represent the total number of non aggregated frames transmitted
11516  * by the STA. This data is maintained per connect session. Represents the count
11517  * of last connected session, when queried in the disconnected state.
11518  *
11519  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
11520  * STA mode. Represent the total number of aggregated frames transmitted by the
11521  * STA. This data is maintained per connect session. Represents the count of
11522  * last connected session, when queried in the disconnected state.
11523  *
11524  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
11525  * the STA mode. Represents the number of received frames with a good PLCP. This
11526  * data is maintained per connect session. Represents the count of last
11527  * connected session, when queried in the disconnected state.
11528  *
11529  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
11530  * used in the STA mode. Represents the number of occasions that no valid
11531  * delimiter is detected by A-MPDU parser. This data is maintained per connect
11532  * session. Represents the count of last connected session, when queried in the
11533  * disconnected state.
11534  *
11535  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
11536  * STA mode. Represents the number of frames for which CRC check failed in the
11537  * MAC. This data is maintained per connect session. Represents the count of
11538  * last connected session, when queried in the disconnected state.
11539  *
11540  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
11541  * STA mode. Represents the number of unicast ACKs received with good FCS. This
11542  * data is maintained per connect session. Represents the count of last
11543  * connected session, when queried in the disconnected state.
11544  *
11545  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
11546  * mode. Represents the number of received Block Acks. This data is maintained
11547  * per connect session. Represents the count of last connected session, when
11548  * queried in the disconnected state.
11549  *
11550  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
11551  * mode. Represents the number of beacons received from the connected BSS. This
11552  * data is maintained per connect session. Represents the count of last
11553  * connected session, when queried in the disconnected state.
11554  *
11555  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
11556  * STA mode. Represents the number of beacons received by the other BSS when in
11557  * connected state (through the probes done by the STA). This data is maintained
11558  * per connect session. Represents the count of last connected session, when
11559  * queried in the disconnected state.
11560  *
11561  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
11562  * the STA mode. Represents the number of received DATA frames with good FCS and
11563  * matching Receiver Address when in connected state. This data is maintained
11564  * per connect session. Represents the count of last connected session, when
11565  * queried in the disconnected state.
11566  *
11567  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
11568  * STA mode. Represents the number of RX Data multicast frames dropped by the HW
11569  * when in the connected state. This data is maintained per connect session.
11570  * Represents the count of last connected session, when queried in the
11571  * disconnected state.
11572  *
11573  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
11574  * STA mode. This represents the target power in dBm for the transmissions done
11575  * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
11576  * connect session. Represents the count of last connected session, when
11577  * queried in the disconnected state.
11578  *
11579  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
11580  * STA mode. This represents the Target power in dBm for transmissions done to
11581  * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11582  * session. Represents the count of last connected session, when queried in the
11583  * disconnected state.
11584  *
11585  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
11586  * STA mode. This represents the Target power in dBm for transmissions done to
11587  * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
11588  * Represents the count of last connected session, when queried in the
11589  * disconnected state.
11590  *
11591  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
11592  * STA mode. This represents the Target power in dBm for transmissions done to
11593  * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
11594  * session. Represents the count of last connected session, when queried in
11595  * the disconnected state.
11596  *
11597  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
11598  * STA mode. This represents the Target power in dBm for for transmissions done
11599  * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
11600  * Represents the count of last connected session, when queried in the
11601  * disconnected state.
11602  *
11603  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
11604  * in the STA mode. This represents the Nested attribute representing the
11605  * overflow counts of each receive buffer allocated to the hardware during the
11606  * STA's connection. The number of hw buffers might vary for each WLAN
11607  * solution and hence this attribute represents the nested array of all such
11608  * HW buffer count. This data is maintained per connect session. Represents
11609  * the count of last connected session, when queried in the disconnected state.
11610  *
11611  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
11612  * allowed as per the regulatory requirements for the current or last connected
11613  * session. Used in the STA mode.
11614  *
11615  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
11616  * (dBm) used by the station in its latest unicast frame while communicating
11617  * to the AP in the connected state. When queried in the disconnected state,
11618  * this represents the TX power used by the STA with last AP communication
11619  * when in connected state.
11620  *
11621  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
11622  * level used to adjust the RX sensitivity. Represents the current ANI level
11623  * when queried in the connected state. When queried in the disconnected
11624  * state, this corresponds to the latest ANI level at the instance of
11625  * disconnection.
11626  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
11627  * only. This represents the number of group addressed robust management frames
11628  * received from this station with an invalid MIC or a missing MME when PMF is
11629  * enabled.
11630  *
11631  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
11632  * only. This represents the number of group addressed robust management frames
11633  * received from this station with the packet number less than or equal to the
11634  * last received packet number when PMF is enabled.
11635  *
11636  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
11637  * mode only. This represents the number of Beacon frames received from this
11638  * station with an invalid MIC or a missing MME when beacon protection is
11639  * enabled.
11640  *
11641  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
11642  * only. This represents number of Beacon frames received from this station with
11643  * the packet number less than or equal to the last received packet number when
11644  * beacon protection is enabled.
11645  *
11646  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
11647  * STA mode only. Driver uses this attribute to populate the connection failure
11648  * reason codes and the values are defined in
11649  * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
11650  * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
11651  * connection failure from driver. The driver shall not include this attribute
11652  * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
11653  * connection failure observed in the last attempted connection.
11654  *
11655  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
11656  * used by the station in its last TX frame while communicating to the AP in the
11657  * connected state. When queried in the disconnected state, this represents the
11658  * rate used by the STA in the last TX frame to the AP when it was connected.
11659  * This attribute is used for STA mode only.
11660  *
11661  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
11662  * This represents the rate index used by the STA for the last TX frame to the
11663  * AP. When queried in the disconnected state, this gives the last RIX used by
11664  * the STA in the last TX frame to the AP when it was connected.
11665  *
11666  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
11667  * mode only. This represents the number of times the STA TSF goes out of sync
11668  * from the AP after the connection. If queried in the disconnected state, this
11669  * gives the count of TSF out of sync for the last connection.
11670  *
11671  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
11672  * mode only. This represents the roam trigger reason for the last roaming
11673  * attempted by the firmware. This can be queried either in connected state or
11674  * disconnected state. Each bit of this attribute represents the different
11675  * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
11676  *
11677  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
11678  * only. This represents the roam fail reason for the last failed roaming
11679  * attempt by the firmware. Different roam failure reason codes are specified
11680  * in enum qca_vendor_roam_fail_reasons. This can be queried either in
11681  * connected state or disconnected state.
11682  *
11683  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
11684  * STA mode only. This represents the roam invoke fail reason for the last
11685  * failed roam invoke. Different roam invoke failure reason codes
11686  * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
11687  * queried either in connected state or disconnected state.
11688  *
11689  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
11690  * This represents the average congestion duration of uplink frames in MAC
11691  * queue in unit of ms. This can be queried either in connected state or
11692  * disconnected state.
11693  *
11694  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
11695  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11696  * rate value of TX packets. Every index of this nested attribute corresponds
11697  * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
11698  * queried in connected state.
11699  *
11700  * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
11701  * attribute, used in AP mode. This represents the MPDU packet count per MCS
11702  * rate value of RX packets. Every index of this nested attribute corresponds
11703  * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
11704  * queried in connected state.
11705  */
11706 enum qca_wlan_vendor_attr_get_sta_info {
11707 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
11708 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
11709 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
11710 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
11711 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
11712 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
11713 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
11714 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
11715 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
11716 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
11717 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
11718 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
11719 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
11720 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
11721 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
11722 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
11723 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
11724 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
11725 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
11726 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
11727 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
11728 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
11729 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
11730 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
11731 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
11732 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
11733 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
11734 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
11735 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
11736 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
11737 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
11738 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
11739 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
11740 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
11741 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
11742 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
11743 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
11744 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
11745 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
11746 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
11747 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
11748 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
11749 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
11750 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
11751 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
11752 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
11753 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
11754 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
11755 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
11756 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
11757 
11758 	/* keep last */
11759 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
11760 	QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
11761 		QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
11762 };
11763 
11764 /**
11765  * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
11766  * Used when the driver triggers the STA to disconnect from the AP.
11767  *
11768  * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
11769  * disconnection with the AP due to unspecified reasons.
11770  *
11771  * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
11772  * disconnection with the AP due to a roaming failure. This roaming is triggered
11773  * internally (host driver/firmware).
11774  *
11775  * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
11776  * the AP when the user/external triggered roaming fails.
11777  *
11778  * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
11779  * by the host driver whenever gateway reachability failure is detected and the
11780  * driver disconnects with AP.
11781  *
11782  * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
11783  * the AP on a channel switch announcement from it with an unsupported channel.
11784  *
11785  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
11786  * with indoor channels disabled and if the STA is connected on one of these
11787  * disabled channels, the host driver disconnected the STA with this reason
11788  * code.
11789  *
11790  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
11791  * explicit request from the user to disable the current operating channel.
11792  *
11793  * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
11794  * the internal host driver/firmware recovery.
11795  *
11796  * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
11797  * a timeout for the key installations from the user space.
11798  *
11799  * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
11800  * STA on a band change request from the user space to a different band from the
11801  * current operation channel/band.
11802  *
11803  * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
11804  * interface down trigger from the user space.
11805  *
11806  * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
11807  * STA on getting continuous transmission failures for multiple Data frames.
11808  *
11809  * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
11810  * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
11811  * represents inactivity from AP on such transmissions.
11812 
11813  * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
11814  * disconnection when SA Query times out (AP does not respond to SA Query).
11815  *
11816  * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
11817  * STA on missing the beacons continuously from the AP.
11818  *
11819  * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
11820  * able to move to the channel mentioned by the AP in CSA.
11821  *
11822  * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
11823  */
11824 enum qca_disconnect_reason_codes {
11825 	QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
11826 	QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
11827 	QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
11828 	QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
11829 	QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
11830 	QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
11831 	QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
11832 	QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
11833 	QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
11834 	QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
11835 	QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
11836 	QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
11837 	QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
11838 	QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
11839 	QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
11840 	QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
11841 	QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
11842 };
11843 
11844 /**
11845  * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
11846  * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
11847  *
11848  * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
11849  * This attribute represents the driver specific reason codes (local
11850  * driver/firmware initiated reasons for disconnection) defined
11851  * in enum qca_disconnect_reason_codes.
11852  */
11853 enum qca_wlan_vendor_attr_driver_disconnect_reason {
11854 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
11855 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
11856 
11857 	/* keep last */
11858 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
11859 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
11860 	QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
11861 };
11862 
11863 /**
11864  * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
11865  *
11866  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
11867  */
11868 enum qca_wlan_tspec_operation {
11869 	QCA_WLAN_TSPEC_ADD = 0,
11870 	QCA_WLAN_TSPEC_DEL = 1,
11871 	QCA_WLAN_TSPEC_GET = 2,
11872 };
11873 
11874 /**
11875  * enum qca_wlan_tspec_direction - Direction in TSPEC
11876  * As what is defined in IEEE Std 802.11-2016, Table 9-139.
11877  *
11878  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
11879  */
11880 enum qca_wlan_tspec_direction {
11881 	QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
11882 	QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
11883 	QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
11884 	QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
11885 };
11886 
11887 /**
11888  * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
11889  * As what is defined in IEEE Std 802.11-2016, Table 9-141.
11890  *
11891  * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
11892  */
11893 enum qca_wlan_tspec_ack_policy {
11894 	QCA_WLAN_TSPEC_NORMAL_ACK = 0,
11895 	QCA_WLAN_TSPEC_NO_ACK = 1,
11896 	/* Reserved */
11897 	QCA_WLAN_TSPEC_BLOCK_ACK = 3,
11898 };
11899 
11900 /**
11901  * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
11902  * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
11903  *
11904  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
11905  * u8 attribute. Specify the TSPEC operation of this request. Possible values
11906  * are defined in enum qca_wlan_tspec_operation.
11907  * Mandatory attribute for all kinds of config TSPEC requests.
11908  *
11909  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
11910  * u8 attribute. TS ID. Possible values are 0-7.
11911  * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
11912  * QCA_WLAN_TSPEC_GET. A mandatory attribute.
11913  *
11914  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
11915  * u8 attribute. Direction of data carried by the TS. Possible values are
11916  * defined in enum qca_wlan_tspec_direction.
11917  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11918  *
11919  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
11920  * Flag attribute. Indicate whether APSD is enabled for the traffic associated
11921  * with the TS. set - enabled, not set - disabled.
11922  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11923  *
11924  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
11925  * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
11926  * belonging to this TS. Possible values are 0-7.
11927  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11928  *
11929  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
11930  * u8 attribute. Indicate whether MAC acknowledgements are required for
11931  * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
11932  * Possible values are defined in enum qca_wlan_tspec_ack_policy.
11933  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11934  *
11935  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
11936  * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
11937  * belonging to this TS.
11938  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11939  *
11940  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
11941  * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
11942  * belonging to this TS.
11943  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11944  *
11945  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
11946  * u32 attribute. Specify the minimum interval in microseconds between the
11947  * start of two successive SPs.
11948  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11949  *
11950  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
11951  * u32 attribute. Specify the maximum interval in microseconds between the
11952  * start of two successive SPs.
11953  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11954  *
11955  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
11956  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11957  * without arrival or transfer of an MPDU belonging to the TS before this TS
11958  * is deleted by the MAC entity at the HC.
11959  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11960  *
11961  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
11962  * u32 attribute. Specify the minimum interval in microseconds that can elapse
11963  * without arrival or transfer of an MSDU belonging to the TS before the
11964  * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
11965  * 0xFFFFFFFF disables the suspension interval. The value of the suspension
11966  * interval is always less than or equal to the inactivity interval.
11967  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
11968  *
11969  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
11970  * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
11971  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11972  * bounds of this TSPEC.
11973  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11974  *
11975  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
11976  * u32 attribute. Indicate the average data rate in bps specified at the MAC
11977  * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
11978  * bounds of this TSPEC.
11979  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11980  *
11981  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
11982  * u32 attribute. Indicate the maximum allowable data rate in bps specified at
11983  * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
11984  * the bounds of this TSPEC.
11985  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11986  *
11987  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
11988  * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
11989  * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
11990  * value of 0 indicates that there are no bursts.
11991  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11992  *
11993  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
11994  * u32 attribute. Indicate the minimum PHY rate in bps for transport of
11995  * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
11996  * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
11997  *
11998  * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
11999  * u16 attribute. Specify the excess allocation of time (and bandwidth) over
12000  * and above the stated application rates required to transport an MSDU/A-MSDU
12001  * belonging to the TS in this TSPEC.
12002  * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
12003  */
12004 enum qca_wlan_vendor_attr_config_tspec {
12005 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
12006 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
12007 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
12008 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
12009 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
12010 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
12011 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
12012 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
12013 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
12014 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
12015 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
12016 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
12017 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
12018 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
12019 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
12020 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
12021 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
12022 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
12023 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
12024 
12025 	/* keep last */
12026 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
12027 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
12028 	QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
12029 };
12030 
12031 /**
12032  * enum qca_wlan_medium_assess_type - Type of medium assess request
12033  *
12034  * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
12035  */
12036 enum qca_wlan_medium_assess_type {
12037 	QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
12038 	QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
12039 };
12040 
12041 /**
12042  * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
12043  * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
12044  *
12045  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
12046  * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
12047  * Specify the type of medium assess request and indicate its type in response.
12048  * Possible values are defined in enum qca_wlan_medium_assess_type.
12049  *
12050  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
12051  * u32 attribute. Mandatory in CCA request.
12052  * Specify the assessment period in terms of seconds. Assessment result will be
12053  * sent as the response to the CCA request after the assessment period.
12054  *
12055  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
12056  * u32 attribute. Mandatory in response to CCA request.
12057  * Total timer tick count of the assessment cycle.
12058  *
12059  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
12060  * u32 attribute. Mandatory in response to CCA request.
12061  * Timer tick count of idle time in the assessment cycle.
12062  *
12063  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
12064  * u32 attribute. Mandatory in response to CCA request.
12065  * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
12066  *
12067  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
12068  * u32 attribute. Mandatory in response to CCA request.
12069  * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
12070  *
12071  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
12072  * s32 attribute. Mandatory in response to CCA request.
12073  * Maximum RSSI of Intra BSS traffic in the assessment cycle.
12074  *
12075  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
12076  * s32 attribute. Mandatory in response to CCA request.
12077  * Minimum RSSI of Intra BSS traffic in the assessment cycle.
12078  *
12079  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
12080  * u8 attribute. Mandatory in congestion report request.
12081  * 1-enable 0-disable.
12082  *
12083  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
12084  * u8 attribute. Mandatory in congestion report enable request and will be
12085  * ignored if present in congestion report disable request. Possible values are
12086  * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
12087  * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
12088  * congestion percentage reaches the configured threshold.
12089  *
12090  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
12091  * u8 attribute. Optional in congestion report enable request and will be
12092  * ignored if present in congestion report disable request.
12093  * Specify the interval of congestion report event in terms of seconds. Possible
12094  * values are 1-255. Default value 1 will be used if this attribute is omitted
12095  * or using invalid values.
12096  *
12097  * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
12098  * u8 attribute. Mandatory in congestion report event.
12099  * Indicate the actual congestion percentage. Possible values are 0-100.
12100  */
12101 enum qca_wlan_vendor_attr_medium_assess {
12102 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
12103 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
12104 
12105 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
12106 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
12107 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
12108 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
12109 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
12110 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
12111 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
12112 
12113 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
12114 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
12115 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
12116 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
12117 
12118 	/* keep last */
12119 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
12120 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
12121 	QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
12122 };
12123 
12124 /**
12125  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
12126  * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
12127  *
12128  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
12129  * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
12130  * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
12131  * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
12132  *
12133  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
12134  * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
12135  *
12136  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
12137  * u8 attribute, required. indicates group id of Tx VDEV
12138  *
12139  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
12140  * Nested attribute. This attribute shall be used by the driver to send
12141  * group information. The attributes defined in enum
12142  * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
12143  * are nested in this attribute.
12144  */
12145 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
12146 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
12147 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
12148 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
12149 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
12150 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
12151 
12152 	/* keep last */
12153 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
12154 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
12155 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
12156 };
12157 
12158 /**
12159  * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
12160  * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
12161  *
12162  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
12163  * u32 attribute, required. contains interface index.
12164  *
12165  * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
12166  * u8 attribute, required. 0 - means vdev is in down state.
12167  * 1- means vdev is in up state.
12168  */
12169 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
12170 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
12171 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
12172 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
12173 
12174 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
12175 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
12176 	QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
12177 };
12178 
12179 /**
12180  * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
12181  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
12182  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
12183  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
12184  * frame
12185  * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
12186  * Request frame.
12187  */
12188 enum qca_wlan_vendor_oci_override_frame_type {
12189 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
12190 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
12191 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
12192 	QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
12193 };
12194 
12195 /**
12196  * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
12197  *
12198  * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
12199  * STA interface has to be given while selecting the connection policies
12200  * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
12201  * An interface is set as primary through the attribute
12202  * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
12203  * applicable if the primary interface has not been set earlier.
12204  *
12205  * The intention is not to downgrade the primary STA performance, such as:
12206  * - Do not reduce the number of TX/RX chains of primary connection.
12207  * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
12208  *   chains.
12209  * - If using MCC, should set the MCC duty cycle of the primary connection to
12210  *   be higher than the secondary connection.
12211  *
12212  * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
12213  * subsequent STA connection shall be chosen to balance with the existing
12214  * concurrent STA's performance.
12215  * Such as
12216  * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
12217  *   capability.
12218  * - If using MCC, set the MCC duty cycle of the primary connection to be equal
12219  *   to the secondary.
12220  * - Prefer BSSID candidates which will help provide the best "overall"
12221  *   performance for all the STA connections.
12222  */
12223 enum qca_wlan_concurrent_sta_policy_config {
12224 	QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
12225 	QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
12226 };
12227 
12228 /**
12229  * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
12230  *
12231  * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
12232  * interface.
12233  *
12234  * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
12235  * to meet gaming audio latency requirements.
12236  *
12237  * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
12238  * concurrencies to meet lossless audio streaming requirements.
12239  *
12240  * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
12241  * XR (eXtended Reality) requirements.
12242  */
12243 enum qca_wlan_concurrent_ap_policy_config {
12244 	QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
12245 	QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
12246 	QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
12247 	QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
12248 };
12249 
12250 /**
12251  * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
12252  * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
12253  *
12254  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
12255  * u8 attribute. Configures the concurrent STA policy configuration.
12256  * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
12257 
12258  * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
12259  * u8 attribute. Configures the concurrent AP policy configuration.
12260  * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
12261  */
12262 enum qca_wlan_vendor_attr_concurrent_policy {
12263 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
12264 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
12265 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
12266 
12267 	/* keep last */
12268 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
12269 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
12270 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
12271 
12272 };
12273 
12274 /* Compatibility defines for previously used enum
12275  * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
12276  * in any new implementation.
12277  */
12278 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
12279 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
12280 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
12281 	QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
12282 #define qca_wlan_vendor_attr_concurrent_sta_policy \
12283 	qca_wlan_vendor_attr_concurrent_policy
12284 
12285 /**
12286  * enum qca_sta_connect_fail_reason_codes - Defines values carried
12287  * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
12288  * attribute.
12289  * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
12290  * for unicast probe request.
12291  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
12292  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
12293  * ath request.
12294  * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
12295  * received from AP.
12296  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
12297  * request.
12298  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
12299  * assoc request.
12300  * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
12301  * received from AP.
12302  */
12303 enum qca_sta_connect_fail_reason_codes {
12304 	QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
12305 	QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
12306 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
12307 	QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
12308 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
12309 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
12310 	QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
12311 };
12312 
12313 /**
12314  * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
12315  * OCI override request. These attributes are used inside nested attribute
12316  * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
12317  * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
12318  *
12319  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
12320  * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
12321  * attribute to specify the frame type in which the OCI is to be overridden.
12322  *
12323  * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
12324  * OCI frequency (in MHz) to override in the specified frame type.
12325  */
12326 enum qca_wlan_vendor_attr_oci_override {
12327 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
12328 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
12329 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
12330 
12331 	/* keep last */
12332 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
12333 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
12334 	QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
12335 };
12336 
12337 /**
12338  * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
12339  * filters defined in this enum are used in attribute
12340  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
12341  *
12342  * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
12343  * shall filter the channels which are not usable because of coexistence with
12344  * cellular radio.
12345  * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
12346  * shall filter the channels which are not usable because of existing active
12347  * interfaces in the driver and will result in Multi Channel Concurrency, etc.
12348  *
12349  */
12350 enum qca_wlan_vendor_usable_channels_filter {
12351 	QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
12352 	QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
12353 };
12354 
12355 /**
12356  * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
12357  * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
12358  *
12359  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
12360  * u32 attribute, required. Indicates the center frequency of the primary
12361  * channel in MHz.
12362  *
12363  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
12364  * u32 attribute. Indicates the center frequency of the primary segment of the
12365  * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
12366  * 160 MHz, and 320 MHz channels.
12367  *
12368  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
12369  * u32 attribute. Indicates the center frequency of the secondary segment of
12370  * 80+80 channel in MHz. This attribute is required only when
12371  * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
12372  *
12373  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
12374  * u32 attribute, required. Indicates the bandwidth of the channel, possible
12375  * values are defined in enum nl80211_chan_width.
12376  *
12377  * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
12378  * u32 attribute, required. Indicates all the interface types for which this
12379  * channel is usable. This attribute encapsulates bitmasks of interface types
12380  * defined in enum nl80211_iftype.
12381  *
12382  */
12383 enum qca_wlan_vendor_attr_chan_info {
12384 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
12385 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
12386 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
12387 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
12388 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
12389 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
12390 
12391 	/* keep last */
12392 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
12393 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
12394 	QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
12395 };
12396 
12397 /**
12398  * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
12399  * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
12400  *
12401  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
12402  * u32 attribute. Indicates the bands from which the channels should be reported
12403  * in response. This attribute encapsulates bit masks of bands defined in enum
12404  * nl80211_band. Optional attribute, if not present in the request the driver
12405  * shall return channels from all supported bands.
12406  *
12407  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
12408  * u32 attribute. Indicates all the interface types for which the usable
12409  * channels information is requested. This attribute encapsulates bitmasks of
12410  * interface types defined in enum nl80211_iftype. Optional attribute, if not
12411  * present in the request the driver shall send information of all supported
12412  * interface modes.
12413  *
12414  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
12415  * u32 attribute. This attribute carries information of all filters that shall
12416  * be applied while populating usable channels information by the driver. This
12417  * attribute carries bit masks of different filters defined in enum
12418  * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
12419  * in the request the driver shall send information of channels without applying
12420  * any of the filters that can be configured through this attribute.
12421  *
12422  * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
12423  * Nested attribute. This attribute shall be used by the driver to send
12424  * usability information of each channel. The attributes defined in enum
12425  * qca_wlan_vendor_attr_chan_info are used inside this attribute.
12426  */
12427 enum qca_wlan_vendor_attr_usable_channels {
12428 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
12429 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
12430 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
12431 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
12432 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
12433 
12434 	/* keep last */
12435 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
12436 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
12437 	QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
12438 };
12439 
12440 /**
12441  * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
12442  * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
12443  *
12444  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
12445  *	the list of radar history entries.
12446  *	Each entry contains freq, timestamp, and radar signal detect flag.
12447  *	The driver shall add an entry when CAC has finished, or radar signal
12448  *	has been detected post AP beaconing. The driver shall maintain at least
12449  *	8 entries in order to save CAC result for a 160 MHz channel.
12450  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
12451  *	Channel frequency in MHz.
12452  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
12453  *	CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
12454  *	or radar detection.
12455  * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
12456  *	This flag indicates radar signal has been detected.
12457  */
12458 enum qca_wlan_vendor_attr_radar_history {
12459 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
12460 
12461 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
12462 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
12463 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
12464 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
12465 
12466 	/* keep last */
12467 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
12468 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
12469 	QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
12470 };
12471 
12472 /**
12473  * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
12474  *
12475  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
12476  *	target exited MCC state and cleared the quota information. In the
12477  *	command it clears MCC quota setting and restores adaptive scheduling.
12478  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
12479  *      will not be changed.
12480  *      This quota type is present in command/event.
12481  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
12482  *      and the target may change the quota based on the data activity.
12483  *      This quota type is only present in event.
12484  * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
12485  *      by the target for low latency.
12486  *      This quota type is only present in command.
12487  */
12488 enum qca_wlan_vendor_mcc_quota_type {
12489 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
12490 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
12491 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
12492 	QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
12493 };
12494 
12495 /**
12496  * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
12497  * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
12498  * quota information or as a command to set the required MCC quota for an
12499  * interface.
12500  *
12501  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
12502  * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
12503  * In a command this specifies the MCC quota type to be set for the interface.
12504  * In an event this provides the current quota type in force.
12505  * This is required in a command and an event.
12506  *
12507  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
12508  * the list of channel quota entries.
12509  * In an event each entry contains the frequency and respective time quota for
12510  * all the MCC interfaces.
12511  * In a command it specifies the interface index and respective time quota.
12512  * In a command only one entry (ifindex, quota pair) may be specified.
12513  *
12514  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
12515  * Channel frequency in MHz. This is present only in an event.
12516  *
12517  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
12518  * Channel time quota expressed as percentage.
12519  * This is present in an event and a command.
12520  * In an command, the user shall specify the quota to be allocated for the
12521  * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
12522  * In an event this provides the existing quota for the channel.
12523  *
12524  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
12525  * Specifies the interface index (netdev) for which the corresponding
12526  * configurations are applied. This is required in a command only. Only one
12527  * interface index may be specified. If not specified, the configuration is
12528  * rejected.
12529  *
12530  * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
12531  * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
12532  * low latency mode. The firmware will do optimization for low
12533  * latency in Multi-Channel concurrency state if enabled. And all existing
12534  * user quota setting will be overwritten by the target.
12535  * 0 - disable(default), 1 - enable.
12536  * It is only present in a command with quota type of
12537  * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
12538  */
12539 enum qca_wlan_vendor_attr_mcc_quota {
12540 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
12541 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
12542 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
12543 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
12544 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
12545 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
12546 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
12547 
12548 	/* keep last */
12549 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
12550 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
12551 	QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
12552 };
12553 
12554 /**
12555  * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
12556  * are used by the attribute
12557  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
12558  *
12559  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
12560  *  invoke roam.
12561  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
12562  *  detection failed when the roam trigger.
12563  * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
12564  */
12565 
12566 enum qca_wlan_roam_stats_invoke_reason {
12567 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
12568 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
12569 	QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
12570 };
12571 
12572 /**
12573  * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
12574  * values are used by the attribute
12575  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
12576  *
12577  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
12578  *  roam by kickout.
12579  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
12580  *  trigger by kickout.
12581  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
12582  *  roam trigger by kickout.
12583  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
12584  *  roam trigger by kickout.
12585  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
12586  *  disappeared, and all TX is failing when roam trigger by kickout.
12587  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
12588  *   timeout when roam trigger by kickout.
12589  * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
12590  *  peer has roamed to a repeater.
12591  */
12592 enum qca_wlan_roam_stats_tx_failures_reason {
12593 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
12594 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
12595 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
12596 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
12597 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
12598 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
12599 	QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
12600 };
12601 
12602 /**
12603  * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
12604  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
12605  *
12606  * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
12607  *  detailed reason for roam scan being aborted.
12608  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
12609  *  started due to high data RSSI during LOW-RSSI roaming.
12610  * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
12611  *  started due to good link speed during LOW-RSSI roaming.
12612  * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
12613  *  due to high data RSSI during background roaming.
12614  * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
12615  *  started due to high beacon RSSI during background roaming
12616  */
12617 enum qca_wlan_roam_stats_abort_reason {
12618 	QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
12619 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
12620 	QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
12621 	QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
12622 	QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
12623 };
12624 
12625 /**
12626  * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
12627  * These values are used by the attribute
12628  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
12629  *
12630  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
12631  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
12632  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
12633  *  This is generally used in BTM events to indicate BTM frame exchange logs.
12634  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
12635  *  from 2.4 GHz to 5 GHz or 6 GHz
12636  * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
12637  *  5 GHz to 6 GHz
12638  */
12639 enum qca_wlan_roam_stats_scan_type {
12640 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
12641 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
12642 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
12643 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
12644 	QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
12645 };
12646 
12647 /**
12648  * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
12649  * These values are used by the attribute
12650  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
12651  *
12652  * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
12653  *  detailed roam scan type.
12654  * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
12655  * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
12656  */
12657 enum qca_wlan_roam_stats_scan_dwell_type {
12658 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
12659 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
12660 	QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
12661 };
12662 
12663 /**
12664  * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
12665  * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
12666  */
12667 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
12668 	/* 32-bit unsigned value to indicate center frequency of the primary
12669 	 * channel in MHz for each roam scan channel.
12670 	 */
12671 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
12672 	/* 8-bit unsigned value to indicate channel scan type for each
12673 	 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
12674 	 */
12675 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
12676 	/* 32-bit unsigned value to indicate maximum scan time in milliseconds
12677 	 * for each roam scan channel.
12678 	 */
12679 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
12680 
12681 	/* keep last */
12682 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
12683 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
12684 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
12685 };
12686 
12687 /**
12688  * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
12689  * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
12690  *
12691  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
12692  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
12693  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
12694  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
12695  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
12696  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
12697  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
12698  * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
12699  */
12700 enum qca_wlan_roam_stats_frame_subtype {
12701 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
12702 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
12703 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
12704 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
12705 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
12706 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
12707 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
12708 	QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
12709 };
12710 
12711 /**
12712  * enum roam_frame_status - Specifies the valid values the vendor roam frame
12713  * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
12714  *
12715  * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
12716  *  sent or received successfully.
12717  * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
12718  *  receiving failed.
12719  */
12720 enum qca_wlan_roam_stats_frame_status {
12721 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
12722 	QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
12723 };
12724 
12725 /**
12726  * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
12727  * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
12728  */
12729 enum qca_wlan_vendor_attr_roam_stats_frame_info {
12730 	/* 8-bit unsigned value to indicate the frame subtype during
12731 	 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
12732 	 */
12733 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
12734 	/* 8-bit unsigned value to indicate the frame is successful or failed
12735 	 * during roaming, one of the values in
12736 	 * qca_wlan_roam_stats_frame_status.
12737 	 */
12738 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
12739 	/* 64-bit unsigned value to indicate the timestamp for frame of
12740 	 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
12741 	 * when sent or received during roaming, timestamp in milliseconds
12742 	 * from system boot.
12743 	 */
12744 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
12745 
12746 	/* keep last */
12747 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
12748 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
12749 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
12750 };
12751 
12752 /**
12753  * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
12754  * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
12755  */
12756 enum qca_wlan_vendor_attr_roam_stats_info {
12757 	/* 64-bit unsigned value to indicate the timestamp when roam was
12758 	 * triggered by the firmware, timestamp in milliseconds from system
12759 	 * boot.
12760 	 */
12761 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
12762 	/* 32-bit unsigned value to indicate the roam trigger reason for the
12763 	 * last roaming attempted by the firmware. This can be queried either
12764 	 * in a connected state or disconnected state. The values of this
12765 	 * attribute represent the roam trigger reason codes, which
12766 	 * are defined in enum qca_roam_reason.
12767 	 */
12768 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
12769 	/* 8-bit unsigned value to indicate percentage of packets for which
12770 	 * the RX rate is lower than the RX rate threshold in total RX packets,
12771 	 * used for roaming trigger by per.
12772 	 */
12773 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
12774 	/* 8-bit unsigned value to indicate percentage of packets for which
12775 	 * the TX rate is lower than TX rate threshold in total TX packets,
12776 	 * used for roaming trigger by per.
12777 	 */
12778 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
12779 	/* 32-bit unsigned value to indicate final beacon miss count for
12780 	 * trigger reason of beacon miss.
12781 	 */
12782 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
12783 	/* 32-bit unsigned value to indicate consecutive beacon miss count
12784 	 * for trigger reason of beacon miss.
12785 	 */
12786 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
12787 	/* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
12788 	 * reason of beacon miss, 0 - success, 1 - fail.
12789 	 * If QOS-NULL TX status is successful, beacon miss final count and
12790 	 * consecutive beacon miss count will be reset to zero, and roam will
12791 	 * not be triggered. If QOS-NULL TX status is failed, beacon miss final
12792 	 * count and consecutive beacon miss count continue to calculate until
12793 	 * roaming trigger by beacon miss.
12794 	 */
12795 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
12796 	/* 8-bit signed value to indicate connected AP RSSI in dBm
12797 	 * for trigger reason of poor RSSI.
12798 	 */
12799 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
12800 	/* 8-bit signed value to indicate RSSI threshold value in dBm
12801 	 * for trigger reason of poor RSSI.
12802 	 */
12803 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
12804 	/* 8-bit unsigned value to indicate RX link speed status
12805 	 * for trigger reason of poor RSSI, 0 - good link speed,
12806 	 * 1 - bad link speed.
12807 	 */
12808 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
12809 	/* 8-bit signed value to indicate connected AP RSSI in dBm
12810 	 * for trigger reason of better RSSI.
12811 	 */
12812 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
12813 	/* 8-bit signed value to indicate RSSI threshold value in dBm
12814 	 * for trigger reason of better RSSI.
12815 	 */
12816 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
12817 	/* 32-bit unsigned value to indicate RX throughput in bytes per second
12818 	 * for trigger reason of congestion.
12819 	 */
12820 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
12821 	/* 32-bit unsigned value to indicate TX throughput in bytes per second
12822 	 * for trigger reason of congestion.
12823 	 */
12824 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
12825 	/* 8-bit unsigned value to indicate roamable AP count
12826 	 * for trigger reason of congestion.
12827 	 */
12828 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
12829 	/* 8-bit unsigned value to indicate invoke reason, one of the values
12830 	 * defined in qca_wlan_roam_stats_invoke_reason.
12831 	 */
12832 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
12833 	/* 8-bit unsigned value to indicate request mode for trigger reason
12834 	 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
12835 	 */
12836 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
12837 	/* 32-bit unsigned value to indicate disassociate time in milliseconds
12838 	 * for trigger reason of BTM.
12839 	 */
12840 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
12841 	/* 32-bit unsigned value to indicate preferred candidate list valid
12842 	 * interval in milliseconds for trigger reason of BTM.
12843 	 */
12844 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
12845 	/* 8-bit unsigned value to indicate the number of preferred
12846 	 * candidates for trigger reason of BTM.
12847 	 */
12848 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
12849 	/* 8-bit unsigned value to indicate response status for trigger
12850 	 * reason of BTM, values are defined in IEEE Std 802.11-2020,
12851 	 * Table 9-428 (BTM status code definitions).
12852 	 */
12853 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
12854 	/* 32-bit unsigned value to indicate BSS termination timeout value
12855 	 * in milliseconds for trigger reason of BTM.
12856 	 */
12857 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
12858 	/* 32-bit unsigned value to indicate MBO associate retry timeout
12859 	 * value in milliseconds for trigger reason of BTM.
12860 	 */
12861 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
12862 	/* 8-bit unsigned value to indicate dialog token number
12863 	 * for trigger reason of BTM.
12864 	 */
12865 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
12866 	/* 8-bit unsigned value to indicate percentage of connected AP
12867 	 * channel congestion utilization for trigger reason of BSS load.
12868 	 */
12869 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
12870 	/* 8-bit unsigned value to indicate disconnection type
12871 	 * for trigger reason of disconnection. 1 - Deauthentication,
12872 	 * 2 - Disassociation.
12873 	 */
12874 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
12875 	/* 16-bit unsigned value to indicate deauthentication or disassociation
12876 	 * reason for trigger reason of disconnection, values are defined
12877 	 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
12878 	 */
12879 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
12880 	/* 32-bit unsigned value to indicate milliseconds of roam scan
12881 	 * periodicity when needing to roam to find a better AP for trigger
12882 	 * reason of periodic timer.
12883 	 */
12884 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
12885 	/* 8-bit signed value to indicate connected AP RSSI in dBm for
12886 	 * trigger reason of background scan.
12887 	 */
12888 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
12889 	/* 8-bit signed value to indicate data RSSI in dBm for trigger reason
12890 	 * of background scan.
12891 	 */
12892 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
12893 	/* 8-bit signed value to indicate data RSSI threshold in dBm
12894 	 * for trigger reason of background scan.
12895 	 */
12896 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
12897 	/* 32-bit unsigned value to indicate consecutive TX failure threshold
12898 	 * for trigger reason of TX failures.
12899 	 */
12900 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
12901 	/* 8-bit unsigned value to indicate TX failure reason for trigger
12902 	 * reason of TX failures, one of the values defined in
12903 	 *  qca_wlan_roam_stats_tx_failures_reason.
12904 	 */
12905 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
12906 	/* 8-bit unsigned value to indicate detail abort reason. One of the
12907 	 * values in enum qca_wlan_roam_stats_abort_reason.
12908 	 */
12909 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
12910 	/* 8-bit signed value to indicate data RSSI in dBm when aborting the
12911 	 * roam scan.
12912 	 */
12913 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
12914 	/* 8-bit signed value to indicate data RSSI threshold in dBm when
12915 	 * aborting the roam scan.
12916 	 */
12917 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
12918 	/* 8-bit unsigned value to indicate data RSSI threshold in RX link
12919 	 * speed status when aborting the roam scan.
12920 	 * 0 - good link speed, 1 - bad link speed
12921 	 */
12922 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
12923 	/* 8-bit unsigned value to indicate roaming scan type.
12924 	 * One of the values in enum qca_wlan_roam_stats_scan_type.
12925 	 */
12926 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
12927 	/* 8-bit unsigned value to indicate roaming result, used in STA mode
12928 	 * only.
12929 	 * 0-Roaming is successful, 1-Roaming is failed
12930 	 */
12931 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
12932 	/* 8-bit unsigned value to indicate the roam fail reason for the
12933 	 * last failed roaming attempt by the firmware. Different roam failure
12934 	 * reason codes are specified in enum qca_vendor_roam_fail_reasons.
12935 	 * This can be queried either in connected state or disconnected state.
12936 	 */
12937 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
12938 	/* Nested attribute. Indicate roam scan info for each channel, the
12939 	 * attributes defined in enum
12940 	 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
12941 	 * this attribute.
12942 	 */
12943 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
12944 	/* 32-bit unsigned value to indicate total scan time during roam scan
12945 	 * all channels, time in milliseconds.
12946 	 */
12947 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
12948 	/* Nested attribute. This attribute shall be used by the driver to
12949 	 * send roam information of each subtype. The attributes defined in
12950 	 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
12951 	 * this attribute.
12952 	 */
12953 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
12954 
12955 	/* keep last */
12956 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
12957 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
12958 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
12959 };
12960 
12961 /**
12962  * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
12963  * report cached roam info from the driver to user space, enum values are used
12964  * for netlink attributes sent with the
12965  * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
12966  */
12967 enum qca_wlan_vendor_attr_roam_cached_stats {
12968 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
12969 	/* Nested attribute, this attribute contains nested array roam info
12970 	 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
12971 	 */
12972 	QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
12973 
12974 	/* keep last */
12975 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
12976 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
12977 	QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
12978 };
12979 
12980 /**
12981  * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
12982  * radio configurations present in each radio combination.
12983  *
12984  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
12985  * the band info in the radio configuration. Uses the enum qca_set_band values.
12986  *
12987  * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
12988  * the number of antennas info in the radio configuration.
12989  */
12990 enum qca_wlan_vendor_attr_supported_radio_cfg {
12991 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
12992 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
12993 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
12994 
12995 	/* keep last */
12996 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
12997 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
12998 	QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
12999 };
13000 
13001 /**
13002  * enum qca_wlan_vendor_attr_radio_combination - Attributes for
13003  * radio combinations supported by the device.
13004  *
13005  * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
13006  * provides the radio configurations present in the radio combination.
13007  * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
13008  * This attribute provides the values for radio combination matrix.
13009  * For standalone config, the number of config values is one and the config
13010  * carries the band and antenna information for standalone configuration. For
13011  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
13012  * configuration the number of config values is two and the config carries the
13013  * band and antenna information for each simultaneous radio.
13014  */
13015 enum qca_wlan_vendor_attr_radio_combination {
13016 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
13017 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
13018 
13019 	/* keep last */
13020 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
13021 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
13022 	QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
13023 };
13024 
13025 /**
13026  * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
13027  * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
13028  *
13029  * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
13030  * provides the radio combinations supported by the device.
13031  * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
13032  * For example, in the radio combination matrix for a device which has two
13033  * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
13034  * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
13035  * combinations is 5 and the radio combinations are
13036  * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
13037  * {{5 GHz 2X2}}, //Standalone 5 GHz
13038  * {{6 GHz 2X2}}, //Standalone 6 GHz
13039  * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
13040  * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
13041  * The band and antenna info together as nested data provides one radio config.
13042  * Standalone configuration has one config with band and antenna nested data.
13043  * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
13044  * have two nested band and antenna info data.
13045  */
13046 enum qca_wlan_vendor_attr_radio_combination_matrix {
13047 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
13048 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
13049 
13050 	/* keep last */
13051 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
13052 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
13053 	QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
13054 };
13055 
13056 /**
13057  * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
13058  * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
13059  *
13060  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
13061  * Enable mDNS offload. This attribute is mandatory to enable
13062  * mDNS offload feature. If this attribute is not present, mDNS offload
13063  * is disabled.
13064  *
13065  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
13066  * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
13067  * attribute is mandatory when enabling the feature, and not required when
13068  * disabling the feature.
13069  *
13070  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
13071  * the following attributes:
13072  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
13073  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
13074  *	%QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
13075  *
13076  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
13077  * It consists of a hostname and ".local" as the domain name. The character
13078  * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
13079  * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
13080  * supported per vdev.
13081  * For example: myphone.local
13082  *
13083  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
13084  * u16 attribute. It specifies the total number of resource records present
13085  * in the answer section of the answer payload. This attribute is needed by the
13086  * firmware to populate the mDNS response frame for mNDS queries without having
13087  * to parse the answer payload.
13088  *
13089  * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
13090  * attribute sent by the mdnsResponder from userspace. It contains resource
13091  * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
13092  * payload is passed down to firmware and is transmitted in response to
13093  * mDNS queries.
13094  * The maximum size of the answer payload supported is 512 bytes.
13095  */
13096 enum qca_wlan_vendor_attr_mdns_offload {
13097 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
13098 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
13099 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
13100 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
13101 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
13102 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
13103 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
13104 
13105 	/* keep last */
13106 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
13107 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
13108 	QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
13109 };
13110 
13111 /**
13112  * enum qca_vendor_attr_diag_event_type  - Attributes used by
13113  * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
13114  *
13115  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
13116  * driver/firmware during Connection request from Userspace. Uses the
13117  * following attributes of enum qca_wlan_vendor_attr_diag:
13118  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13119  * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
13120  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13121  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
13122  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13123  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
13124  * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
13125  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
13126  * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
13127  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13128  * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
13129  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
13130  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13131  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13132  *
13133  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
13134  * driver/firmware when a connection is failed. Uses the
13135  * following attributes of enum qca_wlan_vendor_attr_diag:
13136  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13137  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13138  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13139  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13140  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13141  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13142  *
13143  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
13144  * driver/firmware during Authentication request from a device. Uses the
13145  * following attributes of enum qca_wlan_vendor_attr_diag:
13146  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13147  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13148  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13149  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13150  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
13151  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13152  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13153  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13154  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13155  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13156  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13157  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13158  *
13159  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
13160  * driver/firmware when device receives an authentication response. Uses the
13161  * following attributes of enum qca_wlan_vendor_attr_diag:
13162  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13163  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13164  * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
13165  * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
13166  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13167  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13168  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13169  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13170  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13171  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13172  *
13173  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
13174  * driver/firmware when device sends an association request. Uses the
13175  * following attributes of enum qca_wlan_vendor_attr_diag:
13176  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13177  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13178  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13179  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13180  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13181  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13182  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13183  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13184  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13185  *
13186  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
13187  * driver/firmware when device receives an association response. Uses the
13188  * following attributes of enum qca_wlan_vendor_attr_diag:
13189  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13190  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13191  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13192  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13193  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13194  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13195  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13196  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13197  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
13198  *
13199  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
13200  * driver/userspace when device receives a deauthentication response. Uses the
13201  * following attributes of enum qca_wlan_vendor_attr_diag:
13202  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13203  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13204  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13205  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13206  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13207  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13208  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13209  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13210  *
13211  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
13212  * driver/userspace when device sends a deauthentication request. Uses the
13213  * following attributes of enum qca_wlan_vendor_attr_diag:
13214  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13215  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13216  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13217  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13218  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13219  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13220  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13221  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13222  *
13223  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
13224  * driver/firmware when device receives a disassociation response. Uses the
13225  * following attributes of enum qca_wlan_vendor_attr_diag:
13226  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13227  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13228  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13229  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13230  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13231  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13232  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13233  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13234  *
13235  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
13236  * driver/firmware when device sends a disassociation request. Uses the
13237  * following attributes of enum qca_wlan_vendor_attr_diag:
13238  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13239  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13240  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13241  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13242  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13243  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13244  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13245  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13246  *
13247  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
13248  * driver/firmware when device did not receive beacon packets during connection.
13249  * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
13250  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13251  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13252  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13253  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13254  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13255  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13256  *
13257  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
13258  * driver/firmware when Roaming scan is triggered. Uses the following
13259  * attributes of enum qca_wlan_vendor_attr_diag:
13260  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13261  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
13262  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
13263  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13264  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13265  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
13266  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
13267  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13268  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13269  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13270  *
13271  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
13272  * driver/firmware Roam scanning is processed. Uses the following
13273  * attributes of enum qca_wlan_vendor_attr_diag:
13274  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13275  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13276  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
13277  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
13278  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13279  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13280  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13281  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13282  * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
13283  *
13284  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
13285  * driver/firmware to provide Roam information of the current AP. Uses the
13286  * following attributes of enum qca_wlan_vendor_attr_diag:
13287  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13288  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13289  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13290  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13291  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13292  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
13293  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13294  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13295  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13296  *
13297  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
13298  * driver/firmware to provide Roam information of the candid AP. Uses the
13299  * following attributes of enum qca_wlan_vendor_attr_diag:
13300  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13301  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13302  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13303  * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
13304  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
13305  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
13306  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
13307  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13308  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13309  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13310  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13311  *
13312  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
13313  * driver/firmware to provide Roam result after selecting a candidate. Uses the
13314  * following attributes of enum qca_wlan_vendor_attr_diag:
13315  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13316  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
13317  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13318  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13319  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13320  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13321  *
13322  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
13323  * driver/firmware to indicate Roam Cancellation due to higher priority events.
13324  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13325  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13326  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13327  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13328  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13329  *
13330  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
13331  * /firmware when STA sends a BTM request frame. Uses the following attributes
13332  * of enum qca_wlan_vendor_attr_diag:
13333  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13334  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13335  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
13336  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
13337  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
13338  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
13339  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13340  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13341  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13342  *
13343  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
13344  * driver/firmware when STA queries about BTM transition. Uses the following
13345  * attributes of enum qca_wlan_vendor_attr_diag:
13346  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13347  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13348  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
13349  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13350  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13351  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13352  *
13353  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
13354  * /firmware when STA receives BTM response frame. Uses the following
13355  * attributes of enum qca_wlan_vendor_attr_diag:
13356  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13357  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
13358  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
13359  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
13360  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
13361  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13362  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13363  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13364  *
13365  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
13366  * driver/firmware to provide BTM request candidate information. Uses the
13367  * following attributes of enum qca_wlan_vendor_attr_diag:
13368  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13369  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13370  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
13371  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
13372  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13373  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13374  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13375  *
13376  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
13377  * /firmware when ROAM WTC trigger happens. Uses the following attributes of
13378  * enum qca_wlan_vendor_attr_diag:
13379  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13380  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
13381  * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
13382  * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
13383  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13384  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13385  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13386  *
13387  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
13388  * driver/firmware to indicate DHCP discovery to AP. Uses the following
13389  * attributes of enum qca_wlan_vendor_attr_diag:
13390  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13391  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13392  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13393  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13394  *
13395  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
13396  * driver/firmware to indicate DHCP offering to AP. Uses the following
13397  * attributes of enum qca_wlan_vendor_attr_diag:
13398  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13399  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13400  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13401  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13402  *
13403  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
13404  * driver/firmware to indicate driver sent DHCP packets. Uses the following
13405  * attributes of enum qca_wlan_vendor_attr_diag:
13406  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13407  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13408  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13409  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13410  *
13411  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
13412  * /firmware to indicate acknowledgement of DHCP packets. Uses the following
13413  * attributes of enum qca_wlan_vendor_attr_diag:
13414  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13415  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13416  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13417  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13418  *
13419  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
13420  * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
13421  * following attributes of enum qca_wlan_vendor_attr_diag:
13422  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13423  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13424  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13425  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13426  *
13427  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
13428  * /firmware to indicate EAPOL M1 message. Uses the following attributes of
13429  * enum qca_wlan_vendor_attr_diag:
13430  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13431  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13432  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13433  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13434  *
13435  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
13436  * /firmware to indicate EAPOL M2 message. Uses the following attributes of
13437  * enum qca_wlan_vendor_attr_diag:
13438  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13439  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13440  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13441  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13442  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13443  *
13444  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
13445  * /firmware to indicate EAPOL M3 message. Uses the following attributes of
13446  * enum qca_wlan_vendor_attr_diag:
13447  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13448  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13449  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13450  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13451  *
13452  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
13453  * /firmware to indicate EAPOL M4 message. Uses the following attributes of
13454  * enum qca_wlan_vendor_attr_diag:
13455  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13456  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13457  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13458  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13459  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13460  *
13461  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
13462  * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
13463  * enum qca_wlan_vendor_attr_diag:
13464  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13465  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13466  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13467  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13468  *
13469  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
13470  * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
13471  * enum qca_wlan_vendor_attr_diag:
13472  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13473  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13474  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13475  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
13476  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13477  *
13478  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
13479  * /firmware to indicate device sent EAP request. Uses the following attributes
13480  * of enum qca_wlan_vendor_attr_diag:
13481  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13482  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
13483  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
13484  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13485  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13486  *
13487  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
13488  * /firmware to indicate device received EAP response. Uses the following
13489  * attributes of enum qca_wlan_vendor_attr_diag:
13490  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13491  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
13492  * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
13493  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13494  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13495  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13496  *
13497  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
13498  * /firmware to indicate EAP frame transmission is success. Uses the following
13499  * attributes of enum qca_wlan_vendor_attr_diag:
13500  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13501  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13502  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13503  *
13504  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
13505  * /firmware to indicate EAP frame transmission is failed. Uses the following
13506  * attributes of enum qca_wlan_vendor_attr_diag:
13507  * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
13508  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13509  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
13510  *
13511  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
13512  * /firmware to indicate Reassocation request. Uses the following attributes
13513  * of enum qca_wlan_vendor_attr_diag:
13514  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13515  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13516  * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
13517  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13518  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
13519  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13520  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13521  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
13522  *
13523  * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
13524  * /firmware to indicate Reassocation response. Uses the following attributes
13525  * of enum qca_wlan_vendor_attr_diag:
13526  * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
13527  * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
13528  * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
13529  * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
13530  * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
13531  * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
13532  * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
13533  * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
13534  */
13535 enum qca_vendor_attr_diag_event_type {
13536 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
13537 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
13538 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
13539 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
13540 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
13541 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
13542 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
13543 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
13544 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
13545 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
13546 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
13547 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
13548 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
13549 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
13550 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
13551 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
13552 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
13553 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
13554 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
13555 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
13556 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
13557 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
13558 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
13559 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
13560 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
13561 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
13562 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
13563 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
13564 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
13565 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
13566 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
13567 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
13568 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
13569 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
13570 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
13571 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
13572 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
13573 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
13574 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
13575 
13576 	/* keep last */
13577 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
13578 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
13579 	QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
13580 };
13581 
13582 /**
13583  * enum qca_wlan_vendor_tx_status - Used by attribute
13584  * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
13585  * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
13586  * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
13587  * is not received.
13588  * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
13589  * acknowledged.
13590  */
13591 enum qca_wlan_vendor_tx_status {
13592 	QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
13593 	QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
13594 	QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
13595 };
13596 
13597 /**
13598  * enum qca_roam_sub_reason - Used by attribute
13599  * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
13600  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
13601  * timer expiry
13602  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
13603  * to no candidate found during LOW RSSI trigger.
13604  * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
13605  * Imminent timeout
13606  * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
13607  * failure
13608  * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
13609  * emergency like deauth/disassoc.
13610  * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
13611  * BSS transition management request.
13612  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
13613  * Roam scan triggered due to Low RSSI periodic timer
13614  * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
13615  * Roam trigger due to periodic timer after no candidate found during CU
13616  * inactivity timer scan.
13617  * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
13618  * found in high CU roam trigger.
13619  */
13620 enum qca_roam_sub_reason {
13621 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
13622 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
13623 	QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
13624 	QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
13625 	QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
13626 	QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
13627 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
13628 	QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
13629 	QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
13630 };
13631 
13632 /*
13633  * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
13634  * to send diag data to the userspace. The attributes defined in this enum are
13635  * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
13636  *
13637  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
13638  * by driver/firmware to send diag data. Each instance of this nested attribute
13639  * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
13640  * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
13641  * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
13642  * nested attribute can be sent with one vendor command
13643  * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
13644  *
13645  * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
13646  * attribute indicates the type of the diag event from driver/firmware. Uses
13647  * values from enum qca_vendor_attr_diag_event_type.
13648  *
13649  * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
13650  * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
13651  * API to send time of the day in microseconds to userspace.
13652  *
13653  * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
13654  * This attribute indicates firmware timestamp in microseconds.
13655  *
13656  * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
13657  * indicates wlan interface index.
13658  *
13659  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
13660  * indicates 6-byte MAC address representing the BSSID of the AP.
13661  *
13662  * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
13663  * indicates the 6-byte MAC address representing the BSSID hint sent in
13664  * the connect request.
13665  *
13666  * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
13667  * indicates the SSID in u8 array with a maximum length of 32.
13668  *
13669  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
13670  * indicates the frequency of AP in MHz.
13671  *
13672  * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
13673  * indicates frequency hint given in the connect request in MHz.
13674  *
13675  * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
13676  * This attribute indicates RSSI of the 802.11 frame in dBm.
13677  *
13678  * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
13679  * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
13680  * Table 12-10—Integrity and key wrap algorithms.
13681  *
13682  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
13683  * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
13684  * Table 12-10—Integrity and key wrap algorithms.
13685  *
13686  * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
13687  * attribute indicates Group management cipher suite defined in IEEE Std
13688  * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
13689  *
13690  * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
13691  * indicates Auth key management suite defined in IEEE Std 802.11‐2020
13692  * Table 9-151—AKM suite selectors.
13693  *
13694  * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
13695  * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
13696  * Section 9.4.1.1 Authentication Algorithm Number field.
13697  *
13698  * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
13699  * indicates bluetooth COEX is active or not.
13700  *
13701  * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
13702  * attribute indicates SAE authentication frame type. The possible values are
13703  * 1 - SAE commit frame
13704  * 2 - SAE confirm frame
13705  *
13706  * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
13707  * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
13708  * Table 9-49—Reason codes.
13709  *
13710  * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
13711  * attribute indicates sequence number of the frame defined in IEEE Std
13712  * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
13713  * field.
13714  *
13715  * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
13716  * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
13717  * 9-50—Status codes.
13718  *
13719  * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
13720  * Uses enum qca_wlan_vendor_tx_status.
13721  *
13722  * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
13723  * indicates if frame transmission is retried.
13724  *
13725  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
13726  * Uses enum qca_roam_reason.
13727  *
13728  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
13729  * Uses enum qca_roam_sub_reason.
13730  *
13731  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
13732  * indicates channel utilization in percentage.
13733  *
13734  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
13735  * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
13736  *
13737  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
13738  * This attribute indicates current RSSI threshold in dBm.
13739  *
13740  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
13741  * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
13742  * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
13743  *
13744  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
13745  * This attribute indicates number of scanned candidate APs.
13746  *
13747  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
13748  * attribute indicates roam AP rank computed based on connection preference.
13749  *
13750  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
13751  * This attribute indicates expected throughput in kbps.
13752  *
13753  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
13754  * This attribute indicates the preference value of candidate AP / connected AP
13755  * calculated in the firmware.
13756  *
13757  * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
13758  * indicates connection/roaming is successful or not.
13759  *
13760  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
13761  * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
13762  * IE present in the BTM frame.
13763  *
13764  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
13765  * This attribute indicates BTM WTC duration in milliseconds.
13766  *
13767  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
13768  * indicates dialog token value of BTM query/request/response frames.
13769  *
13770  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
13771  * attribute indicates the Transition Reason field indicates the reason why
13772  * a transition attempt occurred and contains one of the values defined in IEEE
13773  * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
13774  *
13775  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
13776  * indicates BTM mode defined in IEEE Std 802.11‐2020
13777  * Figure 9-924—Request Mode field format.
13778  *
13779  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
13780  * This attribute indicates the Disassociation Timer field which is the number
13781  * of beacon transmission times (TBTTs) until the serving AP will send a
13782  * Disassociation frame to this STA.
13783  *
13784  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
13785  * This attribute indicates BTM validity interval field in TBTTs defined in
13786  * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
13787  * Action field format.
13788  *
13789  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
13790  * This attribute indicates BTM candidate list entries.
13791  *
13792  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
13793  * This attribute indicates network preference for BTM transition defined in
13794  * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
13795  *
13796  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
13797  * This attribute indicates BTM transition status code defined in IEEE Std
13798  * 802.11‐2020 Table 9-428—BTM status code definitions.
13799  *
13800  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
13801  * This attribute indicates BSS termination delay defined in IEEE Std
13802  * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
13803  *
13804  * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
13805  * This attribute indicates 6-byte MAC address representing the BSSID of the
13806  * BSS that the non-AP STA transitions to.
13807  *
13808  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
13809  * indicates EAP frame type. The methods are enumerated by IANA at
13810  * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
13811  *
13812  * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
13813  * indicates EAP frame length.
13814  *
13815  * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
13816  * attribute indicates the kernel timestamp. Driver uses ktime_get() API
13817  * (Time from boot but not the time spent in suspend) to send in microseconds
13818  * to userspace.
13819  *
13820  * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
13821  * indicates the association id received in the (re)association response frame
13822  * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
13823  */
13824 enum qca_wlan_vendor_attr_diag {
13825 	QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
13826 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
13827 	QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
13828 	QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
13829 	QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
13830 	QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
13831 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
13832 	QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
13833 	QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
13834 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
13835 	QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
13836 	QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
13837 	QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
13838 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
13839 	QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
13840 	QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
13841 	QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
13842 	QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
13843 	QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
13844 	QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
13845 	QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
13846 	QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
13847 	QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
13848 	QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
13849 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
13850 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
13851 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
13852 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
13853 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
13854 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
13855 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
13856 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
13857 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
13858 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
13859 	QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
13860 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
13861 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
13862 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
13863 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
13864 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
13865 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
13866 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
13867 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
13868 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
13869 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
13870 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
13871 	QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
13872 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
13873 	QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
13874 	QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
13875 	QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
13876 
13877 	/* keep last */
13878 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
13879 	QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
13880 	QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
13881 };
13882 
13883 /**
13884  * qca_wlan_vendor_monitor_data_frame_type - Represent the various
13885  * data types to be sent over the monitor interface.
13886  */
13887 enum qca_wlan_vendor_monitor_data_frame_type {
13888 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
13889 
13890 	/* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
13891 	not set */
13892 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
13893 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
13894 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
13895 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
13896 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
13897 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
13898 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
13899 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
13900 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
13901 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
13902 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
13903 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
13904 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
13905 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
13906 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
13907 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
13908 	QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
13909 };
13910 
13911 /**
13912  * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
13913  * mgmt types to be sent over the monitor interface.
13914  * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
13915  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
13916  * except the Beacons. Valid only in the Connect state.
13917  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
13918  * BSSID Beacons. Valid only in the Connect state.
13919  * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
13920  * the Beacons obtained during the scan (off channel and connected channel)
13921  * when in connected state.
13922  */
13923 
13924 enum qca_wlan_vendor_monitor_mgmt_frame_type {
13925 	QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
13926 	/* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
13927 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
13928 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
13929 	QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
13930 };
13931 
13932 /**
13933  * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
13934  * ctrl types to be sent over the monitor interface.
13935  * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
13936  * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
13937  */
13938 enum qca_wlan_vendor_monitor_ctrl_frame_type {
13939 	QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
13940 	/* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
13941 	QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
13942 };
13943 
13944 /**
13945  * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
13946  * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
13947  * monitor mode.
13948  *
13949  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
13950  * Represents the tx data packet type to be monitored (u32). These data packets
13951  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13952  *
13953  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
13954  * Represents the tx data packet type to be monitored (u32). These data packets
13955  * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
13956  *
13957  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
13958  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13959  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13960  *
13961  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
13962  * Represents the tx data packet type to be monitored (u32). These mgmt packets
13963  * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
13964  *
13965  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
13966  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13967  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13968  *
13969  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
13970  * Represents the tx data packet type to be monitored (u32). These ctrl packets
13971  * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
13972  *
13973  * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
13974  * u32 attribute, An interval only for the connected beacon interval, which
13975  * expects that the connected BSSID's beacons shall be sent on the monitor
13976  * interface only on this specific interval.
13977  */
13978 enum qca_wlan_vendor_attr_set_monitor_mode {
13979 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
13980 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
13981 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
13982 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
13983 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
13984 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
13985 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
13986 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
13987 
13988 	/* keep last */
13989 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
13990 	QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
13991 		QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
13992 
13993 };
13994 
13995 /**
13996  * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
13997  * Bits will be set to 1 if the corresponding state is enabled.
13998  *
13999  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
14000  * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
14001  */
14002 enum qca_wlan_vendor_roam_scan_state {
14003 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
14004 	QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
14005 };
14006 
14007 /**
14008  * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
14009  * Bits will be set to 1 if the corresponding event is notified.
14010  *
14011  * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
14012  * carries the trigger reason. When set, it is expected that the roam event
14013  * carries the respective reason via the attribute
14014  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
14015  * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
14016  *
14017  * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
14018  * carries the roam fail reason. When set, it is expected that the roam event
14019  * carries the respective reason via the attribute
14020  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
14021  * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
14022  *
14023  * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
14024  * event carries the roam invoke fail reason. When set, it is expected that
14025  * the roam event carries the respective reason via the attribute
14026  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
14027  *
14028  * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
14029  * carries the roam scan state. When set, it is expected that the roam event
14030  * carries the respective scan state via the attribute
14031  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
14032  * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
14033  */
14034 enum qca_wlan_vendor_roam_event_type {
14035 	QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
14036 	QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
14037 	QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
14038 	QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
14039 };
14040 
14041 /**
14042  * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
14043  * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
14044  *
14045  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
14046  * representing the BSSID of the AP to which the Roam is attempted.
14047  *
14048  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
14049  * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
14050  * attempted.
14051  *
14052  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
14053  * on which the roam is attempted.
14054  *
14055  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
14056  * STA mode only. This represents the roam fail reason for the last failed
14057  * roaming attempt by the firmware for the specific BSSID. Different roam
14058  * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
14059  */
14060 enum qca_wlan_vendor_attr_roam_events_candidate_info {
14061 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
14062 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
14063 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
14064 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
14065 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
14066 
14067 	/* keep last */
14068 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
14069 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
14070 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
14071 };
14072 
14073 /**
14074  * enum qca_wlan_vendor_attr_roam_events - Used by the
14075  * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
14076  * roam events to the driver or notify these events from the driver.
14077  *
14078  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
14079  * driver/firmware to enable/disable the notification of roam events. It's a
14080  * mandatory attribute and used only in the request from the userspace to the
14081  * host driver. 1-Enable, 0-Disable.
14082  * If the roaming is totally offloaded to the firmware, this request when
14083  * enabled shall mandate the firmware to notify all the relevant roam events
14084  * represented by the below attributes. If the host is in the suspend mode,
14085  * the behavior of the firmware to notify these events is guided by
14086  * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
14087  * these events in the suspend state, the firmware is expected to wake up the
14088  * host before the respective events are notified. Please note that such a
14089  * request to get the events in the suspend state will have a definite power
14090  * implication.
14091  *
14092  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
14093  * that the roam events need to be notified in the suspend state too. By
14094  * default, these roam events are notified in the resume state. With this flag,
14095  * the roam events are notified in both resume and suspend states.
14096  * This attribute is used in the request from the userspace to the host driver.
14097  *
14098  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
14099  * Represents the different roam event types, signified by the enum
14100  * qca_wlan_vendor_roam_event_type.
14101  * Each bit of this attribute represents the different roam even types reported
14102  * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14103  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14104  *
14105  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
14106  * mode only. This represents the roam trigger reason for the last roaming
14107  * attempted by the firmware. Each bit of this attribute represents the
14108  * different roam trigger reason code which are defined in enum
14109  * qca_vendor_roam_triggers.
14110  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14111  *
14112  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
14113  * STA mode only. This represents the roam invoke fail reason for the last
14114  * failed roam invoke. Different roam invoke failure reason codes
14115  * are specified in enum qca_vendor_roam_invoke_fail_reasons.
14116  *
14117  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
14118  * for which the roam is attempted. Each entry is a nested attribute defined
14119  * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
14120  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14121  *
14122  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
14123  * the scan state on which the roam events need to be notified. The values for
14124  * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
14125  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14126  *
14127  * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
14128  * u32 values. List of frequencies in MHz considered for a roam scan.
14129  * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
14130  */
14131 
14132 enum qca_wlan_vendor_attr_roam_events {
14133 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
14134 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
14135 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
14136 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
14137 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
14138 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
14139 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
14140 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
14141 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
14142 
14143 	/* keep last */
14144 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
14145 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
14146 	QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
14147 };
14148 
14149 /*
14150  * enum qca_wlan_ratemask_params_type - Rate mask config type.
14151  *
14152  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
14153  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
14154  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
14155  * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
14156  */
14157 enum qca_wlan_ratemask_params_type {
14158 	QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
14159 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
14160 	QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
14161 	QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
14162 };
14163 
14164 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
14165  * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
14166  * This is used to set the rate mask value to be used in rate selection.
14167  *
14168  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
14169  * Array of nested containing attributes
14170  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
14171  * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
14172  *
14173  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
14174  * the different phy types to which the rate mask config is to be applied.
14175  * The values for this attribute are referred from enum
14176  * qca_wlan_vendor_ratemask_params_type.
14177  *
14178  * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
14179  * A bit value of 1 represents rate is enabled and a value of 0
14180  * represents rate is disabled.
14181  * For HE targets, 12 bits correpond to one NSS setting.
14182  * b0-13  => NSS1, MCS 0-13
14183  * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
14184  * For VHT targets, 10 bits correspond to one NSS setting.
14185  * b0-9   => NSS1, MCS 0-9
14186  * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
14187  * For HT targets, 8 bits correspond to one NSS setting.
14188  * b0-7  => NSS1, MCS 0-7
14189  * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
14190  * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
14191  */
14192 
14193 enum qca_wlan_vendor_attr_ratemask_params {
14194 	QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
14195 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
14196 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
14197 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
14198 
14199 	/* keep last */
14200 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
14201 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
14202 	QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
14203 };
14204 
14205 /**
14206  * enum qca_wlan_vendor_flush_pending_policy: Represents values for
14207  * the policy to flush pending frames, configured via
14208  * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
14209  * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
14210  *
14211  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
14212  * the flush policy configured before. This command basically disables the
14213  * flush config set by the user.
14214  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
14215  * the flush policy to be immediate. All pending packets for the peer/TID are
14216  * flushed when this command/policy is received.
14217  * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
14218  * the flush policy to the end of TWT SP. All pending packets for the peer/TID
14219  * are flushed when the end of TWT SP is reached.
14220  */
14221 enum qca_wlan_vendor_flush_pending_policy  {
14222 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
14223 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
14224 	QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
14225 };
14226 
14227 /**
14228  * enum qca_wlan_vendor_attr_flush_pending - Attributes for
14229  * flushing pending traffic in firmware.
14230  *
14231  * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
14232  * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
14233  * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
14234  * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
14235  * flush packets with access category. This is optional. See below.
14236  * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
14237  * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
14238  * bit to 1 to act upon the TID. This is optional. Either this attribute or
14239  * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
14240  * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
14241  * it is an error.
14242  * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
14243  * packets corresponding to the peer/TID provided. It is a u32 value,
14244  * represented by %enum qca_wlan_vendor_flush_pending_policy. This
14245  * value is honored only when TID mask is provided. This is not honored when AC
14246  * mask is provided.
14247  */
14248 enum qca_wlan_vendor_attr_flush_pending {
14249 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
14250 	QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
14251 	QCA_WLAN_VENDOR_ATTR_AC = 2,
14252 	QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
14253 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
14254 	/* keep last */
14255 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
14256 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
14257 	QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
14258 };
14259 
14260 /**
14261  * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
14262  *	for) or drop existing PASN security association for the listed the
14263  *	peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
14264  *	to userspace.
14265  *
14266  * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
14267  *	devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
14268  * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
14269  *	the driver to userspace to inform that the existing PASN keys of the
14270  *	peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
14271  *	not valid anymore.
14272  */
14273 enum qca_wlan_vendor_pasn_action {
14274 	QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
14275 	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
14276 };
14277 
14278 /**
14279  * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
14280  *	QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
14281  *
14282  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
14283  *	event from the driver to userspace and represents the local MAC address
14284  *	to be used for PASN handshake. When this attribute is present, userspace
14285  *	shall use the source address specified in this attribute by the driver
14286  *	for PASN handshake with peer device.
14287  *	This attribute is required in a command response from userspace to the
14288  *	driver and represents the MAC address that was used in PASN handshake
14289  *	with the peer device.
14290  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
14291  *	peer device to which PASN handshake is requested in an event from the
14292  *	driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14293  *	QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
14294  *	Indicates the MAC address of the peer device for which the keys are to
14295  *	be invalidated in an event from the driver to userspace when
14296  *	QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
14297  *	QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
14298  *	Indicates the MAC address of the peer device for which the status is
14299  *	being sent in a status report from userspace to the driver.
14300  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
14301  *	in the event from the driver to userspace. When set, userspace is
14302  *	required to derive LTF key seed from KDK and set it to the driver.
14303  * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
14304  *	attribute is used in the command response from userspace to the driver.
14305  *	If present, it indicates the successful PASN handshake with the peer. If
14306  *	this flag is not present, it indicates that the PASN handshake with the
14307  *	peer device failed.
14308  */
14309 enum qca_wlan_vendor_attr_pasn_peer {
14310 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
14311 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
14312 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
14313 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
14314 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
14315 
14316 	/* keep last */
14317 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
14318 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
14319 	QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
14320 };
14321 
14322 /**
14323  * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
14324  *	QCA_NL80211_VENDOR_SUBCMD_PASN command.
14325  *
14326  * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
14327  *	defined in enum qca_wlan_vendor_pasn_action and used only in an event
14328  *	from the driver to userspace.
14329  * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
14330  *	details for each peer and used in both an event and a command response.
14331  *	The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
14332  *	defined in enum qca_wlan_vendor_attr_pasn_peer.
14333  */
14334 enum qca_wlan_vendor_attr_pasn {
14335 	QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
14336 	QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
14337 	QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
14338 
14339 	/* keep last */
14340 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
14341 	QCA_WLAN_VENDOR_ATTR_PASN_MAX =
14342 	QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
14343 };
14344 
14345 /**
14346  * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
14347  *	the ranging security context derived from PASN for each peer. Used in
14348  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
14349  *
14350  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
14351  *	context for the peer.
14352  * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
14353  *	context for the peer.
14354  */
14355 enum qca_wlan_vendor_secure_ranging_ctx_action {
14356 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
14357 	QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
14358 };
14359 
14360 /**
14361  * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
14362  *	used for deriving PASN keys to the driver. Used in
14363  *	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
14364  * @QCA_WLAN_VENDOR_SHA_256: SHA-256
14365  * @QCA_WLAN_VENDOR_SHA_384: SHA-384
14366  */
14367 enum qca_wlan_vendor_sha_type {
14368 	QCA_WLAN_VENDOR_SHA_256,
14369 	QCA_WLAN_VENDOR_SHA_384,
14370 };
14371 
14372 /**
14373  * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
14374  *	to set security context for the PASN peer from userspace to the driver.
14375  *	Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
14376  *
14377  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
14378  *	values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
14379  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
14380  *	was used during the PASN handshake.
14381  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
14382  *	the peer device for which secure ranging context is being configured.
14383  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
14384  *	hash algorithm to be used, possible values are defined in enum
14385  *	qca_wlan_vendor_sha_type.
14386  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
14387  *	the temporal key generated from the PASN handshake. The length of this
14388  *	attribute is dependent on the value of
14389  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
14390  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
14391  *	TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
14392  *	(e.g., 0x000FAC04).
14393  * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
14394  *	attribute, holds the LTF keyseed derived from KDK of PASN handshake.
14395  *	The length of this attribute is dependent on the value of
14396  *	%QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
14397  *
14398  */
14399 enum qca_wlan_vendor_attr_secure_ranging_ctx {
14400 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
14401 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
14402 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
14403 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
14404 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
14405 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
14406 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
14407 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
14408 
14409 	/* keep last */
14410 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
14411 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
14412 	QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
14413 };
14414 
14415 /**
14416  * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
14417  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
14418  * nested attribute. The packets that match a filter will be replied with
14419  * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
14420  *
14421  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
14422  * u32 attribute. Destination IPv4 address in network byte order, the
14423  * IPv4 packets with different address will be filtered out.
14424  * This attribute is optional.
14425  *
14426  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
14427  * Flag attribute. If it's present, indicates that
14428  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
14429  * address; while if not, indicates that the address is a unicast/multicast
14430  * address.
14431  * This attribute is optional.
14432  *
14433  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
14434  * NLA_BINARY attribute, length is 16 bytes.
14435  * Destination IPv6 address in network byte order, the IPv6 packets
14436  * with different destination address will be filtered out.
14437  * This attribute is optional.
14438  *
14439  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
14440  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
14441  * Packets on both IPv4 and IPv6 will be processed if both are configured.
14442  *
14443  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
14444  * u16 attribute. Destination UDP port, the packets with different destination
14445  * UDP port will be filtered out.
14446  * This attribute is mandatory.
14447  *
14448  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
14449  * u32 attribute. Represents the offset (in UDP payload) of the data
14450  * to be matched.
14451  * This attribute is mandatory.
14452  *
14453  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
14454  * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
14455  * Binary data that is compared bit-by-bit against the data (specified
14456  * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
14457  * payload, the packets don't match will be filtered out.
14458  * This attribute is mandatory.
14459  */
14460 enum qca_wlan_vendor_attr_coap_offload_filter {
14461 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
14462 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
14463 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
14464 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
14465 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
14466 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
14467 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
14468 
14469 	/* keep last */
14470 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
14471 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
14472 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
14473 };
14474 
14475 /**
14476  * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
14477  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
14478  *
14479  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
14480  * u32 attribute. Source address (in network byte order) for replying
14481  * the matching broadcast/multicast IPv4 packets.
14482  * This attribute is optional.
14483  *
14484  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
14485  * NLA_BINARY attribute, length is 16 bytes.
14486  * Source address (in network byte order) for replying the matching
14487  * multicast IPv6 packets.
14488  * This attribute is optional.
14489  *
14490  * For broadcast/multicast offload reply, one of
14491  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
14492  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
14493  * configured according to version of the IP address(es) configured in
14494  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
14495  * while for unicast case, firmware will take the destination IP address
14496  * in the received matching packet as the source address for replying.
14497  *
14498  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
14499  * Nested attribute. Filter for the received UDP packets, only the matching
14500  * packets will be replied and cached.
14501  * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
14502  * attributes.
14503  * This attribute is mandatory.
14504  *
14505  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
14506  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14507  * CoAP message (UDP payload) to be sent upon receiving matching packets.
14508  * Firmware is responsible for adding any necessary protocol headers.
14509  * This attribute is mandatory.
14510  *
14511  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
14512  * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
14513  * A cached message will be dropped by firmware if it's expired.
14514  * This attribute is optional. A default value of 40000 will be used in the
14515  * absence of it.
14516  */
14517 enum qca_wlan_vendor_attr_coap_offload_reply {
14518 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
14519 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
14520 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
14521 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
14522 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
14523 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
14524 
14525 	/* keep last */
14526 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
14527 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
14528 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
14529 };
14530 
14531 /**
14532  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
14533  * CoAP message (UDP) transmitting on IPv4.
14534  *
14535  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
14536  * u32 attribute. Source address (in network byte order) for transmitting
14537  * packets on IPv4.
14538  * This attribute is mandatory.
14539  *
14540  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
14541  * u16 attribute. Source UDP port.
14542  * This attribute is optional, a random port is taken if it's not present.
14543  *
14544  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
14545  * u32 attribute. Destination IPv4 address (in network byte order).
14546  * This attribute is mandatory.
14547  *
14548  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
14549  * Flag attribute. If it's present, indicates that
14550  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
14551  * address; while if not, indicates that the address is unicast/multicast
14552  * address.
14553  * This attribute is optional.
14554  *
14555  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
14556  * u16 attribute. Destination UDP port.
14557  * This attribute is mandatory.
14558  */
14559 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
14560 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
14561 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
14562 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
14563 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
14564 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
14565 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
14566 
14567 	/* keep last */
14568 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
14569 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
14570 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
14571 };
14572 
14573 /**
14574  * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
14575  * CoAP message (UDP) transmitting on IPv6.
14576  *
14577  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
14578  * NLA_BINARY attribute, length is 16 bytes.
14579  * Source address (in network byte order) for transmitting packets on IPv6.
14580  * This attribute is mandatory.
14581  *
14582  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
14583  * u16 attribute. Source UDP port.
14584  * This attribute is optional, a random port is taken if it's not present.
14585  *
14586  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
14587  * NLA_BINARY attribute, length is 16 bytes.
14588  * Destination IPv6 address (in network byte order).
14589  * This attribute is mandatory.
14590  *
14591  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
14592  * u16 attribute. Destination UDP port.
14593  * This attribute is mandatory.
14594  */
14595 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
14596 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
14597 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
14598 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
14599 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
14600 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
14601 
14602 	/* keep last */
14603 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
14604 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
14605 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
14606 };
14607 
14608 /**
14609  * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
14610  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
14611  *
14612  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
14613  * Nested attribute. The IPv4 source/destination address/port for offload
14614  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
14615  * of supported attributes.
14616  * This attribute is optional.
14617  *
14618  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
14619  * Nested attribute. The IPv6 source/destination address/port for offload
14620  * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
14621  * of supported attributes.
14622  * This attribute is optional.
14623  *
14624  * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
14625  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
14626  * Firmware will transmit the packets on both IPv4 and IPv6 if both are
14627  * configured.
14628  *
14629  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
14630  * u32 attribute. Period in milliseconds for the periodic transmitting.
14631  * This attribute is mandatory.
14632  *
14633  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
14634  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14635  * CoAP message (UDP payload) to be periodically transmitted. Firmware
14636  * is responsible for adding any necessary protocol headers.
14637  * This attribute is mandatory.
14638  */
14639 enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
14640 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
14641 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
14642 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
14643 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
14644 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
14645 
14646 	/* keep last */
14647 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
14648 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
14649 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
14650 };
14651 
14652 /**
14653  * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
14654  * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
14655  *
14656  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
14657  * u64 attribute. Received time (since system booted in microseconds) of
14658  * the cached CoAP message.
14659  * This attribute is mandatory.
14660  *
14661  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
14662  * u32 attribute. Source IPv4 address (in network byte order) of the cached
14663  * CoAP message.
14664  * This attribute is optional.
14665  *
14666  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
14667  * NLA_BINARY attribute, length is 16 bytes.
14668  * Source IPv6 address (in network byte order) of the cached CoAP message.
14669  * This attribute is optional.
14670  *
14671  * At most and at least one of
14672  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
14673  * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
14674  * an entry.
14675  *
14676  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
14677  * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
14678  * The cached CoAP message (UDP payload). If the actual message size is
14679  * greater than the maximum size, it will be truncated and leaving only
14680  * the first 1152 bytes.
14681  * This attribute is mandatory.
14682  */
14683 enum qca_wlan_vendor_attr_coap_offload_cache_info {
14684 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
14685 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
14686 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
14687 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
14688 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
14689 
14690 	/* keep last */
14691 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
14692 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
14693 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
14694 };
14695 
14696 /**
14697  * enum qca_wlan_vendor_coap_offload_action - Actions for
14698  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14699  *
14700  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
14701  * Enable CoAP offload reply.
14702  * If it's enabled, firmware will start offload processing on each suspend
14703  * and stop on each resume.
14704  *
14705  * Offload reply on match works as follows:
14706  * Reply the packets that match the filter with the given CoAP
14707  * message (with necessary protocol headers), increase the CoAP message
14708  * ID in the given CoAP message by one for the next use after each successful
14709  * transmission, and try to store the information of the received packet,
14710  * including the received time, source IP address, and CoAP message (UDP
14711  * payload).
14712  *
14713  * Firmware has a limit to the maximum stored entries, it takes the source IP
14714  * address as the key of an entry, and keeps at most one entry for each key.
14715  * A packet won't be stored if no entry for the same key is present and the
14716  * total number of the existing unexpired entries reaches the maximum value.
14717  *
14718  * If any configured item is changed, user space should disable offload reply
14719  * first and then issue a new enable request.
14720  *
14721  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
14722  * Disable CoAP offload reply and return information of any cached CoAP
14723  * messages.
14724  *
14725  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
14726  * Enable CoAP offload periodic transmitting.
14727  * If it's enabled, firmware will start offload periodic transmitting on
14728  * each suspend and stop on each resume.
14729  *
14730  * Offload periodic transmitting works as follows:
14731  * Send the given CoAP message (with necessary protocol headers) with the given
14732  * source/destination IP address/UDP port periodically based on the given
14733  * period and increase the CoAP message ID in the given CoAP message by one
14734  * for the next use after each successful transmission.
14735  *
14736  * If any configured item is changed, user space should disable offload
14737  * periodic transmitting first and then issue a new enable request.
14738  *
14739  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
14740  * Disable CoAP offload periodic transmitting.
14741  *
14742  * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
14743  * Get information of the CoAP messages cached during offload reply
14744  * processing. The cache is cleared after retrieval.
14745  */
14746 enum qca_wlan_vendor_coap_offload_action {
14747 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
14748 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
14749 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
14750 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
14751 	QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
14752 };
14753 
14754 /**
14755  * enum qca_wlan_vendor_attr_coap_offload - Used by the
14756  * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
14757  * This is used to set parameters for CoAP offload processing, or get
14758  * cached CoAP messages from firmware.
14759  *
14760  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
14761  * u32 attribute. Action to take in this vendor command.
14762  * See enum qca_wlan_vendor_coap_offload_action for supported actions.
14763  * This attribute is mandatory.
14764  *
14765  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
14766  * u32 attribute. Represents the Request ID for the CoAP offload
14767  * configuration, which can help to identify the user entity starting
14768  * the CoAP offload processing and accordingly stop the respective
14769  * ones/get the cached CoAP messages with the matching ID.
14770  * This attribute is mandatory.
14771  *
14772  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
14773  * Nested attribute. Parameters for offload reply.
14774  * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
14775  * supported attributes.
14776  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14777  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
14778  * otherwise.
14779  *
14780  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
14781  * Nested attribute. Parameters for offload periodic transmitting.
14782  * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
14783  * supported attributes.
14784  * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
14785  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
14786  * otherwise.
14787  *
14788  * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
14789  * Array of nested attributes. Information of the cached CoAP messages,
14790  * where each entry is taken from
14791  * enum qca_wlan_vendor_attr_coap_offload_cache_info.
14792  * This attribute is used for reporting the cached CoAP messages
14793  * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
14794  * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
14795  * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
14796  * cached item if this attribute is not present.
14797  */
14798 enum qca_wlan_vendor_attr_coap_offload {
14799 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
14800 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
14801 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
14802 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
14803 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
14804 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
14805 
14806 	/* keep last */
14807 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
14808 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
14809 	QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
14810 };
14811 
14812 /**
14813  * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
14814  * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
14815  * Service (SCS) rule.
14816  *
14817  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
14818  * Represents the unique id of SCS rule to be configured.
14819 
14820  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
14821  * Represents the request type: add, remove, or change.
14822  * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
14823  * Type definitions).
14824  *
14825  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
14826  * in case of add/change request type.
14827  * Represents the output traffic identifier (TID) to be assigned to the flow
14828  * matching the rule.
14829  *
14830  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
14831  * attribute in case of add/change request type.
14832  * Represents type of classifier parameters present in SCS rule.
14833  * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
14834  * Only classifier types 4 and 10 are supported for SCS.
14835  *
14836  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
14837  * in case of add/change request type when classifier type is TCLAS4.
14838  * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
14839  *
14840  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
14841  * attribute in case of add/change request type when classifier type is TCLAS4
14842  * and version attribute is IPv4.
14843  * Represents the source IPv4 address in the rule which is to be compared
14844  * against the source IP address in the IPv4 header.
14845  *
14846  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
14847  * attribute in case of add/change request type when classifier type is TCLAS4
14848  * and version attribute is IPv4.
14849  * Represents the destination IPv4 address in the rule which is to be compared
14850  * against the destination IP address in the IPv4 header.
14851  *
14852  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
14853  * attribute in case of add/change request type when classifier type is TCLAS4
14854  * and version attribute is IPv6.
14855  * Represents the source IPv6 address in the rule which is to be compared
14856  * against the source IP address in the IPv6 header.
14857  *
14858  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
14859  * attribute in case of add/change request type when classifier type is TCLAS4
14860  * and version attribute is IPv6.
14861  * Represents the destination IPv6 address in the rule which is to be compared
14862  * against the destination IP address in the IPv6 header.
14863  *
14864  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
14865  * in case of add/change request type when classifier type is TCLAS4.
14866  * Represents the source port number in the rule which is to be compared against
14867  * the source port number in the protocol header.
14868  *
14869  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
14870  * in case of add/change request type when classifier type is TCLAS4.
14871  * Represents the destination port number in the rule which is to be compared
14872  * against the destination port number in the protocol header.
14873  *
14874  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
14875  * in case of add/change request type when classifier type is TCLAS4.
14876  * Represents the DSCP value in the rule which is to be compared against the
14877  * DSCP field present in the IP header.
14878  *
14879  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
14880  * attribute in case of add/change request type when classifier type is TCLAS4.
14881  * Represents the protocol/next header in the rule which is to be compared
14882  * against the protocol/next header field present in the IPv4/IPv6 header.
14883  *
14884  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
14885  * attribute of size 3 bytes present in case of add/change request type
14886  * when classifier type is TCLAS4 and version is IPv6.
14887  * Represents the flow label value in the rule which is to be compared against
14888  * the flow label field present in the IPv6 header.
14889  *
14890  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
14891  * attribute in case of add/change request type when classifier type is TCLAS10.
14892  * Represents the protocol instance number in the rule.
14893  *
14894  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
14895  * attribute in case of add/change request type when classifier type is TCLAS10.
14896  * Represents the protocol/next header in the rule which is to be compared
14897  * against the protocol/next header field present in the IPv4/IPv6 header.
14898  *
14899  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
14900  * attribute of variable length present when request type is add/change and
14901  * classifier type is TCLAS10.
14902  * Represents the mask to be used for masking the header contents of the header
14903  * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
14904  * attribute.
14905  *
14906  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
14907  * attribute of variable length present when request type is add/change and
14908  * classifier type is TCLAS10.
14909  * Represents the value to be compared against after masking the header contents
14910  * of the header specified by the
14911  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
14912  * filter mask specified by the
14913  * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
14914  *
14915  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
14916  * attribute.
14917  * Represents the service class id of the configured SCS rule.
14918  *
14919  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
14920  * MAC address.
14921  * Represents the destination MAC address in the rule.
14922  *
14923  * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
14924  * Represents the netdevice interface index in the rule.
14925  */
14926 enum qca_wlan_vendor_attr_scs_rule_config {
14927 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
14928 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
14929 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
14930 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
14931 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
14932 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
14933 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
14934 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
14935 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
14936 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
14937 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
14938 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
14939 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
14940 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
14941 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
14942 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
14943 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
14944 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
14945 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
14946 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
14947 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
14948 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
14949 
14950 	/* Keep last */
14951 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
14952 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
14953 	QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
14954 };
14955 
14956 /**
14957  * enum qca_wlan_vendor_sar_version - This describes the current SAR version
14958  * used in the firmware.
14959  *
14960  * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
14961  * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
14962  *
14963  * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
14964  * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
14965  * each CTL group. So user can select up to 6 SAR indexes from the current CTL
14966  * groups.
14967  *
14968  * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
14969  * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
14970  * CTL group but user can choose up to 3 SAR set index only, as the top half
14971  * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
14972  * the SAR index (3 to 5) is used for DBS mode.
14973  */
14974 enum qca_wlan_vendor_sar_version {
14975 	QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
14976 	QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
14977 	QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
14978 	QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
14979 };
14980 
14981 /**
14982  * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
14983  * CTL grouping is enabled or disabled in the firmware.
14984  *
14985  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
14986  * is enabled in firmware.
14987  *
14988  * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
14989  * is disabled in firmware.
14990  *
14991  */
14992 enum qca_wlan_vendor_sar_ctl_group_state {
14993 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
14994 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
14995 	QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
14996 };
14997 
14998 /**
14999  * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
15000  * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
15001  * supported by the firmware.
15002 
15003  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
15004  * u32 attribute. This field describes current SAR version supported by the
15005  * firmware.
15006  * See enum qca_wlan_vendor_sar_version for more information.
15007  * This attribute is mandatory.
15008 
15009  * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
15010  * u32 attribute. This field describes whether CTL groups are enabled
15011  * or disabled in the firmware.
15012  * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
15013  * This attribute is optional.
15014  */
15015 
15016 enum qca_wlan_vendor_attr_sar_capability {
15017 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
15018 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
15019 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
15020 
15021 	/* Keep last */
15022 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
15023 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
15024 	QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
15025 };
15026 
15027 /**
15028  * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
15029  * These statistics are sent from the driver in a response when userspace
15030  * queries to get the statistics using the operation
15031  * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
15032  * by the driver when the SR feature is enabled, when the driver receives
15033  * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
15034  *
15035  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15036  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15037  * This represents the number of non-SRG TX opportunities.
15038  *
15039  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15040  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15041  * This represents the number of non-SRG PPDUs tried to transmit.
15042  *
15043  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15044  * Mandatory only when non-SRG is supported by the AP and optional otherwise.
15045  * This represents the number of non-SRG PPDUs successfully transmitted.
15046  *
15047  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
15048  * Mandatory only when SRG is supported by the AP and optional otherwise.
15049  * This represents the number of SRG TX opportunities.
15050  *
15051  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
15052  * Mandatory only when SRG is supported by the AP and optional otherwise.
15053  * This represents the number of SRG PPDUs tried to transmit.
15054  *
15055  * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
15056  * Mandatory only when SRG is supported by the AP and optional otherwise.
15057  * This represents the number of SRG PPDUs successfully transmitted.
15058  */
15059 enum qca_wlan_vendor_attr_sr_stats {
15060 	QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
15061 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
15062 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
15063 	QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
15064 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
15065 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
15066 	QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
15067 
15068 	/* Keep last */
15069 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
15070 	QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
15071 	QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
15072 };
15073 
15074 /**
15075  * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
15076  * Spatial Reuse feature.
15077  *
15078  * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
15079  * roaming to an AP that doesn't support/supports SR feature, respectively.
15080  *
15081  * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
15082  * to change in concurrent interfaces that are supported by the driver.
15083  */
15084 enum qca_wlan_sr_reason_code {
15085 	QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
15086 	QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
15087 };
15088 
15089 /**
15090  * enum qca_wlan_sr_operation - Defines the different types of SR operations.
15091  * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
15092  *
15093  * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
15094  * driver to enable the Spatial Reuse feature. Attributes
15095  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15096  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
15097  * operation.
15098  *
15099  * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
15100  * driver to disable the Spatial Reuse feature.
15101  *
15102  * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
15103  * asynchronous event sent to userspace when the SR feature is disabled.
15104  * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
15105  * and sent along with the asynchronous event.
15106  *
15107  * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
15108  * asynchronous event when the SR feature is enabled again after the SR feature
15109  * was suspended by the driver earlier. The enable reason is
15110  * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
15111  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
15112  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
15113  *
15114  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
15115  * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15116  * reuse transmissions. Userspace sends this operation to the driver.
15117  * The driver/firmware upon receiving this operation shall prohibit PSR-based
15118  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15119  *
15120  * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
15121  * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
15122  * reuse transmissions. Userspace sends this operation to the driver.
15123  * The driver/firmware upon receiving this operation shall allow PSR-based
15124  * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
15125  *
15126  * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
15127  * driver to get the SR statistics and the driver sends a synchronous response
15128  * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
15129  * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
15130  *
15131  * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
15132  * driver to clear the SR statistics and upon receiving this operation
15133  * the driver/firmware shall clear the SR statistics.
15134  *
15135  * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
15136  * driver to get the SR parameters and the driver sends the synchronous response
15137  * with the following required attributes:
15138  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15139  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15140  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15141  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15142  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15143  *
15144  * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
15145  * asynchronous event to userspace to update any changes in SR parameters.
15146  * The following attributes are used with this operation:
15147  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
15148  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
15149  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
15150  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
15151  * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
15152  */
15153 enum qca_wlan_sr_operation {
15154 	QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
15155 	QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
15156 	QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
15157 	QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
15158 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
15159 	QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
15160 	QCA_WLAN_SR_OPERATION_GET_STATS = 6,
15161 	QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
15162 	QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
15163 	QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
15164 };
15165 
15166 /**
15167  * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
15168  * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
15169  *
15170  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
15171  * This attribute is optionally set in response to
15172  * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
15173  * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
15174  * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
15175  * about HESIGA_Spatial_reuse_value15_allowed.
15176  *
15177  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
15178  * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
15179  * operation. This indicates whether non-SRG OBSS PD SR transmissions are
15180  * allowed or not at non-AP STAs that are associated with the AP. If present
15181  * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
15182  *
15183  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
15184  * attribute. This attribute is used in response to
15185  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15186  * Min Offset field which contains an unsigned integer that is added to -82 dBm
15187  * to generate the value of the SRG OBSS PD Min parameter.
15188  *
15189  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15190  * attribute. This attribute is used in response to
15191  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
15192  * Max Offset field which contains an unsigned integer that is added to -82 dBm
15193  * to generate the value of the SRG OBSS PD Max parameter.
15194  *
15195  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
15196  * attribute. This attribute is used in response to
15197  * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
15198  * PD Max Offset field which contains an unsigned integer that is added to -82
15199  * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
15200  *
15201  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15202  * Userspace optionally sends this attribute with
15203  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15204  * preferred SRG PD threshold. The driver shall send this attribute to
15205  * userspace in SR resume event to indicate the PD threshold being used for SR.
15206  * When there is change in SRG PD threshold (for example, due to roaming, etc.)
15207  * the driver shall indicate the userspace the newly configured SRG PD threshold
15208  * using an asynchronous event.
15209  *
15210  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
15211  * Userspace optionally sends this attribute with
15212  * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
15213  * preferred non-SRG PD threshold. The driver shall send this attribute to
15214  * userspace in SR resume event to indicate the PD threshold being used for SR.
15215  * When there is change in non-SRG PD threshold (for example, due to roaming,
15216  * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
15217  * threshold using an asynchronous event.
15218  *
15219  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
15220  * values are defined in enum qca_wlan_sr_reason_code. This
15221  * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
15222  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
15223  */
15224 enum qca_wlan_vendor_attr_sr_params {
15225 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
15226 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
15227 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
15228 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
15229 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
15230 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
15231 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
15232 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
15233 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
15234 
15235 	/* keep last */
15236 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
15237 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
15238 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
15239 };
15240 
15241 /**
15242  * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
15243  * command QCA_NL80211_VENDOR_SUBCMD_SR.
15244  *
15245  * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
15246  * from userspace to the driver. Possible values are defined in enum
15247  * qca_wlan_sr_operation.
15248  *
15249  * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
15250  * configuration parameters. The possible attributes inside this attribute are
15251  * defined in enum qca_wlan_vendor_attr_sr_params.
15252  * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15253  * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
15254  * also in response from the driver to userspace when the response is sent for
15255  * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
15256  * The driver uses this attribute in asynchronous events in which the operation
15257  * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
15258  * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
15259  *
15260  * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
15261  * statistics. These attributes used inside this are defined in enum
15262  * qca_wlan_vendor_attr_sr_stats.
15263  * This attribute is used in response from the driver to a command in which
15264  * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
15265  * %QCA_WLAN_SR_OPERATION_GET_STATS.
15266  */
15267 enum qca_wlan_vendor_attr_sr {
15268 	QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
15269 	QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
15270 	QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
15271 	QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
15272 
15273 	/* Keep last */
15274 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
15275 	QCA_WLAN_VENDOR_ATTR_SR_MAX =
15276 	QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
15277 };
15278 
15279 /**
15280  * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
15281  * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
15282  *
15283  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
15284  * used by the peer on the link that corresponds to the link used for sending
15285  * the event notification.
15286  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
15287  * MLD MAC address of the peer.
15288  * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
15289  * used to pass ifindex of the primary netdev.
15290  */
15291 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
15292 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
15293 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
15294 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
15295 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
15296 
15297 	/* keep last */
15298 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
15299 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
15300 	QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
15301 };
15302 
15303 /**
15304  * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
15305  * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
15306  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
15307  * and PSD information.
15308  *
15309  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
15310  * u32. This attribute is used to indicate the start of the queried frequency
15311  * range in MHz.
15312  *
15313  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
15314  * This attribute is used to indicate the end of the queried frequency range
15315  * in MHz.
15316  *
15317  * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
15318  * This attribute will contain the PSD information for a single range as
15319  * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
15320  * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
15321  *
15322  * The PSD power info (dBm/MHz) from user space should be multiplied
15323  * by a factor of 100 when sending to the driver to preserve granularity
15324  * up to 2 decimal places.
15325  * Example:
15326  *     PSD power value: 10.21 dBm/MHz
15327  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
15328  *
15329  * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
15330  * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
15331  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
15332  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15333  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15334  *
15335  * The following set of attributes will be used to exchange frequency and
15336  * corresponding PSD information for AFC between the user space and the driver.
15337  */
15338 enum qca_wlan_vendor_attr_afc_freq_psd_info {
15339 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
15340 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
15341 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
15342 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
15343 
15344 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
15345 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
15346 	QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
15347 };
15348 
15349 /**
15350  * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
15351  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
15352  * channel list and corresponding EIRP information.
15353  *
15354  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
15355  * This attribute is used to indicate queried channel from
15356  * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
15357  *
15358  * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
15359  * This attribute is used to configure the EIRP power info corresponding
15360  * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
15361  * The EIRP power info(dBm) from user space should be multiplied
15362  * by a factor of 100 when sending to Driver to preserve granularity up to
15363  * 2 decimal places.
15364  * Example:
15365  *     EIRP power value: 34.23 dBm
15366  *     Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
15367  *
15368  * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
15369  * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15370  * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
15371  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15372  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
15373  *
15374  * The following set of attributes will be used to exchange Channel and
15375  * corresponding EIRP information for AFC between the user space and Driver.
15376  */
15377 enum qca_wlan_vendor_attr_afc_chan_eirp_info {
15378 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
15379 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
15380 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
15381 
15382 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
15383 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
15384 	QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
15385 };
15386 
15387 /**
15388  * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
15389  * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15390  * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
15391  * channel, and EIRP related information.
15392  *
15393  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
15394  * This attribute is used to indicate the operating class, as listed under
15395  * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
15396  *
15397  * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
15398  * for updating the channel number and EIRP power information.
15399  * It uses the attributes defined in
15400  * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
15401  *
15402  * Operating class information packing format for
15403  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15404  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15405  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
15406  *
15407  * m - Total number of operating classes.
15408  * n, j - Number of queried channels for the corresponding operating class.
15409  *
15410  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15411  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15412  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15413  *      .....
15414  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15415  *  ....
15416  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15417  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15418  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15419  *      ....
15420  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15421  *
15422  * Operating class information packing format for
15423  * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
15424  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
15425  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15426  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
15427  *
15428  * m - Total number of operating classes.
15429  * n, j - Number of channels for the corresponding operating class.
15430  *
15431  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
15432  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
15433  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15434  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15435  *      .....
15436  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
15437  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
15438  *  ....
15439  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
15440  *  QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
15441  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
15442  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
15443  *      ....
15444  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
15445  *      QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
15446  *
15447  * The following set of attributes will be used to exchange operating class
15448  * information for AFC between the user space and the driver.
15449  */
15450 enum qca_wlan_vendor_attr_afc_opclass_info {
15451 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
15452 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
15453 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
15454 
15455 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
15456 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
15457 	QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
15458 };
15459 
15460 /**
15461  * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
15462  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
15463  *
15464  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
15465  * driver to userspace in order to query the new AFC power values.
15466  *
15467  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
15468  * complete event will be sent from the driver to userspace to indicate
15469  * processing of the AFC response.
15470  *
15471  * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
15472  * will be sent from the driver to userspace to indicate last received
15473  * AFC response data has been cleared on the AP due to invalid data
15474  * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
15475  *
15476  * The following enum defines the different event types that will be
15477  * used by the driver to help trigger corresponding AFC functionality in user
15478  * space.
15479  */
15480 enum qca_wlan_vendor_afc_event_type {
15481 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
15482 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
15483 	QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
15484 };
15485 
15486 /**
15487  * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
15488  * deployment type.
15489  * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
15490  *
15491  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
15492  *
15493  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
15494  *
15495  * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
15496  *
15497  * The following enum defines different deployment modes that the AP might
15498  * come up in. This information will be essential to retrieve deployment-type
15499  * specific SP power values for AFC operation.
15500  */
15501 enum qca_wlan_vendor_afc_ap_deployment_type {
15502 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
15503 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
15504 	QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
15505 };
15506 
15507 /**
15508  * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
15509  * indicate AFC response status.
15510  * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
15511  *
15512  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
15513  *
15514  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
15515  * command was not received within the expected time of the AFC expiry event
15516  * being triggered.
15517  *
15518  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
15519  * parsing error by the driver.
15520  *
15521  * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
15522  * error.
15523  *
15524  * The following enum defines the status codes that the driver will use to
15525  * indicate whether the AFC data is valid or not.
15526  */
15527 enum qca_wlan_vendor_afc_evt_status_code {
15528 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
15529 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
15530 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
15531 	QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
15532 };
15533 
15534 /**
15535  * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
15536  * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
15537  * support sending only a single request to the user space at a time.
15538  *
15539  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
15540  * Used with event to notify the type of AFC event received.
15541  * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
15542  *
15543  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
15544  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15545  * otherwise unused.
15546  *
15547  * This attribute is used to indicate the AP deployment type in the AFC request.
15548  * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
15549  *
15550  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
15551  * Unique request identifier generated by the AFC client for every
15552  * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
15553  * The user space application is responsible for ensuring no duplicate values
15554  * are in-flight with the server, e.g., by delaying a request, should the same
15555  * value be received from different radios in parallel.
15556  *
15557  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
15558  * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15559  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
15560  *
15561  * This attribute indicates the AFC spec version information. This will
15562  * indicate the AFC version AFC client must use to query the AFC data.
15563  * Bits 15:0  - Minor version
15564  * Bits 31:16 - Major version
15565  *
15566  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
15567  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
15568  * otherwise unused.
15569  * This attribute indicates the minimum desired power (in dBm) for
15570  * the queried spectrum.
15571  *
15572  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
15573  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15574  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15575  *
15576  * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
15577  * This attribute is used to indicate if there were any errors parsing the
15578  * AFC response.
15579  *
15580  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
15581  * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15582  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15583  *
15584  * This attribute indicates the AFC response code. The AFC response codes are
15585  * in the following categories:
15586  * -1: General Failure.
15587  * 0: Success.
15588  * 100 - 199: General errors related to protocol.
15589  * 300 - 399: Error events specific to message exchange
15590  *            for the Available Spectrum Inquiry.
15591  *
15592  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
15593  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15594  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15595  *
15596  * This attribute indicates the date until which the current response is
15597  * valid for in UTC format.
15598  * Date format: bits 7:0   - DD (Day 1-31)
15599  *              bits 15:8  - MM (Month 1-12)
15600  *              bits 31:16 - YYYY (Year)
15601  *
15602  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
15603  * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15604  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15605  *
15606  * This attribute indicates the time until which the current response is
15607  * valid for in UTC format.
15608  * Time format: bits 7:0   - SS (Seconds 0-59)
15609  *              bits 15:8  - MM (Minutes 0-59)
15610  *              bits 23:16 - HH (Hours 0-23)
15611  *              bits 31:24 - Reserved
15612  *
15613  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
15614  * for updating the list of frequency ranges to be queried.
15615  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15616  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15617  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15618  * It uses the attributes defined in
15619  * enum qca_wlan_vendor_attr_afc_freq_psd_info.
15620  *
15621  * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
15622  * for updating the list of operating classes and corresponding channels to be
15623  * queried.
15624  * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
15625  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
15626  * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
15627  * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
15628  */
15629 enum qca_wlan_vendor_attr_afc_event {
15630 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
15631 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
15632 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
15633 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
15634 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
15635 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
15636 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
15637 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
15638 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
15639 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
15640 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
15641 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
15642 
15643 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
15644 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
15645 	QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
15646 };
15647 
15648 /**
15649  * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
15650  * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
15651  * will support sending only a single AFC response to the driver at a time.
15652  *
15653  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
15654  * This attribute will be used to send a single Spectrum Inquiry response object
15655  * from the 'availableSpectrumInquiryResponses' array object from the response
15656  * JSON.
15657  *
15658  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
15659  *
15660  * This attribute indicates the period (in seconds) for which the response
15661  * data received is valid for.
15662  *
15663  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
15664  *
15665  * This attribute indicates the request ID for which the corresponding
15666  * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
15667  *
15668  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
15669  *
15670  * This attribute indicates the date until which the current response is
15671  * valid for in UTC format.
15672  * Date format: bits 7:0   - DD (Day 1-31)
15673  *              bits 15:8  - MM (Month 1-12)
15674  *              bits 31:16 - YYYY (Year)
15675  *
15676  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
15677  *
15678  * This attribute indicates the time until which the current response is
15679  * valid for in UTC format.
15680  * Time format: bits 7:0   - SS (Seconds 0-59)
15681  *              bits 15:8  - MM (Minutes 0-59)
15682  *              bits 23:16 - HH (Hours 0-23)
15683  *              bits 31:24 - Reserved
15684  *
15685  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
15686  *
15687  * This attribute indicates the AFC response code. The AFC response codes are
15688  * in the following categories:
15689  * -1: General Failure.
15690  * 0: Success.
15691  * 100 - 199: General errors related to protocol.
15692  * 300 - 399: Error events specific to message exchange
15693  *            for the Available Spectrum Inquiry.
15694  *
15695  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
15696  * for PSD info of all the queried frequency ranges. It uses the attributes
15697  * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
15698  *
15699  * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
15700  * attributes for EIRP info of all queried operating class/channels. It uses
15701  * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
15702  * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
15703  *
15704  */
15705 enum qca_wlan_vendor_attr_afc_response {
15706 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
15707 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
15708 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
15709 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
15710 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
15711 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
15712 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
15713 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
15714 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
15715 
15716 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
15717 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
15718 	QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
15719 };
15720 
15721 /**
15722  * enum qca_wlan_dozed_ap_state - Doze states for AP interface
15723  *
15724  * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
15725  *
15726  * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
15727  * beaconing at higher beacon interval with Rx disabled.
15728  */
15729 enum qca_wlan_dozed_ap_state {
15730 	QCA_WLAN_DOZED_AP_DISABLE = 0,
15731 	QCA_WLAN_DOZED_AP_ENABLE = 1,
15732 };
15733 
15734 /**
15735  * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
15736  * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
15737  * configuration.
15738  *
15739  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
15740  * Configures the doze state for an AP interface. Possible values are defined
15741  * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
15742  * gets triggered asynchronously to provide updated AP interface configuration.
15743  *
15744  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
15745  * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
15746  * command, which is used later to maintain synchronization between commands
15747  * and asynchronous events.
15748  *
15749  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
15750  * Used in event to indicate the next TBTT TSF timer value after applying the
15751  * doze mode configuration. Next TBTT TSF is the time at which the AP sends
15752  * the first beacon after entering or exiting dozed mode.
15753  *
15754  * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
15755  * Used with event to inform the periodicity of beacon transmission that would
15756  * be skipped at all TBTTs in between.
15757  */
15758 enum qca_wlan_vendor_attr_dozed_ap {
15759 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
15760 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
15761 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
15762 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
15763 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
15764 
15765 	/* Keep last */
15766 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
15767 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
15768 	QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
15769 };
15770 
15771 #endif
15772